public void addToStreamEx(Bundle stream, List <Int32> v)
 {
     stream.writeUint32((UInt32)v.Count);
     for (int i = 0; i < v.Count; ++i)
     {
         stream.writeInt32(v[i]);
     }
     ;
 }
 public void addToStreamEx(Bundle stream, ENTITYID_LIST v)
 {
     stream.writeUint32((UInt32)v.Count);
     for (int i = 0; i < v.Count; ++i)
     {
         stream.writeInt32(v[i]);
     }
     ;
 }
 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, 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);
 }
Example #5
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);
 }
        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);
        }
Example #7
0
 public void addToStreamEx(Bundle stream, D_SHOP_INFOS v)
 {
     stream.writeInt32(v.shop_id);
     stream.writeUnicode(v.shop_des);
     stream.writeInt32(v.shop_refreshstart);
     stream.writeInt32(v.shop_refreshtime);
     stream.writeInt32(v.shop_needid);
     stream.writeUnicode(v.shop_needdes);
     stream.writeInt32(v.shop_amount);
     stream.writeString(v.shop_refreshtime1);
     stream.writeInt32(v.open_lv);
 }
Example #8
0
        public Bundle newMail()
        {
            if (bundle == null)
            {
                bundle = new Bundle();
            }

            if (type == Mailbox.MAILBOX_TYPE.MAILBOX_TYPE_CELL)
            {
                bundle.newMessage(Message.messages["Baseapp_onRemoteCallCellMethodFromClient"]);
            }
            else
            {
                bundle.newMessage(Message.messages["Base_onRemoteMethodCall"]);
            }

            bundle.writeInt32(this.id);

            return(bundle);
        }
Example #9
0
        /*
         *      创建新的mail
         */
        public Bundle newMail()
        {
            if (bundle == null)
            {
                bundle = Bundle.createObject();
            }

            if (isCell())
            {
                bundle.newMessage(Messages.messages["Baseapp_onRemoteCallCellMethodFromClient"]);
            }
            else
            {
                bundle.newMessage(Messages.messages["Base_onRemoteMethodCall"]);
            }

            bundle.writeInt32(this.id);

            return(bundle);
        }
Example #10
0
        /*
         *      创建新的call
         */
        public Bundle newCall()
        {
            if (bundle == null)
            {
                bundle = Bundle.createObject();
            }

            if (type == EntityCall.ENTITYCALL_TYPE.ENTITYCALL_TYPE_CELL)
            {
                bundle.newMessage(Message.messages["Baseapp_onRemoteCallCellMethodFromClient"]);
            }
            else
            {
                bundle.newMessage(Message.messages["Entity_onRemoteMethodCall"]);
            }

            bundle.writeInt32(this.id);

            return(bundle);
        }
 /*
     绑定Email,通过baseapp
 */
 public void bindAccountEmail(string emailAddress)
 {
     Bundle bundle = new Bundle();
     bundle.newMessage(Message.messages["Baseapp_reqAccountBindEmail"]);
     bundle.writeInt32(entity_id);
     bundle.writeString(password);
     bundle.writeString(emailAddress);
     bundle.send(_networkInterface);
 }
 /*
     设置新密码,通过baseapp, 必须玩家登录在线操作所以是baseapp。
 */
 public void newPassword(string old_password, string new_password)
 {
     Bundle bundle = new Bundle();
     bundle.newMessage(Message.messages["Baseapp_reqAccountNewPassword"]);
     bundle.writeInt32(entity_id);
     bundle.writeString(old_password);
     bundle.writeString(new_password);
     bundle.send(_networkInterface);
 }
Example #13
0
 public void bindEMail_baseapp()
 {
     Bundle bundle = new Bundle();
     bundle.newMessage(Message.messages["Baseapp_reqAccountBindEmail"]);
     bundle.writeInt32(entity_id);
     bundle.writeString(password);
     bundle.writeString("*****@*****.**");
     bundle.send(networkInterface_);
 }
