Пример #1
0
        private string GetMemberPos(eAllianceMemberRole curPos, bool isPromote)
        {
            string str   = "";
            int    index = (int)curPos;

            if (isPromote)
            {
                index++;
            }
            else
            {
                index--;
            }

            str = LegionModel.GetInstance().GetMemberPosName((eAllianceMemberRole)index);

            return(str);
        }
Пример #2
0
        public static string GetRoleName(eAllianceMemberRole role)
        {
            switch (role)
            {
            case eAllianceMemberRole.Member:
                return(EB.Localizer.GetString("ID_ALLIANCE_ROLE_MEMBER_NAME"));

            case eAllianceMemberRole.Admin:
                return(EB.Localizer.GetString("ID_ALLIANCE_ROLE_ADMIN_NAME"));

            case eAllianceMemberRole.ExtraOwner:
                return(EB.Localizer.GetString("ID_ALLIANCE_ROLE_EXTRA_OWNER_NAME"));

            case eAllianceMemberRole.Owner:
                return(EB.Localizer.GetString("ID_ALLIANCE_ROLE_OWNER_NAME"));
            }

            return(string.Empty);
        }
Пример #3
0
        //获取军团职位文本
        public string GetMemberPosName(eAllianceMemberRole type)
        {
            string str = "";

            if (type == eAllianceMemberRole.Owner)
            {
                str = LegionConfig.GetLegionText("ID_LEGION_ROLE_OWNER_NAME");
            }
            else if (type == eAllianceMemberRole.ExtraOwner)
            {
                str = LegionConfig.GetLegionText("ID_LEGION_ROLE_EXTRA_OWNER_NAME");
            }
            else if (type == eAllianceMemberRole.Admin)
            {
                str = LegionConfig.GetLegionText("ID_LEGION_ROLE_ADMIN_NAME");
            }
            else if (type == eAllianceMemberRole.Member)
            {
                str = LegionConfig.GetLegionText("ID_LEGION_ROLE_MEMBER_NAME");
            }

            return(str);
        }