GetBuffer() public method

public GetBuffer ( ) : byte[]
return byte[]
Ejemplo n.º 1
0
        //创建军团
        public void CreateLegion(LegionInfo info,int player_id)
        {
            int legion_id = Data.CreateLegion(info);
            CreateLegion_Ret ret = new CreateLegion_Ret();
            if (legion_id != -1) ret.ret = 1;
            ret.play_id = player_id;
            ret.legion_id = legion_id;
            info.id = (uint)legion_id;

            mDicInfo[info.id] = info;

            LegionMember member = new LegionMember();
            member.money = info.money;
            member.members_name = info.leader_name;
            member.rank = GameBase.Config.Define.LEGION_PLACE_JUNTUANZHANG;
            member.money = info.money; //初始化的贡献度
            AddLegionMembers(info.id,member);
            ret.money = info.money;
            ret.boss_id = member.id;
            SessionManager.Instance().SendMapServer(0, ret.GetBuffer());
        }