Esempio n. 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            reader.ReadInt();

            if (Map == Map.Trammel)
            {
                TramInstance = this;
            }
        }
Esempio n. 2
0
        public static void Initialize()
        {
            if (TramInstance == null)
            {
                TramInstance = new Willebrord();
                TramInstance.MoveToWorld(new Point3D(4706, 1128, 6), Map.Trammel);
            }

            if (Map.Trammel.FindItem <AstronomyTent>(new Point3D(4707, 1127, 0)) == null)
            {
                AstronomyTent tent = new AstronomyTent();
                tent.MoveToWorld(new Point3D(4707, 1127, 0), Map.Trammel);
            }

            if (Map.Trammel.FindItem <PersonalTelescope>(new Point3D(4705, 1128, 0)) == null)
            {
                PersonalTelescope tele = new PersonalTelescope
                {
                    Movable = false
                };
                tele.MoveToWorld(new Point3D(4705, 1128, 0), Map.Trammel);
            }

            if (Map.Trammel.FindItem <BrassOrrery>(new Point3D(4705, 1126, 0)) == null)
            {
                BrassOrrery orrery = new BrassOrrery
                {
                    Movable = false
                };
                orrery.MoveToWorld(new Point3D(4705, 1126, 0), Map.Trammel);
            }

            if (Map.Trammel.FindItem <ConstellationLedger>(new Point3D(4709, 1127, 0)) == null)
            {
                ConstellationLedger ledger = new ConstellationLedger
                {
                    Movable = false
                };
                ledger.MoveToWorld(new Point3D(4709, 1127, 4), Map.Trammel);
            }

            if (Map.Trammel.FindItem <PrimerOnBritannianAstronomy>(new Point3D(4709, 1126, 0)) == null)
            {
                PrimerOnBritannianAstronomy book = new PrimerOnBritannianAstronomy
                {
                    Movable = false
                };
                book.MoveToWorld(new Point3D(4709, 1126, 4), Map.Trammel);
            }
        }