Пример #1
0
        public static void Initialize()
        {
            if (InstanceTram == null)
            {
                StrangeContraptionAddon item = new StrangeContraptionAddon();
                item.MoveToWorld(new Point3D(5668, 1925, 0), Map.Trammel);
            }

            if (InstanceFel == null)
            {
                StrangeContraptionAddon item = new StrangeContraptionAddon();
                item.MoveToWorld(new Point3D(5668, 1925, 0), Map.Felucca);
            }
        }
Пример #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            reader.ReadInt();

            if (Map == Map.Trammel)
            {
                InstanceTram = this;
            }
            else if (Map == Map.Felucca)
            {
                InstanceFel = this;
            }
        }
Пример #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

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