当前位置: 首页>>代码示例>>C#>>正文


C# NetSocket.Get_方法代码示例

本文整理汇总了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);
 }
开发者ID:602147629,项目名称:UnitySocket,代码行数:7,代码来源:scene_def.cs

示例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);
                }
开发者ID:602147629,项目名称:UnitySocket,代码行数:8,代码来源:ws2c.cs

示例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);
 }
开发者ID:602147629,项目名称:UnitySocket,代码行数:10,代码来源:ls2c.cs

示例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]);
                    }
                }
开发者ID:602147629,项目名称:UnitySocket,代码行数:10,代码来源:fep2c.cs

示例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]);
        }
    }
开发者ID:602147629,项目名称:UnitySocket,代码行数:10,代码来源:EncryptInfo.cs

示例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;
                }
开发者ID:602147629,项目名称:UnitySocket,代码行数:14,代码来源:relation_def.cs

示例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
                }
开发者ID:602147629,项目名称:UnitySocket,代码行数:18,代码来源:area_resource_def.cs

示例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);
 }
开发者ID:602147629,项目名称:UnitySocket,代码行数:9,代码来源:char_setting_def.cs

示例9: FromBin

 public void FromBin(NetSocket.ByteArray bin)
 {
     byte temp;
     bin.Get_(out temp);
     type = (twp.app.unit.UnitType)temp;
     innerUnion.FromBin(type, bin);
 }
开发者ID:602147629,项目名称:UnitySocket,代码行数:7,代码来源:unit_def.cs

示例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);
            }
开发者ID:602147629,项目名称:UnitySocket,代码行数:7,代码来源:packetdef.cs

示例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]);
 }
开发者ID:602147629,项目名称:UnitySocket,代码行数:10,代码来源:map_def.cs

示例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);
 }
开发者ID:602147629,项目名称:UnitySocket,代码行数:13,代码来源:hero_def.cs

示例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);
                }
开发者ID:602147629,项目名称:UnitySocket,代码行数:26,代码来源:hero_def.cs

示例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);
 }
开发者ID:602147629,项目名称:UnitySocket,代码行数:8,代码来源:ss2c.cs

示例15: FromBin

 public void FromBin(NetSocket.ByteArray bin)
 {
     bin.Get_ (out x);
     bin.Get_ (out y);
 }
开发者ID:602147629,项目名称:UnitySocket,代码行数:5,代码来源:typedef.cs


注:本文中的NetSocket.Get_方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。