public override void OnResponse(NetState state, RelayInfo info) { Mobile from = state.Mobile; switch (info.ButtonID) { default: case 0: { from.CloseGump(typeof(ConfirmTentPlacementGump)); if (m_Tent != null) { m_Tent.Delete(); } if (m_Flap != null) { m_Flap.Delete(); } if (m_Bedroll != null) { m_Bedroll.Delete(); } if (m_Chest != null) { m_Chest.Delete(); } m_Owner.AddToBackpack(new TravelTent()); break; } case 1: { from.CloseGump(typeof(ConfirmTentPlacementGump)); m_Region = new TravelTentRegion(m_Owner, m_Chest, m_Owner.Map, m_RegionBounds, m_Owner.Z); m_Region.Register(); m_Owner.AddToBackpack(new TentValidator(m_Owner, m_Tent, m_Bedroll, m_Chest, m_Region, m_RegionBounds)); break; } } }