示例#1
0
 public bool HasSameAttributeName(Attribute.AttributeName name)
 {
     foreach (Attribute attribute in attributes)
     {
         if (attribute._name == name)
         {
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 public Attribute GetAttribute(Attribute.AttributeName name)
 {
     foreach (Attribute attribute in attributes)
     {
         if (attribute._name == name)
         {
             return(attribute);
         }
     }
     return(null);
 }
示例#3
0
 public Attribute GetAttribute(Attribute.AttributeName name)
 {
     foreach (Attribute at in shipAttributes)
     {
         if (at._name == name)
         {
             return(at);
         }
     }
     return(null);
 }