本文整理汇总了C#中NetSocket.Get_方法的典型用法代码示例。如果您正苦于以下问题:C# NetSocket.Get_方法的具体用法?C# NetSocket.Get_怎么用?C# NetSocket.Get_使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NetSocket
的用法示例。
在下文中一共展示了NetSocket.Get_方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FromBin
public void FromBin(NetSocket.ByteArray bin)
{
bin.Get_(out pos.x);
bin.Get_(out pos.y);
bin.Get_(out scene_type_idx);
bin.Get_(out scene_obj_idx);
}
示例2: FromBin
public new void FromBin(NetSocket.ByteArray bin)
{
base.FromBin(bin);
int result_;bin.Get_(out result_);result = (Result)result_;
bin.Get_(out ss_idx);
bin.Get_(out char_idx);
}
示例3: FromBin
public new void FromBin(NetSocket.ByteArray bin)
{
base.FromBin(bin);
//
int e_result__;
bin.Get_(out e_result__);
e_result = (e_result_) e_result__;
//
bin.Get_(out charidx_created);
}
示例4: FromBin
public new void FromBin(NetSocket.ByteArray bin)
{
base.FromBin (bin);
bin.Get_ (out param);
for(uint i = 0; i < yw.YwEncrypt.LIMIT_KEY_LENGTH; ++i)
{
bin.Get_ (out key[i]);
}
}
示例5: EncryptInfo
public EncryptInfo(NetSocket.ByteArray bin)
{
// 跳过两个字节
bin.Move (NetSocket.CSocketManager.headerLen);
bin.Get_ (out param);
for (uint i = 0; i < yw.YwEncrypt.LIMIT_KEY_LENGTH; ++i) {
bin.Get_ (out key [i]);
}
}
示例6: FromBin
public bool is_online; //是否在线
public void FromBin(NetSocket.ByteArray bin)
{
bin.Get_(out char_idx);
char_name = bin.GetStringData((int)twp.app.unit.EUnitLimit.LIMIT_NAME_STR_LENGTH+1);
byte v;
bin.Get_(out v);
relation_type = (RelationType)v;
bin.Get_(out battle_integral);
sbyte isonline;
bin.Get_(out isonline);
is_online = (isonline == 0)? false : true;
}
示例7: FromBin
public byte worker_house; //矮人工匠屋数量
#endif
public void FromBin(NetSocket.ByteArray bin)
{
#if false
bin.Get_ (out silver); // 银
bin.Get_ (out copper); // 铜
bin.Get_ (out copper_max); // 铜上限
bin.Get_ (out food); // 粮食
bin.Get_ (out food_max); // 粮食上限
bin.Get_ (out population); // 人口
bin.Get_ (out population_max); // 最大人口
#else
bin.Get_ (out worker_house);
#endif
}
示例8: FromBin
public void FromBin(NetSocket.ByteArray bin)
{
bin.Get_ (out quest_flags);
bin.Get_ (out combat_flags);
bin.Get_ (out refresh_pub);
bin.Get_ (out refresh_smith_shop);
bin.Get_ (out guide_flags);
bin.Get_ (out role_event_point);
}
示例9: FromBin
public void FromBin(NetSocket.ByteArray bin)
{
byte temp;
bin.Get_(out temp);
type = (twp.app.unit.UnitType)temp;
innerUnion.FromBin(type, bin);
}
示例10: FromBin
public new void FromBin(NetSocket.ByteArray bin)
{
base.FromBin(bin);
bin.Get_(out client_uid.fepsrv_uid);
bin.Get_(out client_uid.fepsession_uid);
}
示例11: FromBin
public void FromBin(NetSocket.ByteArray bin)
{
bin.Get_ (out city_id);
bin.Get_ (out flags);
bin.Get_ (out char_idx);
bin.Get_ (out nation_type);
bin.Get_ (out protected_end_time);
for(uint i = 0; i < twp.app.unit.TDCONST.MAX_CITY_NAME + 1; ++i)
bin.Get_(out _city_name[i]);
}
示例12: FromBin
public void FromBin(NetSocket.ByteArray bin)
{
bin.Get_ (out city_id);
bin.Get_ (out char_id);
bin.Get_ (out attack);
bin.Get_ (out defense);
bin.Get_ (out max_hp);
bin.Get_ (out type_id);
int temp;
bin.Get_ (out temp);
hero_star = (HERO_STAR)temp;
bin.Get_ (out skill_id);
}
示例13: SkillListBin
public SkillListBin skill_list_bin = new SkillListBin(); //技能
public void FromBin(NetSocket.ByteArray bin)
{
bin.Get_ (out hero_id);
bin.Get_ (out type_id);
bin.Get_ (out hero_city_id);
bin.Get_ (out hero_map_id);
bin.Get_ (out hero_build_id);
bin.Get_ (out build_order);
bin.Get_ (out level);
bin.Get_ (out train_times);
train_cd_times_ReceiveTime =1;// AppMaster.TimeSince1970;
bin.Get_ (out buy_train_times);
bin.Get_ (out train_cd_times);
bin.Get_ (out attack);
bin.Get_ (out defense);
bin.Get_ (out max_hp);
bin.Get_ (out hp);
skill_list_bin.FromBin (bin);
}
示例14: FromBin
public new void FromBin(NetSocket.ByteArray bin)
{
base.FromBin (bin);
byte temp;
bin.Get_ (out temp);
type = (twp.app.unit.CityOperateType)temp;
innerUnion.FromBin (bin, type);
}
示例15: FromBin
public void FromBin(NetSocket.ByteArray bin)
{
bin.Get_ (out x);
bin.Get_ (out y);
}