aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/sh_remote_functions_mp_custom.gnut
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/sh_remote_functions_mp_custom.gnut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/sh_remote_functions_mp_custom.gnut20
1 files changed, 20 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_remote_functions_mp_custom.gnut b/Northstar.CustomServers/mod/scripts/vscripts/sh_remote_functions_mp_custom.gnut
new file mode 100644
index 000000000..c1e49e765
--- /dev/null
+++ b/Northstar.CustomServers/mod/scripts/vscripts/sh_remote_functions_mp_custom.gnut
@@ -0,0 +1,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 )
+} \ No newline at end of file