public unsafe IntPtr GetUnmanagedClientPhysicsInfoBuffer(Edict pClient) { if (!ServerAPIUtils.IsClient(pClient, EntityDictionary, Globals)) { throw new ArgumentException("Edict must be a client", nameof(pClient)); } return(EngineFuncs.pfnGetPhysicsInfoString(pClient.Data)); }
public unsafe IInfoBuffer GetClientPhysicsInfoBuffer(Edict pClient) { if (!ServerAPIUtils.IsClient(pClient, EntityDictionary, Globals)) { throw new ArgumentException("Edict must be a client", nameof(pClient)); } return(new ClientPhysicsInfoBuffer(EngineFuncs, pClient.Data, EntityDictionary.EntityIndex(pClient))); }
internal void ClientCommand(Edict.Native *pEntity) { try { GameClients.Command(EntityDictionary.EdictFromNative(pEntity), new Command(ServerAPIUtils.ArgsAsList(EngineFuncs))); } catch (Exception e) { Log.Exception(e); throw; } }