2
0
Эх сурвалжийг харах

tools: register 'unit' object type

Daniele Bartolini 5 сар өмнө
parent
commit
a899bf286f

+ 17 - 0
tools/resource/types.vala

@@ -713,6 +713,23 @@ public static void create_object_types(Database database)
 		},
 	};
 	database.create_object_type(OBJECT_TYPE_TONEMAP, properties, ObjectTypeFlags.UNIT_COMPONENT);
+
+	properties =
+	{
+		PropertyDefinition()
+		{
+			type = PropertyType.STRING,
+			name = "editor.name",
+		},
+		PropertyDefinition()
+		{
+			type = PropertyType.STRING,
+			name = "prefab",
+			editor = PropertyEditorType.RESOURCE,
+			resource_type = OBJECT_TYPE_UNIT,
+		},
+	};
+	database.create_object_type(OBJECT_TYPE_UNIT, properties);
 }
 
 } /* namespace Crown */