Handle network events for GPS blip & locale

This commit is contained in:
Vortrex
2022-05-15 04:17:49 -05:00
parent 0bfcb899ee
commit b8be64cdf8

View File

@@ -92,9 +92,11 @@ function addAllNetworkHandlers() {
// House
addNetworkEventHandler("vrr.house", receiveHouseFromServer);
// GPS
addNetworkEventHandler("vrr.showGPSBlip", showGPSLocation);
// Locale
addNetworkEventHandler("vrr.localeString", receiveLocaleStringFromServer);
addNetworkEventHandler("vrr.localeStrings", receiveLocaleStringsFromServer);
addNetworkEventHandler("vrr.locale", setLocale);
// Misc
addNetworkEventHandler("vrr.mouseCursor", toggleMouseCursor);
@@ -374,4 +376,10 @@ function serverRequestedLocalPlayerSpawn(skinId, position) {
}
}
// ===========================================================================
function sendLocaleSelectToServer(localeId) {
sendNetworkEventToServer("vrr.localeSelect", localeId);
}
// ===========================================================================