Пример #1
0
        public PropsStateGroup(InventoryReplicable owner, SyncType syncType, int batch)
        {
            Owner   = owner;
            Batch   = batch;
            _server = (MyReplicationServer)MyMultiplayer.Static.ReplicationLayer;
            syncType.PropertyChangedNotify += Notify;
            syncType.PropertyCountChanged  += OnPropertyCountChanged;
            m_properties         = syncType.Properties;
            m_propertyTimestamps = new List <MyTimeSpan>(m_properties.Count);

            for (var i = 0; i < m_properties.Count; i++)
            {
                m_propertyTimestamps.Add(_server.GetSimulationUpdateTime());
            }
        }