feat: move Lua scripts to Script/lua and add binary UE bundle packing

This commit is contained in:
szy73711 committed 2026-11-29 00:18:13 +08:00
1 parent 256a60ac80
commit ebce41f347
41 files changed
+1545 -57

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
---@class Framework.Log
local Log = {}
local TAG = "[UnrealLuaDemo]"
local function FormatMessage(level, fmt, ...)
local ok, msg = pcall(string.format, tostring(fmt), ...)
if not ok then
msg = tostring(fmt)
end
return string.format("%s[%s] %s", TAG, level, msg)
end
function Log.Info(fmt, ...)
print(FormatMessage("INFO", fmt, ...))
end
function Log.Warn(fmt, ...)
print(FormatMessage("WARN", fmt, ...))
end
function Log.Error(fmt, ...)
print(FormatMessage("ERROR", fmt, ...))
end
return Log