Files
gregCore/examples/Lua/example_mod/main.lua
T
Marvin 84b6f56a50 chore: add DataCenter-RustBridge submodule
Initialize the DataCenter-RustBridge submodule to integrate the Rust bridge plugin for the DataCenter project. This enables using the external Rust-based components as a git submodule.
2026-04-20 14:48:52 +02:00

28 lines
611 B
Lua

-- gregCore Lua Example Mod
function on_init()
greg.log_info("Lua Example Mod geladen!")
greg.show_notification("Lua Mod Initialisiert")
-- Event abonnieren
greg.subscribe_event(100, function(data)
greg.log_info("Geld hat sich geändert! Neuer Stand: " .. greg.get_player_money())
end)
end
function on_update(dt)
-- Wird jeden Frame aufgerufen
end
function on_event(event_id, data)
-- Generischer Event-Handler
end
function on_scene_loaded(name)
greg.log_info("Szene geladen: " .. name)
end
function on_shutdown()
greg.log_info("Lua Mod wird beendet.")
end