public void addToStreamEx(Bundle stream, ROOM_PUBLIC_INFO v)
 {
     stream.writeUnicode(v.state);
     playerInfo_DataType.addToStreamEx(stream, v.playerInfo);
     stream.writeInt8(v.button);
     stream.writeInt8(v.turn);
 }
 public void addToStreamEx(Bundle stream, PLAYER_INFOS v)
 {
     stream.writeInt32(v.id);
     stream.writeUnicode(v.name);
     stream.writeUint16(v.winCount);
     stream.writeUint16(v.loseCount);
     stream.writeInt8(v.isReady);
     stream.writeInt8(v.seatIndex);
     stream.writeInt8(v.isRoomMaster);
 }
 public void addToStreamEx(Bundle stream, ROOM_PUBLIC_INFO v)
 {
     stream.writeUint8(v.RoomType);
     stream.writeUint8(v.playerMaxCount);
     stream.writeUnicode(v.state);
     stream.writeInt8(v.turn);
     stream.writeUint8(v.numOfMJ);
     stream.writeInt8(v.button);
     playerInfo_DataType.addToStreamEx(stream, v.playerInfo);
     stream.writeInt8(v.chuPai);
 }
 public void addToStreamEx(Bundle stream, PLAYER_PUBLIC_INFO v)
 {
     stream.writeUint32(v.userId);
     folds_DataType.addToStreamEx(stream, v.folds);
     angangs_DataType.addToStreamEx(stream, v.angangs);
     diangangs_DataType.addToStreamEx(stream, v.diangangs);
     wangangs_DataType.addToStreamEx(stream, v.wangangs);
     pengs_DataType.addToStreamEx(stream, v.pengs);
     hus_DataType.addToStreamEx(stream, v.hus);
     stream.writeInt8(v.que);
     stream.writeInt8(v.holdsCount);
 }
示例#5
0
 public void addToStreamEx(Bundle stream, D_MATCH_REQUEST v)
 {
     stream.writeUint32(v.utype);
     stream.writeUint64(v.matchID);
     stream.writeUint32(v.passwd);
     stream.writeInt8(v.teamID);
 }
示例#6
0
 public void addToStreamEx(Bundle stream, ROOM_INFO v)
 {
     stream.writeUint64(v.room_key);
     stream.writeUint8(v.player_count);
     stream.writeInt8(v.room_state);
     stream.writeInt32(v.room_creater);
 }
示例#7
0
 public void addToStreamEx(Bundle stream, SPACE_INFO v)
 {
     stream.writeUint64(v.space_key);
     stream.writeUint8(v.player_count);
     stream.writeInt8(v.space_state);
     stream.writeInt32(v.space_creater);
 }
 public void addToStreamEx(Bundle stream, PLAYER_ACTION_DIC v)
 {
     stream.writeInt8(v.pai);
     stream.writeUint8(v.hu);
     stream.writeUint8(v.peng);
     stream.writeUint8(v.gang);
     gangpai_DataType.addToStreamEx(stream, v.gangpai);
 }
 public void addToStreamEx(Bundle stream, MJ_LIST v)
 {
     stream.writeUint32((UInt32)v.Count);
     for (int i = 0; i < v.Count; ++i)
     {
         stream.writeInt8(v[i]);
     }
     ;
 }
示例#10
0
 public void addToStreamEx(Bundle stream, ENTITY_FORBID_COUNTER v)
 {
     stream.writeUint32((UInt32)v.Count);
     for (int i = 0; i < v.Count; ++i)
     {
         stream.writeInt8(v[i]);
     }
     ;
 }
 public void addToStreamEx(Bundle stream, BAN_INFOS v)
 {
     stream.writeInt32(v.dbid);
     stream.writeInt32(v.accountId);
     stream.writeUnicode(v.startTime);
     stream.writeUnicode(v.finishTime);
     stream.writeUnicode(v.reason);
     stream.writeInt8(v.state);
 }
 public override void addToStream(Bundle stream, object v)
 {
     stream.writeInt8(Convert.ToSByte(v));
 }
示例#13
0
 /*
     登录到服务端(loginapp), 登录成功后还必须登录到网关(baseapp)登录流程才算完毕
 */
 public void login_loginapp(bool noconnect)
 {
     if(noconnect)
     {
         reset();
         _networkInterface.connectTo(_args.ip, _args.port, onConnectTo_loginapp_callback, null);
     }
     else
     {
         Dbg.DEBUG_MSG("KBEngine::login_loginapp(): send login! username="******"Loginapp_login"]);
         bundle.writeInt8((sbyte)_args.clientType);
         bundle.writeBlob(KBEngineApp.app._clientdatas);
         bundle.writeString(username);
         bundle.writeString(password);
         bundle.send(_networkInterface);
     }
 }
示例#14
0
 public void addToStreamEx(Bundle stream, AVATAR_DATA v)
 {
     stream.writeInt8(v.param1);
     stream.writeBlob(v.param2);
 }
示例#15
0
        public bool login_loginapp(bool noconnect)
        {
            if(noconnect)
            {
                reset();
                if(!networkInterface_.connect(loginappIP, loginappPort))
                {
                    Dbg.ERROR_MSG(string.Format("KBEngine::login_loginapp(): connect {0}:{1} is error!", loginappIP, loginappPort));
                    return false;
                }

                onLogin_loginapp();
                Dbg.DEBUG_MSG(string.Format("KBEngine::login_loginapp(): connect {0}:{1} is successfylly!", loginappIP, loginappPort));
            }
            else
            {
                Dbg.DEBUG_MSG("KBEngine::login_loginapp(): send login! username="******"Loginapp_login"]);
                bundle.writeInt8(3); // clientType
                bundle.writeBlob(new byte[0]);
                bundle.writeString(username);
                bundle.writeString(password);
                bundle.send(networkInterface_);
            }

            return true;
        }
 public void addToStreamEx(Bundle stream, PLAYER_PUBLIC_INFO v)
 {
     stream.writeUint32(v.userId);
     stream.writeInt8(v.holdsCount);
 }
		public override void addToStream(Bundle stream, object v)
		{
			stream.writeInt8(Convert.ToSByte(v));
		}