mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
* Feature: Implement a TurretObjectType bit for typemasks.
This commit is contained in:
parent
e0e3ebc69d
commit
227b1e3f51
|
|
@ -668,6 +668,7 @@ static void RegisterGameFunctions()
|
|||
// PATHSHAPE
|
||||
Con::setIntVariable("$TypeMasks::PathShapeObjectType", PathShapeObjectType);
|
||||
// PATHSHAPE END
|
||||
Con::setIntVariable("$TypeMasks::TurretObjectType", TurretObjectType);
|
||||
|
||||
Con::addVariable("Ease::InOut", TypeS32, &gEaseInOut,
|
||||
"InOut ease for curve movement.\n"
|
||||
|
|
|
|||
|
|
@ -167,6 +167,10 @@ enum SceneObjectTypes
|
|||
PathShapeObjectType = BIT( 28 ),
|
||||
// PATHSHAPE END
|
||||
|
||||
/// A turret object.
|
||||
/// @see TurretShape
|
||||
TurretObjectType = BIT(29),
|
||||
|
||||
/// @}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ ConsoleDocClass( TurretShape,
|
|||
|
||||
TurretShape::TurretShape()
|
||||
{
|
||||
mTypeMask |= VehicleObjectType | DynamicShapeObjectType;
|
||||
mTypeMask |= VehicleObjectType | DynamicShapeObjectType | TurretObjectType;
|
||||
mDataBlock = 0;
|
||||
|
||||
allowManualRotation = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue