示例#1
0
文件: Game.cs 项目: Giska/TheorieJeux
 void _UpdateStock(Info Info, JSON.Object Stock)
 {
     try { Info._W = (int)((Stock["W"] as JSON.Number).Value); }
     catch { }
     try { Info._S = (int)((Stock["S"] as JSON.Number).Value); }
     catch { }
     try { Info._G = (int)((Stock["G"] as JSON.Number).Value); }
     catch { }
     try { Info._E = (int)((Stock["E"] as JSON.Number).Value); }
     catch { }
     try { Info._M = (int)((Stock["M"] as JSON.Number).Value); }
     catch { }
     try { Info._N = (int)((Stock["N"] as JSON.Number).Value); }
     catch { }
     try { Info._T = (int)((Stock["T"] as JSON.Number).Value); }
     catch { }
 }
示例#2
0
 internal void _Write(JSON.Object obj)
 {
     _Write(obj.ToString());
 }