本文整理汇总了C#中KBEngine.Bundle.writeInt32方法的典型用法代码示例。如果您正苦于以下问题:C# Bundle.writeInt32方法的具体用法?C# Bundle.writeInt32怎么用?C# Bundle.writeInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KBEngine.Bundle
的用法示例。
在下文中一共展示了Bundle.writeInt32方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onReConnectTo_baseapp_callback
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);
}
示例2: bindAccountEmail
/*
绑定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);
}
示例3: bindEMail_baseapp
public void bindEMail_baseapp()
{
Bundle bundle = new Bundle();
bundle.newMessage(Message.messages["Baseapp_reqAccountBindEmail"]);
bundle.writeInt32(entity_id);
bundle.writeString(password);
bundle.writeString("[email protected]");
bundle.send(networkInterface_);
}
示例4: newPassword
/*
设置新密码,通过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);
}
示例5: addToStream
public override void addToStream(Bundle stream, object v)
{
stream.writeInt32(Convert.ToInt32(v));
}