Exemple #1
0
    /**
     *战斗-->使用技能动作 服务器通知回调
     */
    public static void UseSkillActionCB(ModMessage notifyMsg)
    {
        FightRpcUseSkillActionNotifyWraper notifyPBWraper = new FightRpcUseSkillActionNotifyWraper();

        notifyPBWraper.FromMemoryStream(notifyMsg.protoMS);
        if (UseSkillActionCBDelegate != null)
        {
            UseSkillActionCBDelegate(notifyPBWraper);
        }
    }
Exemple #2
0
    /**
     *战斗-->使用技能动作 RPC通知
     */
    public void UseSkillAction(int ObjTargetId, int SkillId, int X, int Y, int Dir)
    {
        FightRpcUseSkillActionNotifyWraper notifyPBWraper = new FightRpcUseSkillActionNotifyWraper();

        notifyPBWraper.ObjTargetId = ObjTargetId;
        notifyPBWraper.SkillId     = SkillId;
        notifyPBWraper.X           = X;
        notifyPBWraper.Y           = Y;
        notifyPBWraper.Dir         = Dir;
        ModMessage notifyMsg = new ModMessage();

        notifyMsg.MsgNum  = RPC_CODE_FIGHT_USESKILLACTION_NOTIFY;
        notifyMsg.protoMS = notifyPBWraper.ToMemoryStream();

        Singleton <GameSocket> .Instance.SendNotify(notifyMsg);
    }