From fdc5e8760fb7ac0af8e7ebb98a2076db15e31082 Mon Sep 17 00:00:00 2001 From: aura Date: Mon, 16 Mar 2026 10:15:01 +0100 Subject: giga refactor, fix ALL the leaks --- src/editor/properties.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/editor/properties.h') diff --git a/src/editor/properties.h b/src/editor/properties.h index 34ac765..01edbbf 100644 --- a/src/editor/properties.h +++ b/src/editor/properties.h @@ -1,7 +1,6 @@ #pragma once #include "../gamedef.h" -#include #if IS_EDITOR #include @@ -34,9 +33,15 @@ enum EditorPropType_t { EPROP_I64, EPROP_F32, EPROP_F64, + EPROP_VEC2, + EPROP_VEC3, + EPROP_VEC4, + EPROP_CLR, + EPROP_MAPPROP, EPROP_STRING, EPROP_OBJ, EPROP_LIST, + EPROP_TEXTURE, EPROP_TEXTURE_LIST, }; @@ -72,6 +77,12 @@ struct EDITOR_PROP { template <> struct __eprop_type { static const U8 type = EPROP_F32; }; template <> struct __eprop_type { static const U8 type = EPROP_F64; }; template <> struct __eprop_type { static const U8 type = EPROP_STRING; }; + template <> struct __eprop_type { static const U8 type = EPROP_CLR; }; + template <> struct __eprop_type { static const U8 type = EPROP_VEC2; }; + template <> struct __eprop_type { static const U8 type = EPROP_VEC3; }; + template <> struct __eprop_type { static const U8 type = EPROP_VEC4; }; + template <> struct __eprop_type { static const U8 type = EPROP_MAPPROP; }; + template <> struct __eprop_type { static const U8 type = EPROP_TEXTURE; }; template <__eobject_base T> struct __eprop_type { static const U8 type = EPROP_OBJ; }; template struct __eprop_type> { static const U8 type = EPROP_LIST; }; template <> struct __eprop_type> { static const U8 type = EPROP_TEXTURE_LIST; }; -- cgit v1.2.3