Exemplo n.º 1
0
    public override void Send(UseItemRequest content, DelegateConnectCallback callback)
    {
        base.Send(content, callback);

        _request = content;
        dropPrizeItems.Clear();
    }
Exemplo n.º 2
0
    virtual public void Send(Tin content, DelegateConnectCallback callback)
    {
        this._url      = GetUrl();
        this._data     = GetData(content);
        this._callback = callback;

        HttpClient.DumpStream("PB class = " + this, _data);
        HttpClientHelper.Send(_url, _data, OnComplete, _canBeIgnore);
    }
Exemplo n.º 3
0
    public override void Send(StartFightRequest content, DelegateConnectCallback callback)
    {
        base.Send(content, callback);

        Model_Mission mission = InstancePlayer.instance.model_User.model_level.GetMission(content.missionId);

        Assert.assert(mission.actived);

        _request = content;
    }
Exemplo n.º 4
0
        public ClientGUI()
        {
            InitializeComponent();

            login.Enabled = true;
            send.Enabled  = false;

            client            = new Client();
            client.OnLogin   += new DelegateLogin(OnLoginEvent);
            client.OnMessage += new DelegateMessage(OnMessageEvent);
            client.OnConnect += new DelegateConnect(OnConnectionEvent);

            delegateLoginCallback   = new DelegateLoginCallback(OnLogin);
            delegateConnectCallback = new DelegateConnectCallback(OnConnect);
            delegateMessageCallback = new DelegateMessageCallback(OnMessage);
            client.Awake();
        }
Exemplo n.º 5
0
    public override void Send(MultiFightRequest content, DelegateConnectCallback callback)
    {
        base.Send(content, callback);

        InstancePlayer.instance.multiFightPrizeItems.Clear();

        Model_Mission mission = InstancePlayer.instance.model_User.model_level.GetMission(content.missionId);

        Assert.assert(mission.actived);

        DataMission dataMission = DataManager.instance.dataMissionGroup.GetMission(content.missionId);

        InstancePlayer.instance.model_User.model_Energy.SubEnergy(dataMission.EnergyCost * content.num);

        InstancePlayer.instance.multiFightHeroGotExp.Clear();

        _multiFightRequest = content;
    }
    public override void Send(UpgradeUnitPartRequest content, DelegateConnectCallback callback)
    {
        base.Send(content, callback);

        _request = content;
    }
 public override void Send(SetClientDataRequest content, DelegateConnectCallback callback)
 {
     base.Send(content, callback);
 }
 public override void Send(ComposeHeroRequest content, DelegateConnectCallback callback)
 {
     base.Send(content, callback);
     _request = content;
 }
Exemplo n.º 9
0
    public override void Send(DelNotifyRequest content, DelegateConnectCallback callback)
    {
        base.Send(content, callback);

        _request = content;
    }
Exemplo n.º 10
0
 public override void Send(StartPVPLadderFightRequest content, DelegateConnectCallback callback)
 {
     base.Send(content, callback);
 }
Exemplo n.º 11
0
    public override void Send(FinishBattleRequest content, DelegateConnectCallback callback)
    {
        base.Send(content, callback);

        _request = content;
    }
    override public void Send(DrawTaskRewardRequest content, DelegateConnectCallback callback)
    {
        base.Send(content, callback);

        _request = content;
    }
Exemplo n.º 13
0
 override public void Send(SyncRequest content, DelegateConnectCallback callback)
 {
     base.Send(content, callback);
 }