コード例 #1
0
    private void EnterGameReq()
    {
        Account_EnterGameReqProto proto = new Account_EnterGameReqProto();

        proto.RoleId = mCurrentSelectedRoleId;
        SocketManager.Instance.SendMessageToLocalServer(proto.ToArray());
    }
コード例 #2
0
ファイル: RoleCtrlrS.cs プロジェクト: ich-official/IchSaga
    private void OnEnterGame(byte[] buffer)
    {
        Account_EnterGameReqProto proto = Account_EnterGameReqProto.GetProto(buffer);
        int roleID = proto.RoleId;

        EnterGameServerResp();
    }
コード例 #3
0
    public static Account_EnterGameReqProto GetProto(byte[] buffer)
    {
        Account_EnterGameReqProto proto = new Account_EnterGameReqProto();

        using (MemoryStreamUtil ms = new MemoryStreamUtil(buffer))
        {
            proto.RoleId    = ms.ReadInt();
            proto.ChannelId = ms.ReadInt();
        }
        return(proto);
    }