diff options
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut index b535f327..7f102f6e 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut @@ -10,15 +10,15 @@ global struct ClServer_MessageStruct { } struct { - array< ClServer_MessageStruct functionref( ClServer_MessageStruct ) > OnRecievedSayTextMessageCallbacks + array< ClServer_MessageStruct functionref( ClServer_MessageStruct ) > OnReceivedSayTextMessageCallbacks } NsCustomCallbacks void function CServerGameDLL_ProcessMessageStartThread() { - thread CServerGameDLL_OnRecievedSayTextMessageCallback() + thread CServerGameDLL_OnReceivedSayTextMessageCallback() } -void function CServerGameDLL_OnRecievedSayTextMessageCallback() +void function CServerGameDLL_OnReceivedSayTextMessageCallback() { ClServer_MessageStruct localMessage localMessage.message = NSChatGetCurrentMessage() @@ -26,7 +26,7 @@ void function CServerGameDLL_OnRecievedSayTextMessageCallback() localMessage.channelId = NSChatGetCurrentChannel() localMessage.shouldBlock = false - foreach ( callbackFunc in NsCustomCallbacks.OnRecievedSayTextMessageCallbacks ) + foreach ( callbackFunc in NsCustomCallbacks.OnReceivedSayTextMessageCallbacks ) { ClServer_MessageStruct returnStruct = callbackFunc(localMessage) localMessage.message = returnStruct.message @@ -38,7 +38,7 @@ void function CServerGameDLL_OnRecievedSayTextMessageCallback() NSSetMessage(localMessage.message, localMessage.player.GetPlayerIndex(), localMessage.channelId, localMessage.shouldBlock) } -void function AddCallback_OnRecievedSayTextMessage( ClServer_MessageStruct functionref (ClServer_MessageStruct) callbackFunc ) +void function AddCallback_OnReceivedSayTextMessage( ClServer_MessageStruct functionref (ClServer_MessageStruct) callbackFunc ) { - NsCustomCallbacks.OnRecievedSayTextMessageCallbacks.append(callbackFunc) + NsCustomCallbacks.OnReceivedSayTextMessageCallbacks.append(callbackFunc) }
\ No newline at end of file |