Started editor .Net context for undo/redo system

This commit is contained in:
Antoine Pilote
2024-08-25 22:42:07 -04:00
parent 03231e6bf7
commit 9a30925b34
18 changed files with 531 additions and 28 deletions

View File

@@ -277,6 +277,18 @@ namespace Nuake {
}
}
float LightGetIntensity(int entityId)
{
Logger::Log("Get light intensity with id: " + std::to_string(entityId));
return -10.0f;
}
void LightSetIntensity(int entityId, float intensity)
{
Logger::Log("Set light intensity with id: " + std::to_string(intensity));
}
Coral::Array<float> CameraGetDirection(int entityId)
{
Entity entity = { (entt::entity)(entityId), Engine::GetCurrentScene().get() };
@@ -402,6 +414,10 @@ namespace Nuake {
RegisterMethod("TransformComponent.GetGlobalPositionIcall", &TransformGetGlobalPosition);
RegisterMethod("TransformComponent.RotateIcall", &TransformRotate);
// Lights
RegisterMethod("LightComponent.GetLightIntensityIcall", &LightGetIntensity);
RegisterMethod("LightComponent.SetLightIntensityIcall", &LightSetIntensity);
// Camera
RegisterMethod("CameraComponent.GetDirectionIcall", &CameraGetDirection);