mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
resolve comments
This commit is contained in:
parent
9169d844e2
commit
813aca9d20
@ -18,15 +18,15 @@ SimplePhysicsComponent::SimplePhysicsComponent(uint32_t componentID, Entity* par
|
||||
m_Rotation = m_Parent->GetDefaultRotation();
|
||||
m_IsDirty = true;
|
||||
|
||||
std::u16string climbable_type = m_Parent->GetVar<std::u16string>(u"climbable");
|
||||
const auto& climbable_type = m_Parent->GetVar<std::u16string>(u"climbable");
|
||||
if (climbable_type == u"wall") {
|
||||
SetClimbableType(CLIMBABLE_TYPE_WALL);
|
||||
SetClimbableType(eClimbableType::CLIMBABLE_TYPE_WALL);
|
||||
} else if (climbable_type == u"ladder") {
|
||||
SetClimbableType(CLIMBABLE_TYPE_LADDER);
|
||||
SetClimbableType(eClimbableType::CLIMBABLE_TYPE_LADDER);
|
||||
} else if (climbable_type == u"wallstick") {
|
||||
SetClimbableType(CLIMBABLE_TYPE_WALL_STICK);
|
||||
SetClimbableType(eClimbableType::CLIMBABLE_TYPE_WALL_STICK);
|
||||
} else {
|
||||
SetClimbableType(CLIMBABLE_TYPE_NOT);
|
||||
SetClimbableType(eClimbableType::CLIMBABLE_TYPE_NOT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
class Entity;
|
||||
|
||||
enum eClimbableType : int32_t {
|
||||
enum class eClimbableType : int32_t {
|
||||
CLIMBABLE_TYPE_NOT = 0,
|
||||
CLIMBABLE_TYPE_LADDER,
|
||||
CLIMBABLE_TYPE_WALL,
|
||||
@ -146,7 +146,7 @@ private:
|
||||
/**
|
||||
* Whether or not the entity is climbable
|
||||
*/
|
||||
eClimbableType m_ClimbableType = CLIMBABLE_TYPE_NOT;
|
||||
eClimbableType m_ClimbableType = eClimbableType::CLIMBABLE_TYPE_NOT;
|
||||
};
|
||||
|
||||
#endif // SIMPLEPHYSICSCOMPONENT_H
|
||||
|
Loading…
Reference in New Issue
Block a user