Beispiel #1
0
 public ReservedNamesPersistence()
     : base(0)
 {
     Movable = false;
     if (m_Instance == null || m_Instance.Deleted)
     {
         m_Instance = this;
     }
     else
     {
         base.Delete();
     }
 }
Beispiel #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                int nameCount = reader.ReadInt();
                for (var i = 0; i < nameCount; i++)
                {
                    var name = reader.ReadString();
                    ReservedNames.Names.Add(name);
                }
            } break;
            }

            m_Instance = this;
        }