Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Resources/Engine/Lua/Scene/Actor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ function Actor:SetTag(tag) end
---@return integer
function Actor:GetID() end

--- Returns the GUID of this actor as a hexadecimal string
---@return string
function Actor:GetGUID() end

--- Returns children of this actor
---@return Actor[]
function Actor:GetChildren() end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <filesystem>
#include <format>

#include <sol/sol.hpp>

Expand Down Expand Up @@ -40,6 +41,7 @@ void BindLuaActor(sol::state& p_luaState)
"GetChildren", &Actor::GetChildren,
"SetTag", &Actor::SetTag,
"GetID", &Actor::GetID,
"GetGUID", [](Actor& p_actor) { return std::format("{:016X}", p_actor.GetGUID()); },
"GetParent", &Actor::GetParent,
"SetParent", &Actor::SetParent,
"DetachFromParent", &Actor::DetachFromParent,
Expand Down