Example #1
0
 public NetDefinitions(string[] tags = null)
 {
     if (tags == null)
     {
         tags = new string[] { null };
     }
     entityGenerator = new EntityDescriptorCache();
     entityGenerator.LoadEntityTypes(tags);
 }
        internal SynchronisablePool(NetDefinitions netDefs, ushort poolID)
        {
            EntityGenerator = netDefs.entityGenerator;
            PoolID          = poolID;

            SyncHandles = new List <SyncHandle>();
            SyncSlots   = new SyncSlot[DefaultEntityCount];
            Revision    = 0; // TODO: There seems to be a zero revision bug causing skips. Fix this and reset starting revision to 0.

            Context = new SyncContext(this, 0, 0);
        }