-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
116 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "RenderComponent.hpp" | ||
|
||
|
||
namespace Fyrion | ||
{ | ||
void RenderComponent::RegisterType(NativeTypeHandler<RenderComponent>& type) | ||
{ | ||
|
||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
#include "Fyrion/Scene/Component.hpp" | ||
|
||
|
||
namespace Fyrion | ||
{ | ||
class FY_API RenderComponent : public Component | ||
{ | ||
public: | ||
static void RegisterType(NativeTypeHandler<RenderComponent>& type); | ||
private: | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
Engine/Source/Fyrion/Scene/Components/TransformComponent.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "TransformComponent.hpp" | ||
|
||
#include "Fyrion/Scene/SceneObject.hpp" | ||
|
||
namespace Fyrion | ||
{ | ||
void TransformComponent::NotifyTransformChange() const | ||
{ | ||
if (object) | ||
{ | ||
object->Notify(TransformChanged); | ||
} | ||
} | ||
|
||
void TransformComponent::OnNotify(i64 type) | ||
{ | ||
Component::OnNotify(type); | ||
} | ||
|
||
void TransformComponent::RegisterType(NativeTypeHandler<TransformComponent>& type) | ||
{ | ||
type.Field<&TransformComponent::m_position, &TransformComponent::GetPosition, &TransformComponent::SetPosition>("position"); | ||
type.Field<&TransformComponent::m_rotation, &TransformComponent::GetRotation, &TransformComponent::SetRotation>("rotation"); | ||
type.Field<&TransformComponent::m_scale, &TransformComponent::GetScale, &TransformComponent::SetScale>("scale"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.