Skip to content

Commit

Permalink
Merge pull request #23 from rayshader/main
Browse files Browse the repository at this point in the history
feat: extend VehicleObject with more properties.
  • Loading branch information
psiberx authored Aug 7, 2024
2 parents f0363bf + 1793951 commit 656ce69
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/Base/Addons/VehicleObject.reds
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
@addField(VehicleObject)
native let isOnGround: Bool;
native let isOnGround: Bool;

@addField(VehicleObject)
native let acceleration: Float;

@addField(VehicleObject)
native let deceleration: Float;

@addField(VehicleObject)
native let isReversing: Bool;

@addField(VehicleObject)
native let burnout: Float;
4 changes: 4 additions & 0 deletions src/App/Entity/VehicleObjectEx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

RTTI_EXPAND_CLASS(Red::vehicleBaseObject, {
RTTI_PROPERTY(isOnGround);
RTTI_PROPERTY(acceleration);
RTTI_PROPERTY(deceleration);
RTTI_PROPERTY(isReversing);
RTTI_PROPERTY(burnout);
});

0 comments on commit 656ce69

Please sign in to comment.