From f34c8fbc0ecb40a4baf757957ea717cb1cd5e374 Mon Sep 17 00:00:00 2001 From: Fabian Terhorst Date: Thu, 1 Aug 2019 02:27:14 +0200 Subject: [PATCH] Update versions --- api/AltV.Net.Async/AltV.Net.Async.csproj | 4 ++-- api/AltV.Net.Example/SampleScript.cs | 5 ----- api/AltV.Net.Mock/AltV.Net.Mock.csproj | 2 +- api/AltV.Net/AltV.Net.csproj | 26 ++---------------------- 4 files changed, 5 insertions(+), 32 deletions(-) diff --git a/api/AltV.Net.Async/AltV.Net.Async.csproj b/api/AltV.Net.Async/AltV.Net.Async.csproj index f5984e80a7..70e228ebda 100644 --- a/api/AltV.Net.Async/AltV.Net.Async.csproj +++ b/api/AltV.Net.Async/AltV.Net.Async.csproj @@ -12,9 +12,9 @@ https://github.com/altmp-csharp/docs git altv gta bridge - 1.10.0 + 1.11.0-dev-preview license.txt - Update dependencies + Add IScript for automatically loading scripts that contains Events and ScriptEvents diff --git a/api/AltV.Net.Example/SampleScript.cs b/api/AltV.Net.Example/SampleScript.cs index 9e39aab40d..b35fe4c625 100644 --- a/api/AltV.Net.Example/SampleScript.cs +++ b/api/AltV.Net.Example/SampleScript.cs @@ -6,11 +6,6 @@ namespace AltV.Net.Example { public class SampleScript : IScript { - public SampleScript() - { - Alt.OnPlayerConnect += MyPlayerConnect; - } - [Event("eventName")] public void MyEvent(IPlayer player) { diff --git a/api/AltV.Net.Mock/AltV.Net.Mock.csproj b/api/AltV.Net.Mock/AltV.Net.Mock.csproj index 8a5125ecb2..449d9751e9 100644 --- a/api/AltV.Net.Mock/AltV.Net.Mock.csproj +++ b/api/AltV.Net.Mock/AltV.Net.Mock.csproj @@ -11,7 +11,7 @@ https://github.com/altmp-csharp/docs git altv gta bridge mock - 1.10.0 + 1.11.0-dev-preview license.txt Update dependencies diff --git a/api/AltV.Net/AltV.Net.csproj b/api/AltV.Net/AltV.Net.csproj index 36c347f129..c8357b3bb3 100644 --- a/api/AltV.Net/AltV.Net.csproj +++ b/api/AltV.Net/AltV.Net.csproj @@ -13,31 +13,9 @@ https://github.com/altmp-csharp/docs git altv gta bridge - 1.10.0 + 1.11.0-dev-preview license.txt - Added to player -```c# -ulong SocialClubId { get; } -ulong HardwareIdHash { get; } -ulong HardwareIdExHash { get; } -string AuthToken { get; } -ushort MaxHealth { get; set; } -ushort MaxArmor { get; set; } -uint CurrentWeapon { get; set; } -IEntity EntityAimingAt { get; } -Position EntityAimOffset { get; } -bool IsFlashlightActive { get; } -string Ip { get; } -void AddWeaponComponent(uint weapon, uint weaponComponent); -void RemoveWeaponComponent(uint weapon, uint weaponComponent); -void GetCurrentWeaponComponents(out uint[] weaponComponents); -void SetWeaponTintIndex(uint weapon, byte tintIndex); -byte GetCurrentWeaponTintIndex(); -``` -Removed name setter. -Optimized memory management. -Performance optimizations for events. - + Add IScript for automatically loading scripts that contains Events and ScriptEvents