public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
                case 0:
                    {
                        m_Addon = (BaseBuilding)reader.ReadItem();
                        m_Offset = reader.ReadPoint2D();
                        break;
                    }
            }
        }
        public BuildingStateGeneral(BaseBuilding building)
            : base(0xBF)
        {
            EnsureCapacity(13);

            m_Stream.Write((short)0x1D);
            m_Stream.Write((int)building.Serial);
            m_Stream.Write((int)building.Revision);
        }
예제 #3
0
 private int Indent_int(BaseBuilding building)
 {
     if (m_Option == 1 && ((building is FileBasedBuildingAddon) || (building is ScriptBasedBuildingAddon)))
         return 15;
     return 0;
 }
예제 #4
0
 private string Indent_str(BaseBuilding building)
 {
     if (m_Option == 1 && ((building is FileBasedBuildingAddon) || (building is ScriptBasedBuildingAddon)))
         return "  ";
     return "";
 }
예제 #5
0
        public BuildingGump(BaseBuilding building)
            : this()
        {
            m_Building = building;

            AddLabel(45, 115, 0, "Name:");
            AddLabel(45, 135, 0, "Location:");
            AddLabel(45, 155, 0, "Map:");
            AddLabel(125, 115, 0, building.Name);
            AddLabel(125, 135, 0, building.Location.ToString());
            AddLabel(125, 155, 0, building.Map.ToString());
            AddButton(30, 215, 2224, 2224, 1, GumpButtonType.Reply, 0);
            AddLabel(60, 210, 0, "Go To");
            AddButton(30, 240, 2224, 2224, 2, GumpButtonType.Reply, 0);
            AddLabel(60, 235, 0, "Remove");
            AddButton(130, 215, 2224, 2224, 3, GumpButtonType.Reply, 0);
            AddLabel(165, 210, 0, "Props");

            if (building is FileBasedBuilding)
            {
                AddButton(130, 240, 2224, 2224, 4, GumpButtonType.Reply, 0);
                AddLabel(165, 235, 0, "Remove Type");
                AddButton(30, 260, 2224, 2224, 6, GumpButtonType.Reply, 0);
                AddLabel(60, 260, 0, "Export Type");
            }
        }