Exemplo n.º 1
0
 public InternalItem(DoorFacing facing, GuardianDoor item) : base(0x675 + (2 * (int)facing), 0x676 + (2 * (int)facing), 0xEC, 0xF3, BaseDoor.GetOffset(facing))
 {
     Movable = false;
     m_Face  = facing;
     m_Item  = item;
     Link    = m_Item;
 }
Exemplo n.º 2
0
        public void Setup()
        {
            m_Door = new GuardianDoor(DoorFacing.SouthCW);
            m_Door.MoveToWorld(new Point3D(355, 15, -1), Map.Malas);

            m_CanActive = true;
        }
Exemplo n.º 3
0
            public override void Deserialize(GenericReader reader)
            {
                base.Deserialize(reader);

                int version = reader.ReadInt();

                m_Item = reader.ReadItem() as GuardianDoor;

                m_Face = (DoorFacing)(reader.ReadInt());
            }
Exemplo n.º 4
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Door = reader.ReadItem() as GuardianDoor;

            ClearRoom();

            m_CanActive = true;
        }
Exemplo n.º 5
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            /*int version = */
            reader.ReadInt();

            m_Door = reader.ReadItem() as GuardianDoor;

            // To ensure that is called only after the world is fully loaded.
            Timer.DelayCall(TimeSpan.Zero, ClearRoom);

            m_CanActive = true;
        }
Exemplo n.º 6
0
        public void Setup()
        {
            m_Door = new GuardianDoor(DoorFacing.SouthCW);

            m_Door.MoveToWorld(new Point3D(355, 15, -1), Map.Malas);

            m_CanActive = true;

            for (int i = 0; i < 3; i++)
            {
                int x = Utility.Random(Rect.X, Rect.Width);
                int y = Utility.Random(Rect.Y, Rect.Height);

                GuardianTreasureChest chest = new GuardianTreasureChest(0xE41);

                int itemID = Utility.RandomList(chest.ItemIDs);

                chest.ItemID = itemID;

                chest.MoveToWorld(new Point3D(x, y, -1), Map.Malas);
            }
        }