コード例 #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            Instance = this;

            if (version == 0)
            {
                Item book = new BookOfCircles
                {
                    Movable = false
                };
                book.MoveToWorld(new Point3D(1000, 3991, -33), Map.TerMur);

                book = new ShrineMantra
                {
                    Movable = false
                };
                book.MoveToWorld(new Point3D(994, 3991, -33), Map.TerMur);
            }

            if (version == 1)
            {
                Timer.DelayCall(() => SpawnerPersistence.Delete("shrineofsingularity"));
            }
        }
コード例 #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            Instance = this;

            if (version == 0)
            {
                Item book = new BookOfCircles();
                book.Movable = false;
                book.MoveToWorld(new Point3D(1000, 3991, -33), Map.TerMur);

                book         = new ShrineMantra();
                book.Movable = false;
                book.MoveToWorld(new Point3D(994, 3991, -33), Map.TerMur);
            }
        }