public BuildResourceInfo(int hue, int number, string name, BuildAttributeInfo attributeInfo, BuildResource resource, params Type[] resourceTypes) { m_Hue = hue; m_Number = number; m_Name = name; m_AttributeInfo = attributeInfo; m_Resource = resource; m_ResourceTypes = resourceTypes; for (int i = 0; i < resourceTypes.Length; ++i) { BuildResources.RegisterType(resourceTypes[i], resource); } }
static BuildAttributeInfo() { Blank = new BuildAttributeInfo(); }