Skip to content

Commit

Permalink
Updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkentim committed Nov 29, 2018
1 parent 342290f commit e24c631
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGES-SampSharp.Core.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 0.8.0-alpha10
- Added `IGameModeClient.ServerPath` (#292)
- Improved state resetting with intermission script
- Increased native argument buffer size from 32 to 128 (#279)
- Fixed missing framework log messages
- Fixed "Duplicate typename within an assembly" exception being thrown in some cases when loading a gamemode when players are already connect (#258)
- Fixed crash which occurs when using running gmx in non-hosted mode (#280)

### 0.8.0-alpha8
- Added option to host game mode inside samp-server process (experimental)
- Renamed `GameModeClient` to `MultiProcessGameModeClient`
Expand Down
7 changes: 7 additions & 0 deletions CHANGES-SampSharp.GameMode.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 0.8.0-alpha10
- Added `VehicleColor` enum and `Color.FromVehicleColor` (#270)
- Added support for `BaseVehicle` or derived types in command parameters (#276)
- Added `MapIcon` enum (#206/#288)
- Added `ObjectModel` enum and `PickupType enum (#291)
- Fixed `OnPlayerEnterCheckpoint` callback not being processed

### 0.8.0-alpha8
- Fixed `BaseVehicle.CreateStatic(VehicleModelType, Vector3, float, int, int)` overload not creating static vehicle

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace SampSharp.GameMode.Definitions
/// <summary>
/// Contains all map icons.
/// </summary>
public enum MapIcons
public enum MapIcon
{
/// <summary>
/// Can be used in any colour. Used for Single Player objectives.
Expand Down
22 changes: 20 additions & 2 deletions src/SampSharp.GameMode/World/BasePlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1669,12 +1669,30 @@ public virtual void ShowNameTagForPlayer(BasePlayer player, bool show)
/// <param name="color">The color of the icon, this should only be used with the square icon (ID: 0).</param>
/// <param name="style">The style of icon.</param>
/// <returns>True if it was successful, False otherwise (e.g. the player isn't connected).</returns>
public virtual bool SetMapIcon(int iconid, Vector3 position, MapIcons mapIcon, Color color,
public virtual bool SetMapIcon(int iconid, Vector3 position, MapIcon mapIcon, Color color,
MapIconType style)
{
return SetMapIcon(iconid, position, (int) mapIcon, color, style);
}

/// <summary>
/// This function allows you to place your own icons on the map, enabling you to emphasize the locations of banks,
/// airports or whatever else you want. A total of 63 icons are available in GTA: San Andreas, all of which can be used
/// using this function. You can also specify the color of the icon, which allows you to change the square icon (ID:
/// 0).
/// </summary>
/// <param name="iconid">The player's icon ID, ranging from 0 to 99, to be used in <see cref="RemoveMapIcon" />.</param>
/// <param name="position">The coordinates of the place where you want the icon to be.</param>
/// <param name="mapIcon">The icon to set.</param>
/// <param name="color">The color of the icon, this should only be used with the square icon (ID: 0).</param>
/// <param name="style">The style of icon.</param>
/// <returns>True if it was successful, False otherwise (e.g. the player isn't connected).</returns>
public virtual bool SetMapIcon(int iconid, Vector3 position, int mapIcon, Color color,
MapIconType style)
{
AssertNotDisposed();

return PlayerInternal.Instance.SetPlayerMapIcon(Id, iconid, position.X, position.Y, position.Z, (int) mapIcon, color,
return PlayerInternal.Instance.SetPlayerMapIcon(Id, iconid, position.X, position.Y, position.Z, mapIcon, color,
(int) style);
}

Expand Down

0 comments on commit e24c631

Please sign in to comment.