예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 private static void Dump(this IPlayerHouse h, string path, IVillagerOrigin p) => h.Dump(p.PlayerName, path);
예제 #4
0
        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})");
        }
예제 #5
0
 private void ChangeRoom(IPlayerHouse house)
 {
     RoomIndex = (int)NUD_Room.Value - 1;
     ReloadManager(house);
     DrawLayer();
 }