mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-09 17:08:06 +00:00
moving platform work
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
#ifndef __EMOVEMENTPLATFORMSTATE__H__
|
||||
#define __EMOVEMENTPLATFORMSTATE__H__
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
/**
|
||||
* The different types of platform movement state
|
||||
*/
|
||||
enum class eMovementPlatformState : uint32_t
|
||||
{
|
||||
Waiting = 1 << 0U,
|
||||
Travelling = 1 << 1U,
|
||||
Stopped = 1 << 2U,
|
||||
ReachedDesiredWaypoint = 1 << 3U,
|
||||
ReachedFinalWaypoint = 1 << 4U,
|
||||
};
|
||||
|
||||
inline constexpr eMovementPlatformState operator|(eMovementPlatformState a, eMovementPlatformState b) {
|
||||
return static_cast<eMovementPlatformState>(
|
||||
static_cast<std::underlying_type<eMovementPlatformState>::type>(a) |
|
||||
static_cast<std::underlying_type<eMovementPlatformState>::type>(b));
|
||||
};
|
||||
|
||||
#endif //!__EMOVEMENTPLATFORMSTATE__H__
|
Reference in New Issue
Block a user