mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-20 09:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,62 @@
|
||||
package
|
||||
{
|
||||
import avatar.AvatarManager;
|
||||
import gui.GuiManager;
|
||||
import loader.DefPacksDefHelper;
|
||||
import localization.LocalizationManager;
|
||||
import room.RoomXtCommManager;
|
||||
|
||||
public class LocalizationXtCommManager
|
||||
{
|
||||
|
||||
public function LocalizationXtCommManager()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function onLocalizationShardResponse(param1:String) : void
|
||||
{
|
||||
var _loc3_:Array = null;
|
||||
var _loc2_:int = 0;
|
||||
var _loc4_:int = 0;
|
||||
var _loc6_:Array = param1.split(",");
|
||||
var _loc8_:int = 0;
|
||||
var _loc7_:Array = _loc6_;
|
||||
for each(var _loc5_:String in _loc7_)
|
||||
{
|
||||
_loc3_ = _loc5_.split(":");
|
||||
_loc2_ = int(_loc3_[0]);
|
||||
_loc4_ = int(_loc3_[1]);
|
||||
requestLocalizationPack(_loc4_);
|
||||
}
|
||||
}
|
||||
|
||||
public static function requestLocalizationPack(param1:int) : void
|
||||
{
|
||||
var _loc2_:DefPacksDefHelper = new DefPacksDefHelper();
|
||||
LocalizationManager.currentLanguage = param1;
|
||||
LocalizationManager.hasLocalizations = false;
|
||||
RoomXtCommManager.waitForLangPack = true;
|
||||
AvatarManager.waitForLangPack = true;
|
||||
_loc2_.init(uint("1023" + param1),onLocalizationListResponse,RoomXtCommManager.startRoomLoadIfReady,2);
|
||||
DefPacksDefHelper.mediaArray["1023" + param1] = _loc2_;
|
||||
}
|
||||
|
||||
public static function onLocalizationListResponse(param1:DefPacksDefHelper) : void
|
||||
{
|
||||
DefPacksDefHelper.mediaArray["1023." + LocalizationManager.currentLanguage] = null;
|
||||
LocalizationManager.setLocalizations(param1.def,GuiManager.mainHud != null ? GuiManager.rebuildMainHud : null);
|
||||
if(param1.passback)
|
||||
{
|
||||
param1.passback();
|
||||
}
|
||||
}
|
||||
|
||||
public static function onPreferredLocalizationListResponse(param1:DefPacksDefHelper) : void
|
||||
{
|
||||
DefPacksDefHelper.mediaArray["1055." + LocalizationManager.accountLanguage] = null;
|
||||
LocalizationManager.setPreferredLocalizations(param1.def);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user