aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/sh_gamemodes_custom.gnut
blob: 51f8bf9e387f99256ab81f25fc20db8df3706395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
untyped
global function InitCustomGamemodes
global function AddCallback_OnCustomGamemodesInit

struct {
	array<void functionref()> 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 )
}