예제 #1
0
        public override void Delete()
        {
            base.Delete();

            if (InstanceTram == this)
            {
                InstanceTram = null;
            }
            else if (InstanceFel == this)
            {
                InstanceFel = null;
            }
        }
예제 #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            if (Map == Map.Trammel)
            {
                InstanceTram = this;
            }
            else if (Map == Map.Felucca)
            {
                InstanceFel = this;
            }
        }