示例#1
0
 public HassiumClass(string name)
 {
     Name           = name;
     TypeDefinition = new HassiumTypeDefinition(name);
     AddType(TypeDefinition);
     Inherits = new List <HassiumMethod>();
 }
示例#2
0
 public HassiumObject AddType(HassiumTypeDefinition typeDefinition)
 {
     if (!Types.Contains(typeDefinition))
     {
         Types.Add(typeDefinition);
     }
     return(this);
 }