void DayStart() { foreach (var agent in OrderedAgentList) { gameServer.DayStart(agent); if (GameLogger != null) { GameLogger.Log($"{Day},status,{agent.AgentIdx},{RoleOf(agent)},{StatusOf(agent)},{agentNameMap[agent]}"); } } }
public void DayStart() { if (GameLogger != null) { foreach (Agent agent in gameData.AgentList.OrderBy(x => x.AgentIdx)) { GameLogger.Log(string.Format("{0},status,{1},{2},{3},{4}", gameData.Day, agent.AgentIdx, gameData.GetRole(agent), gameData.GetStatus(agent), agentNameMap[agent])); } } foreach (Agent agent in gameData.AgentList) { gameServer.DayStart(agent); } }