Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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)));
        }
Ejemplo n.º 3
0
 internal void ClientCommand(Edict.Native *pEntity)
 {
     try
     {
         GameClients.Command(EntityDictionary.EdictFromNative(pEntity), new Command(ServerAPIUtils.ArgsAsList(EngineFuncs)));
     }
     catch (Exception e)
     {
         Log.Exception(e);
         throw;
     }
 }