Пример #1
0
 public void addToStreamEx(Bundle stream, MAIL v)
 {
     stream.writeUint64(v.senderDBID);
     stream.writeUnicode(v.senderName);
     stream.writeUint64(v.targetDBID);
     stream.writeUnicode(v.targetName);
     stream.writeUint8(v.lookOver);
     stream.writeUint8(v.mailType);
     stream.writeUnicode(v.mailInfo);
     stream.writeInt32(v.mailID);
 }
Пример #2
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);
 }
Пример #3
0
 public void addToStreamEx(Bundle stream, ITEM_INFO v)
 {
     stream.writeUint64(v.UUID);
     stream.writeInt32(v.itemId);
     stream.writeUint32(v.itemCount);
     stream.writeInt32(v.itemIndex);
 }
Пример #4
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);
 }
Пример #5
0
 public void addToStreamEx(Bundle stream, AVATAR_INFOS v)
 {
     stream.writeUint64(v.dbid);
     stream.writeUnicode(v.name);
     stream.writeUint8(v.roleType);
     stream.writeInt32(v.weaponId);
 }
Пример #6
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);
 }
Пример #7
0
 public void addToStreamEx(Bundle stream, ENTITYDATA v)
 {
     stream.writeUnicode(v.playerName);
     stream.writeInt32(v.playerBean);
     stream.writeUint8(v.roomIndex);
     stream.writeUint64(v.playerID);
 }
Пример #8
0
 public void addToStreamEx(Bundle stream, PLAYRE_DATA v)
 {
     stream.writeUnicode(v.playerName);
     stream.writeUint64(v.playerDBID);
     stream.writeUint32(v.playerGold);
     stream.writeUint8(v.isOnLine);
 }
Пример #9
0
 public void addToStreamEx(Bundle stream, AVATAR_INFO v)
 {
     stream.writeUint64(v.dbid);
     stream.writeUnicode(v.name);
     stream.writeUint8(v.roleType);
     stream.writeUint16(v.level);
 }
Пример #10
0
 public void addToStreamEx(Bundle stream, FRIEND_INFO v)
 {
     stream.writeUint64(v.dbid);
     stream.writeUnicode(v.name);
     stream.writeUint16(v.level);
     stream.writeUint16(v.status);
     stream.writeUint16(v.icon);
 }
Пример #11
0
 public void addToStreamEx(Bundle stream, FRIENDDATA v)
 {
     stream.writeUint8(v.status);
     stream.writeUint64(v.playerID);
     stream.writeUnicode(v.playerName);
     stream.writeInt32(v.playerBean);
     stream.writeEntitycall(v.playerEntity);
 }
Пример #12
0
 public void addToStreamEx(Bundle stream, ROOM_INFOS v)
 {
     stream.writeUint64(v.roomKey);
     stream.writeUnicode(v.name);
     stream.writeUnicode(v.intro);
     stream.writeUint8(v.playerCount);
     stream.writeUint8(v.isPlaying);
     stream.writeUint8(v.hasPassword);
 }
Пример #13
0
 public void addToStreamEx(Bundle stream, FRIENDS_LIST v)
 {
     stream.writeUint32((UInt32)v.Count);
     for (int i = 0; i < v.Count; ++i)
     {
         stream.writeUint64(v[i]);
     }
     ;
 }
Пример #14
0
 public void addToStreamEx(Bundle stream, OPEN_PACK_RUL v)
 {
     stream.writeUint32((UInt32)v.Count);
     for (int i = 0; i < v.Count; ++i)
     {
         stream.writeUint64(v[i]);
     }
     ;
 }
Пример #15
0
 public void addToStreamEx(Bundle stream, AVATAR_INFOS v)
 {
     stream.writeUint64(v.dbid);
     stream.writeUnicode(v.Name);
     stream.writeUint8(v.RoleType);
     stream.writeUint8(v.Country);
     stream.writeUint8(v.Sex);
     stream.writeInt16(v.Level);
     stream.writeInt32(v.Gold);
 }
Пример #16
0
        public override void addToStream(Bundle stream, object v)
        {
            UInt64 cid   = 0;
            Int32  id    = 0;
            UInt16 type  = 0;
            UInt16 utype = 0;

            stream.writeUint64(cid);
            stream.writeInt32(id);
            stream.writeUint16(type);
            stream.writeUint16(utype);
        }
Пример #17
0
 public void addToStreamEx(Bundle stream, CHESS_INFO v)
 {
     stream.writeUint64(v.id);
     stream.writeUnicode(v.name);
     stream.writeUint64(v.level);
 }
Пример #18
0
		public override void addToStream(Bundle stream, object v)
		{
			stream.writeUint64(Convert.ToUInt64(v));
		}
Пример #19
0
 public void addToStreamEx(Bundle stream, MAILDATA v)
 {
     stream.writeUint64(v.senderID);
     stream.writeUnicode(v.senderName);
     stream.writeUint64(v.recverID);
 }
Пример #20
0
 public void addToStreamEx(Bundle stream, SYNCHRODATA v)
 {
     stream.writeUint64(v.senderID);
     stream.writeUint64(v.recverID);
 }
Пример #21
0
 public void addToStreamEx(Bundle stream, CITY_SELL_GOODS_INFO v)
 {
     stream.writeUint64(v.GoodsID);
     stream.writeUint16(v.GoodsBaseNum);
 }
Пример #22
0
        private void onReConnectTo_baseapp_callback(string ip, int port, bool success, object userData)
        {
            if(!success)
            {
                Dbg.ERROR_MSG(string.Format("KBEngine::reLoginBaseapp(): connect {0}:{1} is error!", ip, port));
                return;
            }

            Dbg.DEBUG_MSG(string.Format("KBEngine::relogin_baseapp(): connect {0}:{1} is successfully!", ip, port));

            Bundle bundle = new Bundle();
            bundle.newMessage(Message.messages["Baseapp_reLoginBaseapp"]);
            bundle.writeString(username);
            bundle.writeString(password);
            bundle.writeUint64(entity_uuid);
            bundle.writeInt32(entity_id);
            bundle.send(_networkInterface);
        }
Пример #23
0
 public override void addToStream(Bundle stream, object v)
 {
     stream.writeUint64(Convert.ToUInt64(v));
 }
Пример #24
0
 public void addToStreamEx(Bundle stream, CARD_INFO v)
 {
     stream.writeUint64(v.CardID);
     stream.writeUint8(v.CardNum);
 }