summaryrefslogtreecommitdiff
path: root/src/game/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/object.h')
-rw-r--r--src/game/object.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/object.h b/src/game/object.h
index 8191ab7..80ade03 100644
--- a/src/game/object.h
+++ b/src/game/object.h
@@ -42,6 +42,10 @@ struct OBJECT_PROP {
type name; \
OBJECT_PROP __##name##_props{ #name, (void*)&name, sizeof(type), &this->props, this }
+#define OBJVARV( type, name, val ) \
+ type name{ type( val ) }; \
+ OBJECT_PROP __##name##_props{ #name, (void*)&name, sizeof(type), &this->props, this }
+
#define OBJVAR_STR( name, len ) \
char name##[len]; \
OBJECT_PROP __##name##_props{ #name, (void*)name, len, &this->props, this }
@@ -61,6 +65,9 @@ struct OBJECT {
OBJVAR( VEC3, pos );
OBJVAR( VEC3, rot );
OBJVAR( I32, idx );
+ OBJVAR( VEC3, velocity );
+ OBJVAR( VEC3, mins );
+ OBJVAR( VEC3, maxs );
};
inline const char* obj_classid_to_name( U32 classid ) {