diff options
| author | aura <nw@moneybot.cc> | 2026-02-27 10:08:07 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-02-27 10:08:07 +0100 |
| commit | 66561ea2fb7f76c408c08e21132e58914329faba (patch) | |
| tree | e02e5c7ff51563a35417bdfe70af568db53896f1 /src/game/object.h | |
| parent | b24f37279bcc4b3abd92b697eadcec1feba8d276 (diff) | |
more movement
Diffstat (limited to 'src/game/object.h')
| -rw-r--r-- | src/game/object.h | 7 |
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 ) { |
