コード例 #1
0
    public FactoryOfEquipRequest ToggleEquipBuildLogFav(BuildLogVO log)
    {
        FactoryOfEquipRequest component = new FactoryOfEquipRequest();

        component.SetFavLog(log);
        return(component);
    }
コード例 #2
0
 protected override void ToggleLogFav(BuildLogVO log)
 {
     if (!base.isRequestingServer)
     {
         base.isRequestingServer = true;
         base.toggingLog = log;
         this.toggleEquipLogFavReqeust = ServerRequestManager.instance.ToggleEquipBuildLogFav(base.toggingLog);
         this.toggleEquipLogFavReqeust.SetFavLogSuccess += new EventHandler<EventArgs>(this.OnSetFavLogSuccess);
         this.toggleEquipLogFavReqeust.SetFavLogFail += new EventHandler<EventArgs>(this.OnSetFavLogFail);
     }
 }
コード例 #3
0
ファイル: BuildForm.cs プロジェクト: zjn0206a/ShipGirlBot
 private string getbuildtitle(BuildLogVO l)
 {
     if (shipcheck.Checked == true)
     {
         return(AllShipConfigs.instance.getShip(l.cid).title);
     }
     else
     {
         return(GameConfigs.instance.GetEquipmentByCid(l.cid).title);
     }
 }
コード例 #4
0
ファイル: BuildForm.cs プロジェクト: zjn0206a/ShipGirlBot
 private string getbuildstar(BuildLogVO l)
 {
     if (shipcheck.Checked == true)
     {
         return(tools.helper.getstartstring(AllShipConfigs.instance.getShip(l.cid).star));
     }
     else
     {
         return(tools.helper.getstartstring(GameConfigs.instance.GetEquipmentByCid(l.cid).star));
     }
 }
コード例 #5
0
ファイル: BuildForm.cs プロジェクト: zjn0206a/ShipGirlBot
    private Image getbuildicon(BuildLogVO l)
    {
        if (shipcheck.Checked == true)
        {
            var      sc = AllShipConfigs.instance.getShip(l.cid);
            UserShip us = new UserShip();
            us.shipCid           = sc.cid;
            us.level             = 1;
            us.battleProps       = new ShipBattleProps();
            us.battlePropsMax    = new ShipBattleProps();
            us.battleProps.hp    = sc.hp;
            us.battlePropsMax.hp = sc.hpMax;

            return(tools.helper.getShipSmallImage(us));
        }
        else
        {
            var e = GameConfigs.instance.GetEquipmentByCid(l.cid);
            return(tools.helper.getEquipmentImage(e));
        }
    }
コード例 #6
0
 public FactoryRequest ToggleShipBuildLogFav(BuildLogVO log)
 {
     FactoryRequest component = new FactoryRequest();
     component.SetFavLog(log);
     return component;
 }
コード例 #7
0
 public void SetFavLog(BuildLogVO log)
 {
     this.settingFavLog = log;
     base.path = "dock/addFov/2/" + log.id;
     base.SetupParams(null, new BaseWWWRequest.OnSuccess(this.onSetFavLogReqSuccess), new BaseWWWRequest.OnFail(this.onSetFavLogReqFail), true, ServerType.ChoosedServer, this.needZip);
 }
コード例 #8
0
 public FactoryRequest ToggleShipBuildLogFav(BuildLogVO log)
 {
     FactoryRequest component = GameObjectUtil.InstantiateItemAsChildOf(this.factoryRequestPrefab, base.gameObject).GetComponent<FactoryRequest>();
     component.SetFavLog(log);
     return component;
 }
コード例 #9
0
 public void SetFavLog(BuildLogVO log)
 {
     this.settingFavLog = log;
     base.path          = "dock/addFov/1/" + log.id;
     base.SetupParams(null, new BaseWWWRequest.OnSuccess(this.onSetFavLogReqSuccess), new BaseWWWRequest.OnFail(this.onSetFavLogReqFail), true, ServerType.ChoosedServer, false);
 }
コード例 #10
0
 public void UpdateLog(BuildLogVO log, LogType type)
 {
     this.logVO = log;
     this.logType = type;
 }
コード例 #11
0
ファイル: BuildForm.cs プロジェクト: lavender1213/ShipGirlBot
 private string getbuildtitle(BuildLogVO l)
 {
     if (shipcheck.Checked == true)
     {
         return AllShipConfigs.instance.getShip(l.cid).title;
     }
     else
     {
         return GameConfigs.instance.GetEquipmentByCid(l.cid).title;
     }
 }
コード例 #12
0
ファイル: BuildForm.cs プロジェクト: lavender1213/ShipGirlBot
 private string getbuildstar(BuildLogVO l)
 {
     if (shipcheck.Checked == true)
     {
         return tools.helper.getstartstring(AllShipConfigs.instance.getShip(l.cid).star);
     }
     else
     {
         return tools.helper.getstartstring(GameConfigs.instance.GetEquipmentByCid(l.cid).star);
     }
 }
コード例 #13
0
ファイル: BuildForm.cs プロジェクト: lavender1213/ShipGirlBot
    private Image getbuildicon(BuildLogVO l)
    {
        if (shipcheck.Checked == true)
        {
            var sc = AllShipConfigs.instance.getShip(l.cid);
            UserShip us = new UserShip();
            us.shipCid = sc.cid;
            us.level = 1;
            us.battleProps = new ShipBattleProps();
            us.battlePropsMax = new ShipBattleProps();
            us.battleProps.hp = sc.hp;
            us.battlePropsMax.hp = sc.hpMax;

            return tools.helper.getShipSmallImage(us);

        }
        else
        {
            var e = GameConfigs.instance.GetEquipmentByCid(l.cid);
            return tools.helper.getEquipmentImage(e);
        }
    }