예제 #1
0
    /**
     *战斗-->动作 服务器通知回调
     */
    public static void ActionCB(ModMessage notifyMsg)
    {
        FightRpcActionNotifyWraper notifyPBWraper = new FightRpcActionNotifyWraper();

        notifyPBWraper.FromMemoryStream(notifyMsg.protoMS);
        if (ActionCBDelegate != null)
        {
            ActionCBDelegate(notifyPBWraper);
        }
    }
예제 #2
0
    /**
     *战斗-->动作 RPC通知
     */
    public void Action(byte[] Data, int Frame)
    {
        FightRpcActionNotifyWraper notifyPBWraper = new FightRpcActionNotifyWraper();

        notifyPBWraper.Data  = Data;
        notifyPBWraper.Frame = Frame;
        ModMessage notifyMsg = new ModMessage();

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

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