Add layer support check, add enum for room layer location/type

This commit is contained in:
Kurt
2020-05-12 19:47:31 -07:00
parent 797cd0e16d
commit ef3b39e4a0
3 changed files with 54 additions and 12 deletions

View File

@@ -150,6 +150,9 @@ private void ChangeRoom(PlayerHouse house)
private void ReloadManager(PlayerHouse house)
{
var unsupported = Manager.GetUnsupportedTiles();
if (unsupported.Count != 0)
WinFormsUtil.Alert(MessageStrings.MsgFieldItemUnsupportedLayer2Tile);
var room = house.GetRoom(RoomIndex);
Manager = new RoomItemManager(room);
}