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); }
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); }
public VillagerInfo(Villager2 villager, IVillagerHouse house) { Villager = villager; House = house; }
private string GetHouseSummary(IVillagerHouse house) => $"{GetVillagerName(house)}'s House";