public List<Tag> getTagsOfType(TagEnum type, bool stale) { if (!stale && knownTags.ContainsKey(type)) { return knownTags[type]; } else if (stale && previouslyKnownTags.ContainsKey(type)){ return previouslyKnownTags[type]; } else return new List<Tag>(); }
public Tag getTag(TagEnum tagName) { if (label != null) { return label.getTag(tagName); } Tag value = null; tagMap.TryGetValue(tagName, out value); return value; }
public static List<EnumerationContainer> getContainersfromEnum(TagEnum te) { var EnumerationValues = new List<EnumerationContainer>(); if (te != null) { foreach (var entry in te.Table) { EnumerationValues.Add(new EnumerationContainer(entry.Key.ToString(), entry.Value.ElementAt(0).ToString().Replace('[', ' ').Replace(']', ' ').Replace(',', ' '))); } } return EnumerationValues; }
public void AddEndTag(TagEnum tagEnum) { _runs.Add(new TagEndRun(tagEnum, _tagingFn)); }
public TagEndRun(TagEnum tag, Taging tagingFn) : base(tag, tagingFn) { }
public List<Tag> getTagsOfType(TagEnum type) { if (knownTags.ContainsKey(type)) return knownTags[type]; else return new List<Tag>(); }
public static bool CompareGameObjectTag(GameObject gameObject, TagEnum tagToCheck) { return(gameObject.CompareTag(GetTagNameByEnum(tagToCheck))); }
public Tag(TagEnum type, float severity, LabelHandle handle) { this.type = type; this.severity = severity; this.labelHandle = handle; }
public bool usesTagType(TagEnum type) { foreach (TagEnum tagType in getRequiredTags()) { if (tagType == type) { return true; } } return false; }
public void RemoveTag(TagEnum tag) { m_enumTags.Remove(tag); EntityManager.Instance.NotifyRemoveTag(this, tag); }
//private Dictionary<TagEnum, object> m_oTagVars = new Dictionary<TagEnum, object>(); public void AddTag(TagEnum tag) { m_enumTags.Add(tag); EntityManager.Instance.NotifyAddTag(this, tag); }
public static bool IsUserAssignable(this TagEnum tag_Enum) => isUserAssignable_Dic[tag_Enum];
public bool hasTag(TagEnum tagName) { return tagMap.ContainsKey(tagName); }
public void clearTag(TagEnum type) { tagMap.Remove(type); }
public bool usesTagType(TagEnum type) { foreach (TagRequirement tagType in getRequiredTagsList()) { if (tagType.getType() == type) { return true; } } return false; }
public Tag getTag(TagEnum tagName) { return tagMap[tagName]; }
public void SetITagValue(TagEnum tag, int value) { m_iTagVars[tag] = value; }
public HtmlElement CreateTag(TagEnum tag) { return(_factory.Create(tag)); }
public static HashSet <Entity> GetTagged(TagEnum tag) { return(EntityManager.Instance.GetTagged(tag)); }
InspectorListElement InspectorListElement.doListElementGUI() { type = (TagEnum)UnityEditor.EditorGUILayout.Popup((int)type, Enum.GetNames(typeof(TagEnum))); doGUI(); return this; }
public void NotifyRemoveTag(Entity e, TagEnum tag) { m_tagToEntity[tag].Remove(e); }
public bool hasTag(TagEnum tagName) { if (label != null) { return label.hasTag(tagName); } return tagMap.ContainsKey(tagName); }
public TagRequirement(TagEnum type, bool stale) { this.type = type; this.stale = stale; }
public static string GetTagNameByEnum(TagEnum value) { return(Enum.GetName(typeof(TagEnum), value)); }
public TagRun(TagEnum tag, Taging tagingFn) { this.Tag = tag; this._tagingFn = tagingFn; }
public bool hasTag(TagEnum tagName) { return(tagMap.ContainsKey(tagName)); }
public void AddStartTag(TagEnum tagEnum) { _runs.Add(new TagStartRun(tagEnum, _tagingFn)); }
public Tag getTag(TagEnum tagName) { return(tagMap[tagName]); }
public Tag(TagEnum type, float severity) { this.type = type; this.severity = severity; }