GetInternalDescriptiveNameOffset() public method

public GetInternalDescriptiveNameOffset ( ) : uint
return uint
Beispiel #1
0
        public string GetInternalDescriptiveGroupName(ModelGroup modelGroup)
        {
            int internalDescriptiveNameOffset = (int) modelGroup.GetInternalDescriptiveNameOffset();
            if (this.GroupNames.ContainsKey(internalDescriptiveNameOffset))
            {
                return this.GroupNames[internalDescriptiveNameOffset];
            }

            return null;
        }
Beispiel #2
0
        public bool ContainsGroup(ModelGroup modelGroup)
        {
            bool containsGroupName = this.GroupNames.GroupNames.Count(kvp => kvp.Key == modelGroup.GetInternalNameOffset()) > 0;
            bool containsDescriptiveGroupName = this.GroupNames.GroupNames.Count(kvp => kvp.Key == modelGroup.GetInternalDescriptiveNameOffset()) > 0;

            // sometimes, model groups don't contain a descriptive name.
            if (modelGroup.GetInternalDescriptiveNameOffset() > 0)
            {
                return containsGroupName && containsDescriptiveGroupName;
            }

            return containsGroupName;
        }