コード例 #1
0
    //-------------------------------------------------------------------------
    // 玩家通知
    void s2cPlayerNotify(MethodData method_data)
    {
        var client_info = CoApp.getClientInfo(Session);

        if (client_info == null)
        {
            return;
        }

        var player_notify = EbTool.protobufDeserialize <PlayerNotify>(method_data.param1);

        lock (CoApp.RpcLock)
        {
            CoApp.rpcBySession(Session, (ushort)MethodType.s2cPlayerNotify, player_notify);
        }
    }