From 207facbc402f5639cbcd31f079214351ef605cf2 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Tue, 22 Jun 2021 14:30:49 +0100 Subject: initial commit after moving to new repo --- .../vscripts/gamemodes/sh_gamemodes_custom.gnut | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Northstar.CustomServers/scripts/vscripts/gamemodes/sh_gamemodes_custom.gnut (limited to 'Northstar.CustomServers/scripts/vscripts/gamemodes/sh_gamemodes_custom.gnut') diff --git a/Northstar.CustomServers/scripts/vscripts/gamemodes/sh_gamemodes_custom.gnut b/Northstar.CustomServers/scripts/vscripts/gamemodes/sh_gamemodes_custom.gnut new file mode 100644 index 000000000..51f8bf9e3 --- /dev/null +++ b/Northstar.CustomServers/scripts/vscripts/gamemodes/sh_gamemodes_custom.gnut @@ -0,0 +1,20 @@ +untyped +global function InitCustomGamemodes +global function AddCallback_OnCustomGamemodesInit + +struct { + array onCustomGamemodesInitCallbacks +} file + +void function InitCustomGamemodes() +{ + print( "InitCustomGamemodes" ) + + foreach ( void functionref() callback in file.onCustomGamemodesInitCallbacks ) + callback() +} + +void function AddCallback_OnCustomGamemodesInit( void functionref() callback ) +{ + file.onCustomGamemodesInitCallbacks.append( callback ) +} \ No newline at end of file -- cgit v1.2.3