public void Init(IDbConnection connection) { var npces = NpcHelper.GetAllNpc(); foreach (var npc in npces) { CreateNpc(connection, npc.Value); } }
public void CreateMotherNpces(IDbConnection connection) { var npces = NpcHelper.GetAllNpc(); foreach (var npc in npces.Select(i => i.Value.NpcMother)) { CreateMotherNpc(connection, npc); } }