Files
CypherCore/Source/Framework/Constants/Movement/MovementConst.cs
T

87 lines
2.7 KiB
C#

/*
* Copyright (C) 2012-2020 CypherCore <http://github.com/CypherCore>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Framework.Constants
{
public enum MovementSlot
{
Idle,
Active,
Controlled,
Max
}
public enum MovementGeneratorType
{
Idle = 0, // IdleMovement
Random = 1, // RandomMovement
Waypoint = 2, // WaypointMovement
MaxDB = 3, // *** this and below motion types can't be set in DB.
Confused = 4, // ConfusedMovementGenerator
Chase = 5, // TargetedMovementGenerator
Home = 6, // HomeMovementGenerator
Flight = 7, // WaypointMovementGenerator
Point = 8, // PointMovementGenerator
Fleeing = 9, // FleeingMovementGenerator
Distract = 10, // IdleMovementGenerator
Assistance = 11, // PointMovementGenerator
AssistanceDistract = 12, // IdleMovementGenerator
TimedFleeing = 13, // FleeingMovementGenerator
Follow = 14,
Rotate = 15,
Effect = 16,
SplineChain = 17, // SplineChainMovementGenerator
Formation = 18, // FormationMovementGenerator
Max
}
public struct EventId
{
public const uint Charge = 1003;
public const uint Jump = 1004;
/// Special charge event which is used for charge spells that have explicit targets
/// and had a path already generated - using it in PointMovementGenerator will not
/// create a new spline and launch it
public const uint ChargePrepath = 1005;
public const uint SmartRandomPoint = 0xFFFFFE;
public const uint SmartEscortLastOCCPoint = 0xFFFFFF;
}
public enum AnimType
{
ToGround = 0, // 460 = ToGround, index of AnimationData.dbc
FlyToFly = 1, // 461 = FlyToFly?
ToFly = 2, // 458 = ToFly
FlyToGround = 3 // 463 = FlyToGround
}
public enum RotateDirection
{
Left,
Right
}
public enum UpdateCollisionHeightReason
{
Scale = 0,
Mount = 1,
Force = 2
}
}