83 {
85 return;
86
88 {
89 ErrorEx(
"'related_GUI_categories' defined on part " + typeDataObject.
GetPartName() +
", but no valid 'GUIInventoryAttachmentsProps' group defined on the entity!");
90 return;
91 }
94 foreach (
string name : namesArr)
95 {
97 if (!tmp)
98 {
99 string validCategories = "";
101 foreach (string validName, ref TypeAttachmentGroupData groupData : groupMap)
102 validCategories += "'" + validName + "' ";
103 ErrorEx(
"Part '" + typeDataObject.
GetPartName() +
"' on type '" + eType.
GetName() +
"' declares related_GUI_category '" +
name +
"', but it does not match any GUIInventoryAttachmentsProps entry! Valid categories: [" + validCategories +
"]");
104 continue;
105 }
106 tmp.Insert(typeDataObject);
107 }
108 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
map< string, ref TypeAttachmentGroupData > TAttachmentGroupMap
ref map< string, ref array< ConstructionPartTypeData > > m_GuiRequiredPartTypesMap
array< string > GetRelatedGUICategoryNames()
bool HasRelatedGUICategories()
TypeAttachmentGroupsDataHolder GetTypeAttachmentGroupsDataHolder()
proto native owned string GetName()
TAttachmentGroupMap GetAttachmentGroupMap()