aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/scripts/vscripts/sh_remote_functions_mp_custom.gnut
blob: c1e49e76543e1b78b7ab75c72930b75020471c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
untyped
global function InitCustomNetworkVars
global function AddCallback_OnRegisteringCustomNetworkVars

struct {
	array<void functionref()> onRegisteringCustomNetworkVarsCallbacks
} file

void function InitCustomNetworkVars()
{
	print( "InitCustomNetworkVars" )

	foreach ( void functionref() callback in file.onRegisteringCustomNetworkVarsCallbacks )
		callback()
}

void function AddCallback_OnRegisteringCustomNetworkVars( void functionref() callback )
{
	file.onRegisteringCustomNetworkVarsCallbacks.append( callback )
}