4#include "World/Components/NativeScriptComponent.h"
5#include "World/Components/TransformComponent.h"
32 void MousePan(
const glm::vec2& delta);
36 std::pair<
float,
float>
PanSpeed()
const;
#define SPICES_PROFILE_ZONE
virtual void OnPreActivate() override
This interface define the specific world behave before on activated.
virtual void OnDeactivate() override
This interface defines the specific world behave after on activated.
virtual void OnActivate(TimeStep &ts) override
This interface define the specific world behave on activated.
EditorWorld Class. This class defines the specific behave of EditorWorld.
T & AddComponent(Args &&... args)
Template Function. Used for add specific component to entity.
T & GetComponent() const
Get Component owned by this entity.
void RemoveComponent() const
Remove Component owned from this entity.
Entity()=default
Constructor Function.
void AddToRoot()
Add a entity to this world root.
World * m_World
A specific world Pointer.
const UUID GetUUID()
Get UUID form UUIDComponent.
Entity(entt::entity handle, World *world)
Constructor Function. Init class variable. Usually call it.
void RemoveFromRoot()
Remove a entity from this world root.
operator bool() const
Empty Operation.
virtual ~Entity()=default
Destructor Function.
bool HasComponent() const
If Component is owned by this entity or not.
operator uint32_t() const
Empty Operation.
Entity Class. This class defines the specific behaves of Entity.
This Class is the basic Event Class. Inherit from it and create specific event class.
Wrapper of Gltf file data.
This Class is inherited from KeyEvent Class.
void MouseZoom(float delta)
bool OnKeyPressed(KeyPressedEvent &e)
glm::vec3 GetForwardDirection() const
glm::vec3 GetRightDirection() const
glm::vec2 m_InitialMousePosition
virtual void OnEvent(Event &e) override
This interface defines the behaves on specific component event happened.
virtual void OnTick(TimeStep &ts) override
This interface defines the behaves on specific component tick every frame.
float RotationSpeed() const
virtual void OnSerialize() override
This interface defines how to serialize.
virtual void OnDeSerialize() override
This interface defines how to deserialize.
std::pair< float, float > PanSpeed() const
virtual ~MeshController() override=default
void MouseRotate(const glm::vec2 &delta) const
std::any m_CameraTranComp
glm::vec3 CalculatePosition() const
virtual void OnConstruction() override
This interface defines the behaves on specific component added.
glm::quat GetOrientation() const
void MousePan(const glm::vec2 &delta)
glm::vec3 GetUpDirection() const
NativeScriptComponent Class. This class defines the specific behaves of NativeScriptComponent....
This Class handles our engine time step during frames. Global Unique.
UUIDComponent Class. This class defines the specific behaves of UUIDComponent.
This class helps to generate a uuid for one resource.
virtual void OnDeactivate() override
This interface defines the specific world behave after on activated.
virtual void OnActivate(TimeStep &ts) override
This interface define the specific world behave on activated.
virtual void OnPreActivate() override
This interface define the specific world behave before on activated.
void RemoveFromRoot(Entity &entity)
Remove a entity from this world root.
void AddToRoot(Entity &entity)
Add a entity to this world root.
World Class. This class defines the basic behaves of World. When we create an new world,...