From 68d0ad9af1c007e52c319f4641276351928f9151 Mon Sep 17 00:00:00 2001 From: doxoh Date: Mon, 25 Dec 2023 11:17:58 +0100 Subject: [PATCH] fix(shared): remove obsolete Id properties --- api/AltV.Net.Async/Elements/Entities/AsyncEntity.cs | 2 -- api/AltV.Net.Client/Elements/Interfaces/ITextLabel.cs | 1 - api/AltV.Net.Shared/Elements/Entities/ISharedEntity.cs | 6 ------ api/AltV.Net.Shared/Elements/Entities/ISharedMarker.cs | 1 - .../Elements/Entities/ISharedVirtualEntity.cs | 1 - .../Elements/Entities/ISharedVirtualEntityGroup.cs | 2 -- 6 files changed, 13 deletions(-) diff --git a/api/AltV.Net.Async/Elements/Entities/AsyncEntity.cs b/api/AltV.Net.Async/Elements/Entities/AsyncEntity.cs index fce91cc7b..f18ee2e58 100644 --- a/api/AltV.Net.Async/Elements/Entities/AsyncEntity.cs +++ b/api/AltV.Net.Async/Elements/Entities/AsyncEntity.cs @@ -15,8 +15,6 @@ public class AsyncEntity : AsyncWorldObject, IEntity protected readonly IEntity Entity; public IntPtr EntityNativePointer => Entity.EntityNativePointer; - public uint Id => Entity.Id; - public IPlayer NetworkOwner { get diff --git a/api/AltV.Net.Client/Elements/Interfaces/ITextLabel.cs b/api/AltV.Net.Client/Elements/Interfaces/ITextLabel.cs index a12f548ae..a05dbf989 100644 --- a/api/AltV.Net.Client/Elements/Interfaces/ITextLabel.cs +++ b/api/AltV.Net.Client/Elements/Interfaces/ITextLabel.cs @@ -7,7 +7,6 @@ public interface ITextLabel : IWorldObject { IntPtr TextLabelNativePointer { get; } - uint Id { get; } bool IsGlobal { get; } IPlayer? Target { get; } Rgba Color { get; set; } diff --git a/api/AltV.Net.Shared/Elements/Entities/ISharedEntity.cs b/api/AltV.Net.Shared/Elements/Entities/ISharedEntity.cs index 0d949b023..1ce5aa718 100644 --- a/api/AltV.Net.Shared/Elements/Entities/ISharedEntity.cs +++ b/api/AltV.Net.Shared/Elements/Entities/ISharedEntity.cs @@ -10,12 +10,6 @@ public interface ISharedEntity : ISharedWorldObject { IntPtr EntityNativePointer { get; } - /// - /// Get the entity id. - /// - /// This entity was removed - uint Id { get; } - bool Exists { get; } /// diff --git a/api/AltV.Net.Shared/Elements/Entities/ISharedMarker.cs b/api/AltV.Net.Shared/Elements/Entities/ISharedMarker.cs index d7ad4e202..75760416b 100644 --- a/api/AltV.Net.Shared/Elements/Entities/ISharedMarker.cs +++ b/api/AltV.Net.Shared/Elements/Entities/ISharedMarker.cs @@ -6,7 +6,6 @@ namespace AltV.Net.Shared.Elements.Entities; public interface ISharedMarker : ISharedWorldObject { IntPtr MarkerNativePointer { get; } - uint Id { get; } bool IsGlobal { get; } ISharedPlayer Target { get; } Rgba Color { get; set; } diff --git a/api/AltV.Net.Shared/Elements/Entities/ISharedVirtualEntity.cs b/api/AltV.Net.Shared/Elements/Entities/ISharedVirtualEntity.cs index a810f3533..91b7a0a49 100644 --- a/api/AltV.Net.Shared/Elements/Entities/ISharedVirtualEntity.cs +++ b/api/AltV.Net.Shared/Elements/Entities/ISharedVirtualEntity.cs @@ -8,7 +8,6 @@ namespace AltV.Net.Shared.Elements.Entities public interface ISharedVirtualEntity : ISharedWorldObject { IntPtr VirtualEntityNativePointer { get; } - uint Id { get; } ISharedVirtualEntityGroup Group { get; } diff --git a/api/AltV.Net.Shared/Elements/Entities/ISharedVirtualEntityGroup.cs b/api/AltV.Net.Shared/Elements/Entities/ISharedVirtualEntityGroup.cs index cd9bb414a..cfee797d2 100644 --- a/api/AltV.Net.Shared/Elements/Entities/ISharedVirtualEntityGroup.cs +++ b/api/AltV.Net.Shared/Elements/Entities/ISharedVirtualEntityGroup.cs @@ -7,8 +7,6 @@ public interface ISharedVirtualEntityGroup : ISharedBaseObject { IntPtr VirtualEntityGroupNativePointer { get; } - uint Id { get; } - uint MaxEntitiesInStream { get; } } } \ No newline at end of file