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;
 }
Пример #3
0
        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;
        }
Пример #4
0
 public void AddEndTag(TagEnum tagEnum)
 {
     _runs.Add(new TagEndRun(tagEnum, _tagingFn));
 }
Пример #5
0
 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>();
 }
Пример #7
0
 public static bool CompareGameObjectTag(GameObject gameObject, TagEnum tagToCheck)
 {
     return(gameObject.CompareTag(GetTagNameByEnum(tagToCheck)));
 }
Пример #8
0
 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;
 }
Пример #10
0
 public void RemoveTag(TagEnum tag)
 {
     m_enumTags.Remove(tag);
     EntityManager.Instance.NotifyRemoveTag(this, tag);
 }
Пример #11
0
        //private Dictionary<TagEnum, object> m_oTagVars = new Dictionary<TagEnum, object>();

        public void AddTag(TagEnum tag)
        {
            m_enumTags.Add(tag);

            EntityManager.Instance.NotifyAddTag(this, tag);
        }
Пример #12
0
 public static bool IsUserAssignable(this TagEnum tag_Enum) => isUserAssignable_Dic[tag_Enum];
Пример #13
0
	public bool hasTag(TagEnum tagName) {
		return tagMap.ContainsKey(tagName);
	}
Пример #14
0
	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;
 }
Пример #16
0
	public Tag getTag(TagEnum tagName) {
		return tagMap[tagName];
	}
Пример #17
0
 public void SetITagValue(TagEnum tag, int value)
 {
     m_iTagVars[tag] = value;
 }
Пример #18
0
 public HtmlElement CreateTag(TagEnum tag)
 {
     return(_factory.Create(tag));
 }
Пример #19
0
 public static HashSet <Entity> GetTagged(TagEnum tag)
 {
     return(EntityManager.Instance.GetTagged(tag));
 }
Пример #20
0
    InspectorListElement InspectorListElement.doListElementGUI()
    {
        type = (TagEnum)UnityEditor.EditorGUILayout.Popup((int)type, Enum.GetNames(typeof(TagEnum)));

        doGUI();
        return this;
    }
Пример #21
0
 public void NotifyRemoveTag(Entity e, TagEnum tag)
 {
     m_tagToEntity[tag].Remove(e);
 }
Пример #22
0
 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;
 }
Пример #24
0
 public static string GetTagNameByEnum(TagEnum value)
 {
     return(Enum.GetName(typeof(TagEnum), value));
 }
Пример #25
0
 public void clearTag(TagEnum type)
 {
     tagMap.Remove(type);
 }
Пример #26
0
 public TagRun(TagEnum tag, Taging tagingFn)
 {
     this.Tag       = tag;
     this._tagingFn = tagingFn;
 }
Пример #27
0
 public bool hasTag(TagEnum tagName)
 {
     return(tagMap.ContainsKey(tagName));
 }
Пример #28
0
 public void AddStartTag(TagEnum tagEnum)
 {
     _runs.Add(new TagStartRun(tagEnum, _tagingFn));
 }
Пример #29
0
 public Tag getTag(TagEnum tagName)
 {
     return(tagMap[tagName]);
 }
Пример #30
0
 public Tag(TagEnum type, float severity)
 {
     this.type     = type;
     this.severity = severity;
 }
Пример #31
0
	public Tag(TagEnum type, float severity) {
		this.type = type;
		this.severity = severity;
	}