private static void Dump(this IPlayerHouse h, string player, string path) { var dest = Path.Combine(path, $"{player}.{h.Extension}"); var data = h.Write(); File.WriteAllBytes(dest, data); }
private void ReloadManager(IPlayerHouse house) { var unsupported = Manager.GetUnsupportedTiles(); if (unsupported.Count != 0) { WinFormsUtil.Alert(MessageStrings.MsgFieldItemUnsupportedLayer2Tile); } var room = house.GetRoom(RoomIndex); Manager = new RoomItemManager(room); }
private static void Dump(this IPlayerHouse h, string path, IVillagerOrigin p) => h.Dump(p.PlayerName, path);
public static string GetHouseSummary(IReadOnlyList <Player> players, IPlayerHouse house, int index) { var houseName = index >= players.Count ? $"House {index}" : $"{players[index].Personal.PlayerName}'s House"; return($"{houseName} (lv {house.HouseLevel})"); }
private void ChangeRoom(IPlayerHouse house) { RoomIndex = (int)NUD_Room.Value - 1; ReloadManager(house); DrawLayer(); }