Files
gregCore/examples/Python/example_mod/main.py
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

18 lines
457 B
Python

def on_init():
greg.log_info("Python Example Mod initialized!")
greg.show_notification("Python Mod Active")
def on_update(dt):
# dt is deltaTime
pass
def on_event(event_id, data):
if event_id == 100: # MoneyChanged
greg.log_info("Money changed! Current: " + str(greg.get_player_money()))
def on_scene_loaded(name):
greg.log_info("Entered scene: " + name)
def on_shutdown():
greg.log_info("Python Mod shutting down.")