|
|
@@ -51,10 +51,10 @@ void Vehicle::RegisterObject(Context* context)
|
|
|
URHO3D_ATTRIBUTE("Steering", float, steering_, 0.0f, AM_DEFAULT);
|
|
|
// Register wheel node IDs as attributes so that the wheel nodes can be reaquired on deserialization. They need to be tagged
|
|
|
// as node ID's so that the deserialization code knows to rewrite the IDs in case they are different on load than on save
|
|
|
- URHO3D_ATTRIBUTE("Front Left Node", int, frontLeftID_, 0, AM_DEFAULT | AM_NODEID);
|
|
|
- URHO3D_ATTRIBUTE("Front Right Node", int, frontRightID_, 0, AM_DEFAULT | AM_NODEID);
|
|
|
- URHO3D_ATTRIBUTE("Rear Left Node", int, rearLeftID_, 0, AM_DEFAULT | AM_NODEID);
|
|
|
- URHO3D_ATTRIBUTE("Rear Right Node", int, rearRightID_, 0, AM_DEFAULT | AM_NODEID);
|
|
|
+ URHO3D_ATTRIBUTE("Front Left Node", unsigned, frontLeftID_, 0, AM_DEFAULT | AM_NODEID);
|
|
|
+ URHO3D_ATTRIBUTE("Front Right Node", unsigned, frontRightID_, 0, AM_DEFAULT | AM_NODEID);
|
|
|
+ URHO3D_ATTRIBUTE("Rear Left Node", unsigned, rearLeftID_, 0, AM_DEFAULT | AM_NODEID);
|
|
|
+ URHO3D_ATTRIBUTE("Rear Right Node", unsigned, rearRightID_, 0, AM_DEFAULT | AM_NODEID);
|
|
|
}
|
|
|
|
|
|
void Vehicle::ApplyAttributes()
|