Handle network events for GPS blip & locale
This commit is contained in:
@@ -92,9 +92,11 @@ function addAllNetworkHandlers() {
|
|||||||
// House
|
// House
|
||||||
addNetworkEventHandler("vrr.house", receiveHouseFromServer);
|
addNetworkEventHandler("vrr.house", receiveHouseFromServer);
|
||||||
|
|
||||||
|
// GPS
|
||||||
|
addNetworkEventHandler("vrr.showGPSBlip", showGPSLocation);
|
||||||
|
|
||||||
// Locale
|
// Locale
|
||||||
addNetworkEventHandler("vrr.localeString", receiveLocaleStringFromServer);
|
addNetworkEventHandler("vrr.locale", setLocale);
|
||||||
addNetworkEventHandler("vrr.localeStrings", receiveLocaleStringsFromServer);
|
|
||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
addNetworkEventHandler("vrr.mouseCursor", toggleMouseCursor);
|
addNetworkEventHandler("vrr.mouseCursor", toggleMouseCursor);
|
||||||
@@ -375,3 +377,9 @@ function serverRequestedLocalPlayerSpawn(skinId, position) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
function sendLocaleSelectToServer(localeId) {
|
||||||
|
sendNetworkEventToServer("vrr.localeSelect", localeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user