Ejemplo n.º 1
0
        private static void Register(PlayerSnapshot state)
        {
            if (state == null || state.Owner == null)
            {
                return;
            }

            Instances.RemoveAll(
                s => s == null || s == state || s.Owner == null || s.Owner.Deleted || s.Owner == state.Owner);

            if (!state.Owner.Deleted)
            {
                Instances.Add(state);
            }
        }
Ejemplo n.º 2
0
        private static void Register(PlayerSnapshot state)
        {
            if (state == null || state.Owner == null)
            {
                return;
            }

            Instances.RemoveAll(
                s => s == null || s == state || s.Owner == null || s.Owner.Deleted || s.Owner == state.Owner);

            if (!state.Owner.Deleted)
            {
                Instances.Add(state);
            }
        }
Ejemplo n.º 3
0
        private void DeserializeSnapshot(GenericReader reader)
        {
            reader.GetVersion();

            _Snapshot = new PlayerSnapshot(reader);
        }
Ejemplo n.º 4
0
        private void DeserializeSnapshot(GenericReader reader)
        {
            reader.GetVersion();

            _Snapshot = new PlayerSnapshot(reader);
        }