Пример #1
0
        private string GetVillagerName(IVillagerHouse house)
        {
            var villagerIndex = house.NPC1;
            var v             = (uint)villagerIndex >= Villagers.Count ? "???" : Villagers[villagerIndex].InternalName;
            var name          = GameInfo.Strings.GetVillager(v);

            return(name);
        }
Пример #2
0
        private static void Dump(this IVillagerHouse h, string path, IVillager v)
        {
            var name = GameInfo.Strings.GetVillager(v.InternalName);
            var dest = Path.Combine(path, $"{name}.{h.Extension}");
            var data = h.Write();

            File.WriteAllBytes(dest, data);
        }
Пример #3
0
 public VillagerInfo(Villager2 villager, IVillagerHouse house)
 {
     Villager = villager;
     House    = house;
 }
Пример #4
0
 private string GetHouseSummary(IVillagerHouse house) => $"{GetVillagerName(house)}'s House";