Example #14
0
 public void addToStreamEx(Bundle stream, D_HERO_INFOS v)
 {
     stream.writeInt32(v.id);
     stream.writeString(v.name);
     stream.writeUnicode(v.nick_name);
     stream.writeInt32(v.race);
     stream.writeUnicode(v.race_desc);
     stream.writeInt32(v.skill_1);
     stream.writeInt32(v.skill_2);
     stream.writeInt32(v.skill_3);
     stream.writeInt32(v.skill_4);
     stream.writeInt32(v.hero_hp);
     stream.writeInt32(v.hero_mp);
     stream.writeInt32(v.hero_strength);
     stream.writeInt32(v.hero_agile);
     stream.writeInt32(v.hero_intelligence);
     stream.writeInt32(v.hero_attacktime);
     stream.writeInt32(v.hero_speed);
     stream.writeInt32(v.hero_attackfront);
     stream.writeInt32(v.hero_attackback);
     stream.writeInt32(v.hero_skillfront);
     stream.writeInt32(v.hero_skillback);
     stream.writeInt32(v.hero_scope);
     stream.writeInt32(v.hero_attack);
     stream.writeInt32(v.hero_armor);
     stream.writeInt32(v.hero_unarmor);
     stream.writeInt32(v.hero_magic);
     stream.writeInt32(v.hero_magicresist);
     stream.writeInt32(v.hero_hprestored);
     stream.writeInt32(v.hero_mprestored);
     stream.writeInt32(v.hero_crit);
     stream.writeInt32(v.hero_uncrit);
     stream.writeInt32(v.hero_critunmber);
     stream.writeInt32(v.hero_evade);
     stream.writeInt32(v.hero_unevade);
     stream.writeInt32(v.hero_parry);
     stream.writeInt32(v.hero_unparry);
     stream.writeInt32(v.hero_parrynumber);
     stream.writeInt32(v.hero_xixue);
     stream.writeInt32(v.atk_power);
     stream.writeInt32(v.hurt_power);
     stream.writeInt32(v.kill_power);
     stream.writeInt32(v.hero_energe);
     stream.writeString(v.head_icon);
 }
Example #15
0
 public void addToStreamEx(Bundle stream, AVATAR_INFO v)
 {
     stream.writeInt32(v.entity_id);
     stream.writeVector3(v.born_position);
     stream.writeUint8(v.born_yaw);
 }
		public override void addToStream(Bundle stream, object v)
		{
			stream.writeInt32(Convert.ToInt32(v));
		}
Example #17
0
 public void addToStreamEx(Bundle stream, D_PROPS_INFOS v)
 {
     stream.writeInt32(v.prop_id);
     stream.writeUnicode(v.prop_name);
     stream.writeString(v.prop_icon);
     stream.writeInt32(v.prop_type);
     stream.writeInt32(v.prop_quality);
     stream.writeInt32(v.prop_order);
     stream.writeInt32(v.prop_max);
     stream.writeInt32(v.prop_resale);
     stream.writeInt32(v.prop_diamond);
     stream.writeInt32(v.prop_hanbing);
     stream.writeInt32(v.prop_moba);
     stream.writeInt32(v.prop_jjc);
     stream.writeInt32(v.prop_maoxian);
     stream.writeUnicode(v.prop_describe);
     stream.writeInt32(v.prop_function);
     stream.writeInt32(v.prop_parameters1);
     stream.writeInt32(v.prop_parameters2);
     stream.writeInt32(v.prop_parameters3);
     stream.writeInt32(v.prop_parameters4);
     stream.writeInt32(v.prop_parameters5);
     stream.writeInt32(v.prop_parameters6);
     stream.writeInt32(v.prop_drop1);
     stream.writeInt32(v.prop_drop2);
     stream.writeInt32(v.prop_drop3);
     stream.writeInt32(v.prop_drop4);
     stream.writeInt32(v.prop_gm);
     stream.writeInt32(v.prop_buy);
 }
        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);
        }
Example #19
0
 public void addToStreamEx(Bundle stream, D_SKILL_INFOS v)
 {
     stream.writeInt32(v.id);
     stream.writeUnicode(v.name);
     stream.writeString(v.skill_icon);
     stream.writeInt32(v.skill_damage_chushi);
     stream.writeInt32(v.skill_damage_growth);
     stream.writeInt32(v.skill_ad_chushi);
     stream.writeInt32(v.skill_ad_growth);
     stream.writeInt32(v.skill_ap_chushi);
     stream.writeInt32(v.skill_ap_growth);
     stream.writeInt32(v.skill_type);
     stream.writeInt32(v.skill_ongoing);
     stream.writeInt32(v.skill_sing_time);
     stream.writeInt32(v.skill_cutdown);
     stream.writeInt32(v.skill_cutdownif);
     stream.writeInt32(v.skill_cd);
     stream.writeInt32(v.attack_distance);
     stream.writeInt32(v.aoe_radius);
 }
 public override void addToStream(Bundle stream, object v)
 {
     stream.writeInt32(Convert.ToInt32(v));
 }
Example #21
0
 public void addToStreamEx(Bundle stream, FS_ENTITY_DATA v)
 {
     stream.writeInt32(v.entityid);
     stream.writeUint8(v.cmd_type);
     stream.writeBlob(v.datas);
 }