fx: implement a proper value-type mechanism

This commit is contained in:
2026-05-17 17:09:05 +01:00
parent 65a7a025c5
commit f1258489d1
56 changed files with 1343 additions and 1112 deletions
+5
View File
@@ -21,6 +21,11 @@ FX_TYPE_DEFINITION_BEGIN(fx_object)
FX_TYPE_CLASS(fx_object_class);
FX_TYPE_DEFINITION_END(fx_object)
fx_type_id fx_object_query_type(const struct _fx_object *obj)
{
return &obj->obj_type->ty_id;
}
fx_result fx_object_instantiate(
struct fx_type_info *type,
struct _fx_object **out_object)