public void AddGameLog(JSONObject info) { GameLogInfo log = new GameLogInfo(); log.game_id = (ulong)info["game_id"].n; log.result = (byte)info["result"].n; log.attacker = (ulong)info["attacker"].n; log.target = (ulong)info["target"].n; log.money = (ulong)info["money"].n; log.revenge = (byte)info["revenge"].n; string time = info["time"].str; time = time.Replace('T', ' '); time = time.Remove(time.Length - 5, 5); log.time = time; AddGameLog(log); }
public void SetInfo(GameLogInfo info, bool isAttack) { Info = info; string resString = string.Empty; if (isAttack && info.result == 1) { resString = "[66FA33]털기 성공"; Target.text = "대상 : " + DataManager.instance.GetRankName(info.target); Money.text = string.Format("빼앗은 금액 : {0}", UtilManager.GetCoinString(info.money)); } else if (isAttack && info.result == 0) { resString = "[FF0000]털기 실패"; Target.text = "대상 : " + DataManager.instance.GetRankName(info.target); Money.text = "빼앗은 금액 : 0"; } else if (!isAttack && info.result == 0) { resString = "[66FA33]금고 방어"; Target.text = "도둑 : " + DataManager.instance.GetRankName(info.attacker); Money.text = "빼앗긴 금액 : 0"; } else if (!isAttack && info.result == 1) { resString = "[FF0000]금고 털림"; Target.text = "도둑 : " + DataManager.instance.GetRankName(info.attacker); Money.text = string.Format("빼앗긴 금액 : {0}", UtilManager.GetCoinString(info.money)); } Result.text = "결과 : " + resString; }
public void AddGameLog(GameLogInfo logInfo) { m_GameLogList.Add(logInfo); }
public void AddGameLog(GameLogInfo log) { netdata.AddGameLog(log); }