public static string GetGuildTitle(GuildInfo guildInfo) { if (guildInfo == null || guildInfo.titles.get_Count() == 0) { return(string.Empty); } return(HeadInfoManager.GetGuildTitle(guildInfo.guildName, guildInfo.titles.get_Item(0))); }
public override void SetDataByMapObjInfo(MapObjInfo info, bool isClientCreate = false) { base.IsClientCreate = isClientCreate; base.ObjType = (int)info.objType; base.ID = info.id; this.TypeID = info.typeId; this.ModelID = info.modelId; this.Name = info.name; this.TypeRank = info.rankValue; this.TitleID = info.titleId; this.GuildTitle = HeadInfoManager.GetGuildTitle(info.guildInfo); base.Floor = info.mapLayer; base.Pos = PosDirUtility.ToTerrainPoint(info.pos, base.CurFloorStandardHeight); base.Dir = new Vector3(info.vector.x, 0f, info.vector.y); this.SetMapObjSimpleInfo(info.otherInfo); this.Decorations = info.decorations; }
public void OnRoleInfoBroadcastNty(short state, RoleInfoBroadcastNty down = null) { if (down != null) { int type = down.type; if (type != 1) { if (type == 2) { this.SetGuildTitle(down.roleId, HeadInfoManager.GetGuildTitle(down.guildInfo)); } } else if (!string.IsNullOrEmpty(down.newValue)) { this.SetTitle(down.roleId, (int)float.Parse(down.newValue)); } else { this.SetTitle(down.roleId, 0); } } }
public static string GetGuildTitle(string guildName, int titleId) { return("[" + guildName + "]" + HeadInfoManager.GetGuildTitle(titleId)); }
private HeadInfoManager() { HeadInfoManager.CreatePools(); }