Skip to content

Commit

Permalink
Merge Fix GetGamePool for server (pr-2738)
Browse files Browse the repository at this point in the history
43af4e6 - fix(clr/shared): fix GetGamePool for server
  • Loading branch information
prikolium-cfx committed Oct 3, 2024
2 parents 68c0c36 + 43af4e6 commit 3194c46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
9 changes: 5 additions & 4 deletions code/client/clrcore-v2/Game/Shared/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
using System.Collections.Generic;
using System.Linq;

#if GTA_FIVE || IS_RDR3

#if MONO_V2
#if IS_RDR3
using CitizenFX.RedM.Native;
namespace CitizenFX.RedM
#elif IS_FXSERVER
using CitizenFX.Server.Native;
namespace CitizenFX.Server
#else // IS_GTA
using CitizenFX.FiveM.Native;
namespace CitizenFX.FiveM
Expand Down Expand Up @@ -54,7 +56,9 @@ public static uint GenerateHashASCII(string input)
{
{ typeof(Ped), "CPed" },
{ typeof(Prop), "CObject" },
#if !IS_FXSERVER
{ typeof(Pickup), "CPickup" },
#endif
{ typeof(Vehicle), "CVehicle" }
};

Expand Down Expand Up @@ -91,6 +95,3 @@ public static IEnumerable<T> GetGamePool<T>()
}
}
}

#endif
// END GTA_FIVE || IS_RDR3
1 change: 0 additions & 1 deletion code/client/clrcore/Server/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#if MONO_V2
using CitizenFX.Core;
using API = CitizenFX.Server.Native.Natives;
using Prop = CitizenFX.Server.Object;
using compat_int_uint = System.UInt32;
using compat_int_entity_type = CitizenFX.Shared.EntityType;
#else
Expand Down
14 changes: 5 additions & 9 deletions code/client/clrcore/Server/Prop.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
#if MONO_V2
namespace CitizenFX.Server
{
public sealed class Object : Entity, Shared.IObject
{
public Object(int handle) : base(handle)
{
}
}
#else
namespace CitizenFX.Core
#endif
{
public sealed class Prop : Entity
{
#if MONO_V2
, Shared.IObject
#endif
{
public Prop(int handle) : base(handle)
{
}
}
#endif
}

0 comments on commit 3194c46

Please sign in to comment.