Browse Source

Add transform printing to lua

master
Riyyi 4 years ago
parent
commit
5d11432573
  1. 1
      inferno/src/inferno/script/registration.cpp

1
inferno/src/inferno/script/registration.cpp

@ -89,6 +89,7 @@ namespace Inferno {
transformComponent["rotate"] = &TransformComponent::rotate; transformComponent["rotate"] = &TransformComponent::rotate;
transformComponent["scale"] = &TransformComponent::scale; transformComponent["scale"] = &TransformComponent::scale;
transformComponent["transform"] = &TransformComponent::transform; transformComponent["transform"] = &TransformComponent::transform;
transformComponent["__tostring"] = &string<TransformComponent>;
auto cameraType = state.new_enum("CameraType", auto cameraType = state.new_enum("CameraType",
"Orthographic", CameraType::Orthographic, "Orthographic", CameraType::Orthographic,

Loading…
Cancel
Save