コード例 #1
0
ファイル: ShipManager.cs プロジェクト: yy-bird/pixelknight
 private IEnumerator DownloadShip(string url, ShipManager.DownloadShipDelegate del, Action failAction = null, bool isTestBattleShip = false)
 {
     // ISSUE: object of a compiler-generated type is created
     return((IEnumerator) new ShipManager.\u003CDownloadShip\u003Ec__Iterator2()
     {
         url = url, del = del, failAction = failAction, isTestBattleShip = isTestBattleShip, \u0024this = this
     });
 }
コード例 #2
0
ファイル: ShipManager.cs プロジェクト: yy-bird/pixelknight
 public void ReadShipXML(string url, ShipManager.DownloadShipDelegate del, string text, string name, Action failAction = null, bool isTestBattleShip = false)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     ShipManager.\u003CReadShipXML\u003Ec__AnonStoreyE shipXmlCAnonStoreyE = new ShipManager.\u003CReadShipXML\u003Ec__AnonStoreyE();
     // ISSUE: reference to a compiler-generated field
     shipXmlCAnonStoreyE.text = text;
     // ISSUE: reference to a compiler-generated field
     shipXmlCAnonStoreyE.name = name;
     // ISSUE: reference to a compiler-generated field
     shipXmlCAnonStoreyE.del = del;
     // ISSUE: reference to a compiler-generated field
     shipXmlCAnonStoreyE.url = url;
     // ISSUE: reference to a compiler-generated field
     shipXmlCAnonStoreyE.failAction = failAction;
     // ISSUE: reference to a compiler-generated field
     shipXmlCAnonStoreyE.\u0024this = this;
     // ISSUE: reference to a compiler-generated field
     shipXmlCAnonStoreyE.sharedManager = Singleton <SharedManager> .Instance;
     // ISSUE: reference to a compiler-generated field
     // ISSUE: reference to a compiler-generated method
     shipXmlCAnonStoreyE.sharedManager.RunActionAsync("ReadShip", new Action(shipXmlCAnonStoreyE.\u003C\u003Em__0), false);
 }
コード例 #3
0
ファイル: ShipManager.cs プロジェクト: yy-bird/pixelknight
 public void LoadShip(ShipManager.DownloadShipDelegate del)
 {
     this.LoadXML("Ship.txt", (Action <string>)(xmlText => this.ReadShip(SingletonManager <Configuration> .Instance.ServerUrl + "/ShipService/GetShipByUserId?userId=" + (object)SingletonManager <UserManager> .Instance.userLogin.UserId + "&accessToken=" + SingletonManager <UserManager> .Instance.userLogin.accessToken, del, xmlText, "Ship", (Action)null, false)));
 }
コード例 #4
0
ファイル: ShipManager.cs プロジェクト: yy-bird/pixelknight
 public void ReadShip(string url, ShipManager.DownloadShipDelegate del, string text, string name, Action failAction = null, bool isTestBattleShip = false)
 {
     this.ReadShipXML(url, del, text, name, failAction, isTestBattleShip);
 }
コード例 #5
0
ファイル: ShipManager.cs プロジェクト: yy-bird/pixelknight
 public void DownloadShip(ShipManager.DownloadShipDelegate del, int userId, Action failAction = null, bool isTestBattleShip = false)
 {
     this.StartCoroutine(this.DownloadShip(SingletonManager <Configuration> .Instance.ServerUrl + "/ShipService/GetShipByUserId?userId=" + (object)userId + "&accessToken=" + SingletonManager <UserManager> .Instance.userLogin.accessToken, del, failAction, isTestBattleShip));
 }