SampSharp GameMode Framework 0.9.0

A framework for writing SA-MP game modes in C#.

SampSharp.GameMode
638 downloads
9 downloads of 0.9.0
Last updated Jan 25, 2020

Project Site
License
Release Notes

- Added `Vector3.XY` which returns a `Vector2` with the x and y components (#299/#300)
- Added `Color.Brightness` property (#309)
- Added `Color.AddGrammaCorrection`, `Color.RemoveGammaCorrection`, `Color.Grayscale` methods (#309)
- Added `blendAlpha` option to `Color.Lerp`, `Color.Darken` and `Color.Lighten` (#305/#310)
- Added `Timer.Run` and `Timer.RunOnce` overloads with an `int` or `double` internal in miliseconds. (#315)
- Added `BasePlayer.PickUpPickup` event (#319)
- Added `BasePlayer.CameraTargetPlayerObject` (#320)
- Added `BasePlayer.SurfingPlayerObject` (#324)
- Added `Server.GetServerTickRate` (#295)
- Added automatic detection for command and command group names (#273)
- Added command parameter attribute `NullableParam` to indicate a `BasePlayer` or `BaseVehicle` argument is allowed to be null, enum values can be marked as nullable by using nullable enums like `VehicleModelType?` (#268/#290)
- Added `Server.GetWeaponName` (#311)
- Added `CommandAttribute.IsGroupHelp`, if this value is true, the command will run if the command group is entered by the player without a specified command in the command group
- *breaking* Added `PlayerCancelClickTextDraw` event which is called when player presses ESC while selecting textdraws, `PlayerClickTextDraw` is no longer called when ESC is pressed (#304/#321)
- Updated `VehicleModelInfo` to include seat count and a missing entry for ID 611, Utility Trailer (#302)
- Updated minimum .NET Standard version to 2.0
- *breaking* Changed `BasePlayer.CameraTargetObject` to `BasePlayer.CameraTargetGlobalObject` (#320)
- *breaking* Changed `BasePlayer.SurfingObject` to `BasePlayer.SurfingGlobalObject` (#324)
- *breaking* Changed `BaseMode.PlayerPickUp` event to have event arguments of type `PickUpPickupEventArgs` and changed the sender of event from the pickup to the player (#319)
- *breaking* Changed `Pickup.PickUp` event to have event arguments of type `PickUpPickupEventArgs` (#319)
- Fixed `Quaternion` coordinate system not matching SA-MP coordinate system
- Fixed `Edited` and `Selected` on `GlobalObject` and `PlayerObject` not being fired (#303/#306)
- Fixed `Color.FromInteger` with `ColorFormat.RGB` returning a value with 0 alpha
- Fixed conversion from `Color` to `Vector3` not returning decimal values
- Fixed enum numeric values not being recognized as an command argument if an enum value name contains the numeric value (#274)
- *breaking* Removed `ObjectModel` enum because it was too big and might not be complete

Owners
  • Tim Potze
Authors
  • Tim Potze
Copyright

Tim Potze

Dependencies
Version History
Version Downloads Last Updated
0.9.0 (this version) (latest stable) 9 Jan 25, 2020
0.8.0 188 Jan 7, 2019
0.8.0-alpha10 47 Nov 29, 2018
0.8.0-alpha8 95 Jun 30, 2018
0.8.0-alpha7 29 May 21, 2018
0.8.0-alpha6 68 Jan 17, 2018
0.8.0-alpha2 35 Oct 1, 2017
0.8.0-alpha1 14 Sep 7, 2017
0.7.6221.37952 266 Jan 12, 2017
0.7.6133.31753-alpha 23 Oct 16, 2016
0.7.6119.35177-alpha 50 Oct 2, 2016
0.7.6119.33589-alpha 18 Oct 2, 2016
0.7.6107.37493-alpha 45 Sep 20, 2016
0.7.6107.36375-alpha 1 Sep 20, 2016
0.7.6104.38929-alpha1 41 Sep 17, 2016
0.6.2.0 209 Jun 26, 2015
0.6.1.0 9 Jun 25, 2015
0.6.0.0 30 Jun 25, 2015
0.5.0.0 9 May 2, 2015
0.4.0.0 19 Feb 21, 2015
0.3.1.0 2 Jan 25, 2015
0.3.0.1 1 Jan 20, 2015
0.3.0.0 4 Jan 19, 2015