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