Exemplo n.º 1
0
            public int timeResidual; // <= 1000 / sv_frame->value

            #endregion Fields

            #region Constructors

            public server_t()
            {
                for (int i = 0; i < 1024; i++)
                {
                    svEntities[i] = new svEntity_t(i);
                }
            }
Exemplo n.º 2
0
        void AddEntToSnapshot(svEntity_t svEnt, sharedEntity gEnt, List<int> eNums)
        {
            // if we have already added this entity to this snapshot, don't add again
            if (svEnt.snapshotCounter == sv.snapshotCounter)
                return;

            svEnt.snapshotCounter = sv.snapshotCounter;

            // if we are full, silently discard entities
            if (eNums.Count > 1024)
            {
                Common.Instance.WriteLine("Snapshot is full");
                return;
            }

            eNums.Add(gEnt.s.number);
        }
Exemplo n.º 3
0
 sharedEntity GEntityForSvEntity(svEntity_t svEnt)
 {
     return sv.gentities[svEnt.id];
 }