code
stringlengths 57
237k
|
|---|
package alternativa.tanks.view.icons {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.view.icons.BattleParamsBattleInfoIcons_ultimatesClass.png")]
public class BattleParamsBattleInfoIcons_ultimatesClass extends BitmapAsset {
public function BattleParamsBattleInfoIcons_ultimatesClass() {
super();
}
}
}
|
package alternativa.tanks.models.tank {
import alternativa.tanks.battle.objects.tank.WeaponMount;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class WeaponMountProviderAdapt implements WeaponMountProvider {
private var object:IGameObject;
private var impl:WeaponMountProvider;
public function WeaponMountProviderAdapt(param1:IGameObject, param2:WeaponMountProvider) {
super();
this.object = param1;
this.impl = param2;
}
public function createWeaponMount(param1:IGameObject) : WeaponMount {
var result:WeaponMount = null;
var tankObject:IGameObject = param1;
try {
Model.object = this.object;
result = this.impl.createWeaponMount(tankObject);
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package projects.tanks.client.battleservice.model.types {
public class BattleSuspicionLevel {
public static const NONE:BattleSuspicionLevel = new BattleSuspicionLevel(0,"NONE");
public static const LOW:BattleSuspicionLevel = new BattleSuspicionLevel(1,"LOW");
public static const HIGH:BattleSuspicionLevel = new BattleSuspicionLevel(2,"HIGH");
private var _value:int;
private var _name:String;
public function BattleSuspicionLevel(param1:int, param2:String) {
super();
this._value = param1;
this._name = param2;
}
public static function get values() : Vector.<BattleSuspicionLevel> {
var local1:Vector.<BattleSuspicionLevel> = new Vector.<BattleSuspicionLevel>();
local1.push(NONE);
local1.push(LOW);
local1.push(HIGH);
return local1;
}
public function toString() : String {
return "BattleSuspicionLevel [" + this._name + "]";
}
public function get value() : int {
return this._value;
}
public function get name() : String {
return this._name;
}
}
}
|
package alternativa.tanks.models.battle.gui.inventory.splash {
import flash.display.DisplayObject;
import flash.geom.ColorTransform;
import flash.utils.getTimer;
public class SplashController implements ISplashController {
public static const SPLASH_SHOW_DURATION:uint = 100;
public static const SPLASH_FADE_DURATION:uint = 250;
private var _splashState:int;
private var _colorTransform:ColorTransform;
private var _splashStartTime:int;
private var _splashObject:DisplayObject;
private var _finishShowStateCallback:Function;
private var _splashColor:uint;
public function SplashController(param1:DisplayObject) {
super();
this._splashObject = param1;
this.init();
}
private function init() : void {
this._splashState = SplashState.DONE;
this._colorTransform = new ColorTransform();
}
public function startFlash(param1:uint, param2:Function = null) : void {
this.stopFlash();
this._finishShowStateCallback = param2;
this._splashColor = param1;
this._splashStartTime = getTimer();
this._splashState = SplashState.SHOW;
}
public function stopFlash() : void {
if(this._splashState != SplashState.DONE) {
this._splashState = SplashState.DONE;
this.interpolate(this._splashColor,0);
}
}
public function update(param1:int) : void {
if(this._splashState == SplashState.DONE) {
return;
}
switch(this._splashState) {
case SplashState.SHOW:
if(param1 < this._splashStartTime + SPLASH_SHOW_DURATION) {
this.interpolate(this._splashColor,(param1 - this._splashStartTime) / SPLASH_SHOW_DURATION);
} else {
this.interpolate(this._splashColor,1);
this._splashStartTime += SPLASH_SHOW_DURATION + SPLASH_FADE_DURATION;
this._splashState = SplashState.FADE;
if(this._finishShowStateCallback != null) {
this._finishShowStateCallback.apply();
this._finishShowStateCallback = null;
}
}
break;
case SplashState.FADE:
if(param1 < this._splashStartTime) {
this.interpolate(this._splashColor,(this._splashStartTime - param1) / SPLASH_FADE_DURATION);
} else {
this.stopFlash();
}
}
}
private function interpolate(param1:uint, param2:Number) : void {
this._colorTransform.redMultiplier = 1 - param2;
this._colorTransform.greenMultiplier = 1 - param2;
this._colorTransform.blueMultiplier = 1 - param2;
this._colorTransform.alphaMultiplier = 1 - param2;
this._colorTransform.redOffset = (param1 >> 24 & 0xFF) * param2;
this._colorTransform.greenOffset = (param1 >> 16 & 0xFF) * param2;
this._colorTransform.blueOffset = (param1 >> 8 & 0xFF) * param2;
this._colorTransform.alphaOffset = (param1 & 0xFF) * param2;
this._splashObject.transform.colorTransform = this._colorTransform;
}
}
}
|
package projects.tanks.client.clans.clan.outgoing {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
import projects.tanks.client.clans.container.ContainerCC;
public class ClanOutgoingModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:ClanOutgoingModelServer;
private var client:IClanOutgoingModelBase = IClanOutgoingModelBase(this);
private var modelId:Long = Long.getLong(1408324582,-1932105818);
private var _onAddingId:Long = Long.getLong(340356364,-824818575);
private var _onAdding_userIdCodec:ICodec;
private var _onRemovedId:Long = Long.getLong(1961112713,-2039360050);
private var _onRemoved_userIdCodec:ICodec;
public function ClanOutgoingModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new ClanOutgoingModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(ContainerCC,false)));
this._onAdding_userIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false));
this._onRemoved_userIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false));
}
protected function getInitParam() : ContainerCC {
return ContainerCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._onAddingId:
this.client.onAdding(Long(this._onAdding_userIdCodec.decode(param2)));
break;
case this._onRemovedId:
this.client.onRemoved(Long(this._onRemoved_userIdCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package _codec.projects.tanks.client.commons.models.runtime {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import projects.tanks.client.commons.models.runtime.DataOwnerCC;
public class CodecDataOwnerCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_dataOwnerId:ICodec;
public function CodecDataOwnerCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_dataOwnerId = param1.getCodec(new TypeCodecInfo(Long,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:DataOwnerCC = new DataOwnerCC();
local2.dataOwnerId = this.codec_dataOwnerId.decode(param1) as Long;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:DataOwnerCC = DataOwnerCC(param2);
this.codec_dataOwnerId.encode(param1,local3.dataOwnerId);
}
}
}
|
package alternativa.network.handler
{
import alternativa.init.Main;
import alternativa.network.ICommandHandler;
import alternativa.network.ICommandSender;
import alternativa.object.ClientObject;
import alternativa.osgi.service.network.INetworkService;
import alternativa.protocol.codec.NullMap;
import alternativa.register.ClientClass;
import alternativa.register.ObjectRegister;
import alternativa.register.SpaceInfo;
import alternativa.service.IModelService;
import alternativa.service.ISpaceService;
import flash.events.TimerEvent;
import flash.utils.ByteArray;
import flash.utils.IDataInput;
import flash.utils.Timer;
public class SpaceCommandHandler implements ICommandHandler
{
private static const CHANNEL:String = "SPACECMD";
private var sender:ICommandSender;
private var hashCode:ByteArray;
private var librariesPath:String;
private var modelRegister:IModelService;
private var _objectRegister:ObjectRegister;
private var pingTimer:Timer;
private const pingDelay:int = 60000;
public function SpaceCommandHandler(hashCode:ByteArray)
{
super();
this.hashCode = hashCode;
this.modelRegister = IModelService(Main.osgi.getService(IModelService));
this.librariesPath = INetworkService(Main.osgi.getService(INetworkService)).resourcesPath;
this._objectRegister = new ObjectRegister(this);
var models:Vector.<String> = new Vector.<String>();
models.push("");
var rootObjectClass:ClientClass = new ClientClass("",null,"rootObjectClass",models);
}
public function open() : void
{
if(this.sender != null)
{
this.sender.sendCommand(Object(this.hashCode),false);
this.pingTimer = new Timer(this.pingDelay,int.MAX_VALUE);
this.pingTimer.addEventListener(TimerEvent.TIMER,this.ping);
this.pingTimer.start();
}
}
private function ping(e:TimerEvent) : void
{
if(this.sender != null)
{
this.sender.sendCommand(0,false);
}
}
public function close() : void
{
var object:ClientObject = null;
var s:SpaceInfo = null;
Main.writeVarsToConsoleChannel(CHANNEL,"SPACE CLOSED: sender id=%1",this.sender.id);
if(this.pingTimer != null)
{
this.pingTimer.stop();
this.pingTimer.removeEventListener(TimerEvent.TIMER,this.ping);
this.pingTimer = null;
}
while(this._objectRegister.objectsList.length > 0)
{
object = ClientObject(this._objectRegister.objectsList[0]);
}
var spaceService:ISpaceService = ISpaceService(Main.osgi.getService(ISpaceService));
var spaces:Array = spaceService.spaceList;
for(var i:int = 0; i < spaces.length; i++)
{
s = SpaceInfo(spaces[i]);
if(s.objectRegister == this._objectRegister)
{
spaceService.removeSpace(s);
}
}
this._objectRegister = null;
this.sender = null;
}
public function disconnect(errorMessage:String) : void
{
Main.writeVarsToConsoleChannel(CHANNEL,"SPACE DISCONNECT");
if(this._objectRegister != null)
{
this.close();
}
}
public function executeCommand(command:Object) : void
{
var data:IDataInput = IDataInput(command[0]);
var nullMap:NullMap = NullMap(command[1]);
}
public function get commandSender() : ICommandSender
{
return this.sender;
}
public function set commandSender(sender:ICommandSender) : void
{
this.sender = sender;
}
public function get objectRegister() : ObjectRegister
{
return this._objectRegister;
}
}
}
|
package projects.tanks.clients.flash.commons.services.timeunit {
public class TimeUnitNames {
public var dayName:String;
public var hourName:String;
public var minuteName:String;
public function TimeUnitNames() {
super();
}
}
}
|
package projects.tanks.client.battlefield.models.tankparts.sfx.shoot.thunder {
import alternativa.osgi.OSGi;
import alternativa.protocol.IProtocol;
import alternativa.protocol.OptionalMap;
import alternativa.protocol.ProtocolBuffer;
import flash.utils.ByteArray;
import platform.client.fp10.core.model.IModel;
public class ThunderShootSFXModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function ThunderShootSFXModelServer(param1:IModel) {
super();
this.model = param1;
var local2:ByteArray = new ByteArray();
this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol));
this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap());
}
}
}
|
package alternativa.tanks.model.quest.challenge.gui {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.model.quest.challenge.gui.TierRenderer_pickedBgClass.png")]
public class TierRenderer_pickedBgClass extends BitmapAsset {
public function TierRenderer_pickedBgClass() {
super();
}
}
}
|
package alternativa.tanks.battle {
public interface LogicUnit {
function runLogic(param1:int, param2:int) : void;
}
}
|
package alternativa.tanks.model
{
import alternativa.console.IConsole;
import alternativa.init.BattleSelectModelActivator;
import alternativa.init.Main;
import alternativa.model.IModel;
import alternativa.model.IObjectLoadListener;
import alternativa.model.IResourceLoadListener;
import alternativa.object.ClientObject;
import alternativa.osgi.service.alert.IAlertService;
import alternativa.osgi.service.dump.IDumpService;
import alternativa.osgi.service.dump.dumper.IDumper;
import alternativa.osgi.service.loaderParams.ILoaderParamsService;
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.osgi.service.log.ILogService;
import alternativa.osgi.service.log.LogLevel;
import alternativa.osgi.service.mainContainer.IMainContainerService;
import alternativa.osgi.service.storage.IStorageService;
import alternativa.service.IAddressService;
import alternativa.service.IModelService;
import alternativa.tanks.help.CreateMapHelper;
import alternativa.tanks.help.IHelpService;
import alternativa.tanks.help.LockedMapsHelper;
import alternativa.tanks.locale.constants.TextConst;
import alternativa.tanks.model.panel.IPanel;
import alternativa.tanks.model.panel.PanelModel;
import alternativa.types.Long;
import flash.display.BitmapData;
import flash.display.DisplayObjectContainer;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.geom.Point;
import flash.net.SharedObject;
import flash.utils.Dictionary;
import flash.utils.Timer;
import forms.Alert;
import forms.AlertAnswer;
import forms.battlelist.BattleMap;
import forms.battlelist.CreateBattleForm;
import forms.battlelist.ViewBattleList;
import forms.battlelist.ViewDM;
import forms.battlelist.ViewTDM;
import forms.events.AlertEvent;
import forms.events.BattleListEvent;
import projects.tanks.client.battlefield.gui.models.chat.IChatModelBase;
import projects.tanks.client.battleselect.BattleSelectModelBase;
import projects.tanks.client.battleselect.IBattleSelectModelBase;
import projects.tanks.client.battleselect.types.BattleClient;
import projects.tanks.client.battleselect.types.MapClient;
import projects.tanks.client.battleselect.types.UserInfoClient;
import projects.tanks.client.battleservice.model.BattleType;
import projects.tanks.client.battleservice.model.team.BattleTeamType;
import scpacker.gui.GTanksLoaderWindow;
import scpacker.gui.IGTanksLoader;
import scpacker.networking.INetworker;
import scpacker.networking.Network;
import scpacker.resource.ResourceType;
import scpacker.resource.ResourceUtil;
import scpacker.resource.images.ImageResource;
import swfaddress.SWFAddressEvent;
public class BattleSelectModel extends BattleSelectModelBase implements IBattleSelectModelBase, IObjectLoadListener, IResourceLoadListener, IDumper
{
private var modelRegister:IModelService;
private var panelModel:IPanel;
private var helpService:IHelpService;
private var addressService:IAddressService;
private var loaderParamsService:ILoaderParamsService;
private var localeService:ILocaleService;
private var clientObject:ClientObject;
private var layer:DisplayObjectContainer;
private var dialogsLayer:DisplayObjectContainer;
private var battleList:ViewBattleList;
private var createBattleForm:CreateBattleForm;
private var viewDM:ViewDM;
private var viewTDM:ViewTDM;
private var battlesArray:Array;
private var mapsArray:Array;
private var battles:Dictionary;
private var maps:Dictionary;
private var usersInfo:Dictionary;
private const maxBattlesNum:int = 2147483647;
private const HELPER_NOT_AVAILABLE:int = 1;
private const HELPER_CREATE_MAP:int = 5;
private var lockedMapsHelper:LockedMapsHelper;
private var createHelper:CreateMapHelper;
private const HELPER_GROUP_KEY:String = "BattleSelectModel";
private var hideHelperInt:uint;
private var hideHelperDelay:int = 5000;
private var clearURL:Boolean;
private var recommendedBattle:String;
private var paidBattleAlert:Alert;
private var createBattleExpectedResourceId:String;
private var viewBattleExpectedResourceId:String;
public var selectedBattleId:String;
private var battleToSelect:String;
private var translate:Dictionary;
private var locale:String;
private var gameNameBeforeCheck:String;
public function BattleSelectModel()
{
this.translate = new Dictionary();
super();
_interfaces.push(IModel);
_interfaces.push(IBattleSelectModelBase);
_interfaces.push(IObjectLoadListener);
_interfaces.push(IResourceLoadListener);
this.modelRegister = Main.osgi.getService(IModelService) as IModelService;
this.panelModel = Main.osgi.getService(IPanel) as IPanel;
this.helpService = Main.osgi.getService(IHelpService) as IHelpService;
this.addressService = Main.osgi.getService(IAddressService) as IAddressService;
this.loaderParamsService = Main.osgi.getService(ILoaderParamsService) as ILoaderParamsService;
this.localeService = ILocaleService(Main.osgi.getService(ILocaleService));
this.layer = Main.contentUILayer;
this.dialogsLayer = (Main.osgi.getService(IMainContainerService) as IMainContainerService).dialogsLayer as DisplayObjectContainer;
}
public function initObject(clientObject:ClientObject, cost:int, haveSubscribe:Boolean, maps:Array) : void
{
var mapId:String = null;
var m:MapClient = null;
var previewBitmap:BitmapData = null;
var mapParams:BattleMap = null;
Main.writeVarsToConsoleChannel("BATTLE SELECT","initObject");
Main.writeVarsToConsoleChannel("BATTLE SELECT"," maps: %1",maps);
Main.writeVarsToConsoleChannel("BATTLE SELECT"," haveSubscribe: %1",haveSubscribe);
this.translate["Лето"] = "Summer";
this.translate["Зима"] = "Winter";
this.translate["Летний вечер"] = "Summer evening";
this.translate["Зимний вечер"] = "Winter evening";
this.locale = Game.currLocale;
this.clientObject = clientObject;
this.battles = new Dictionary();
this.battlesArray = new Array();
this.maps = new Dictionary();
if(ViewBattleList(Main.osgi.getService(ViewBattleList)) != null)
{
ViewBattleList(Main.osgi.getService(ViewBattleList)).destroy();
}
this.battleList = new ViewBattleList();
Main.osgi.registerService(ViewBattleList,this.battleList);
var haveSubscribe:Boolean = true;
this.createBattleForm = new CreateBattleForm(haveSubscribe);
this.createBattleForm.mapsCombo.addEventListener(Event.CHANGE,this.onMapSelect);
this.createBattleForm.themeCombo.addEventListener(Event.CHANGE,this.onMapSelect);
this.createBattleForm.addEventListener(BattleListEvent.NEW_BATTLE_NAME_ADDED,this.checkBattleName);
if(ViewDM(Main.osgi.getService(ViewDM)) != null)
{
this.viewDM = ViewDM(Main.osgi.getService(ViewDM));
this.viewDM.haveSubscribe = haveSubscribe;
}
else
{
this.viewDM = new ViewDM(haveSubscribe);
Main.osgi.registerService(ViewDM,this.viewDM);
}
if(ViewTDM(Main.osgi.getService(ViewTDM)) != null)
{
this.viewTDM = ViewTDM(Main.osgi.getService(ViewTDM));
this.viewTDM.haveSubscribe = haveSubscribe;
}
else
{
this.viewTDM = new ViewTDM(haveSubscribe);
Main.osgi.registerService(ViewTDM,this.viewTDM);
}
this.mapsArray = maps;
for(var i:int = 0; i < maps.length; i++)
{
mapId = MapClient(maps[i]).id;
this.maps[mapId] = maps[i];
}
var mapsParams:Array = new Array();
for(i = 0; i < this.mapsArray.length; i++)
{
m = MapClient(this.mapsArray[i]);
try
{
previewBitmap = ResourceUtil.getResource(ResourceType.IMAGE,m.previewId).bitmapData as BitmapData;
}
catch(e:Error)
{
previewBitmap = new BitmapData(500,500);
}
mapParams = new BattleMap();
mapParams.id = m.id;
mapParams.gameName = m.name;
mapParams.maxPeople = m.maxPeople;
mapParams.maxRank = m.maxRank;
mapParams.minRank = m.minRank;
mapParams.themeName = this.locale == "RU" ? m.themeName : this.translate[m.themeName];
mapParams.preview = previewBitmap;
mapParams.ctf = m.ctf;
mapParams.tdm = m.tdm;
mapParams.tdm = m.tdm;
mapParams.dom = m.dom;
mapParams.hr = m.hr;
mapsParams.push(mapParams);
}
this.createBattleForm.maps = mapsParams;
if(this.addressService != null)
{
this.addressService.addEventListener(SWFAddressEvent.CHANGE,this.onAddressChange);
}
this.clearURL = true;
this.createHelper = new CreateMapHelper();
this.lockedMapsHelper = new LockedMapsHelper();
this.helpService.registerHelper(this.HELPER_GROUP_KEY,this.HELPER_CREATE_MAP,this.createHelper,true);
this.helpService.registerHelper(this.HELPER_GROUP_KEY,this.HELPER_NOT_AVAILABLE,this.lockedMapsHelper,false);
var minWidth:int = int(Math.max(1000,Main.stage.stageWidth));
var minHeight:int = int(Math.max(600,Main.stage.stageHeight));
this.createHelper.targetPoint = new Point(Math.round(minWidth * (2 / 3)) - 47,minHeight - 34);
Main.stage.addEventListener(Event.RESIZE,this.alignHelpers);
this.alignHelpers();
(BattleSelectModelActivator.osgi.getService(IDumpService) as IDumpService).registerDumper(this);
(Main.osgi.getService(IConsole) as IConsole).addLine("server initObject() end");
}
public function objectLoaded(object:ClientObject) : void
{
}
public function objectUnloaded(object:ClientObject) : void
{
(BattleSelectModelActivator.osgi.getService(IDumpService) as IDumpService).unregisterDumper(this.dumperName);
if(this.addressService != null)
{
this.addressService.removeEventListener(SWFAddressEvent.CHANGE,this.onAddressChange);
if(this.clearURL)
{
this.addressService.setValue("");
}
}
this.hideList();
this.hideInfo();
this.hideCreateForm();
Main.stage.removeEventListener(Event.RESIZE,this.alignHelpers);
this.helpService.hideHelper(this.HELPER_GROUP_KEY,this.HELPER_NOT_AVAILABLE);
this.helpService.unregisterHelper(this.HELPER_GROUP_KEY,this.HELPER_NOT_AVAILABLE);
this.helpService.unregisterHelper(this.HELPER_GROUP_KEY,this.HELPER_CREATE_MAP);
this.lockedMapsHelper = null;
this.createHelper = null;
this.battleList = null;
this.createBattleForm = null;
this.viewDM = null;
this.viewTDM = null;
this.battlesArray = null;
this.mapsArray = null;
this.battles = null;
this.maps = null;
this.usersInfo = null;
this.paidBattleAlert = null;
this.clientObject = null;
}
public function resourceLoaded(resource:Object) : void
{
Main.writeVarsToConsoleChannel("BATTLE SELECT","resourceLoaded");
Main.writeVarsToConsoleChannel("BATTLE SELECT"," resourceId: " + resource.id);
Main.writeVarsToConsoleChannel("BATTLE SELECT"," viewExpectedResourceId: " + this.viewBattleExpectedResourceId);
Main.writeVarsToConsoleChannel("BATTLE SELECT"," createExpectedResourceId: " + this.createBattleExpectedResourceId);
var bitmapData:BitmapData = resource.bitmapData as BitmapData;
if(resource.id == this.viewBattleExpectedResourceId)
{
if(this.viewDM != null && this.layer.contains(this.viewDM))
{
this.viewDM.info.setPreview(bitmapData);
}
else if(this.viewTDM != null && this.layer.contains(this.viewTDM))
{
this.viewTDM.info.setPreview(bitmapData);
}
this.viewBattleExpectedResourceId = null;
}
else if(resource.id == this.createBattleExpectedResourceId)
{
if(this.createBattleForm != null && this.layer.contains(this.createBattleForm))
{
this.createBattleForm.info.setPreview(bitmapData);
}
this.createBattleExpectedResourceId = null;
}
}
public function resourceUnloaded(resourceId:Long) : void
{
}
public function initBattleList(clientObject:ClientObject, battles:Array, recommendedBattle:String, onLink:Boolean) : void
{
var garageAvailableAlert:Alert = null;
var dialogsLayer:DisplayObjectContainer = null;
var timer:Timer = new Timer(2500,1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE,function(e:TimerEvent):void
{
var i:int = 0;
var selectedBattleId:String = null;
(Main.osgi.getService(IGTanksLoader) as GTanksLoaderWindow).setFullAndClose(null);
panelModel.partSelected(0);
showList();
if(battles != null)
{
for(i = 0; i < battles.length; i++)
{
addBattle(clientObject,BattleClient(battles[i]));
}
selectedBattleId = checkSelectedBattle();
if(selectedBattleId == null || onLink)
{
selectBattle(clientObject,recommendedBattle);
}
else
{
selectBattle(clientObject,selectedBattleId);
}
}
if(Lobby.firstInit)
{
Network(Main.osgi.getService(INetworker)).send("lobby;user_inited");
Lobby.firstInit = false;
}
(Main.osgi.getService(IConsole) as IConsole).addLine("server initBattleList() Timer end");
});
timer.start();
var storage:SharedObject = IStorageService(Main.osgi.getService(IStorageService)).getStorage();
if(storage.data.garageAvailableAlertShown == null && (this.panelModel.rank == 2 || this.panelModel.rank == 3))
{
garageAvailableAlert = new Alert(Alert.GARAGE_AVAILABLE);
garageAvailableAlert.addEventListener(AlertEvent.ALERT_BUTTON_PRESSED,this.onGarageAvailableAlertPressed);
dialogsLayer = (Main.osgi.getService(IMainContainerService) as IMainContainerService).dialogsLayer as DisplayObjectContainer;
dialogsLayer.addChild(garageAvailableAlert);
storage.data.garageAvailableAlertShown = true;
storage.flush();
}
(Main.osgi.getService(IConsole) as IConsole).addLine("server initBattleList() end");
}
private function onGarageAvailableAlertPressed(e:AlertEvent) : void
{
if(e.typeButton == AlertAnswer.GARAGE)
{
this.panelModel.goToGarage();
}
}
public function addBattle(clientObject:ClientObject, battle:BattleClient) : void
{
this.battles[battle.battleId] = battle;
this.battlesArray.push(battle);
this.battleList.addItem(battle.battleId,battle.name,!battle.team,battle.countRedPeople,battle.countBluePeople,battle.countPeople,(this.maps[battle.mapId] as MapClient).name,battle.countPeople >= battle.maxPeople,battle.countRedPeople >= battle.maxPeople,battle.countBluePeople >= battle.maxPeople,battle.minRank <= this.panelModel.rank && battle.maxRank >= this.panelModel.rank,battle.paid,battle.type);
if(this.battlesArray.length > this.maxBattlesNum)
{
this.battleList.createButton.enable = false;
}
if(this.battleToSelect != null && this.battleToSelect == battle.name)
{
this.selectBattle(clientObject,battle.battleId);
this.battleToSelect = null;
}
}
public function getBattleName(id:String) : String
{
return (this.battles[id] as BattleClient).name;
}
public function selectBattleFromChat(id:Long) : void
{
}
public function removeBattle(clientObject:ClientObject, battleId:String) : void
{
if(this.battles == null)
{
return;
}
var battle:BattleClient = this.battles[battleId];
this.battlesArray.splice(this.battlesArray.indexOf(battle),1);
this.battles[battleId] = null;
if(this.battleList.selectedBattleID == battleId)
{
this.hideInfo();
}
this.battleList.removeItem(battleId);
if(this.battlesArray.length <= this.maxBattlesNum)
{
this.battleList.createButton.enable = true;
}
}
public function setHaveSubscribe(clientObject:ClientObject, haveSubscribe:Boolean) : void
{
this.viewDM.haveSubscribe = haveSubscribe;
this.viewTDM.haveSubscribe = haveSubscribe;
this.createBattleForm.haveSubscribe = haveSubscribe;
}
public function showBattleInfo(clientObject:ClientObject, name:String, maxPeople:int, battleType:BattleType, battleId:String, previewId:String, minRank:int, maxRank:int, timeLimit:int, timeCurrent:int, killsLimit:int, scoreRed:int, scoreBlue:int, autobalance:Boolean, friendlyFire:Boolean, users:Array, paidBattle:Boolean, withoutBonuses:Boolean, userAlreadyPaid:Boolean, fullCash:Boolean, clanName:String, spectator:Boolean = false) : void
{
var previewBitmap:BitmapData = null;
var url:String = null;
var team:Boolean = false;
var i:int = 0;
var userInfo:UserInfoClient = null;
Main.writeVarsToConsoleChannel("BATTLE SELECT","showBattleInfo");
Main.writeVarsToConsoleChannel("BATTLE SELECT"," battleId: %1",battleId);
Main.writeVarsToConsoleChannel("BATTLE SELECT","this.clientObject = %1",this.clientObject == clientObject);
this.usersInfo = new Dictionary(false);
var preivewResource:ImageResource = ResourceUtil.getResource(ResourceType.IMAGE,previewId) as ImageResource;
if(preivewResource == null)
{
preivewResource = new ImageResource("",previewId,false,null,"");
}
if(!preivewResource.loaded())
{
preivewResource.completeLoadListener = this;
preivewResource.load();
this.viewBattleExpectedResourceId = preivewResource.id;
}
else
{
previewBitmap = preivewResource.bitmapData as BitmapData;
}
if(this.battleList != null)
{
this.battleList.select(battleId);
url = "";
if(this.addressService != null)
{
if(this.loaderParamsService.params["partner"] != null && this.addressService.getValue().indexOf("registered") != -1)
{
this.addressService.setValue("battle/" + battleId.toString() + "/partner=" + this.loaderParamsService.params["partner"]);
}
else
{
this.addressService.setValue("battle/" + battleId.toString());
}
}
url = "#battle" + battleId;
team = battleType == BattleType.CTF || battleType == BattleType.TDM || battleType == BattleType.DOM;
this.showInfo(team);
if(team)
{
this.viewTDM.Init(name,clanName,maxPeople,minRank,maxRank,scoreRed,scoreBlue,previewBitmap,timeLimit,timeCurrent,killsLimit,false,autobalance,friendlyFire,url,minRank <= this.panelModel.rank && maxRank >= this.panelModel.rank,battleType == BattleType.CTF,battleType == BattleType.DOM,paidBattle,!withoutBonuses,userAlreadyPaid,fullCash);
for(i = 0; i < users.length; i++)
{
userInfo = users[i] as UserInfoClient;
this.usersInfo[userInfo.id] = userInfo;
this.viewTDM.updatePlayer(userInfo.type == BattleTeamType.RED ? Boolean(ViewTDM.RED_TEAM) : Boolean(ViewTDM.BLUE_TEAM),userInfo.id,userInfo.name,userInfo.rank,userInfo.kills);
}
if(paidBattle && !userAlreadyPaid)
{
this.viewTDM.addEventListener(BattleListEvent.START_TDM_BLUE,this.onStartPaidBlueTeamBattle);
this.viewTDM.addEventListener(BattleListEvent.START_TDM_RED,this.onStartPaidRedTeamBattle);
this.viewTDM.removeEventListener(BattleListEvent.START_TDM_BLUE,this.onStartTeamBattleForBlue);
this.viewTDM.removeEventListener(BattleListEvent.START_TDM_RED,this.onStartTeamBattleForRed);
}
else
{
this.viewTDM.addEventListener(BattleListEvent.START_TDM_BLUE,this.onStartTeamBattleForBlue);
this.viewTDM.addEventListener(BattleListEvent.START_TDM_RED,this.onStartTeamBattleForRed);
this.viewTDM.removeEventListener(BattleListEvent.START_TDM_BLUE,this.onStartPaidBlueTeamBattle);
this.viewTDM.removeEventListener(BattleListEvent.START_TDM_RED,this.onStartPaidRedTeamBattle);
}
if(spectator)
{
this.viewTDM.info.showSpectatorButton();
}
}
else
{
this.viewDM.Init(name,clanName,maxPeople,minRank,maxRank,previewBitmap,timeLimit,timeCurrent,killsLimit,false,url,minRank <= this.panelModel.rank && maxRank >= this.panelModel.rank,paidBattle,!withoutBonuses,userAlreadyPaid,fullCash);
for(i = 0; i < users.length; i++)
{
userInfo = users[i] as UserInfoClient;
this.usersInfo[userInfo.id] = userInfo;
this.viewDM.updatePlayer(userInfo.id,userInfo.name,userInfo.rank,userInfo.kills);
}
if(paidBattle && !userAlreadyPaid)
{
this.viewDM.addEventListener(BattleListEvent.START_DM_GAME,this.onStartPaidDMBattle);
this.viewDM.removeEventListener(BattleListEvent.START_DM_GAME,this.onStartDMBattle);
}
else
{
this.viewDM.removeEventListener(BattleListEvent.START_DM_GAME,this.onStartPaidDMBattle);
this.viewDM.addEventListener(BattleListEvent.START_DM_GAME,this.onStartDMBattle);
}
if(spectator)
{
this.viewDM.info.showSpectatorButton();
}
}
}
}
public function currentBattleAddUser(clientObject:ClientObject, userInfo:UserInfoClient) : void
{
if(this.usersInfo == null)
{
this.usersInfo = new Dictionary();
}
this.usersInfo[userInfo.id] = userInfo;
if(this.viewDM != null && this.layer.contains(this.viewDM))
{
this.viewDM.updatePlayer(userInfo.id,userInfo.name,userInfo.rank,userInfo.kills);
}
else if(this.viewTDM != null && this.layer.contains(this.viewTDM))
{
this.viewTDM.updatePlayer(userInfo.type == BattleTeamType.RED,userInfo.id,userInfo.name,userInfo.rank,userInfo.kills);
}
}
public function currentBattleRemoveUser(clientObject:ClientObject, userId:String) : void
{
if(this.viewDM != null && this.layer.contains(this.viewDM))
{
this.viewDM.removePlayer(userId);
}
else if(this.viewTDM != null && this.layer.contains(this.viewTDM))
{
this.viewTDM.removePlayer(userId);
}
}
public function teamScoreUpdate(clientObject:ClientObject, redTeamScore:int, blueTeamScore:int) : void
{
if(this.clientObject != null && this.clientObject == clientObject)
{
if(this.viewTDM != null)
{
this.viewTDM.updateScore(ViewTDM.RED_TEAM,redTeamScore);
this.viewTDM.updateScore(ViewTDM.BLUE_TEAM,blueTeamScore);
}
}
}
public function updateUsersCountForTeam(clientObject:ClientObject, battleId:String, redPeople:int, bluePeople:int) : void
{
var b:BattleClient = null;
if(this.battles != null)
{
b = this.battles[battleId] as BattleClient;
if(b != null)
{
b.countRedPeople = redPeople;
b.countBluePeople = bluePeople;
if(this.battleList != null)
{
this.battleList.updatePlayersBlue(battleId,bluePeople,bluePeople >= b.maxPeople);
this.battleList.updatePlayersRed(battleId,redPeople,redPeople >= b.maxPeople);
}
}
}
}
public function updateUsersCountForDM(clientObject:ClientObject, battleId:String, peoples:int) : void
{
var b:BattleClient = null;
if(this.battles != null)
{
b = this.battles[battleId] as BattleClient;
if(b != null)
{
b.countPeople = peoples;
if(this.battleList != null)
{
this.battleList.updatePlayersTotal(battleId,peoples,peoples >= b.maxPeople);
}
}
}
}
public function currentBattleRestart(clientObject:ClientObject) : void
{
if(this.clientObject != null && this.clientObject == clientObject)
{
if(this.viewDM != null && this.layer.contains(this.viewDM))
{
this.viewDM.info.restartCountDown();
this.viewDM.dropKills();
}
else if(this.viewTDM != null && this.layer.contains(this.viewTDM))
{
this.viewTDM.info.restartCountDown();
this.viewTDM.dropKills();
}
}
}
public function currentBattleUserScoreUpdate(clientObject:ClientObject, user:Long, kills:int) : void
{
var userInfo:UserInfoClient = null;
var logger:ILogService = null;
if(this.clientObject != null && this.clientObject == clientObject)
{
userInfo = this.usersInfo[user] as UserInfoClient;
if(userInfo != null)
{
userInfo.kills = kills;
if(this.viewDM != null && this.layer.contains(this.viewDM))
{
this.viewDM.updatePlayer(user,userInfo.name,userInfo.rank,kills);
}
else if(this.viewTDM != null && this.layer.contains(this.viewTDM))
{
this.viewTDM.updatePlayer(userInfo.type == BattleTeamType.RED,user,userInfo.name,userInfo.rank,kills);
}
}
else
{
logger = Main.osgi.getService(ILogService) as ILogService;
logger.log(LogLevel.LOG_ERROR,"[BattleSelectModel]:currentBattleUserKillsUpdate ERROR: userInfo = null! (userId: " + user + ")");
}
}
}
public function currentBattleFinish(clientObject:ClientObject) : void
{
if(this.clientObject != null && this.clientObject == clientObject)
{
if(this.layer.contains(this.viewDM))
{
this.viewDM.info.stopCountDown();
}
else if(this.layer.contains(this.viewTDM))
{
this.viewTDM.info.stopCountDown();
}
}
}
public function battleCreated(clientObject:ClientObject, battleId:Long) : void
{
if(this.clientObject != null && this.clientObject == clientObject)
{
this.battleList.select(battleId);
}
}
public function createBattleFlood(clientObject:ClientObject) : void
{
var alertService:IAlertService = Main.osgi.getService(IAlertService) as IAlertService;
alertService.showAlert(ILocaleService(Main.osgi.getService(ILocaleService)).getText(TextConst.BATTLE_CREATE_PANEL_FLOOD_ALERT_TEXT));
}
private function checkSelectedBattle() : String
{
var selectedBattleId:String = null;
var s:String = null;
var v:Array = null;
if(this.addressService != null)
{
s = this.addressService.getValue();
if(s.indexOf("battle/") != -1)
{
v = s.split("/");
if(v[2] != null)
{
selectedBattleId = v[2] as String;
}
}
}
return selectedBattleId;
}
private function onAddressChange(e:SWFAddressEvent) : void
{
var i:int = 0;
var selectedBattleId:String = this.checkSelectedBattle();
if(selectedBattleId != null)
{
for(i = 0; i < this.battlesArray.length; i++)
{
if((this.battlesArray[i] as BattleClient).battleId == selectedBattleId && selectedBattleId != this.battleList.selectedBattleID)
{
Main.writeVarsToConsoleChannel("BATTLE SELECT"," select: %1",selectedBattleId);
this.battleList.select(selectedBattleId);
}
}
}
}
public function showList() : void
{
if(!this.layer.contains(this.battleList))
{
this.layer.addChild(this.battleList);
this.battleList.addEventListener(BattleListEvent.CREATE_GAME,this.onCreateGameClick);
this.battleList.addEventListener(BattleListEvent.SELECT_BATTLE,this.onBattleSelect);
}
}
public function hideList() : void
{
if(this.battleList != null)
{
if(this.layer.contains(this.battleList))
{
this.layer.removeChild(this.battleList);
this.battleList.removeEventListener(BattleListEvent.CREATE_GAME,this.onCreateGameClick);
this.battleList.removeEventListener(BattleListEvent.SELECT_BATTLE,this.onBattleSelect);
}
}
}
private function showCreateForm() : void
{
var panelModel:IPanel = null;
if(!this.layer.contains(this.createBattleForm))
{
if(this.createBattleForm != null)
{
this.layer.addChild(this.createBattleForm);
}
panelModel = IPanel(Main.osgi.getService(IPanel));
this.createBattleForm.currentRang = panelModel.rank;
this.createBattleForm.addEventListener(BattleListEvent.START_CREATED_GAME,this.onStartCreatedGame);
}
}
private function hideCreateForm() : void
{
if(this.createBattleForm != null)
{
if(this.layer.contains(this.createBattleForm))
{
this.layer.removeChild(this.createBattleForm);
this.createBattleForm.removeEventListener(BattleListEvent.START_CREATED_GAME,this.onStartCreatedGame);
}
}
}
private function showInfo(team:Boolean) : void
{
if(team)
{
if(this.layer.contains(this.viewDM))
{
this.layer.removeChild(this.viewDM);
}
if(!this.layer.contains(this.viewTDM))
{
this.layer.addChild(this.viewTDM);
}
}
else
{
if(this.layer.contains(this.viewTDM))
{
this.layer.removeChild(this.viewTDM);
}
if(!this.layer.contains(this.viewDM))
{
this.layer.addChild(this.viewDM);
}
}
}
private function hideInfo() : void
{
if(this.viewDM != null)
{
if(this.layer.contains(this.viewDM))
{
this.layer.removeChild(this.viewDM);
}
}
if(this.viewTDM != null)
{
if(this.layer.contains(this.viewTDM))
{
this.layer.removeChild(this.viewTDM);
}
}
}
private function onMapSelect(e:Event) : void
{
var previewBitmap:BitmapData = null;
var previewId:String = (this.maps[this.createBattleForm.mapID] as MapClient).previewId;
Main.writeVarsToConsoleChannel("BATTLE SELECT","1 previewId: " + previewId);
(Main.osgi.getService(IConsole) as IConsole).addLine("onMapSelect(): try get resources: " + previewId);
var imageResource:ImageResource = ResourceUtil.getResource(ResourceType.IMAGE,previewId) as ImageResource;
if(imageResource == null)
{
imageResource = new ImageResource("",previewId,false,null,"");
(Main.osgi.getService(IConsole) as IConsole).addLine("onMapSelect(): try get failed. resources is null: " + previewId);
}
if(!imageResource.loaded())
{
imageResource.completeLoadListener = this;
imageResource.load();
this.createBattleExpectedResourceId = imageResource.id;
}
else
{
previewBitmap = imageResource.bitmapData as BitmapData;
this.createBattleExpectedResourceId = null;
this.createBattleForm.info.setPreview(previewBitmap);
}
Main.writeVarsToConsoleChannel("BATTLE SELECT","1 previewBitmap: " + previewBitmap);
}
private function onCreateGameClick(e:BattleListEvent) : void
{
this.hideInfo();
this.showCreateForm();
if(this.battlesArray.length > this.maxBattlesNum)
{
this.battleList.createButton.enable = false;
}
}
private function onStartCreatedGame(e:BattleListEvent) : void
{
this.battleToSelect = !!this.createBattleForm.HrMode ? "(HR Mode) " + this.createBattleForm.gameName : this.createBattleForm.gameName;
if(this.createBattleForm.deathMatch)
{
this.createBattle(this.clientObject,this.createBattleForm.gameName,this.createBattleForm.mapID as String,this.createBattleForm.time,this.createBattleForm.numKills,this.createBattleForm.numPlayers,this.createBattleForm.minRang,this.createBattleForm.maxRang,this.createBattleForm.PrivateBattle,this.createBattleForm.PayBattle,!!this.createBattleForm.PayBattle ? Boolean(!this.createBattleForm.inventoryBattle) : Boolean(false),this.createBattleForm.HrMode);
}
else if(this.createBattleForm.CaptureTheFlag)
{
this.createBattleCaptureFlag(this.clientObject,this.createBattleForm.gameName,this.createBattleForm.mapID as String,this.createBattleForm.time,this.createBattleForm.numFlags,this.createBattleForm.numPlayers,this.createBattleForm.minRang,this.createBattleForm.maxRang,this.createBattleForm.autoBalance,this.createBattleForm.friendlyFire,this.createBattleForm.PrivateBattle,this.createBattleForm.PayBattle,!!this.createBattleForm.PayBattle ? Boolean(!this.createBattleForm.inventoryBattle) : Boolean(false),this.createBattleForm.HrMode);
}
else if(this.createBattleForm.Team)
{
this.createBattleTeam(this.clientObject,this.createBattleForm.gameName,this.createBattleForm.mapID as String,this.createBattleForm.time,this.createBattleForm.numKills,this.createBattleForm.numPlayers,this.createBattleForm.minRang,this.createBattleForm.maxRang,this.createBattleForm.autoBalance,this.createBattleForm.friendlyFire,this.createBattleForm.PrivateBattle,this.createBattleForm.PayBattle,!!this.createBattleForm.PayBattle ? Boolean(!this.createBattleForm.inventoryBattle) : Boolean(false),this.createBattleForm.HrMode);
}
else if(this.createBattleForm.DOM)
{
this.createBattleDominationOfMap(this.clientObject,this.createBattleForm.gameName,this.createBattleForm.mapID as String,this.createBattleForm.time,this.createBattleForm.numPoints,this.createBattleForm.numPlayers,this.createBattleForm.minRang,this.createBattleForm.maxRang,this.createBattleForm.autoBalance,this.createBattleForm.friendlyFire,this.createBattleForm.PrivateBattle,this.createBattleForm.PayBattle,!!this.createBattleForm.PayBattle ? Boolean(!this.createBattleForm.inventoryBattle) : Boolean(false),this.createBattleForm.HrMode);
}
this.hideCreateForm();
}
private function createBattleDominationOfMap(clientObject:ClientObject, gameName:String, mapId:String, time:int, numPointsScore:int, numPlayers:int, minRang:int, maxRang:int, autoBalance:Boolean, friendlyFire:Boolean, privateBattle:Boolean, payBattle:Boolean, inventory:Boolean, hrMode:Boolean) : void
{
var json:Object = new Object();
json.gameName = gameName;
json.mapId = mapId;
json.time = time;
json.numPointsScore = numPointsScore;
json.numPlayers = numPlayers;
json.minRang = minRang;
json.maxRang = maxRang;
json.autoBalance = autoBalance;
json.frielndyFire = friendlyFire;
json.privateBattle = privateBattle;
json.pay = payBattle;
json.inventory = inventory;
json.hrMode = hrMode;
Network(Main.osgi.getService(INetworker)).send("lobby;try_create_battle_dom;" + JSON.stringify(json));
}
private function createBattleCaptureFlag(clientObject:ClientObject, gameName:String, mapId:String, time:int, numFlags:int, numPlayers:int, minRang:int, maxRang:int, autoBalance:Boolean, friendlyFire:Boolean, privateBattle:Boolean, payBattle:Boolean, inventory:Boolean, hrMode:Boolean) : void
{
var json:Object = new Object();
json.gameName = gameName;
json.mapId = mapId;
json.time = time;
json.numFlags = numFlags;
json.numPlayers = numPlayers;
json.minRang = minRang;
json.maxRang = maxRang;
json.autoBalance = autoBalance;
json.frielndyFire = friendlyFire;
json.privateBattle = privateBattle;
json.pay = payBattle;
json.inventory = inventory;
json.hrMode = hrMode;
Network(Main.osgi.getService(INetworker)).send("lobby;try_create_battle_ctf;" + JSON.stringify(json));
}
private function createBattleTeam(cl:ClientObject, gameName:String, mapId:String, time:int, numKills:int, numPlayers:int, minRang:int, maxRang:int, autoBalance:Boolean, frielndyFire:Boolean, privateBattle:Boolean, pay:Boolean, inventory:Boolean, hrMode:Boolean) : void
{
var json:Object = new Object();
json.gameName = gameName;
json.mapId = mapId;
json.time = time;
json.numKills = numKills;
json.numPlayers = numPlayers;
json.minRang = minRang;
json.maxRang = maxRang;
json.autoBalance = autoBalance;
json.frielndyFire = frielndyFire;
json.privateBattle = privateBattle;
json.pay = pay;
json.inventory = inventory;
json.hrMode = hrMode;
Network(Main.osgi.getService(INetworker)).send("lobby;try_create_battle_tdm;" + JSON.stringify(json));
}
private function createBattle(cl:ClientObject, gameName:String, id:String, time:Number, numKills:Number, numPlayers:Number, minRang:int, maxRang:int, isPrivate:Boolean, isPay:Boolean, isX3:Boolean, hrMode:Boolean) : void
{
Network(Main.osgi.getService(INetworker)).send("lobby;try_create_battle_dm;" + gameName + ";" + id + ";" + time + ";" + numKills + ";" + numPlayers + ";" + minRang + ";" + maxRang + ";" + isPrivate + ";" + isPay + ";" + isX3 + ";" + hrMode);
}
private function onBattleSelect(e:BattleListEvent) : void
{
this.selectBattle(this.clientObject,this.battleList.selectedBattleID as String);
var b:BattleClient = this.battles[this.battleList.selectedBattleID as String] as BattleClient;
if(b.minRank > this.panelModel.rank || b.maxRank < this.panelModel.rank)
{
this.lockedMapsHelper.targetPoint = new Point(Main.stage.mouseX,Main.stage.mouseY);
}
}
private function selectBattle(cl:ClientObject, id:String) : void
{
Network(Main.osgi.getService(INetworker)).send("lobby;get_show_battle_info;" + id);
}
private function onStartPaidDMBattle(e:BattleListEvent) : void
{
this.panelModel.blur();
if(this.panelModel.crystal < 5)
{
this.paidBattleAlert = new Alert(-1);
this.paidBattleAlert.showAlert(this.localeService.getText(TextConst.GARAGE_CONFIRM_ALERT_NOT_ENOUGH_CRYSTALS),["OK"]);
this.dialogsLayer.addChild(this.paidBattleAlert);
this.paidBattleAlert.addEventListener(AlertEvent.ALERT_BUTTON_PRESSED,function(e:Event):void
{
panelModel.unblur();
});
return;
}
this.paidBattleAlert = new Alert();
this.paidBattleAlert.showAlert(this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_TEXT),[this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_ENTER),this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_DONT_ENTER)]);
this.dialogsLayer.addChild(this.paidBattleAlert);
this.paidBattleAlert.addEventListener(AlertEvent.ALERT_BUTTON_PRESSED,this.onAcceptPaidDMBattle);
}
private function onStartPaidRedTeamBattle(e:BattleListEvent) : void
{
this.panelModel.blur();
if(this.panelModel.crystal < 5)
{
this.paidBattleAlert = new Alert(-1);
this.paidBattleAlert.showAlert(this.localeService.getText(TextConst.GARAGE_CONFIRM_ALERT_NOT_ENOUGH_CRYSTALS),["OK"]);
this.dialogsLayer.addChild(this.paidBattleAlert);
this.paidBattleAlert.addEventListener(AlertEvent.ALERT_BUTTON_PRESSED,function(e:Event):void
{
panelModel.unblur();
});
return;
}
this.paidBattleAlert = new Alert();
this.paidBattleAlert.showAlert(this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_TEXT),[this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_ENTER),this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_DONT_ENTER)]);
this.dialogsLayer.addChild(this.paidBattleAlert);
this.paidBattleAlert.addEventListener(AlertEvent.ALERT_BUTTON_PRESSED,this.onAcceptPaidRedTeamBattle);
}
private function onStartPaidBlueTeamBattle(e:BattleListEvent) : void
{
this.panelModel.blur();
if(this.panelModel.crystal < 5)
{
this.paidBattleAlert = new Alert(-1);
this.paidBattleAlert.showAlert(this.localeService.getText(TextConst.GARAGE_CONFIRM_ALERT_NOT_ENOUGH_CRYSTALS),["OK"]);
this.dialogsLayer.addChild(this.paidBattleAlert);
this.paidBattleAlert.addEventListener(AlertEvent.ALERT_BUTTON_PRESSED,function(e:Event):void
{
panelModel.unblur();
});
return;
}
this.paidBattleAlert = new Alert();
this.paidBattleAlert.showAlert(this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_TEXT),[this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_ENTER),this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_DONT_ENTER)]);
this.dialogsLayer.addChild(this.paidBattleAlert);
this.paidBattleAlert.addEventListener(AlertEvent.ALERT_BUTTON_PRESSED,this.onAcceptPaidBlueTeamBattle);
}
private function onAcceptPaidDMBattle(e:AlertEvent) : void
{
this.panelModel.unblur();
if(e.typeButton == this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_ENTER))
{
this.clearURL = false;
this.viewDM.removeEventListener(BattleListEvent.START_DM_GAME,this.onStartPaidDMBattle);
this.fightBattle(this.clientObject,false,false);
}
}
private function onAcceptPaidRedTeamBattle(e:AlertEvent) : void
{
this.panelModel.unblur();
if(e.typeButton == this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_ENTER))
{
this.clearURL = false;
this.viewTDM.removeEventListener(BattleListEvent.START_TDM_BLUE,this.onStartPaidBlueTeamBattle);
this.viewTDM.removeEventListener(BattleListEvent.START_TDM_RED,this.onStartPaidRedTeamBattle);
this.fightBattle(this.clientObject,true,true);
}
}
private function onAcceptPaidBlueTeamBattle(e:AlertEvent) : void
{
this.panelModel.unblur();
if(e.typeButton == this.localeService.getText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_ENTER))
{
this.clearURL = false;
this.viewTDM.removeEventListener(BattleListEvent.START_TDM_BLUE,this.onStartPaidBlueTeamBattle);
this.viewTDM.removeEventListener(BattleListEvent.START_TDM_RED,this.onStartPaidRedTeamBattle);
this.fightBattle(this.clientObject,true,false);
}
}
private function onStartDMBattle(e:BattleListEvent) : void
{
this.clearURL = false;
this.viewDM.removeEventListener(BattleListEvent.START_DM_GAME,this.onStartDMBattle);
this.fightBattle(this.clientObject,false,false);
}
private function fightBattle(cl:ClientObject, team:Boolean, red:Boolean) : void
{
Network(Main.osgi.getService(INetworker)).send("lobby;" + (!team ? "enter_battle;" : "enter_battle_team;") + this.selectedBattleId + ";" + red);
}
public function startLoadBattle() : void
{
var temp:BattleController = null;
this.objectUnloaded(null);
PanelModel(Main.osgi.getService(IPanel)).startBattle(null);
ChatModel(Main.osgi.getService(IChatModelBase)).objectUnloaded(null);
if(BattleController(Main.osgi.getService(IBattleController)) == null)
{
temp = new BattleController();
Main.osgi.registerService(IBattleController,temp);
}
Network(Main.osgi.getService(INetworker)).addEventListener(Main.osgi.getService(IBattleController) as BattleController);
}
private function onStartTeamBattleForRed(e:BattleListEvent) : void
{
this.clearURL = false;
this.viewDM.removeEventListener(BattleListEvent.START_TDM_RED,this.onStartTeamBattleForRed);
this.viewDM.removeEventListener(BattleListEvent.START_TDM_BLUE,this.onStartTeamBattleForBlue);
this.fightBattle(this.clientObject,true,true);
}
private function onStartTeamBattleForBlue(e:BattleListEvent) : void
{
this.clearURL = false;
this.viewDM.removeEventListener(BattleListEvent.START_TDM_RED,this.onStartTeamBattleForRed);
this.viewDM.removeEventListener(BattleListEvent.START_TDM_BLUE,this.onStartTeamBattleForBlue);
this.fightBattle(this.clientObject,true,false);
}
public function dump(params:Vector.<String>) : String
{
var battle:BattleClient = null;
var result:String = "\n";
for(var i:int = 0; i < this.battlesArray.length; i++)
{
battle = this.battlesArray[i] as BattleClient;
result += " battle id: " + battle.battleId + " battle name: " + battle.name + " map id: " + battle.mapId + "\n";
}
return result + "\n";
}
public function get dumperName() : String
{
return "battle";
}
private function alignHelpers(e:Event = null) : void
{
var minWidth:int = int(Math.max(1000,Main.stage.stageWidth));
var minHeight:int = int(Math.max(600,Main.stage.stageHeight));
this.createHelper.targetPoint = new Point(Math.round(minWidth * (2 / 3)) - 47,minHeight - 34);
}
private function checkBattleName(event:BattleListEvent) : void
{
this.gameNameBeforeCheck = this.createBattleForm.gameName;
this.checkBattleNameForForbiddenWords(this.clientObject,this.createBattleForm.gameName);
}
private function checkBattleNameForForbiddenWords(cl:ClientObject, forCheck:String) : void
{
Network(Main.osgi.getService(INetworker)).send("lobby;check_battleName_for_forbidden_words;" + forCheck);
}
public function setFilteredBattleName(clientObject:ClientObject, name:String) : void
{
if(this.createBattleForm.gameName == this.gameNameBeforeCheck && this.gameNameBeforeCheck != name)
{
this.createBattleForm.gameName = name;
}
else
{
this.createBattleForm.gameName = this.createBattleForm.gameName;
}
}
public function serverIsRestarting(clientObject:ClientObject) : void
{
var serverIsRestartingAlert:Alert = new Alert();
serverIsRestartingAlert.showAlert(this.localeService.getText(TextConst.SERVER_IS_RESTARTING_CREATE_BATTLE_TEXT),[AlertAnswer.OK]);
this.dialogsLayer.addChild(serverIsRestartingAlert);
}
public function enterInBattleSpectator() : void
{
var temp:BattleController = null;
this.objectUnloaded(null);
PanelModel(Main.osgi.getService(IPanel)).startBattle(null);
ChatModel(Main.osgi.getService(IChatModelBase)).objectUnloaded(null);
if(BattleController(Main.osgi.getService(IBattleController)) == null)
{
temp = new BattleController();
Main.osgi.registerService(IBattleController,temp);
}
Network(Main.osgi.getService(INetworker)).send("lobby;enter_battle_spectator;" + this.selectedBattleId);
Network(Main.osgi.getService(INetworker)).addEventListener(Main.osgi.getService(IBattleController) as BattleController);
}
}
}
|
package alternativa.tanks.models.battle.battlefield.mine {
public class ProximityMineState {
public static const NOT_ARMED:ProximityMineState = new ProximityMineState();
public static const ARMED:ProximityMineState = new ProximityMineState();
public function ProximityMineState() {
super();
}
}
}
|
package projects.tanks.client.tanksservices.model.notifier.premium {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
public class PremiumNotifierModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:PremiumNotifierModelServer;
private var client:IPremiumNotifierModelBase = IPremiumNotifierModelBase(this);
private var modelId:Long = Long.getLong(302389563,-1379937773);
private var _updateTimeLeftId:Long = Long.getLong(1172025171,225736801);
private var _updateTimeLeft_leftTimeInSecondsCodec:ICodec;
public function PremiumNotifierModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new PremiumNotifierModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(PremiumNotifierCC,false)));
this._updateTimeLeft_leftTimeInSecondsCodec = this._protocol.getCodec(new TypeCodecInfo(int,false));
}
protected function getInitParam() : PremiumNotifierCC {
return PremiumNotifierCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._updateTimeLeftId:
this.client.updateTimeLeft(int(this._updateTimeLeft_leftTimeInSecondsCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.tanks.battle.events {
public interface IBattleEvent {
function recycle() : void;
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.armor.explosion {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import platform.client.fp10.core.resource.types.MultiframeTextureResource;
import projects.tanks.client.battlefield.models.tankparts.armor.explosion.TankExplosionCC;
public class CodecTankExplosionCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_explosionTexture:ICodec;
private var codec_shockWaveTexture:ICodec;
private var codec_smokeTextureId:ICodec;
public function CodecTankExplosionCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_explosionTexture = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false));
this.codec_shockWaveTexture = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false));
this.codec_smokeTextureId = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:TankExplosionCC = new TankExplosionCC();
local2.explosionTexture = this.codec_explosionTexture.decode(param1) as MultiframeTextureResource;
local2.shockWaveTexture = this.codec_shockWaveTexture.decode(param1) as MultiframeTextureResource;
local2.smokeTextureId = this.codec_smokeTextureId.decode(param1) as MultiframeTextureResource;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:TankExplosionCC = TankExplosionCC(param2);
this.codec_explosionTexture.encode(param1,local3.explosionTexture);
this.codec_shockWaveTexture.encode(param1,local3.shockWaveTexture);
this.codec_smokeTextureId.encode(param1,local3.smokeTextureId);
}
}
}
|
package alternativa.tanks.model.payment.shop.kit {
import projects.tanks.client.panel.model.shop.kitpackage.KitPackageItemInfo;
[ModelInterface]
public interface KitPackage {
function getName() : String;
function getItemInfos() : Vector.<KitPackageItemInfo>;
}
}
|
package assets.combo {
import flash.display.BitmapData;
[Embed(source="/_assets/assets.combo.combo_UP_CENTER.png")]
public dynamic class combo_UP_CENTER extends BitmapData {
public function combo_UP_CENTER(param1:int = 175, param2:int = 31) {
super(param1,param2);
}
}
}
|
package projects.tanks.client.battlefield.models.user.tank {
import alternativa.types.Long;
import projects.tanks.client.battlefield.models.user.tank.commands.MoveCommand;
import projects.tanks.client.battlefield.types.DamageType;
import projects.tanks.client.battlefield.types.Vector3d;
public interface ITankModelBase {
function activateTank() : void;
function deathConfirmed() : void;
function kill(param1:Long, param2:int, param3:DamageType) : void;
function move(param1:MoveCommand) : void;
function movementControl(param1:int, param2:int) : void;
function push(param1:Vector3d, param2:Vector3d) : void;
function resetConfiguration(param1:Long, param2:Long, param3:Long, param4:int) : void;
function setHealth(param1:Number) : void;
}
}
|
package alternativa.tanks.models.tank.event {
[ModelInterface]
public interface LocalTankUnloadListener {
function localTankUnloaded(param1:Boolean) : void;
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.weapon.splash {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battlefield.models.tankparts.weapon.splash.SplashCC;
public class VectorCodecSplashCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecSplashCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(SplashCC,false));
if(this.optionalElement) {
this.elementCodec = new OptionalCodecDecorator(this.elementCodec);
}
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:int = int(LengthCodecHelper.decodeLength(param1));
var local3:Vector.<SplashCC> = new Vector.<SplashCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = SplashCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:SplashCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<SplashCC> = Vector.<SplashCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package alternativa.tanks.models.battle.battlefield.billboard {
import alternativa.osgi.service.command.CommandService;
import alternativa.osgi.service.command.FormattedOutput;
import alternativa.tanks.battle.BattleService;
import flash.display.BitmapData;
import platform.client.fp10.core.type.AutoClosable;
public class BillboardsDebugCommands implements AutoClosable {
[Inject]
public static var commandService:CommandService;
[Inject]
public static var battleService:BattleService;
public function BillboardsDebugCommands() {
super();
}
private function setBillboard(param1:FormattedOutput) : void {
}
private function generateBillboard() : BitmapData {
var local1:BitmapData = new BitmapData(64,64,false,0);
local1.perlinNoise(64,64,3,Math.random() * 255,false,true);
return local1;
}
[Obfuscation(rename="false")]
public function close() : void {
}
}
}
|
package alternativa.tanks.controller.events.google {
import flash.events.Event;
public class GoogleLoginEvent extends Event {
public static const EVENT_TYPE:String = "GoogleLoginEvent.EVENT_TYPE";
private var _token:String;
private var _rememberMe:Boolean;
public function GoogleLoginEvent(param1:String, param2:Boolean) {
super(EVENT_TYPE);
this._token = param1;
this._rememberMe = param2;
}
public function get token() : String {
return this._token;
}
public function get rememberMe() : Boolean {
return this._rememberMe;
}
override public function clone() : Event {
return new GoogleLoginEvent(this._token,this._rememberMe);
}
}
}
|
package forms.payment {
import controls.base.LabelBase;
import controls.statassets.StatLineBackgroundNormal;
import controls.statassets.StatLineBackgroundSelected;
import fl.controls.listClasses.CellRenderer;
import fl.controls.listClasses.ListData;
import flash.display.Bitmap;
import flash.display.DisplayObject;
import flash.display.Sprite;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormatAlign;
import utils.TextUtils;
public class PaymentListRenderer extends CellRenderer {
private static var _withSMSText:Boolean = false;
private var nicon:DisplayObject;
public function PaymentListRenderer() {
super();
}
override public function set data(param1:Object) : void {
_data = param1;
_withSMSText = _data.smsText !== "";
var local2:DisplayObject = new StatLineBackgroundNormal();
var local3:DisplayObject = new StatLineBackgroundSelected();
this.nicon = this.myIcon(_data);
setStyle("upSkin",local2);
setStyle("downSkin",local2);
setStyle("overSkin",local2);
setStyle("selectedUpSkin",local3);
setStyle("selectedOverSkin",local3);
setStyle("selectedDownSkin",local3);
}
override public function set listData(param1:ListData) : void {
_listData = param1;
label = _listData.label;
if(this.nicon != null) {
setStyle("icon",this.nicon);
}
}
private function myIcon(param1:Object) : Sprite {
var local2:Sprite = null;
var local3:LabelBase = null;
var local4:LabelBase = null;
var local5:Bitmap = null;
var local6:LabelBase = null;
var local8:int = 0;
local2 = new Sprite();
local3 = new LabelBase();
local4 = new LabelBase();
local5 = new Bitmap();
local6 = new LabelBase();
var local7:LabelBase = new LabelBase();
local8 = _withSMSText ? 80 : int((_width - 72) / 2);
local3.autoSize = TextFieldAutoSize.NONE;
local3.align = TextFormatAlign.CENTER;
local3.size = 13;
local3.height = 20;
local3.x = -5;
local3.width = 70;
local3.text = _data.number;
local2.addChild(local3);
local6.autoSize = TextFieldAutoSize.NONE;
local6.align = TextFormatAlign.RIGHT;
local6.size = 13;
local6.height = 20;
local6.text = _data.cost;
local6.x = 72;
local6.width = int(local8) - 7;
local2.addChild(local6);
if(_withSMSText) {
local4.autoSize = TextFieldAutoSize.NONE;
local4.align = TextFormatAlign.LEFT;
local4.size = 12;
local4.height = 20;
local5.x = 72;
local4.width = _width - 210;
local4.text = _data.smsText;
local5.bitmapData = TextUtils.getTextInCells(local4,12,18,5898034);
local2.addChild(local5);
local6.x = local4.width + 74;
}
local7.autoSize = TextFieldAutoSize.NONE;
local7.align = TextFormatAlign.RIGHT;
local7.size = 13;
local7.height = 20;
local7.x = local6.x + local6.width + 2;
local7.width = int(_width - local7.x - 12);
local7.text = _data.crystals;
local2.addChild(local7);
return local2;
}
override protected function drawBackground() : void {
var local1:String = enabled ? mouseState : "disabled";
if(selected) {
local1 = "selected" + local1.substr(0,1).toUpperCase() + local1.substr(1);
}
local1 += "Skin";
var local2:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue(local1));
addChildAt(background,0);
if(local2 != null && local2 != background) {
removeChild(local2);
}
}
override protected function drawLayout() : void {
super.drawLayout();
}
override protected function drawIcon() : void {
var local1:DisplayObject = icon;
var local2:String = enabled ? mouseState : "disabled";
if(selected) {
local2 = "selected" + local2.substr(0,1).toUpperCase() + local2.substr(1);
}
local2 += "Icon";
var local3:Object = getStyleValue(local2);
if(local3 == null) {
local3 = getStyleValue("icon");
}
if(local3 != null) {
icon = getDisplayObjectInstance(local3);
}
if(icon != null) {
addChildAt(icon,1);
}
if(local1 != null && local1 != icon && local1.parent == this) {
removeChild(local1);
}
}
}
}
|
package alternativa.tanks.battle.objects.tank.tankskin {
import alternativa.math.Matrix3;
import alternativa.math.Vector3;
import alternativa.physics.Body;
import alternativa.tanks.battle.objects.tank.*;
import alternativa.tanks.battle.objects.tank.tankchassis.SuspensionRay;
import alternativa.tanks.battle.objects.tank.tankchassis.Track;
import alternativa.tanks.battle.objects.tank.tankchassis.TrackedChassis;
import alternativa.tanks.utils.MathUtils;
public class TracksAnimator {
private static const MIN_TRACK_SPEED:Number = 100;
private static const _bodyPointVelocity:Vector3 = new Vector3();
private var chassis:TrackedChassis;
private var skin:TankSkin;
private var maxSpeedSmoother:ValueSmoother;
public function TracksAnimator(param1:TrackedChassis, param2:TankSkin, param3:ValueSmoother) {
super();
this.chassis = param1;
this.skin = param2;
this.maxSpeedSmoother = param3;
}
public function animate(param1:Number) : void {
this.calculateTracksAnimationSpeed(param1);
this.skin.updateTracks(param1 * this.chassis.leftTrack.animationSpeed,param1 * this.chassis.rightTrack.animationSpeed);
}
private function calculateTracksAnimationSpeed(param1:Number) : void {
this.calculateTrackAnimationSpeed(this.chassis.leftTrack,param1);
this.calculateTrackAnimationSpeed(this.chassis.rightTrack,param1);
}
private function calculateTrackAnimationSpeed(param1:Track, param2:Number) : void {
if(this.hasCorrectContacts(param1)) {
this.animateTrackWithContacts(param1,param2);
} else {
this.animateTrackWithoutContacts(param1,param2);
}
}
private function hasCorrectContacts(param1:Track) : Boolean {
return param1.body.baseMatrix.m22 > 0 && param1.numContacts > 0;
}
private function animateTrackWithContacts(param1:Track, param2:Number) : void {
var local4:Number = NaN;
var local3:Number = this.getTrackSpeed(param1);
if(this.requiresSynchronizedAnimation(param1,local3)) {
param1.animationSpeed = local3;
} else {
local4 = this.getDesiredSpeedCoeff(param1) * MIN_TRACK_SPEED;
param1.setAnimationSpeed(local4,this.chassis.getAcceleration() * param2);
}
}
private function getTrackSpeed(param1:Track) : Number {
var local2:Vector3 = param1.averageSurfaceVelocity;
var local3:SuspensionRay = param1.rays[param1.numRays >> 1];
this.getBodyPointVelocity(param1.body,local3.getGlobalOrigin(),_bodyPointVelocity);
var local4:Number = _bodyPointVelocity.x - local2.x;
var local5:Number = _bodyPointVelocity.y - local2.y;
var local6:Number = _bodyPointVelocity.z - local2.z;
var local7:Matrix3 = param1.body.baseMatrix;
return local4 * local7.m01 + local5 * local7.m11 + local6 * local7.m21;
}
private function getBodyPointVelocity(param1:Body, param2:Vector3, param3:Vector3) : void {
var local5:Number = NaN;
var local8:Vector3 = null;
var local4:Vector3 = param1.state.position;
local5 = param2.x - local4.x;
var local6:Number = param2.y - local4.y;
var local7:Number = param2.z - local4.z;
local8 = param1.state.angularVelocity;
param3.x = local8.y * local7 - local8.z * local6;
param3.y = local8.z * local5 - local8.x * local7;
param3.z = local8.x * local6 - local8.y * local5;
var local9:Vector3 = param1.state.velocity;
param3.x += local9.x;
param3.y += local9.y;
param3.z += local9.z;
}
private function requiresSynchronizedAnimation(param1:Track, param2:Number) : Boolean {
var local3:Number = this.getDesiredSpeedCoeff(param1);
return Math.abs(param2) > 0.8 * MIN_TRACK_SPEED || local3 == 0 || MathUtils.numberSign(param2,1) * MathUtils.sign(local3) == -1;
}
private function getDesiredSpeedCoeff(param1:Track) : Number {
var local2:int = this.chassis.getActualMovementDirection();
var local3:int = this.chassis.getActualTurnDirection();
var local4:Number = 0;
if(local2 == 0) {
local4 = param1.side * local3 * 0.5;
} else if(local3 == 0) {
local4 = local2;
} else {
local4 = local2 * (3 + param1.side * local3) / 4;
}
return local4;
}
private function animateTrackWithoutContacts(param1:Track, param2:Number) : void {
var local3:Number = this.getDesiredSpeedCoeff(param1);
param1.setAnimationSpeed(local3 * this.maxSpeedSmoother.getTargetValue(),this.chassis.getAcceleration() * param2);
}
}
}
|
package alternativa.tanks.gui.components.rank {
import controls.dropdownlist.DropDownList;
import flash.events.Event;
import forms.Styles;
import forms.ranks.SmallRankIcon;
import projects.tanks.clients.fp10.libraries.tanksservices.service.rank.RankService;
public class RanksDropDownList extends DropDownList {
[Inject]
public static var rankService:RankService;
private static const RANK:String = "rank";
private var rankIcon:SmallRankIcon = new SmallRankIcon();
public function RanksDropDownList(param1:int) {
super();
var local2:int = param1;
while(local2 <= rankService.rankNames.length) {
addItem({
"gameName":"",
"rank":local2,
"rang":0
});
local2++;
}
this.rankIcon.x = 9;
this.rankIcon.y = 8;
this.rankIcon.mouseEnabled = false;
addChild(this.rankIcon);
width = 61;
addEventListener(Event.CHANGE,this.onChange,false,0,true);
}
override public function selectItemByField(param1:String, param2:Object) : void {
var local3:int = findItemIndexByField(param1,param2);
if(local3 != -1) {
_selectedItem = dp.getItemAt(local3);
_value = _selectedItem[RANK];
this.rankIcon.init(false,int(_value));
getList().selectedIndex = local3;
getList().scrollToSelected();
}
}
private function onChange(param1:Event) : void {
this.selectItemByField(RANK,selectedItem[RANK]);
}
override public function setRenderer(param1:Class) : void {
getList().setStyle(Styles.CELL_RENDERER,RanksRenderer);
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.sfx {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battlefield.models.tankparts.weapons.artillery.sfx.ArtillerySfxCC;
public class VectorCodecArtillerySfxCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecArtillerySfxCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(ArtillerySfxCC,false));
if(this.optionalElement) {
this.elementCodec = new OptionalCodecDecorator(this.elementCodec);
}
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:int = int(LengthCodecHelper.decodeLength(param1));
var local3:Vector.<ArtillerySfxCC> = new Vector.<ArtillerySfxCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = ArtillerySfxCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:ArtillerySfxCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<ArtillerySfxCC> = Vector.<ArtillerySfxCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package platform.client.fp10.core.network.command {
public class ServerMessageType {
public static const INFO:int = 0;
public static const WARNING:int = 1;
public static const ERROR:int = 2;
public static const CRITICAL:int = 3;
public function ServerMessageType() {
super();
}
}
}
|
package alternativa.engine3d.objects {
import alternativa.engine3d.alternativa3d;
import alternativa.engine3d.core.Camera3D;
import alternativa.engine3d.core.Clipping;
import alternativa.engine3d.core.Debug;
import alternativa.engine3d.core.Face;
import alternativa.engine3d.core.Object3D;
import alternativa.engine3d.core.Sorting;
import alternativa.engine3d.core.VG;
import alternativa.engine3d.core.Vertex;
import alternativa.engine3d.core.Wrapper;
import alternativa.engine3d.materials.Material;
import alternativa.gfx.core.IndexBufferResource;
import alternativa.gfx.core.VertexBufferResource;
import flash.geom.Matrix;
import flash.geom.Point;
import flash.utils.Dictionary;
use namespace alternativa3d;
public class SkyBox extends Mesh {
public static const LEFT:String = "left";
public static const RIGHT:String = "right";
public static const BACK:String = "back";
public static const FRONT:String = "front";
public static const BOTTOM:String = "bottom";
public static const TOP:String = "top";
private var leftFace:Face;
private var rightFace:Face;
private var backFace:Face;
private var frontFace:Face;
private var bottomFace:Face;
private var topFace:Face;
public var autoSize:Boolean = true;
alternativa3d var reduceConst:Vector.<Number> = Vector.<Number>([0,0,0,1]);
public function SkyBox(param1:Number, param2:Material = null, param3:Material = null, param4:Material = null, param5:Material = null, param6:Material = null, param7:Material = null, param8:Number = 0) {
super();
param1 *= 0.5;
var local9:Vertex = this.createVertex(-param1,-param1,param1,param8,param8);
var local10:Vertex = this.createVertex(-param1,-param1,-param1,param8,1 - param8);
var local11:Vertex = this.createVertex(-param1,param1,-param1,1 - param8,1 - param8);
var local12:Vertex = this.createVertex(-param1,param1,param1,1 - param8,param8);
this.leftFace = this.createQuad(local9,local10,local11,local12,param2);
local9 = this.createVertex(param1,param1,param1,param8,param8);
local10 = this.createVertex(param1,param1,-param1,param8,1 - param8);
local11 = this.createVertex(param1,-param1,-param1,1 - param8,1 - param8);
local12 = this.createVertex(param1,-param1,param1,1 - param8,param8);
this.rightFace = this.createQuad(local9,local10,local11,local12,param3);
local9 = this.createVertex(param1,-param1,param1,param8,param8);
local10 = this.createVertex(param1,-param1,-param1,param8,1 - param8);
local11 = this.createVertex(-param1,-param1,-param1,1 - param8,1 - param8);
local12 = this.createVertex(-param1,-param1,param1,1 - param8,param8);
this.backFace = this.createQuad(local9,local10,local11,local12,param4);
local9 = this.createVertex(-param1,param1,param1,param8,param8);
local10 = this.createVertex(-param1,param1,-param1,param8,1 - param8);
local11 = this.createVertex(param1,param1,-param1,1 - param8,1 - param8);
local12 = this.createVertex(param1,param1,param1,1 - param8,param8);
this.frontFace = this.createQuad(local9,local10,local11,local12,param5);
local9 = this.createVertex(-param1,param1,-param1,param8,param8);
local10 = this.createVertex(-param1,-param1,-param1,param8,1 - param8);
local11 = this.createVertex(param1,-param1,-param1,1 - param8,1 - param8);
local12 = this.createVertex(param1,param1,-param1,1 - param8,param8);
this.bottomFace = this.createQuad(local9,local10,local11,local12,param6);
local9 = this.createVertex(-param1,-param1,param1,param8,param8);
local10 = this.createVertex(-param1,param1,param1,param8,1 - param8);
local11 = this.createVertex(param1,param1,param1,1 - param8,1 - param8);
local12 = this.createVertex(param1,-param1,param1,1 - param8,param8);
this.topFace = this.createQuad(local9,local10,local11,local12,param7);
calculateBounds();
calculateFacesNormals(true);
clipping = Clipping.FACE_CLIPPING;
sorting = Sorting.NONE;
shadowMapAlphaThreshold = 100;
}
public function getSide(param1:String) : Face {
switch(param1) {
case LEFT:
return this.leftFace;
case RIGHT:
return this.rightFace;
case BACK:
return this.backFace;
case FRONT:
return this.frontFace;
case BOTTOM:
return this.bottomFace;
case TOP:
return this.topFace;
default:
return null;
}
}
public function transformUV(param1:String, param2:Matrix) : void {
var local4:Wrapper = null;
var local5:Vertex = null;
var local6:Point = null;
var local3:Face = this.getSide(param1);
if(local3 != null) {
local4 = local3.alternativa3d::wrapper;
while(local4 != null) {
local5 = local4.alternativa3d::vertex;
local6 = param2.transformPoint(new Point(local5.u,local5.v));
local5.u = local6.x;
local5.v = local6.y;
local4 = local4.alternativa3d::next;
}
}
}
override public function clone() : Object3D {
var local1:SkyBox = new SkyBox(0);
local1.clonePropertiesFrom(this);
return local1;
}
override protected function clonePropertiesFrom(param1:Object3D) : void {
super.clonePropertiesFrom(param1);
var local2:SkyBox = param1 as SkyBox;
this.autoSize = local2.autoSize;
var local3:Face = local2.alternativa3d::faceList;
var local4:Face = alternativa3d::faceList;
while(local3 != null) {
if(local3 == local2.leftFace) {
this.leftFace = local4;
} else if(local3 == local2.rightFace) {
this.rightFace = local4;
} else if(local3 == local2.backFace) {
this.backFace = local4;
} else if(local3 == local2.frontFace) {
this.frontFace = local4;
} else if(local3 == local2.bottomFace) {
this.bottomFace = local4;
} else if(local3 == local2.topFace) {
this.topFace = local4;
}
local3 = local3.alternativa3d::next;
local4 = local4.alternativa3d::next;
}
}
private function createVertex(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number) : Vertex {
var local6:Vertex = new Vertex();
local6.alternativa3d::next = alternativa3d::vertexList;
alternativa3d::vertexList = local6;
local6.x = param1;
local6.y = param2;
local6.z = param3;
local6.u = param4;
local6.v = param5;
return local6;
}
private function createQuad(param1:Vertex, param2:Vertex, param3:Vertex, param4:Vertex, param5:Material) : Face {
var local6:Face = new Face();
local6.material = param5;
local6.alternativa3d::next = alternativa3d::faceList;
alternativa3d::faceList = local6;
local6.alternativa3d::wrapper = new Wrapper();
local6.alternativa3d::wrapper.alternativa3d::vertex = param1;
local6.alternativa3d::wrapper.alternativa3d::next = new Wrapper();
local6.alternativa3d::wrapper.alternativa3d::next.alternativa3d::vertex = param2;
local6.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next = new Wrapper();
local6.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next.alternativa3d::vertex = param3;
local6.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next.alternativa3d::next = new Wrapper();
local6.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next.alternativa3d::next.alternativa3d::vertex = param4;
return local6;
}
override alternativa3d function draw(param1:Camera3D) : void {
if(alternativa3d::faceList == null) {
return;
}
if(this.autoSize) {
this.calculateTransform(param1);
}
if(clipping == 0) {
if(Boolean(alternativa3d::culling & 1)) {
return;
}
alternativa3d::culling = 0;
}
this.alternativa3d::prepareResources();
this.alternativa3d::addOpaque(param1);
alternativa3d::transformConst[0] = alternativa3d::ma;
alternativa3d::transformConst[1] = alternativa3d::mb;
alternativa3d::transformConst[2] = alternativa3d::mc;
alternativa3d::transformConst[3] = alternativa3d::md;
alternativa3d::transformConst[4] = alternativa3d::me;
alternativa3d::transformConst[5] = alternativa3d::mf;
alternativa3d::transformConst[6] = alternativa3d::mg;
alternativa3d::transformConst[7] = alternativa3d::mh;
alternativa3d::transformConst[8] = alternativa3d::mi;
alternativa3d::transformConst[9] = alternativa3d::mj;
alternativa3d::transformConst[10] = alternativa3d::mk;
alternativa3d::transformConst[11] = alternativa3d::ml;
var local2:int = param1.debug ? int(param1.alternativa3d::checkInDebug(this)) : 0;
if(Boolean(local2 & Debug.BOUNDS)) {
Debug.alternativa3d::drawBounds(param1,this,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ);
}
}
override alternativa3d function prepareResources() : void {
var local1:Vector.<Number> = null;
var local2:int = 0;
var local3:int = 0;
var local4:Vertex = null;
var local5:int = 0;
var local6:int = 0;
var local7:int = 0;
var local8:Face = null;
var local9:Array = null;
var local10:Wrapper = null;
var local11:Dictionary = null;
var local12:Vector.<uint> = null;
var local13:int = 0;
var local14:* = undefined;
if(alternativa3d::vertexBuffer == null) {
local1 = new Vector.<Number>();
local2 = 0;
local3 = 0;
local4 = alternativa3d::vertexList;
while(local4 != null) {
local1[local2] = local4.x;
local2++;
local1[local2] = local4.y;
local2++;
local1[local2] = local4.z;
local2++;
local1[local2] = local4.u;
local2++;
local1[local2] = local4.v;
local2++;
local1[local2] = local4.normalX;
local2++;
local1[local2] = local4.normalY;
local2++;
local1[local2] = local4.normalZ;
local2++;
local4.alternativa3d::index = local3;
local3++;
local4 = local4.alternativa3d::next;
}
if(local3 > 0) {
alternativa3d::vertexBuffer = new VertexBufferResource(local1,8);
}
local11 = new Dictionary();
local8 = alternativa3d::faceList;
while(local8 != null) {
if(local8.material != null) {
local9 = local11[local8.material];
if(local9 == null) {
local9 = new Array();
local11[local8.material] = local9;
}
local9.push(local8);
}
local8 = local8.alternativa3d::next;
}
local12 = new Vector.<uint>();
local13 = 0;
for(local14 in local11) {
local9 = local11[local14];
opaqueMaterials[opaqueLength] = local14;
opaqueBegins[opaqueLength] = alternativa3d::numTriangles * 3;
for each(local8 in local9) {
local10 = local8.alternativa3d::wrapper;
local5 = int(local10.alternativa3d::vertex.alternativa3d::index);
local10 = local10.alternativa3d::next;
local6 = int(local10.alternativa3d::vertex.alternativa3d::index);
local10 = local10.alternativa3d::next;
while(local10 != null) {
local7 = int(local10.alternativa3d::vertex.alternativa3d::index);
local12[local13] = local5;
local13++;
local12[local13] = local6;
local13++;
local12[local13] = local7;
local13++;
local6 = local7;
++alternativa3d::numTriangles;
local10 = local10.alternativa3d::next;
}
}
opaqueNums[opaqueLength] = alternativa3d::numTriangles - opaqueBegins[opaqueLength] / 3;
++opaqueLength;
}
if(local13 > 0) {
alternativa3d::indexBuffer = new IndexBufferResource(local12);
}
}
}
override alternativa3d function addOpaque(param1:Camera3D) : void {
var local2:int = 0;
while(local2 < opaqueLength) {
param1.alternativa3d::addSky(opaqueMaterials[local2],alternativa3d::vertexBuffer,alternativa3d::indexBuffer,opaqueBegins[local2],opaqueNums[local2],this);
local2++;
}
}
override alternativa3d function getVG(param1:Camera3D) : VG {
this.alternativa3d::draw(param1);
return null;
}
override alternativa3d function cullingInCamera(param1:Camera3D, param2:int) : int {
return super.alternativa3d::cullingInCamera(param1,param2 = param2 & ~3);
}
private function calculateTransform(param1:Camera3D) : void {
var local2:Number = alternativa3d::mi * boundMinX + alternativa3d::mj * boundMinY + alternativa3d::mk * boundMinZ + alternativa3d::ml;
var local3:Number = local2;
local2 = alternativa3d::mi * boundMaxX + alternativa3d::mj * boundMinY + alternativa3d::mk * boundMinZ + alternativa3d::ml;
if(local2 > local3) {
local3 = local2;
}
local2 = alternativa3d::mi * boundMaxX + alternativa3d::mj * boundMaxY + alternativa3d::mk * boundMinZ + alternativa3d::ml;
if(local2 > local3) {
local3 = local2;
}
local2 = alternativa3d::mi * boundMinX + alternativa3d::mj * boundMaxY + alternativa3d::mk * boundMinZ + alternativa3d::ml;
if(local2 > local3) {
local3 = local2;
}
local2 = alternativa3d::mi * boundMinX + alternativa3d::mj * boundMinY + alternativa3d::mk * boundMaxZ + alternativa3d::ml;
if(local2 > local3) {
local3 = local2;
}
local2 = alternativa3d::mi * boundMaxX + alternativa3d::mj * boundMinY + alternativa3d::mk * boundMaxZ + alternativa3d::ml;
if(local2 > local3) {
local3 = local2;
}
local2 = alternativa3d::mi * boundMaxX + alternativa3d::mj * boundMaxY + alternativa3d::mk * boundMaxZ + alternativa3d::ml;
if(local2 > local3) {
local3 = local2;
}
local2 = alternativa3d::mi * boundMinX + alternativa3d::mj * boundMaxY + alternativa3d::mk * boundMaxZ + alternativa3d::ml;
if(local2 > local3) {
local3 = local2;
}
var local4:Number = 1;
if(local3 > param1.farClipping) {
local4 = param1.farClipping / local3;
}
this.alternativa3d::reduceConst[0] = local4;
this.alternativa3d::reduceConst[1] = local4;
this.alternativa3d::reduceConst[2] = local4;
}
}
}
|
package projects.tanks.clients.fp10.libraries.tanksservices.service.friend {
import alternativa.osgi.service.logging.LogService;
import flash.events.EventDispatcher;
import projects.tanks.clients.fp10.libraries.tanksservices.model.friends.FriendInfoConsumer;
import projects.tanks.clients.fp10.libraries.tanksservices.model.friends.FriendState;
import projects.tanks.clients.fp10.libraries.tanksservices.service.IInfoLabelUpdater;
public class FriendsInfoLabelUpdater extends EventDispatcher implements FriendInfoConsumer, IFriendsInfoLabelUpdater, IInfoLabelUpdater {
[Inject]
public static var logService:LogService;
private var _state:FriendState;
private var _visibleLabelsCounter:int;
private var _lastAccessTime:Number;
public function FriendsInfoLabelUpdater() {
super();
}
public function setFriendState(param1:FriendState) : void {
this._state = param1;
dispatchEvent(new FriendInfoLabelUpdaterEvent(FriendInfoLabelUpdaterEvent.CHANGE_STATE));
}
public function get state() : FriendState {
return this._state;
}
public function incrementVisibleLabelsCounter() : void {
++this._visibleLabelsCounter;
}
public function decrementVisibleLabelsCounter() : void {
--this._visibleLabelsCounter;
}
public function get visibleLabelsCounter() : int {
return this._visibleLabelsCounter;
}
public function updateLastAccessTime() : void {
this._lastAccessTime = new Date().time;
}
public function get lastAccessTime() : Number {
return this._lastAccessTime;
}
}
}
|
package projects.tanks.client.battlefield.osgi {
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.CodecBattlefieldCC;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.VectorCodecBattlefieldCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.billboard.CodecBillboardCC;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.billboard.VectorCodecBillboardCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.billboard.billboardimage.CodecBillboardImageCC;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.billboard.billboardimage.VectorCodecBillboardImageCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.facilities.facillity.CodecCommonFacilityCC;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.facilities.facillity.CodecFacilitySphericalZoneCC;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.facilities.facillity.VectorCodecCommonFacilityCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.facilities.facillity.VectorCodecFacilitySphericalZoneCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.fps.CodecFpsStatisticType;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.fps.VectorCodecFpsStatisticTypeLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.meteors.CodecMeteorDescriptor;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.meteors.CodecMeteorStormCC;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.meteors.VectorCodecMeteorDescriptorLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.meteors.VectorCodecMeteorStormCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.mine.CodecBattleMine;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.mine.CodecBattleMineCC;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.mine.VectorCodecBattleMineCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.mine.VectorCodecBattleMineLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.types.CodecBattlefieldSounds;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.types.CodecHitTraceData;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.types.VectorCodecBattlefieldSoundsLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.battlefield.types.VectorCodecHitTraceDataLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.cp.CodecClientPointData;
import _codec.projects.tanks.client.battlefield.models.battle.cp.CodecControlPointState;
import _codec.projects.tanks.client.battlefield.models.battle.cp.CodecControlPointsCC;
import _codec.projects.tanks.client.battlefield.models.battle.cp.VectorCodecClientPointDataLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.cp.VectorCodecControlPointStateLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.cp.VectorCodecControlPointsCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.cp.resources.CodecDominationResources;
import _codec.projects.tanks.client.battlefield.models.battle.cp.resources.CodecDominationSounds;
import _codec.projects.tanks.client.battlefield.models.battle.cp.resources.VectorCodecDominationResourcesLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.cp.resources.VectorCodecDominationSoundsLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.gui.group.CodecMatchmakingGroupInfoCC;
import _codec.projects.tanks.client.battlefield.models.battle.gui.group.VectorCodecMatchmakingGroupInfoCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.gui.inventory.CodecInventoryCC;
import _codec.projects.tanks.client.battlefield.models.battle.gui.inventory.VectorCodecInventoryCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.jgr.CodecJuggernautCC;
import _codec.projects.tanks.client.battlefield.models.battle.jgr.VectorCodecJuggernautCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.jgr.killstreak.CodecKillStreakCC;
import _codec.projects.tanks.client.battlefield.models.battle.jgr.killstreak.CodecKillStreakItem;
import _codec.projects.tanks.client.battlefield.models.battle.jgr.killstreak.VectorCodecKillStreakCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.jgr.killstreak.VectorCodecKillStreakItemLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.CodecClientTeamPoint;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.CodecPointBasedBattleCC;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.VectorCodecClientTeamPointLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.VectorCodecPointBasedBattleCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.assault.CodecAssaultCC;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.assault.CodecAssaultSoundFX;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.assault.VectorCodecAssaultCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.assault.VectorCodecAssaultSoundFXLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.ctf.CodecCaptureTheFlagCC;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.ctf.CodecCaptureTheFlagSoundFX;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.ctf.VectorCodecCaptureTheFlagCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.ctf.VectorCodecCaptureTheFlagSoundFXLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.CodecClientFlag;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.CodecClientFlagFlyingData;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.CodecFlagFlyPoint;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.CodecFlagState;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.CodecFlyingMode;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.VectorCodecClientFlagFlyingDataLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.VectorCodecClientFlagLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.VectorCodecFlagFlyPointLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.VectorCodecFlagStateLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag.VectorCodecFlyingModeLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.rugby.CodecRugbyCC;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.rugby.CodecRugbySoundFX;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.rugby.VectorCodecRugbyCCLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.rugby.VectorCodecRugbySoundFXLevel1;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.rugby.explosion.CodecBallExplosionCC;
import _codec.projects.tanks.client.battlefield.models.battle.pointbased.rugby.explosion.VectorCodecBallExplosionCCLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.CodecBonusSpawnData;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.VectorCodecBonusSpawnDataLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.battlefield.CodecBattlefieldBonusesCC;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.battlefield.VectorCodecBattlefieldBonusesCCLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.bonusregions.CodecBonusRegionData;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.bonusregions.CodecBonusRegionResource;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.bonusregions.CodecBonusRegionsCC;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.bonusregions.VectorCodecBonusRegionDataLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.bonusregions.VectorCodecBonusRegionResourceLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.bonusregions.VectorCodecBonusRegionsCCLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.goldbonus.CodecGoldBonusCC;
import _codec.projects.tanks.client.battlefield.models.bonus.battle.goldbonus.VectorCodecGoldBonusCCLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.bonus.CodecBonusesType;
import _codec.projects.tanks.client.battlefield.models.bonus.bonus.VectorCodecBonusesTypeLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.bonus.battlebonuses.crystal.CodecBattleGoldBonusCC;
import _codec.projects.tanks.client.battlefield.models.bonus.bonus.battlebonuses.crystal.VectorCodecBattleGoldBonusCCLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.bonus.common.CodecBonusCommonCC;
import _codec.projects.tanks.client.battlefield.models.bonus.bonus.common.VectorCodecBonusCommonCCLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.bonus.notification.CodecNotificationBonusCC;
import _codec.projects.tanks.client.battlefield.models.bonus.bonus.notification.VectorCodecNotificationBonusCCLevel1;
import _codec.projects.tanks.client.battlefield.models.bonus.bonuslight.CodecBonusLightCC;
import _codec.projects.tanks.client.battlefield.models.bonus.bonuslight.VectorCodecBonusLightCCLevel1;
import _codec.projects.tanks.client.battlefield.models.coloradjust.CodecColorAdjustCC;
import _codec.projects.tanks.client.battlefield.models.coloradjust.CodecColorAdjustParams;
import _codec.projects.tanks.client.battlefield.models.coloradjust.VectorCodecColorAdjustCCLevel1;
import _codec.projects.tanks.client.battlefield.models.coloradjust.VectorCodecColorAdjustParamsLevel1;
import _codec.projects.tanks.client.battlefield.models.drone.CodecDroneIndicatorCC;
import _codec.projects.tanks.client.battlefield.models.drone.CodecDroneSFXCC;
import _codec.projects.tanks.client.battlefield.models.drone.VectorCodecDroneIndicatorCCLevel1;
import _codec.projects.tanks.client.battlefield.models.drone.VectorCodecDroneSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.drone.demoman.CodecDroneExplosionCC;
import _codec.projects.tanks.client.battlefield.models.drone.demoman.VectorCodecDroneExplosionCCLevel1;
import _codec.projects.tanks.client.battlefield.models.effects.activationsfx.CodecEffectSFXRecordCC;
import _codec.projects.tanks.client.battlefield.models.effects.activationsfx.CodecTankEffectSFXCC;
import _codec.projects.tanks.client.battlefield.models.effects.activationsfx.VectorCodecEffectSFXRecordCCLevel1;
import _codec.projects.tanks.client.battlefield.models.effects.activationsfx.VectorCodecTankEffectSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.effects.activeafterdeath.CodecActiveAfterDeathCC;
import _codec.projects.tanks.client.battlefield.models.effects.activeafterdeath.VectorCodecActiveAfterDeathCCLevel1;
import _codec.projects.tanks.client.battlefield.models.effects.description.CodecEffectCategory;
import _codec.projects.tanks.client.battlefield.models.effects.description.CodecEffectDescriptionCC;
import _codec.projects.tanks.client.battlefield.models.effects.description.VectorCodecEffectCategoryLevel1;
import _codec.projects.tanks.client.battlefield.models.effects.description.VectorCodecEffectDescriptionCCLevel1;
import _codec.projects.tanks.client.battlefield.models.effects.duration.time.CodecDurationCC;
import _codec.projects.tanks.client.battlefield.models.effects.duration.time.VectorCodecDurationCCLevel1;
import _codec.projects.tanks.client.battlefield.models.effects.effectlevel.CodecEffectLevelCC;
import _codec.projects.tanks.client.battlefield.models.effects.effectlevel.VectorCodecEffectLevelCCLevel1;
import _codec.projects.tanks.client.battlefield.models.inventory.cooldown.CodecDependedCooldownItem;
import _codec.projects.tanks.client.battlefield.models.inventory.cooldown.VectorCodecDependedCooldownItemLevel1;
import _codec.projects.tanks.client.battlefield.models.inventory.item.CodecInventoryItemCC;
import _codec.projects.tanks.client.battlefield.models.inventory.item.VectorCodecInventoryItemCCLevel1;
import _codec.projects.tanks.client.battlefield.models.inventory.sfx.CodecInventorySfxCC;
import _codec.projects.tanks.client.battlefield.models.inventory.sfx.VectorCodecInventorySfxCCLevel1;
import _codec.projects.tanks.client.battlefield.models.map.CodecBattleMapCC;
import _codec.projects.tanks.client.battlefield.models.map.CodecDustParams;
import _codec.projects.tanks.client.battlefield.models.map.CodecDynamicShadowParams;
import _codec.projects.tanks.client.battlefield.models.map.CodecFogParams;
import _codec.projects.tanks.client.battlefield.models.map.CodecSkyboxSides;
import _codec.projects.tanks.client.battlefield.models.map.VectorCodecBattleMapCCLevel1;
import _codec.projects.tanks.client.battlefield.models.map.VectorCodecDustParamsLevel1;
import _codec.projects.tanks.client.battlefield.models.map.VectorCodecDynamicShadowParamsLevel1;
import _codec.projects.tanks.client.battlefield.models.map.VectorCodecFogParamsLevel1;
import _codec.projects.tanks.client.battlefield.models.map.VectorCodecSkyboxSidesLevel1;
import _codec.projects.tanks.client.battlefield.models.mapbonuslight.CodecMapBonusLightCC;
import _codec.projects.tanks.client.battlefield.models.mapbonuslight.VectorCodecMapBonusLightCCLevel1;
import _codec.projects.tanks.client.battlefield.models.statistics.targetingmode.CodecTargetingMode;
import _codec.projects.tanks.client.battlefield.models.statistics.targetingmode.VectorCodecTargetingModeLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.chassis.tracked.CodecTrackedChassisCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.chassis.tracked.VectorCodecTrackedChassisCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.common.CodecHullCommonCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.common.VectorCodecHullCommonCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.explosion.CodecTankExplosionCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.explosion.VectorCodecTankExplosionCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.rankup.CodecTankRankUpEffectCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.rankup.VectorCodecTankRankUpEffectCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.simple.CodecSimpleArmorCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.armor.simple.VectorCodecSimpleArmorCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.engine.CodecEngineCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.engine.VectorCodecEngineCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.gearscore.CodecBattleGearScoreCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.gearscore.VectorCodecBattleGearScoreCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.colortransform.CodecColorTransformCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.colortransform.VectorCodecColorTransformCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.colortransform.struct.CodecColorTransformStruct;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.colortransform.struct.VectorCodecColorTransformStructLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.firebird.CodecFlameThrowingSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.firebird.VectorCodecFlameThrowingSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.freeze.CodecFreezeSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.freeze.VectorCodecFreezeSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.isis.CodecIsisSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.isis.VectorCodecIsisSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.CodecLightEffectItem;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.CodecLightingEffectEntity;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.CodecLightingSFXEntity;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.VectorCodecLightEffectItemLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.VectorCodecLightingEffectEntityLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.VectorCodecLightingSFXEntityLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.railgun.CodecRailgunShootSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.railgun.VectorCodecRailgunShootSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.ricochet.CodecRicochetSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.ricochet.VectorCodecRicochetSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.shaft.CodecShaftShootSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.shaft.VectorCodecShaftShootSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.smoky.CodecSmokyShootSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.smoky.VectorCodecSmokyShootSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.thunder.CodecThunderShootSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.thunder.VectorCodecThunderShootSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.twins.CodecTwinsShootSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.twins.VectorCodecTwinsShootSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.smoke.CodecHullSmokeCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.sfx.smoke.VectorCodecHullSmokeCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.angles.verticals.CodecVerticalAnglesCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.angles.verticals.VectorCodecVerticalAnglesCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.common.CodecWeaponCommonCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.common.VectorCodecWeaponCommonCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.flamethrower.CodecFlameThrowerCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.flamethrower.VectorCodecFlameThrowerCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.freeze.CodecFreezeCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.freeze.VectorCodecFreezeCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.gauss.CodecGaussCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.gauss.VectorCodecGaussCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.gauss.sfx.CodecGaussSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.gauss.sfx.VectorCodecGaussSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.healing.CodecIsisCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.healing.CodecIsisState;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.healing.VectorCodecIsisCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.healing.VectorCodecIsisStateLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.laser.CodecLaserPointerCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.laser.VectorCodecLaserPointerCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.railgun.CodecRailgunCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.railgun.VectorCodecRailgunCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.ricochet.CodecRicochetCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.ricochet.VectorCodecRicochetCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.shaft.CodecShaftCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.shaft.VectorCodecShaftCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.shot.CodecShotCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.shot.VectorCodecShotCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.splash.CodecSplashCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.splash.VectorCodecSplashCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.streamweapon.CodecStreamWeaponCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.streamweapon.VectorCodecStreamWeaponCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.terminator.CodecTerminatorCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.terminator.VectorCodecTerminatorCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.terminator.sfx.CodecTerminatorSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.terminator.sfx.VectorCodecTerminatorSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.turret.CodecRotatingTurretCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.turret.VectorCodecRotatingTurretCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.twins.CodecTwinsCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.twins.VectorCodecTwinsCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.weakening.CodecWeaponWeakeningCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapon.weakening.VectorCodecWeaponWeakeningCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.CodecArtilleryCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.VectorCodecArtilleryCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation.CodecArtilleryElevatingBarrelCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation.CodecBarrelElevationCommand;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation.VectorCodecArtilleryElevatingBarrelCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation.VectorCodecBarrelElevationCommandLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.sfx.CodecArtillerySfxCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.sfx.VectorCodecArtillerySfxCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.common.CodecTargetPosition;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.common.VectorCodecTargetPositionLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.common.discrete.CodecTargetHit;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.common.discrete.VectorCodecTargetHitLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.common.shell.CodecShellHit;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.common.shell.CodecShellState;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.common.shell.VectorCodecShellHitLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.common.shell.VectorCodecShellStateLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.cc.CodecMachineGunCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.cc.VectorCodecMachineGunCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.sfx.CodecMachineGunSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.sfx.VectorCodecMachineGunSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.CodecRocketLauncherCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.VectorCodecRocketLauncherCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.sfx.CodecRocketLauncherSfxCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.sfx.VectorCodecRocketLauncherSfxCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.aiming.CodecShotGunAimingCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.aiming.VectorCodecShotGunAimingCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.sfx.CodecShotgunSFXCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.sfx.VectorCodecShotgunSFXCCLevel1;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.shot.CodecShotgunShotCC;
import _codec.projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.shot.VectorCodecShotgunShotCCLevel1;
import _codec.projects.tanks.client.battlefield.models.teamlight.CodecTeamLightCC;
import _codec.projects.tanks.client.battlefield.models.teamlight.CodecTeamLightColorParams;
import _codec.projects.tanks.client.battlefield.models.teamlight.CodecTeamLightParams;
import _codec.projects.tanks.client.battlefield.models.teamlight.VectorCodecTeamLightCCLevel1;
import _codec.projects.tanks.client.battlefield.models.teamlight.VectorCodecTeamLightColorParamsLevel1;
import _codec.projects.tanks.client.battlefield.models.teamlight.VectorCodecTeamLightParamsLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.common.CodecUltimateCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.common.VectorCodecUltimateCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.dictator.CodecDictatorUltimateCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.dictator.VectorCodecDictatorUltimateCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.hornet.CodecHornetUltimateCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.hornet.VectorCodecHornetUltimateCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.hornet.radar.CodecBattleUltimateRadarCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.hornet.radar.VectorCodecBattleUltimateRadarCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.hunter.CodecHunterUltimateCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.hunter.CodecTankStunCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.hunter.VectorCodecHunterUltimateCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.hunter.VectorCodecTankStunCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.juggernaut.CodecJuggernautUltimateCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.juggernaut.VectorCodecJuggernautUltimateCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.mammoth.CodecMammothUltimateCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.mammoth.VectorCodecMammothUltimateCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.titan.generator.CodecTitanUltimateGeneratorCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.titan.generator.VectorCodecTitanUltimateGeneratorCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.viking.CodecVikingUltimateCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.viking.VectorCodecVikingUltimateCCLevel1;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.wasp.bomb.CodecWaspUltimateBombCC;
import _codec.projects.tanks.client.battlefield.models.ultimate.effects.wasp.bomb.VectorCodecWaspUltimateBombCCLevel1;
import _codec.projects.tanks.client.battlefield.models.user.bossstate.CodecBossRelationRole;
import _codec.projects.tanks.client.battlefield.models.user.bossstate.CodecBossStateCC;
import _codec.projects.tanks.client.battlefield.models.user.bossstate.VectorCodecBossRelationRoleLevel1;
import _codec.projects.tanks.client.battlefield.models.user.bossstate.VectorCodecBossStateCCLevel1;
import _codec.projects.tanks.client.battlefield.models.user.configuration.CodecTankConfigurationCC;
import _codec.projects.tanks.client.battlefield.models.user.configuration.VectorCodecTankConfigurationCCLevel1;
import _codec.projects.tanks.client.battlefield.models.user.damageindicator.CodecDamageIndicatorType;
import _codec.projects.tanks.client.battlefield.models.user.damageindicator.CodecTargetTankDamage;
import _codec.projects.tanks.client.battlefield.models.user.damageindicator.VectorCodecDamageIndicatorTypeLevel1;
import _codec.projects.tanks.client.battlefield.models.user.damageindicator.VectorCodecTargetTankDamageLevel1;
import _codec.projects.tanks.client.battlefield.models.user.device.CodecTankDeviceCC;
import _codec.projects.tanks.client.battlefield.models.user.device.VectorCodecTankDeviceCCLevel1;
import _codec.projects.tanks.client.battlefield.models.user.resistance.CodecTankResistance;
import _codec.projects.tanks.client.battlefield.models.user.resistance.CodecTankResistancesCC;
import _codec.projects.tanks.client.battlefield.models.user.resistance.VectorCodecTankResistanceLevel1;
import _codec.projects.tanks.client.battlefield.models.user.resistance.VectorCodecTankResistancesCCLevel1;
import _codec.projects.tanks.client.battlefield.models.user.spawn.CodecTankSpawnerCC;
import _codec.projects.tanks.client.battlefield.models.user.spawn.VectorCodecTankSpawnerCCLevel1;
import _codec.projects.tanks.client.battlefield.models.user.speedcharacteristics.CodecSpeedCharacteristicsCC;
import _codec.projects.tanks.client.battlefield.models.user.speedcharacteristics.VectorCodecSpeedCharacteristicsCCLevel1;
import _codec.projects.tanks.client.battlefield.models.user.suicide.CodecSuicideCC;
import _codec.projects.tanks.client.battlefield.models.user.suicide.VectorCodecSuicideCCLevel1;
import _codec.projects.tanks.client.battlefield.models.user.tank.CodecTankCC;
import _codec.projects.tanks.client.battlefield.models.user.tank.CodecTankLogicState;
import _codec.projects.tanks.client.battlefield.models.user.tank.VectorCodecTankCCLevel1;
import _codec.projects.tanks.client.battlefield.models.user.tank.VectorCodecTankLogicStateLevel1;
import _codec.projects.tanks.client.battlefield.models.user.tank.commands.CodecMoveCommand;
import _codec.projects.tanks.client.battlefield.models.user.tank.commands.CodecTurretControlType;
import _codec.projects.tanks.client.battlefield.models.user.tank.commands.CodecTurretStateCommand;
import _codec.projects.tanks.client.battlefield.models.user.tank.commands.VectorCodecMoveCommandLevel1;
import _codec.projects.tanks.client.battlefield.models.user.tank.commands.VectorCodecTurretControlTypeLevel1;
import _codec.projects.tanks.client.battlefield.models.user.tank.commands.VectorCodecTurretStateCommandLevel1;
import _codec.projects.tanks.client.battlefield.types.CodecDamageType;
import _codec.projects.tanks.client.battlefield.types.CodecTankState;
import _codec.projects.tanks.client.battlefield.types.CodecVector3d;
import _codec.projects.tanks.client.battlefield.types.VectorCodecDamageTypeLevel1;
import _codec.projects.tanks.client.battlefield.types.VectorCodecTankStateLevel1;
import _codec.projects.tanks.client.battlefield.types.VectorCodecVector3dLevel1;
import alternativa.osgi.OSGi;
import alternativa.osgi.bundle.IBundleActivator;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.info.CollectionCodecInfo;
import alternativa.protocol.info.EnumCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.registry.ModelRegistry;
import projects.tanks.client.battlefield.models.battle.battlefield.BattlefieldCC;
import projects.tanks.client.battlefield.models.battle.battlefield.billboard.BillboardCC;
import projects.tanks.client.battlefield.models.battle.battlefield.billboard.billboardimage.BillboardImageCC;
import projects.tanks.client.battlefield.models.battle.battlefield.facilities.facillity.CommonFacilityCC;
import projects.tanks.client.battlefield.models.battle.battlefield.facilities.facillity.FacilitySphericalZoneCC;
import projects.tanks.client.battlefield.models.battle.battlefield.fps.FpsStatisticType;
import projects.tanks.client.battlefield.models.battle.battlefield.meteors.MeteorDescriptor;
import projects.tanks.client.battlefield.models.battle.battlefield.meteors.MeteorStormCC;
import projects.tanks.client.battlefield.models.battle.battlefield.mine.BattleMine;
import projects.tanks.client.battlefield.models.battle.battlefield.mine.BattleMineCC;
import projects.tanks.client.battlefield.models.battle.battlefield.types.BattlefieldSounds;
import projects.tanks.client.battlefield.models.battle.battlefield.types.HitTraceData;
import projects.tanks.client.battlefield.models.battle.cp.ClientPointData;
import projects.tanks.client.battlefield.models.battle.cp.ControlPointState;
import projects.tanks.client.battlefield.models.battle.cp.ControlPointsCC;
import projects.tanks.client.battlefield.models.battle.cp.resources.DominationResources;
import projects.tanks.client.battlefield.models.battle.cp.resources.DominationSounds;
import projects.tanks.client.battlefield.models.battle.gui.group.MatchmakingGroupInfoCC;
import projects.tanks.client.battlefield.models.battle.gui.inventory.InventoryCC;
import projects.tanks.client.battlefield.models.battle.jgr.JuggernautCC;
import projects.tanks.client.battlefield.models.battle.jgr.killstreak.KillStreakCC;
import projects.tanks.client.battlefield.models.battle.jgr.killstreak.KillStreakItem;
import projects.tanks.client.battlefield.models.battle.pointbased.ClientTeamPoint;
import projects.tanks.client.battlefield.models.battle.pointbased.PointBasedBattleCC;
import projects.tanks.client.battlefield.models.battle.pointbased.assault.AssaultCC;
import projects.tanks.client.battlefield.models.battle.pointbased.assault.AssaultSoundFX;
import projects.tanks.client.battlefield.models.battle.pointbased.ctf.CaptureTheFlagCC;
import projects.tanks.client.battlefield.models.battle.pointbased.ctf.CaptureTheFlagSoundFX;
import projects.tanks.client.battlefield.models.battle.pointbased.flag.ClientFlag;
import projects.tanks.client.battlefield.models.battle.pointbased.flag.ClientFlagFlyingData;
import projects.tanks.client.battlefield.models.battle.pointbased.flag.FlagFlyPoint;
import projects.tanks.client.battlefield.models.battle.pointbased.flag.FlagState;
import projects.tanks.client.battlefield.models.battle.pointbased.flag.FlyingMode;
import projects.tanks.client.battlefield.models.battle.pointbased.rugby.RugbyCC;
import projects.tanks.client.battlefield.models.battle.pointbased.rugby.RugbySoundFX;
import projects.tanks.client.battlefield.models.battle.pointbased.rugby.explosion.BallExplosionCC;
import projects.tanks.client.battlefield.models.bonus.battle.BonusSpawnData;
import projects.tanks.client.battlefield.models.bonus.battle.battlefield.BattlefieldBonusesCC;
import projects.tanks.client.battlefield.models.bonus.battle.bonusregions.BonusRegionData;
import projects.tanks.client.battlefield.models.bonus.battle.bonusregions.BonusRegionResource;
import projects.tanks.client.battlefield.models.bonus.battle.bonusregions.BonusRegionsCC;
import projects.tanks.client.battlefield.models.bonus.battle.goldbonus.GoldBonusCC;
import projects.tanks.client.battlefield.models.bonus.bonus.BonusesType;
import projects.tanks.client.battlefield.models.bonus.bonus.battlebonuses.crystal.BattleGoldBonusCC;
import projects.tanks.client.battlefield.models.bonus.bonus.common.BonusCommonCC;
import projects.tanks.client.battlefield.models.bonus.bonus.notification.NotificationBonusCC;
import projects.tanks.client.battlefield.models.bonus.bonuslight.BonusLightCC;
import projects.tanks.client.battlefield.models.coloradjust.ColorAdjustCC;
import projects.tanks.client.battlefield.models.coloradjust.ColorAdjustParams;
import projects.tanks.client.battlefield.models.drone.DroneIndicatorCC;
import projects.tanks.client.battlefield.models.drone.DroneSFXCC;
import projects.tanks.client.battlefield.models.drone.demoman.DroneExplosionCC;
import projects.tanks.client.battlefield.models.effects.activationsfx.EffectSFXRecordCC;
import projects.tanks.client.battlefield.models.effects.activationsfx.TankEffectSFXCC;
import projects.tanks.client.battlefield.models.effects.activeafterdeath.ActiveAfterDeathCC;
import projects.tanks.client.battlefield.models.effects.description.EffectCategory;
import projects.tanks.client.battlefield.models.effects.description.EffectDescriptionCC;
import projects.tanks.client.battlefield.models.effects.duration.time.DurationCC;
import projects.tanks.client.battlefield.models.effects.effectlevel.EffectLevelCC;
import projects.tanks.client.battlefield.models.inventory.cooldown.DependedCooldownItem;
import projects.tanks.client.battlefield.models.inventory.item.InventoryItemCC;
import projects.tanks.client.battlefield.models.inventory.sfx.InventorySfxCC;
import projects.tanks.client.battlefield.models.map.BattleMapCC;
import projects.tanks.client.battlefield.models.map.DustParams;
import projects.tanks.client.battlefield.models.map.DynamicShadowParams;
import projects.tanks.client.battlefield.models.map.FogParams;
import projects.tanks.client.battlefield.models.map.SkyboxSides;
import projects.tanks.client.battlefield.models.mapbonuslight.MapBonusLightCC;
import projects.tanks.client.battlefield.models.statistics.targetingmode.TargetingMode;
import projects.tanks.client.battlefield.models.tankparts.armor.chassis.tracked.TrackedChassisCC;
import projects.tanks.client.battlefield.models.tankparts.armor.common.HullCommonCC;
import projects.tanks.client.battlefield.models.tankparts.armor.explosion.TankExplosionCC;
import projects.tanks.client.battlefield.models.tankparts.armor.rankup.TankRankUpEffectCC;
import projects.tanks.client.battlefield.models.tankparts.armor.simple.SimpleArmorCC;
import projects.tanks.client.battlefield.models.tankparts.engine.EngineCC;
import projects.tanks.client.battlefield.models.tankparts.gearscore.BattleGearScoreCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.colortransform.ColorTransformCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.colortransform.struct.ColorTransformStruct;
import projects.tanks.client.battlefield.models.tankparts.sfx.firebird.FlameThrowingSFXCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.freeze.FreezeSFXCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.isis.IsisSFXCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightEffectItem;
import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingEffectEntity;
import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingSFXEntity;
import projects.tanks.client.battlefield.models.tankparts.sfx.shoot.railgun.RailgunShootSFXCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.shoot.ricochet.RicochetSFXCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.shoot.shaft.ShaftShootSFXCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.shoot.smoky.SmokyShootSFXCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.shoot.thunder.ThunderShootSFXCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.shoot.twins.TwinsShootSFXCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.smoke.HullSmokeCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.angles.verticals.VerticalAnglesCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.common.WeaponCommonCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.flamethrower.FlameThrowerCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.freeze.FreezeCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.gauss.GaussCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.gauss.sfx.GaussSFXCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.healing.IsisCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.healing.IsisState;
import projects.tanks.client.battlefield.models.tankparts.weapon.laser.LaserPointerCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.railgun.RailgunCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.ricochet.RicochetCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.shaft.ShaftCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.shot.ShotCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.splash.SplashCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.streamweapon.StreamWeaponCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.terminator.TerminatorCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.terminator.sfx.TerminatorSFXCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.turret.RotatingTurretCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.twins.TwinsCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.weakening.WeaponWeakeningCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.artillery.ArtilleryCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation.ArtilleryElevatingBarrelCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation.BarrelElevationCommand;
import projects.tanks.client.battlefield.models.tankparts.weapons.artillery.sfx.ArtillerySfxCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.common.TargetPosition;
import projects.tanks.client.battlefield.models.tankparts.weapons.common.discrete.TargetHit;
import projects.tanks.client.battlefield.models.tankparts.weapons.common.shell.ShellHit;
import projects.tanks.client.battlefield.models.tankparts.weapons.common.shell.ShellState;
import projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.cc.MachineGunCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.sfx.MachineGunSFXCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.RocketLauncherCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.sfx.RocketLauncherSfxCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.aiming.ShotGunAimingCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.sfx.ShotgunSFXCC;
import projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.shot.ShotgunShotCC;
import projects.tanks.client.battlefield.models.teamlight.TeamLightCC;
import projects.tanks.client.battlefield.models.teamlight.TeamLightColorParams;
import projects.tanks.client.battlefield.models.teamlight.TeamLightParams;
import projects.tanks.client.battlefield.models.ultimate.common.UltimateCC;
import projects.tanks.client.battlefield.models.ultimate.effects.dictator.DictatorUltimateCC;
import projects.tanks.client.battlefield.models.ultimate.effects.hornet.HornetUltimateCC;
import projects.tanks.client.battlefield.models.ultimate.effects.hornet.radar.BattleUltimateRadarCC;
import projects.tanks.client.battlefield.models.ultimate.effects.hunter.HunterUltimateCC;
import projects.tanks.client.battlefield.models.ultimate.effects.hunter.TankStunCC;
import projects.tanks.client.battlefield.models.ultimate.effects.juggernaut.JuggernautUltimateCC;
import projects.tanks.client.battlefield.models.ultimate.effects.mammoth.MammothUltimateCC;
import projects.tanks.client.battlefield.models.ultimate.effects.titan.generator.TitanUltimateGeneratorCC;
import projects.tanks.client.battlefield.models.ultimate.effects.viking.VikingUltimateCC;
import projects.tanks.client.battlefield.models.ultimate.effects.wasp.bomb.WaspUltimateBombCC;
import projects.tanks.client.battlefield.models.user.bossstate.BossRelationRole;
import projects.tanks.client.battlefield.models.user.bossstate.BossStateCC;
import projects.tanks.client.battlefield.models.user.configuration.TankConfigurationCC;
import projects.tanks.client.battlefield.models.user.damageindicator.DamageIndicatorType;
import projects.tanks.client.battlefield.models.user.damageindicator.TargetTankDamage;
import projects.tanks.client.battlefield.models.user.device.TankDeviceCC;
import projects.tanks.client.battlefield.models.user.resistance.TankResistance;
import projects.tanks.client.battlefield.models.user.resistance.TankResistancesCC;
import projects.tanks.client.battlefield.models.user.spawn.TankSpawnerCC;
import projects.tanks.client.battlefield.models.user.speedcharacteristics.SpeedCharacteristicsCC;
import projects.tanks.client.battlefield.models.user.suicide.SuicideCC;
import projects.tanks.client.battlefield.models.user.tank.TankCC;
import projects.tanks.client.battlefield.models.user.tank.TankLogicState;
import projects.tanks.client.battlefield.models.user.tank.commands.MoveCommand;
import projects.tanks.client.battlefield.models.user.tank.commands.TurretControlType;
import projects.tanks.client.battlefield.models.user.tank.commands.TurretStateCommand;
import projects.tanks.client.battlefield.types.DamageType;
import projects.tanks.client.battlefield.types.TankState;
import projects.tanks.client.battlefield.types.Vector3d;
public class Activator implements IBundleActivator {
public static var osgi:OSGi;
public function Activator() {
super();
}
public function start(param1:OSGi) : void {
var local4:ICodec = null;
osgi = param1;
var local2:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local2.register(Long.getLong(659324709,-1637199403),Long.getLong(1484124428,1709874221));
local2.register(Long.getLong(747925004,799189270),Long.getLong(826158396,-1985123151));
local2.register(Long.getLong(1723277227,1936126557),Long.getLong(1285984840,1983429603));
local2.register(Long.getLong(1723277227,1936126557),Long.getLong(1210824392,-987670337));
local2.register(Long.getLong(1723277227,1936126557),Long.getLong(180030714,353397522));
local2.register(Long.getLong(1723277227,1936126557),Long.getLong(711773257,1091256454));
local2.register(Long.getLong(779331045,19368635),Long.getLong(964810564,576305510));
local2.register(Long.getLong(779331045,19368635),Long.getLong(964810564,576984947));
local2.register(Long.getLong(779331045,19368635),Long.getLong(155643583,-870810465));
local2.register(Long.getLong(1779789989,953701943),Long.getLong(1287147105,1273566171));
local2.register(Long.getLong(2135606158,-499224081),Long.getLong(1749127255,695205765));
local2.register(Long.getLong(2135606158,-499224081),Long.getLong(674368666,1928778179));
local2.register(Long.getLong(479007306,2075268288),Long.getLong(1090794095,949129477));
local2.register(Long.getLong(479007306,2075268288),Long.getLong(1558315722,-513756959));
local2.register(Long.getLong(479007306,2075268288),Long.getLong(1130188491,-1001840691));
local2.register(Long.getLong(479007306,2075268288),Long.getLong(2091233297,-183088088));
local2.register(Long.getLong(479007306,2075268288),Long.getLong(1555952411,-2052736679));
local2.register(Long.getLong(375259874,-2064506790),Long.getLong(113336798,-635616124));
local2.register(Long.getLong(375259874,-2064506790),Long.getLong(113336798,-648481992));
local2.register(Long.getLong(375259874,-2064506790),Long.getLong(1656540814,-150441162));
local2.register(Long.getLong(375259874,-2064506790),Long.getLong(93222359,396117780));
local2.register(Long.getLong(375259874,-2064506790),Long.getLong(1109525934,-1995327689));
local2.register(Long.getLong(375259874,-2064506790),Long.getLong(1209531510,1444573534));
local2.register(Long.getLong(375259874,-2064506790),Long.getLong(1944648201,859419652));
local2.register(Long.getLong(1254001332,-1596966842),Long.getLong(1268063749,-1740285311));
local2.register(Long.getLong(1254001332,-1596966842),Long.getLong(1310559631,-90978751));
local2.register(Long.getLong(1254001332,-1596966842),Long.getLong(211790396,868140590));
local2.register(Long.getLong(1254001332,-1596966842),Long.getLong(540625227,-85921692));
local2.register(Long.getLong(1254001332,-1596966842),Long.getLong(159380621,1692473102));
local2.register(Long.getLong(1833384627,1931960874),Long.getLong(954291601,249244676));
local2.register(Long.getLong(1833384627,1931960874),Long.getLong(1631784385,-1855967691));
local2.register(Long.getLong(1192985770,445553764),Long.getLong(966829750,1086968099));
local2.register(Long.getLong(705910854,-1245375245),Long.getLong(906489116,-114905795));
local2.register(Long.getLong(705910854,-1245375245),Long.getLong(1984730396,1294099278));
local2.register(Long.getLong(705910854,-1245375245),Long.getLong(1963608681,-1790478509));
local2.register(Long.getLong(705910854,-1245375245),Long.getLong(12556924,688130128));
local2.register(Long.getLong(705910854,-1245375245),Long.getLong(1963608801,-1704957453));
local2.register(Long.getLong(705910854,-1245375245),Long.getLong(549926507,-1447996528));
local2.register(Long.getLong(705910854,-1245375245),Long.getLong(476671394,1885696345));
local2.register(Long.getLong(499495185,-1001709329),Long.getLong(1110230456,-1498226724));
local2.register(Long.getLong(499495185,-1001709329),Long.getLong(947041522,265172046));
local2.register(Long.getLong(499495185,-1001709329),Long.getLong(1746264244,602761789));
local2.register(Long.getLong(499495185,-1001709329),Long.getLong(325483057,2045730824));
local2.register(Long.getLong(499495185,-1001709329),Long.getLong(517408438,-497402786));
local2.register(Long.getLong(777565245,-2042440396),Long.getLong(60276456,-1563681214));
local2.register(Long.getLong(777565245,-2042440396),Long.getLong(1350703047,2026111859));
local2.register(Long.getLong(777565245,-2042440396),Long.getLong(1837388137,-508116030));
local2.register(Long.getLong(118876660,-1267889929),Long.getLong(2126351838,-2114277847));
local2.register(Long.getLong(1936258281,-1608612342),Long.getLong(1675079766,1720830299));
local2.register(Long.getLong(1936258281,-1608612342),Long.getLong(1926631125,-1544324792));
local2.register(Long.getLong(1936258281,-1608612342),Long.getLong(403977249,629765924));
local2.register(Long.getLong(1936258281,-1608612342),Long.getLong(1248011373,2011342868));
local2.register(Long.getLong(327725701,-804290777),Long.getLong(1094361499,58760275));
local2.register(Long.getLong(1495845146,-1290667120),Long.getLong(9900043,143735205));
local2.register(Long.getLong(1345545806,-1145690082),Long.getLong(1368257163,-603415558));
local2.register(Long.getLong(1345545806,-1145690082),Long.getLong(635722896,-684971431));
local2.register(Long.getLong(1345545806,-1145690082),Long.getLong(149694347,-1219794525));
local2.register(Long.getLong(169566618,2066569805),Long.getLong(450867590,-1737387168));
local2.register(Long.getLong(169566618,2066569805),Long.getLong(948633528,642461173));
local2.register(Long.getLong(169566618,2066569805),Long.getLong(1014436087,90975169));
local2.register(Long.getLong(169566618,2066569805),Long.getLong(1069928691,-717266881));
local2.register(Long.getLong(1160724760,1672827267),Long.getLong(1641742013,1294163764));
local2.register(Long.getLong(1135202411,-1956043623),Long.getLong(1064176503,81422397));
local2.register(Long.getLong(288238981,44520685),Long.getLong(222121220,-2013237836));
local2.register(Long.getLong(1034700989,1212373553),Long.getLong(597053943,1126684268));
local2.register(Long.getLong(1034700989,1212373553),Long.getLong(119287527,-1716930052));
local2.register(Long.getLong(2120141642,699496177),Long.getLong(1609604139,228512172));
local2.register(Long.getLong(2120141642,699496177),Long.getLong(1853038031,-1082989884));
local2.register(Long.getLong(415126444,1630038805),Long.getLong(16153141,-467637480));
local2.register(Long.getLong(415126444,1630038805),Long.getLong(1654429078,-1789901298));
local2.register(Long.getLong(415126444,1630038805),Long.getLong(2066311556,139862161));
local2.register(Long.getLong(415126444,1630038805),Long.getLong(1653845815,-265709909));
local2.register(Long.getLong(415126444,1630038805),Long.getLong(500839552,1813251721));
local2.register(Long.getLong(1645686167,1474428435),Long.getLong(387345259,-1471314439));
local2.register(Long.getLong(1645686167,1474428435),Long.getLong(2020897529,-1471968141));
local2.register(Long.getLong(1645686167,1474428435),Long.getLong(1426613749,-669664322));
local2.register(Long.getLong(1645686167,1474428435),Long.getLong(387341675,1817286639));
local2.register(Long.getLong(1645686167,1474428435),Long.getLong(877312902,1109359872));
local2.register(Long.getLong(1691794381,-1794202080),Long.getLong(2087187664,-1594727181));
local2.register(Long.getLong(1691794381,-1794202080),Long.getLong(1056602643,1332983261));
local2.register(Long.getLong(1691794381,-1794202080),Long.getLong(1740337189,-128463099));
local2.register(Long.getLong(387277533,1853292335),Long.getLong(87545380,-265767482));
local2.register(Long.getLong(387277533,1853292335),Long.getLong(289812713,334160242));
local2.register(Long.getLong(387277533,1853292335),Long.getLong(1438252851,-2076139994));
local2.register(Long.getLong(387277533,1853292335),Long.getLong(549412808,-630293643));
local2.register(Long.getLong(387277533,1853292335),Long.getLong(498560719,475399825));
local2.register(Long.getLong(592429654,1339096271),Long.getLong(1470646161,908304539));
local2.register(Long.getLong(592429654,1339096271),Long.getLong(1979897371,-1124194266));
local2.register(Long.getLong(592429654,1339096271),Long.getLong(1470645133,813558546));
local2.register(Long.getLong(592429654,1339096271),Long.getLong(619928272,961682155));
local2.register(Long.getLong(170467452,-1685189911),Long.getLong(741262612,-1895966548));
local2.register(Long.getLong(170467452,-1685189911),Long.getLong(1921998262,-1791534114));
local2.register(Long.getLong(170467452,-1685189911),Long.getLong(1204032744,-1504214109));
local2.register(Long.getLong(170467452,-1685189911),Long.getLong(247034803,-90734157));
local2.register(Long.getLong(968114218,-1703577718),Long.getLong(1553277326,-178268452));
local2.register(Long.getLong(505740619,208573179),Long.getLong(1314377165,-137514211));
local2.register(Long.getLong(505740619,208573179),Long.getLong(1283643622,1059974789));
local2.register(Long.getLong(505740619,208573179),Long.getLong(954743485,-2074939053));
local2.register(Long.getLong(505740619,208573179),Long.getLong(954743485,-2063362954));
local2.register(Long.getLong(479046028,-1680303089),Long.getLong(385050719,606086059));
local2.register(Long.getLong(1596182265,-1705134735),Long.getLong(1223833855,-1906776616));
local2.register(Long.getLong(1596182265,-1705134735),Long.getLong(653258149,752923388));
local2.register(Long.getLong(1596182265,-1705134735),Long.getLong(1641495142,114693918));
local2.register(Long.getLong(1596182265,-1705134735),Long.getLong(1755383946,-1270349656));
local2.register(Long.getLong(1596182265,-1705134735),Long.getLong(1755383946,-1270564960));
local2.register(Long.getLong(254322684,-956504003),Long.getLong(1180507715,64759943));
local2.register(Long.getLong(254322684,-956504003),Long.getLong(547115248,565846485));
local2.register(Long.getLong(254322684,-956504003),Long.getLong(547115248,577422584));
local2.register(Long.getLong(652662967,-1245415753),Long.getLong(1536305300,1218725205));
local2.register(Long.getLong(1952266263,-1912192267),Long.getLong(823399156,351343872));
local2.register(Long.getLong(1952266263,-1912192267),Long.getLong(1289133603,-862527368));
local2.register(Long.getLong(1486543535,-1939817925),Long.getLong(215209601,1065005749));
local2.register(Long.getLong(2038268188,-682177215),Long.getLong(101482701,848604323));
local2.register(Long.getLong(1249124405,67678961),Long.getLong(1333946959,1231462256));
local2.register(Long.getLong(1249124405,67678961),Long.getLong(95516785,249691333));
local2.register(Long.getLong(486222912,-663069007),Long.getLong(1666638426,-1858765435));
local2.register(Long.getLong(288784246,84754739),Long.getLong(272048587,295381737));
local2.register(Long.getLong(288784246,84754739),Long.getLong(614158399,-327996881));
local2.register(Long.getLong(288784246,84754739),Long.getLong(1963572121,467312018));
local2.register(Long.getLong(2040386917,729965137),Long.getLong(1582297866,2028596660));
local2.register(Long.getLong(2040386917,729965137),Long.getLong(2129251848,-1338052132));
local2.register(Long.getLong(2040386917,729965137),Long.getLong(338478335,1466416629));
local2.register(Long.getLong(1635158664,1411719504),Long.getLong(458370105,-2041665930));
local2.register(Long.getLong(1635158664,1411719504),Long.getLong(815911334,941718050));
local2.register(Long.getLong(993900446,591673085),Long.getLong(189748645,-2129436767));
local2.register(Long.getLong(1366230363,-857495328),Long.getLong(29952874,-1613932368));
local2.register(Long.getLong(1502954923,909786804),Long.getLong(378718252,-2040079582));
local2.register(Long.getLong(1502954923,909786804),Long.getLong(353511605,16811297));
local2.register(Long.getLong(1502954923,909786804),Long.getLong(1391028187,669592304));
local2.register(Long.getLong(1502954923,909786804),Long.getLong(1125545689,-631096655));
local2.register(Long.getLong(1502954923,909786804),Long.getLong(1124882390,372674946));
local2.register(Long.getLong(1502954923,909786804),Long.getLong(1647981261,-1141176057));
local2.register(Long.getLong(1534471818,-1953347155),Long.getLong(489471790,-1556831693));
local2.register(Long.getLong(1679670805,-112284013),Long.getLong(1886084416,1962413779));
local2.register(Long.getLong(1679670805,-112284013),Long.getLong(770442559,-63303675));
local2.register(Long.getLong(214258581,-1769245933),Long.getLong(157548406,1377428332));
local2.register(Long.getLong(1026046526,1304951507),Long.getLong(1265329489,6570748));
local2.register(Long.getLong(1026046526,1304951507),Long.getLong(1265329489,42749515));
local2.register(Long.getLong(1026046526,1304951507),Long.getLong(2095147553,-1205681713));
local2.register(Long.getLong(1026046526,1304951507),Long.getLong(1733615392,-1549805675));
local2.register(Long.getLong(1689684337,1941542906),Long.getLong(2139145234,802852526));
local2.register(Long.getLong(1689684337,1941542906),Long.getLong(2139145234,803347721));
local2.register(Long.getLong(206621166,86427501),Long.getLong(967672650,-338860941));
local2.register(Long.getLong(465096987,1359010901),Long.getLong(1909637280,-1045975737));
local2.register(Long.getLong(465096987,1359010901),Long.getLong(1848373713,2048092684));
local2.register(Long.getLong(465096987,1359010901),Long.getLong(908740500,1614240358));
local2.register(Long.getLong(2034655677,183456205),Long.getLong(758928504,-1627221703));
local2.register(Long.getLong(2034655677,183456205),Long.getLong(810722220,-1805959360));
local2.register(Long.getLong(1758244583,2134467693),Long.getLong(2075479607,-38975934));
local2.register(Long.getLong(1758244583,2134467693),Long.getLong(1670496931,1822038243));
local2.register(Long.getLong(730448159,-745262215),Long.getLong(401765853,1762190228));
local2.register(Long.getLong(1177132817,1695744884),Long.getLong(1216877919,-1226060135));
local2.register(Long.getLong(756280393,-1366394900),Long.getLong(371898920,859714904));
local2.register(Long.getLong(1286074115,-176946994),Long.getLong(343596326,-230405373));
local2.register(Long.getLong(1286074115,-176946994),Long.getLong(208555485,-6667003));
local2.register(Long.getLong(1286074115,-176946994),Long.getLong(154981282,1951339013));
local2.register(Long.getLong(490108405,-1605879749),Long.getLong(1841708554,1107932617));
local2.register(Long.getLong(490108405,-1605879749),Long.getLong(937986364,-303760789));
local2.register(Long.getLong(1667805908,-902263720),Long.getLong(2130096710,1381807086));
local2.register(Long.getLong(528941690,1765829096),Long.getLong(1484172224,917467553));
local2.register(Long.getLong(500772743,-1275562344),Long.getLong(1132148565,-1228176022));
local2.register(Long.getLong(500772743,-1275562344),Long.getLong(1500025148,-1072265992));
local2.register(Long.getLong(500772743,-1275562344),Long.getLong(815803475,677498549));
local2.register(Long.getLong(500772743,-1275562344),Long.getLong(815803475,677432898));
local2.register(Long.getLong(500772743,-1275562344),Long.getLong(1056545941,1597681057));
local2.register(Long.getLong(500772743,-1275562344),Long.getLong(815803475,677337849));
local2.register(Long.getLong(500772743,-1275562344),Long.getLong(1453923431,-1281454868));
local2.register(Long.getLong(500772743,-1275562344),Long.getLong(696094159,-894234735));
local2.register(Long.getLong(1044732133,1674200214),Long.getLong(2076898112,-371208995));
var local3:IProtocol = IProtocol(osgi.getService(IProtocol));
local4 = new CodecBattlefieldCC();
local3.registerCodec(new TypeCodecInfo(BattlefieldCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BattlefieldCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBillboardCC();
local3.registerCodec(new TypeCodecInfo(BillboardCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BillboardCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBillboardImageCC();
local3.registerCodec(new TypeCodecInfo(BillboardImageCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BillboardImageCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecCommonFacilityCC();
local3.registerCodec(new TypeCodecInfo(CommonFacilityCC,false),local4);
local3.registerCodec(new TypeCodecInfo(CommonFacilityCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecFacilitySphericalZoneCC();
local3.registerCodec(new TypeCodecInfo(FacilitySphericalZoneCC,false),local4);
local3.registerCodec(new TypeCodecInfo(FacilitySphericalZoneCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecFpsStatisticType();
local3.registerCodec(new EnumCodecInfo(FpsStatisticType,false),local4);
local3.registerCodec(new EnumCodecInfo(FpsStatisticType,true),new OptionalCodecDecorator(local4));
local4 = new CodecMeteorDescriptor();
local3.registerCodec(new TypeCodecInfo(MeteorDescriptor,false),local4);
local3.registerCodec(new TypeCodecInfo(MeteorDescriptor,true),new OptionalCodecDecorator(local4));
local4 = new CodecMeteorStormCC();
local3.registerCodec(new TypeCodecInfo(MeteorStormCC,false),local4);
local3.registerCodec(new TypeCodecInfo(MeteorStormCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBattleMine();
local3.registerCodec(new TypeCodecInfo(BattleMine,false),local4);
local3.registerCodec(new TypeCodecInfo(BattleMine,true),new OptionalCodecDecorator(local4));
local4 = new CodecBattleMineCC();
local3.registerCodec(new TypeCodecInfo(BattleMineCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BattleMineCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBattlefieldSounds();
local3.registerCodec(new TypeCodecInfo(BattlefieldSounds,false),local4);
local3.registerCodec(new TypeCodecInfo(BattlefieldSounds,true),new OptionalCodecDecorator(local4));
local4 = new CodecHitTraceData();
local3.registerCodec(new TypeCodecInfo(HitTraceData,false),local4);
local3.registerCodec(new TypeCodecInfo(HitTraceData,true),new OptionalCodecDecorator(local4));
local4 = new CodecClientPointData();
local3.registerCodec(new TypeCodecInfo(ClientPointData,false),local4);
local3.registerCodec(new TypeCodecInfo(ClientPointData,true),new OptionalCodecDecorator(local4));
local4 = new CodecControlPointState();
local3.registerCodec(new EnumCodecInfo(ControlPointState,false),local4);
local3.registerCodec(new EnumCodecInfo(ControlPointState,true),new OptionalCodecDecorator(local4));
local4 = new CodecControlPointsCC();
local3.registerCodec(new TypeCodecInfo(ControlPointsCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ControlPointsCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDominationResources();
local3.registerCodec(new TypeCodecInfo(DominationResources,false),local4);
local3.registerCodec(new TypeCodecInfo(DominationResources,true),new OptionalCodecDecorator(local4));
local4 = new CodecDominationSounds();
local3.registerCodec(new TypeCodecInfo(DominationSounds,false),local4);
local3.registerCodec(new TypeCodecInfo(DominationSounds,true),new OptionalCodecDecorator(local4));
local4 = new CodecMatchmakingGroupInfoCC();
local3.registerCodec(new TypeCodecInfo(MatchmakingGroupInfoCC,false),local4);
local3.registerCodec(new TypeCodecInfo(MatchmakingGroupInfoCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecInventoryCC();
local3.registerCodec(new TypeCodecInfo(InventoryCC,false),local4);
local3.registerCodec(new TypeCodecInfo(InventoryCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecJuggernautCC();
local3.registerCodec(new TypeCodecInfo(JuggernautCC,false),local4);
local3.registerCodec(new TypeCodecInfo(JuggernautCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecKillStreakCC();
local3.registerCodec(new TypeCodecInfo(KillStreakCC,false),local4);
local3.registerCodec(new TypeCodecInfo(KillStreakCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecKillStreakItem();
local3.registerCodec(new TypeCodecInfo(KillStreakItem,false),local4);
local3.registerCodec(new TypeCodecInfo(KillStreakItem,true),new OptionalCodecDecorator(local4));
local4 = new CodecClientTeamPoint();
local3.registerCodec(new TypeCodecInfo(ClientTeamPoint,false),local4);
local3.registerCodec(new TypeCodecInfo(ClientTeamPoint,true),new OptionalCodecDecorator(local4));
local4 = new CodecPointBasedBattleCC();
local3.registerCodec(new TypeCodecInfo(PointBasedBattleCC,false),local4);
local3.registerCodec(new TypeCodecInfo(PointBasedBattleCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecAssaultCC();
local3.registerCodec(new TypeCodecInfo(AssaultCC,false),local4);
local3.registerCodec(new TypeCodecInfo(AssaultCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecAssaultSoundFX();
local3.registerCodec(new TypeCodecInfo(AssaultSoundFX,false),local4);
local3.registerCodec(new TypeCodecInfo(AssaultSoundFX,true),new OptionalCodecDecorator(local4));
local4 = new CodecCaptureTheFlagCC();
local3.registerCodec(new TypeCodecInfo(CaptureTheFlagCC,false),local4);
local3.registerCodec(new TypeCodecInfo(CaptureTheFlagCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecCaptureTheFlagSoundFX();
local3.registerCodec(new TypeCodecInfo(CaptureTheFlagSoundFX,false),local4);
local3.registerCodec(new TypeCodecInfo(CaptureTheFlagSoundFX,true),new OptionalCodecDecorator(local4));
local4 = new CodecClientFlag();
local3.registerCodec(new TypeCodecInfo(ClientFlag,false),local4);
local3.registerCodec(new TypeCodecInfo(ClientFlag,true),new OptionalCodecDecorator(local4));
local4 = new CodecClientFlagFlyingData();
local3.registerCodec(new TypeCodecInfo(ClientFlagFlyingData,false),local4);
local3.registerCodec(new TypeCodecInfo(ClientFlagFlyingData,true),new OptionalCodecDecorator(local4));
local4 = new CodecFlagFlyPoint();
local3.registerCodec(new TypeCodecInfo(FlagFlyPoint,false),local4);
local3.registerCodec(new TypeCodecInfo(FlagFlyPoint,true),new OptionalCodecDecorator(local4));
local4 = new CodecFlagState();
local3.registerCodec(new EnumCodecInfo(FlagState,false),local4);
local3.registerCodec(new EnumCodecInfo(FlagState,true),new OptionalCodecDecorator(local4));
local4 = new CodecFlyingMode();
local3.registerCodec(new EnumCodecInfo(FlyingMode,false),local4);
local3.registerCodec(new EnumCodecInfo(FlyingMode,true),new OptionalCodecDecorator(local4));
local4 = new CodecRugbyCC();
local3.registerCodec(new TypeCodecInfo(RugbyCC,false),local4);
local3.registerCodec(new TypeCodecInfo(RugbyCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecRugbySoundFX();
local3.registerCodec(new TypeCodecInfo(RugbySoundFX,false),local4);
local3.registerCodec(new TypeCodecInfo(RugbySoundFX,true),new OptionalCodecDecorator(local4));
local4 = new CodecBallExplosionCC();
local3.registerCodec(new TypeCodecInfo(BallExplosionCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BallExplosionCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBonusSpawnData();
local3.registerCodec(new TypeCodecInfo(BonusSpawnData,false),local4);
local3.registerCodec(new TypeCodecInfo(BonusSpawnData,true),new OptionalCodecDecorator(local4));
local4 = new CodecBattlefieldBonusesCC();
local3.registerCodec(new TypeCodecInfo(BattlefieldBonusesCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BattlefieldBonusesCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBonusRegionData();
local3.registerCodec(new TypeCodecInfo(BonusRegionData,false),local4);
local3.registerCodec(new TypeCodecInfo(BonusRegionData,true),new OptionalCodecDecorator(local4));
local4 = new CodecBonusRegionResource();
local3.registerCodec(new TypeCodecInfo(BonusRegionResource,false),local4);
local3.registerCodec(new TypeCodecInfo(BonusRegionResource,true),new OptionalCodecDecorator(local4));
local4 = new CodecBonusRegionsCC();
local3.registerCodec(new TypeCodecInfo(BonusRegionsCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BonusRegionsCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecGoldBonusCC();
local3.registerCodec(new TypeCodecInfo(GoldBonusCC,false),local4);
local3.registerCodec(new TypeCodecInfo(GoldBonusCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBonusesType();
local3.registerCodec(new EnumCodecInfo(BonusesType,false),local4);
local3.registerCodec(new EnumCodecInfo(BonusesType,true),new OptionalCodecDecorator(local4));
local4 = new CodecBattleGoldBonusCC();
local3.registerCodec(new TypeCodecInfo(BattleGoldBonusCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BattleGoldBonusCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBonusCommonCC();
local3.registerCodec(new TypeCodecInfo(BonusCommonCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BonusCommonCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecNotificationBonusCC();
local3.registerCodec(new TypeCodecInfo(NotificationBonusCC,false),local4);
local3.registerCodec(new TypeCodecInfo(NotificationBonusCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBonusLightCC();
local3.registerCodec(new TypeCodecInfo(BonusLightCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BonusLightCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecColorAdjustCC();
local3.registerCodec(new TypeCodecInfo(ColorAdjustCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ColorAdjustCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecColorAdjustParams();
local3.registerCodec(new TypeCodecInfo(ColorAdjustParams,false),local4);
local3.registerCodec(new TypeCodecInfo(ColorAdjustParams,true),new OptionalCodecDecorator(local4));
local4 = new CodecDroneIndicatorCC();
local3.registerCodec(new TypeCodecInfo(DroneIndicatorCC,false),local4);
local3.registerCodec(new TypeCodecInfo(DroneIndicatorCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDroneSFXCC();
local3.registerCodec(new TypeCodecInfo(DroneSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(DroneSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDroneExplosionCC();
local3.registerCodec(new TypeCodecInfo(DroneExplosionCC,false),local4);
local3.registerCodec(new TypeCodecInfo(DroneExplosionCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecEffectSFXRecordCC();
local3.registerCodec(new TypeCodecInfo(EffectSFXRecordCC,false),local4);
local3.registerCodec(new TypeCodecInfo(EffectSFXRecordCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankEffectSFXCC();
local3.registerCodec(new TypeCodecInfo(TankEffectSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TankEffectSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecActiveAfterDeathCC();
local3.registerCodec(new TypeCodecInfo(ActiveAfterDeathCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ActiveAfterDeathCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecEffectCategory();
local3.registerCodec(new EnumCodecInfo(EffectCategory,false),local4);
local3.registerCodec(new EnumCodecInfo(EffectCategory,true),new OptionalCodecDecorator(local4));
local4 = new CodecEffectDescriptionCC();
local3.registerCodec(new TypeCodecInfo(EffectDescriptionCC,false),local4);
local3.registerCodec(new TypeCodecInfo(EffectDescriptionCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDurationCC();
local3.registerCodec(new TypeCodecInfo(DurationCC,false),local4);
local3.registerCodec(new TypeCodecInfo(DurationCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecEffectLevelCC();
local3.registerCodec(new TypeCodecInfo(EffectLevelCC,false),local4);
local3.registerCodec(new TypeCodecInfo(EffectLevelCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDependedCooldownItem();
local3.registerCodec(new TypeCodecInfo(DependedCooldownItem,false),local4);
local3.registerCodec(new TypeCodecInfo(DependedCooldownItem,true),new OptionalCodecDecorator(local4));
local4 = new CodecInventoryItemCC();
local3.registerCodec(new TypeCodecInfo(InventoryItemCC,false),local4);
local3.registerCodec(new TypeCodecInfo(InventoryItemCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecInventorySfxCC();
local3.registerCodec(new TypeCodecInfo(InventorySfxCC,false),local4);
local3.registerCodec(new TypeCodecInfo(InventorySfxCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBattleMapCC();
local3.registerCodec(new TypeCodecInfo(BattleMapCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BattleMapCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDustParams();
local3.registerCodec(new TypeCodecInfo(DustParams,false),local4);
local3.registerCodec(new TypeCodecInfo(DustParams,true),new OptionalCodecDecorator(local4));
local4 = new CodecDynamicShadowParams();
local3.registerCodec(new TypeCodecInfo(DynamicShadowParams,false),local4);
local3.registerCodec(new TypeCodecInfo(DynamicShadowParams,true),new OptionalCodecDecorator(local4));
local4 = new CodecFogParams();
local3.registerCodec(new TypeCodecInfo(FogParams,false),local4);
local3.registerCodec(new TypeCodecInfo(FogParams,true),new OptionalCodecDecorator(local4));
local4 = new CodecSkyboxSides();
local3.registerCodec(new TypeCodecInfo(SkyboxSides,false),local4);
local3.registerCodec(new TypeCodecInfo(SkyboxSides,true),new OptionalCodecDecorator(local4));
local4 = new CodecMapBonusLightCC();
local3.registerCodec(new TypeCodecInfo(MapBonusLightCC,false),local4);
local3.registerCodec(new TypeCodecInfo(MapBonusLightCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTargetingMode();
local3.registerCodec(new EnumCodecInfo(TargetingMode,false),local4);
local3.registerCodec(new EnumCodecInfo(TargetingMode,true),new OptionalCodecDecorator(local4));
local4 = new CodecTrackedChassisCC();
local3.registerCodec(new TypeCodecInfo(TrackedChassisCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TrackedChassisCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecHullCommonCC();
local3.registerCodec(new TypeCodecInfo(HullCommonCC,false),local4);
local3.registerCodec(new TypeCodecInfo(HullCommonCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankExplosionCC();
local3.registerCodec(new TypeCodecInfo(TankExplosionCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TankExplosionCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankRankUpEffectCC();
local3.registerCodec(new TypeCodecInfo(TankRankUpEffectCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TankRankUpEffectCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecSimpleArmorCC();
local3.registerCodec(new TypeCodecInfo(SimpleArmorCC,false),local4);
local3.registerCodec(new TypeCodecInfo(SimpleArmorCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecEngineCC();
local3.registerCodec(new TypeCodecInfo(EngineCC,false),local4);
local3.registerCodec(new TypeCodecInfo(EngineCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBattleGearScoreCC();
local3.registerCodec(new TypeCodecInfo(BattleGearScoreCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BattleGearScoreCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecColorTransformCC();
local3.registerCodec(new TypeCodecInfo(ColorTransformCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ColorTransformCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecColorTransformStruct();
local3.registerCodec(new TypeCodecInfo(ColorTransformStruct,false),local4);
local3.registerCodec(new TypeCodecInfo(ColorTransformStruct,true),new OptionalCodecDecorator(local4));
local4 = new CodecFlameThrowingSFXCC();
local3.registerCodec(new TypeCodecInfo(FlameThrowingSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(FlameThrowingSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecFreezeSFXCC();
local3.registerCodec(new TypeCodecInfo(FreezeSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(FreezeSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecIsisSFXCC();
local3.registerCodec(new TypeCodecInfo(IsisSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(IsisSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecLightEffectItem();
local3.registerCodec(new TypeCodecInfo(LightEffectItem,false),local4);
local3.registerCodec(new TypeCodecInfo(LightEffectItem,true),new OptionalCodecDecorator(local4));
local4 = new CodecLightingEffectEntity();
local3.registerCodec(new TypeCodecInfo(LightingEffectEntity,false),local4);
local3.registerCodec(new TypeCodecInfo(LightingEffectEntity,true),new OptionalCodecDecorator(local4));
local4 = new CodecLightingSFXEntity();
local3.registerCodec(new TypeCodecInfo(LightingSFXEntity,false),local4);
local3.registerCodec(new TypeCodecInfo(LightingSFXEntity,true),new OptionalCodecDecorator(local4));
local4 = new CodecRailgunShootSFXCC();
local3.registerCodec(new TypeCodecInfo(RailgunShootSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(RailgunShootSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecRicochetSFXCC();
local3.registerCodec(new TypeCodecInfo(RicochetSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(RicochetSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecShaftShootSFXCC();
local3.registerCodec(new TypeCodecInfo(ShaftShootSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ShaftShootSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecSmokyShootSFXCC();
local3.registerCodec(new TypeCodecInfo(SmokyShootSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(SmokyShootSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecThunderShootSFXCC();
local3.registerCodec(new TypeCodecInfo(ThunderShootSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ThunderShootSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTwinsShootSFXCC();
local3.registerCodec(new TypeCodecInfo(TwinsShootSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TwinsShootSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecHullSmokeCC();
local3.registerCodec(new TypeCodecInfo(HullSmokeCC,false),local4);
local3.registerCodec(new TypeCodecInfo(HullSmokeCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecVerticalAnglesCC();
local3.registerCodec(new TypeCodecInfo(VerticalAnglesCC,false),local4);
local3.registerCodec(new TypeCodecInfo(VerticalAnglesCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecWeaponCommonCC();
local3.registerCodec(new TypeCodecInfo(WeaponCommonCC,false),local4);
local3.registerCodec(new TypeCodecInfo(WeaponCommonCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecFlameThrowerCC();
local3.registerCodec(new TypeCodecInfo(FlameThrowerCC,false),local4);
local3.registerCodec(new TypeCodecInfo(FlameThrowerCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecFreezeCC();
local3.registerCodec(new TypeCodecInfo(FreezeCC,false),local4);
local3.registerCodec(new TypeCodecInfo(FreezeCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecGaussCC();
local3.registerCodec(new TypeCodecInfo(GaussCC,false),local4);
local3.registerCodec(new TypeCodecInfo(GaussCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecGaussSFXCC();
local3.registerCodec(new TypeCodecInfo(GaussSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(GaussSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecIsisCC();
local3.registerCodec(new TypeCodecInfo(IsisCC,false),local4);
local3.registerCodec(new TypeCodecInfo(IsisCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecIsisState();
local3.registerCodec(new EnumCodecInfo(IsisState,false),local4);
local3.registerCodec(new EnumCodecInfo(IsisState,true),new OptionalCodecDecorator(local4));
local4 = new CodecLaserPointerCC();
local3.registerCodec(new TypeCodecInfo(LaserPointerCC,false),local4);
local3.registerCodec(new TypeCodecInfo(LaserPointerCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecRailgunCC();
local3.registerCodec(new TypeCodecInfo(RailgunCC,false),local4);
local3.registerCodec(new TypeCodecInfo(RailgunCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecRicochetCC();
local3.registerCodec(new TypeCodecInfo(RicochetCC,false),local4);
local3.registerCodec(new TypeCodecInfo(RicochetCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecShaftCC();
local3.registerCodec(new TypeCodecInfo(ShaftCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ShaftCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecShotCC();
local3.registerCodec(new TypeCodecInfo(ShotCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ShotCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecSplashCC();
local3.registerCodec(new TypeCodecInfo(SplashCC,false),local4);
local3.registerCodec(new TypeCodecInfo(SplashCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecStreamWeaponCC();
local3.registerCodec(new TypeCodecInfo(StreamWeaponCC,false),local4);
local3.registerCodec(new TypeCodecInfo(StreamWeaponCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTerminatorCC();
local3.registerCodec(new TypeCodecInfo(TerminatorCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TerminatorCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTerminatorSFXCC();
local3.registerCodec(new TypeCodecInfo(TerminatorSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TerminatorSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecRotatingTurretCC();
local3.registerCodec(new TypeCodecInfo(RotatingTurretCC,false),local4);
local3.registerCodec(new TypeCodecInfo(RotatingTurretCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTwinsCC();
local3.registerCodec(new TypeCodecInfo(TwinsCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TwinsCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecWeaponWeakeningCC();
local3.registerCodec(new TypeCodecInfo(WeaponWeakeningCC,false),local4);
local3.registerCodec(new TypeCodecInfo(WeaponWeakeningCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecArtilleryCC();
local3.registerCodec(new TypeCodecInfo(ArtilleryCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ArtilleryCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecArtilleryElevatingBarrelCC();
local3.registerCodec(new TypeCodecInfo(ArtilleryElevatingBarrelCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ArtilleryElevatingBarrelCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBarrelElevationCommand();
local3.registerCodec(new TypeCodecInfo(BarrelElevationCommand,false),local4);
local3.registerCodec(new TypeCodecInfo(BarrelElevationCommand,true),new OptionalCodecDecorator(local4));
local4 = new CodecArtillerySfxCC();
local3.registerCodec(new TypeCodecInfo(ArtillerySfxCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ArtillerySfxCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTargetPosition();
local3.registerCodec(new TypeCodecInfo(TargetPosition,false),local4);
local3.registerCodec(new TypeCodecInfo(TargetPosition,true),new OptionalCodecDecorator(local4));
local4 = new CodecTargetHit();
local3.registerCodec(new TypeCodecInfo(TargetHit,false),local4);
local3.registerCodec(new TypeCodecInfo(TargetHit,true),new OptionalCodecDecorator(local4));
local4 = new CodecShellHit();
local3.registerCodec(new TypeCodecInfo(ShellHit,false),local4);
local3.registerCodec(new TypeCodecInfo(ShellHit,true),new OptionalCodecDecorator(local4));
local4 = new CodecShellState();
local3.registerCodec(new TypeCodecInfo(ShellState,false),local4);
local3.registerCodec(new TypeCodecInfo(ShellState,true),new OptionalCodecDecorator(local4));
local4 = new CodecMachineGunCC();
local3.registerCodec(new TypeCodecInfo(MachineGunCC,false),local4);
local3.registerCodec(new TypeCodecInfo(MachineGunCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecMachineGunSFXCC();
local3.registerCodec(new TypeCodecInfo(MachineGunSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(MachineGunSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecRocketLauncherCC();
local3.registerCodec(new TypeCodecInfo(RocketLauncherCC,false),local4);
local3.registerCodec(new TypeCodecInfo(RocketLauncherCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecRocketLauncherSfxCC();
local3.registerCodec(new TypeCodecInfo(RocketLauncherSfxCC,false),local4);
local3.registerCodec(new TypeCodecInfo(RocketLauncherSfxCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecShotGunAimingCC();
local3.registerCodec(new TypeCodecInfo(ShotGunAimingCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ShotGunAimingCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecShotgunSFXCC();
local3.registerCodec(new TypeCodecInfo(ShotgunSFXCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ShotgunSFXCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecShotgunShotCC();
local3.registerCodec(new TypeCodecInfo(ShotgunShotCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ShotgunShotCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTeamLightCC();
local3.registerCodec(new TypeCodecInfo(TeamLightCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TeamLightCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTeamLightColorParams();
local3.registerCodec(new TypeCodecInfo(TeamLightColorParams,false),local4);
local3.registerCodec(new TypeCodecInfo(TeamLightColorParams,true),new OptionalCodecDecorator(local4));
local4 = new CodecTeamLightParams();
local3.registerCodec(new TypeCodecInfo(TeamLightParams,false),local4);
local3.registerCodec(new TypeCodecInfo(TeamLightParams,true),new OptionalCodecDecorator(local4));
local4 = new CodecUltimateCC();
local3.registerCodec(new TypeCodecInfo(UltimateCC,false),local4);
local3.registerCodec(new TypeCodecInfo(UltimateCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDictatorUltimateCC();
local3.registerCodec(new TypeCodecInfo(DictatorUltimateCC,false),local4);
local3.registerCodec(new TypeCodecInfo(DictatorUltimateCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecHornetUltimateCC();
local3.registerCodec(new TypeCodecInfo(HornetUltimateCC,false),local4);
local3.registerCodec(new TypeCodecInfo(HornetUltimateCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBattleUltimateRadarCC();
local3.registerCodec(new TypeCodecInfo(BattleUltimateRadarCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BattleUltimateRadarCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecHunterUltimateCC();
local3.registerCodec(new TypeCodecInfo(HunterUltimateCC,false),local4);
local3.registerCodec(new TypeCodecInfo(HunterUltimateCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankStunCC();
local3.registerCodec(new TypeCodecInfo(TankStunCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TankStunCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecJuggernautUltimateCC();
local3.registerCodec(new TypeCodecInfo(JuggernautUltimateCC,false),local4);
local3.registerCodec(new TypeCodecInfo(JuggernautUltimateCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecMammothUltimateCC();
local3.registerCodec(new TypeCodecInfo(MammothUltimateCC,false),local4);
local3.registerCodec(new TypeCodecInfo(MammothUltimateCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTitanUltimateGeneratorCC();
local3.registerCodec(new TypeCodecInfo(TitanUltimateGeneratorCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TitanUltimateGeneratorCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecVikingUltimateCC();
local3.registerCodec(new TypeCodecInfo(VikingUltimateCC,false),local4);
local3.registerCodec(new TypeCodecInfo(VikingUltimateCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecWaspUltimateBombCC();
local3.registerCodec(new TypeCodecInfo(WaspUltimateBombCC,false),local4);
local3.registerCodec(new TypeCodecInfo(WaspUltimateBombCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBossRelationRole();
local3.registerCodec(new EnumCodecInfo(BossRelationRole,false),local4);
local3.registerCodec(new EnumCodecInfo(BossRelationRole,true),new OptionalCodecDecorator(local4));
local4 = new CodecBossStateCC();
local3.registerCodec(new TypeCodecInfo(BossStateCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BossStateCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankConfigurationCC();
local3.registerCodec(new TypeCodecInfo(TankConfigurationCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TankConfigurationCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDamageIndicatorType();
local3.registerCodec(new EnumCodecInfo(DamageIndicatorType,false),local4);
local3.registerCodec(new EnumCodecInfo(DamageIndicatorType,true),new OptionalCodecDecorator(local4));
local4 = new CodecTargetTankDamage();
local3.registerCodec(new TypeCodecInfo(TargetTankDamage,false),local4);
local3.registerCodec(new TypeCodecInfo(TargetTankDamage,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankDeviceCC();
local3.registerCodec(new TypeCodecInfo(TankDeviceCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TankDeviceCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankResistance();
local3.registerCodec(new TypeCodecInfo(TankResistance,false),local4);
local3.registerCodec(new TypeCodecInfo(TankResistance,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankResistancesCC();
local3.registerCodec(new TypeCodecInfo(TankResistancesCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TankResistancesCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankSpawnerCC();
local3.registerCodec(new TypeCodecInfo(TankSpawnerCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TankSpawnerCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecSpeedCharacteristicsCC();
local3.registerCodec(new TypeCodecInfo(SpeedCharacteristicsCC,false),local4);
local3.registerCodec(new TypeCodecInfo(SpeedCharacteristicsCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecSuicideCC();
local3.registerCodec(new TypeCodecInfo(SuicideCC,false),local4);
local3.registerCodec(new TypeCodecInfo(SuicideCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankCC();
local3.registerCodec(new TypeCodecInfo(TankCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TankCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankLogicState();
local3.registerCodec(new EnumCodecInfo(TankLogicState,false),local4);
local3.registerCodec(new EnumCodecInfo(TankLogicState,true),new OptionalCodecDecorator(local4));
local4 = new CodecMoveCommand();
local3.registerCodec(new TypeCodecInfo(MoveCommand,false),local4);
local3.registerCodec(new TypeCodecInfo(MoveCommand,true),new OptionalCodecDecorator(local4));
local4 = new CodecTurretControlType();
local3.registerCodec(new EnumCodecInfo(TurretControlType,false),local4);
local3.registerCodec(new EnumCodecInfo(TurretControlType,true),new OptionalCodecDecorator(local4));
local4 = new CodecTurretStateCommand();
local3.registerCodec(new TypeCodecInfo(TurretStateCommand,false),local4);
local3.registerCodec(new TypeCodecInfo(TurretStateCommand,true),new OptionalCodecDecorator(local4));
local4 = new CodecDamageType();
local3.registerCodec(new EnumCodecInfo(DamageType,false),local4);
local3.registerCodec(new EnumCodecInfo(DamageType,true),new OptionalCodecDecorator(local4));
local4 = new CodecTankState();
local3.registerCodec(new TypeCodecInfo(TankState,false),local4);
local3.registerCodec(new TypeCodecInfo(TankState,true),new OptionalCodecDecorator(local4));
local4 = new CodecVector3d();
local3.registerCodec(new TypeCodecInfo(Vector3d,false),local4);
local3.registerCodec(new TypeCodecInfo(Vector3d,true),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattlefieldCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattlefieldCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBillboardCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BillboardCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BillboardCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBillboardCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BillboardCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BillboardCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBillboardImageCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BillboardImageCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BillboardImageCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBillboardImageCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BillboardImageCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BillboardImageCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecCommonFacilityCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CommonFacilityCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CommonFacilityCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecCommonFacilityCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CommonFacilityCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CommonFacilityCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFacilitySphericalZoneCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FacilitySphericalZoneCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FacilitySphericalZoneCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFacilitySphericalZoneCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FacilitySphericalZoneCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FacilitySphericalZoneCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFpsStatisticTypeLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FpsStatisticType,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FpsStatisticType,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFpsStatisticTypeLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FpsStatisticType,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FpsStatisticType,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMeteorDescriptorLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MeteorDescriptor,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MeteorDescriptor,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMeteorDescriptorLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MeteorDescriptor,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MeteorDescriptor,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMeteorStormCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MeteorStormCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MeteorStormCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMeteorStormCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MeteorStormCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MeteorStormCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleMineCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMineCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMineCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleMineCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMineCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMineCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleMineLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMine,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMine,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleMineLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMine,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMine,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattlefieldSoundsLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldSounds,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldSounds,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattlefieldSoundsLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldSounds,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldSounds,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHitTraceDataLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HitTraceData,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HitTraceData,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHitTraceDataLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HitTraceData,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HitTraceData,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecClientPointDataLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientPointData,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientPointData,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecClientPointDataLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientPointData,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientPointData,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecControlPointStateLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ControlPointState,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ControlPointState,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecControlPointStateLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ControlPointState,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ControlPointState,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecControlPointsCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ControlPointsCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ControlPointsCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecControlPointsCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ControlPointsCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ControlPointsCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDominationResourcesLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DominationResources,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DominationResources,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDominationResourcesLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DominationResources,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DominationResources,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDominationSoundsLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DominationSounds,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DominationSounds,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDominationSoundsLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DominationSounds,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DominationSounds,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMatchmakingGroupInfoCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MatchmakingGroupInfoCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MatchmakingGroupInfoCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMatchmakingGroupInfoCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MatchmakingGroupInfoCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MatchmakingGroupInfoCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecInventoryCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventoryCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventoryCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecInventoryCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventoryCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventoryCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecJuggernautCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(JuggernautCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(JuggernautCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecJuggernautCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(JuggernautCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(JuggernautCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecKillStreakCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KillStreakCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KillStreakCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecKillStreakCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KillStreakCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KillStreakCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecKillStreakItemLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KillStreakItem,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KillStreakItem,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecKillStreakItemLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KillStreakItem,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KillStreakItem,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecClientTeamPointLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientTeamPoint,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientTeamPoint,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecClientTeamPointLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientTeamPoint,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientTeamPoint,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPointBasedBattleCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PointBasedBattleCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PointBasedBattleCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPointBasedBattleCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PointBasedBattleCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PointBasedBattleCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecAssaultCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AssaultCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AssaultCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecAssaultCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AssaultCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AssaultCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecAssaultSoundFXLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AssaultSoundFX,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AssaultSoundFX,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecAssaultSoundFXLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AssaultSoundFX,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AssaultSoundFX,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecCaptureTheFlagCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptureTheFlagCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptureTheFlagCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecCaptureTheFlagCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptureTheFlagCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptureTheFlagCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecCaptureTheFlagSoundFXLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptureTheFlagSoundFX,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptureTheFlagSoundFX,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecCaptureTheFlagSoundFXLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptureTheFlagSoundFX,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptureTheFlagSoundFX,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecClientFlagFlyingDataLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientFlagFlyingData,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientFlagFlyingData,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecClientFlagFlyingDataLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientFlagFlyingData,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientFlagFlyingData,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecClientFlagLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientFlag,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientFlag,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecClientFlagLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientFlag,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ClientFlag,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlagFlyPointLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlagFlyPoint,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlagFlyPoint,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlagFlyPointLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlagFlyPoint,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlagFlyPoint,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlagStateLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FlagState,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FlagState,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlagStateLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FlagState,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FlagState,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlyingModeLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FlyingMode,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FlyingMode,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlyingModeLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FlyingMode,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(FlyingMode,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRugbyCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RugbyCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RugbyCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRugbyCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RugbyCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RugbyCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRugbySoundFXLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RugbySoundFX,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RugbySoundFX,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRugbySoundFXLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RugbySoundFX,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RugbySoundFX,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBallExplosionCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BallExplosionCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BallExplosionCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBallExplosionCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BallExplosionCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BallExplosionCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusSpawnDataLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusSpawnData,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusSpawnData,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusSpawnDataLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusSpawnData,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusSpawnData,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattlefieldBonusesCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldBonusesCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldBonusesCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattlefieldBonusesCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldBonusesCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattlefieldBonusesCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusRegionDataLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionData,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionData,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusRegionDataLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionData,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionData,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusRegionResourceLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionResource,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionResource,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusRegionResourceLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionResource,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionResource,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusRegionsCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionsCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionsCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusRegionsCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionsCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusRegionsCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGoldBonusCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GoldBonusCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GoldBonusCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGoldBonusCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GoldBonusCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GoldBonusCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusesTypeLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(BonusesType,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(BonusesType,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusesTypeLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(BonusesType,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(BonusesType,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleGoldBonusCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleGoldBonusCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleGoldBonusCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleGoldBonusCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleGoldBonusCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleGoldBonusCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusCommonCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusCommonCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusCommonCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusCommonCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusCommonCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusCommonCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecNotificationBonusCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(NotificationBonusCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(NotificationBonusCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecNotificationBonusCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(NotificationBonusCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(NotificationBonusCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusLightCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusLightCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusLightCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBonusLightCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusLightCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BonusLightCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecColorAdjustCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorAdjustCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorAdjustCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecColorAdjustCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorAdjustCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorAdjustCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecColorAdjustParamsLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorAdjustParams,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorAdjustParams,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecColorAdjustParamsLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorAdjustParams,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorAdjustParams,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDroneIndicatorCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneIndicatorCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneIndicatorCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDroneIndicatorCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneIndicatorCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneIndicatorCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDroneSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDroneSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDroneExplosionCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneExplosionCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneExplosionCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDroneExplosionCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneExplosionCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroneExplosionCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEffectSFXRecordCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectSFXRecordCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectSFXRecordCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEffectSFXRecordCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectSFXRecordCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectSFXRecordCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankEffectSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankEffectSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankEffectSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankEffectSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankEffectSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankEffectSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecActiveAfterDeathCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ActiveAfterDeathCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ActiveAfterDeathCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecActiveAfterDeathCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ActiveAfterDeathCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ActiveAfterDeathCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEffectCategoryLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(EffectCategory,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(EffectCategory,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEffectCategoryLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(EffectCategory,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(EffectCategory,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEffectDescriptionCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectDescriptionCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectDescriptionCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEffectDescriptionCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectDescriptionCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectDescriptionCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDurationCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DurationCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DurationCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDurationCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DurationCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DurationCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEffectLevelCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectLevelCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectLevelCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEffectLevelCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectLevelCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EffectLevelCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDependedCooldownItemLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DependedCooldownItem,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DependedCooldownItem,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDependedCooldownItemLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DependedCooldownItem,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DependedCooldownItem,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecInventoryItemCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventoryItemCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventoryItemCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecInventoryItemCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventoryItemCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventoryItemCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecInventorySfxCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventorySfxCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventorySfxCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecInventorySfxCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventorySfxCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(InventorySfxCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleMapCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMapCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMapCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleMapCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMapCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleMapCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDustParamsLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DustParams,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DustParams,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDustParamsLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DustParams,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DustParams,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDynamicShadowParamsLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DynamicShadowParams,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DynamicShadowParams,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDynamicShadowParamsLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DynamicShadowParams,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DynamicShadowParams,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFogParamsLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FogParams,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FogParams,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFogParamsLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FogParams,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FogParams,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSkyboxSidesLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SkyboxSides,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SkyboxSides,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSkyboxSidesLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SkyboxSides,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SkyboxSides,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMapBonusLightCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MapBonusLightCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MapBonusLightCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMapBonusLightCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MapBonusLightCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MapBonusLightCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTargetingModeLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TargetingMode,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TargetingMode,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTargetingModeLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TargetingMode,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TargetingMode,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTrackedChassisCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TrackedChassisCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TrackedChassisCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTrackedChassisCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TrackedChassisCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TrackedChassisCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHullCommonCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HullCommonCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HullCommonCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHullCommonCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HullCommonCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HullCommonCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankExplosionCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankExplosionCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankExplosionCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankExplosionCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankExplosionCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankExplosionCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankRankUpEffectCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankRankUpEffectCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankRankUpEffectCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankRankUpEffectCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankRankUpEffectCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankRankUpEffectCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSimpleArmorCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SimpleArmorCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SimpleArmorCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSimpleArmorCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SimpleArmorCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SimpleArmorCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEngineCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EngineCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EngineCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecEngineCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EngineCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(EngineCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleGearScoreCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleGearScoreCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleGearScoreCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleGearScoreCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleGearScoreCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleGearScoreCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecColorTransformCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorTransformCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorTransformCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecColorTransformCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorTransformCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorTransformCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecColorTransformStructLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorTransformStruct,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorTransformStruct,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecColorTransformStructLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorTransformStruct,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorTransformStruct,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlameThrowingSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlameThrowingSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlameThrowingSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlameThrowingSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlameThrowingSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlameThrowingSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFreezeSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FreezeSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FreezeSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFreezeSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FreezeSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FreezeSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecIsisSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(IsisSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(IsisSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecIsisSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(IsisSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(IsisSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecLightEffectItemLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightEffectItem,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightEffectItem,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecLightEffectItemLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightEffectItem,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightEffectItem,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecLightingEffectEntityLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightingEffectEntity,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightingEffectEntity,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecLightingEffectEntityLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightingEffectEntity,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightingEffectEntity,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecLightingSFXEntityLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightingSFXEntity,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightingSFXEntity,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecLightingSFXEntityLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightingSFXEntity,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LightingSFXEntity,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRailgunShootSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RailgunShootSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RailgunShootSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRailgunShootSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RailgunShootSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RailgunShootSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRicochetSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RicochetSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RicochetSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRicochetSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RicochetSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RicochetSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShaftShootSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShaftShootSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShaftShootSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShaftShootSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShaftShootSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShaftShootSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSmokyShootSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SmokyShootSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SmokyShootSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSmokyShootSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SmokyShootSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SmokyShootSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecThunderShootSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ThunderShootSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ThunderShootSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecThunderShootSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ThunderShootSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ThunderShootSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTwinsShootSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TwinsShootSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TwinsShootSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTwinsShootSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TwinsShootSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TwinsShootSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHullSmokeCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HullSmokeCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HullSmokeCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHullSmokeCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HullSmokeCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HullSmokeCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecVerticalAnglesCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VerticalAnglesCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VerticalAnglesCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecVerticalAnglesCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VerticalAnglesCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VerticalAnglesCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecWeaponCommonCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WeaponCommonCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WeaponCommonCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecWeaponCommonCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WeaponCommonCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WeaponCommonCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlameThrowerCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlameThrowerCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlameThrowerCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFlameThrowerCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlameThrowerCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FlameThrowerCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFreezeCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FreezeCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FreezeCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecFreezeCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FreezeCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(FreezeCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGaussCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaussCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaussCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGaussCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaussCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaussCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGaussSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaussSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaussSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGaussSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaussSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaussSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecIsisCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(IsisCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(IsisCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecIsisCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(IsisCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(IsisCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecIsisStateLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(IsisState,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(IsisState,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecIsisStateLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(IsisState,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(IsisState,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecLaserPointerCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LaserPointerCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LaserPointerCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecLaserPointerCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LaserPointerCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(LaserPointerCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRailgunCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RailgunCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RailgunCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRailgunCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RailgunCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RailgunCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRicochetCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RicochetCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RicochetCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRicochetCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RicochetCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RicochetCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShaftCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShaftCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShaftCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShaftCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShaftCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShaftCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShotCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShotCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSplashCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SplashCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SplashCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSplashCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SplashCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SplashCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecStreamWeaponCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(StreamWeaponCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(StreamWeaponCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecStreamWeaponCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(StreamWeaponCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(StreamWeaponCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTerminatorCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TerminatorCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TerminatorCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTerminatorCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TerminatorCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TerminatorCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTerminatorSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TerminatorSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TerminatorSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTerminatorSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TerminatorSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TerminatorSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRotatingTurretCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RotatingTurretCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RotatingTurretCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRotatingTurretCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RotatingTurretCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RotatingTurretCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTwinsCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TwinsCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TwinsCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTwinsCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TwinsCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TwinsCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecWeaponWeakeningCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WeaponWeakeningCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WeaponWeakeningCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecWeaponWeakeningCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WeaponWeakeningCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WeaponWeakeningCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecArtilleryCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtilleryCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtilleryCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecArtilleryCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtilleryCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtilleryCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecArtilleryElevatingBarrelCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtilleryElevatingBarrelCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtilleryElevatingBarrelCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecArtilleryElevatingBarrelCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtilleryElevatingBarrelCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtilleryElevatingBarrelCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBarrelElevationCommandLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BarrelElevationCommand,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BarrelElevationCommand,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBarrelElevationCommandLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BarrelElevationCommand,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BarrelElevationCommand,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecArtillerySfxCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtillerySfxCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtillerySfxCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecArtillerySfxCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtillerySfxCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ArtillerySfxCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTargetPositionLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetPosition,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetPosition,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTargetPositionLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetPosition,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetPosition,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTargetHitLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetHit,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetHit,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTargetHitLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetHit,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetHit,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShellHitLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShellHit,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShellHit,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShellHitLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShellHit,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShellHit,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShellStateLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShellState,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShellState,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShellStateLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShellState,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShellState,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMachineGunCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MachineGunCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MachineGunCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMachineGunCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MachineGunCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MachineGunCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMachineGunSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MachineGunSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MachineGunSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMachineGunSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MachineGunSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MachineGunSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRocketLauncherCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RocketLauncherCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RocketLauncherCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRocketLauncherCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RocketLauncherCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RocketLauncherCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRocketLauncherSfxCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RocketLauncherSfxCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RocketLauncherSfxCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRocketLauncherSfxCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RocketLauncherSfxCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RocketLauncherSfxCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShotGunAimingCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotGunAimingCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotGunAimingCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShotGunAimingCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotGunAimingCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotGunAimingCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShotgunSFXCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotgunSFXCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotgunSFXCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShotgunSFXCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotgunSFXCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotgunSFXCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShotgunShotCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotgunShotCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotgunShotCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShotgunShotCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotgunShotCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShotgunShotCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTeamLightCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTeamLightCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTeamLightColorParamsLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightColorParams,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightColorParams,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTeamLightColorParamsLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightColorParams,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightColorParams,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTeamLightParamsLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightParams,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightParams,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTeamLightParamsLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightParams,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TeamLightParams,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecUltimateCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UltimateCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UltimateCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecUltimateCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UltimateCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UltimateCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDictatorUltimateCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DictatorUltimateCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DictatorUltimateCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDictatorUltimateCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DictatorUltimateCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DictatorUltimateCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHornetUltimateCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HornetUltimateCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HornetUltimateCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHornetUltimateCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HornetUltimateCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HornetUltimateCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleUltimateRadarCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleUltimateRadarCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleUltimateRadarCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBattleUltimateRadarCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleUltimateRadarCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BattleUltimateRadarCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHunterUltimateCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HunterUltimateCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HunterUltimateCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHunterUltimateCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HunterUltimateCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HunterUltimateCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankStunCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankStunCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankStunCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankStunCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankStunCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankStunCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecJuggernautUltimateCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(JuggernautUltimateCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(JuggernautUltimateCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecJuggernautUltimateCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(JuggernautUltimateCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(JuggernautUltimateCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMammothUltimateCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MammothUltimateCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MammothUltimateCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMammothUltimateCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MammothUltimateCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MammothUltimateCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTitanUltimateGeneratorCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TitanUltimateGeneratorCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TitanUltimateGeneratorCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTitanUltimateGeneratorCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TitanUltimateGeneratorCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TitanUltimateGeneratorCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecVikingUltimateCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VikingUltimateCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VikingUltimateCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecVikingUltimateCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VikingUltimateCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VikingUltimateCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecWaspUltimateBombCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WaspUltimateBombCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WaspUltimateBombCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecWaspUltimateBombCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WaspUltimateBombCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(WaspUltimateBombCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBossRelationRoleLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(BossRelationRole,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(BossRelationRole,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBossRelationRoleLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(BossRelationRole,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(BossRelationRole,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBossStateCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BossStateCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BossStateCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBossStateCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BossStateCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BossStateCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankConfigurationCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankConfigurationCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankConfigurationCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankConfigurationCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankConfigurationCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankConfigurationCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDamageIndicatorTypeLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(DamageIndicatorType,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(DamageIndicatorType,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDamageIndicatorTypeLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(DamageIndicatorType,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(DamageIndicatorType,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTargetTankDamageLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetTankDamage,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetTankDamage,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTargetTankDamageLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetTankDamage,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TargetTankDamage,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankDeviceCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankDeviceCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankDeviceCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankDeviceCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankDeviceCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankDeviceCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankResistanceLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankResistance,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankResistance,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankResistanceLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankResistance,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankResistance,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankResistancesCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankResistancesCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankResistancesCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankResistancesCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankResistancesCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankResistancesCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankSpawnerCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankSpawnerCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankSpawnerCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankSpawnerCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankSpawnerCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankSpawnerCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSpeedCharacteristicsCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SpeedCharacteristicsCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SpeedCharacteristicsCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSpeedCharacteristicsCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SpeedCharacteristicsCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SpeedCharacteristicsCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSuicideCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SuicideCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SuicideCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecSuicideCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SuicideCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(SuicideCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankLogicStateLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TankLogicState,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TankLogicState,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankLogicStateLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TankLogicState,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TankLogicState,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMoveCommandLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MoveCommand,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MoveCommand,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMoveCommandLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MoveCommand,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MoveCommand,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTurretControlTypeLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TurretControlType,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TurretControlType,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTurretControlTypeLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TurretControlType,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(TurretControlType,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTurretStateCommandLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TurretStateCommand,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TurretStateCommand,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTurretStateCommandLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TurretStateCommand,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TurretStateCommand,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDamageTypeLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(DamageType,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(DamageType,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDamageTypeLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(DamageType,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(DamageType,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankStateLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankState,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankState,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTankStateLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankState,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TankState,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecVector3dLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Vector3d,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Vector3d,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecVector3dLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Vector3d,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Vector3d,true),true,1),new OptionalCodecDecorator(local4));
}
public function stop(param1:OSGi) : void {
}
}
}
|
package alternativa.engine3d.lights {
import alternativa.engine3d.alternativa3d;
import alternativa.engine3d.core.Camera3D;
import alternativa.engine3d.core.Debug;
import alternativa.engine3d.core.Light3D;
import alternativa.engine3d.core.Object3D;
import flash.display.Sprite;
use namespace alternativa3d;
public class AmbientLight extends Light3D {
public function AmbientLight(param1:uint) {
super();
this.color = param1;
calculateBounds();
}
override public function clone() : Object3D {
var local1:AmbientLight = new AmbientLight(color);
local1.clonePropertiesFrom(this);
return local1;
}
override alternativa3d function drawDebug(param1:Camera3D) : void {
var local3:Sprite = null;
var local2:int = int(param1.alternativa3d::checkInDebug(this));
if(local2 > 0) {
local3 = param1.view.alternativa3d::canvas;
if(Boolean(local2 & Debug.LIGHTS) && alternativa3d::ml > param1.nearClipping) {
}
if(Boolean(local2 & Debug.BOUNDS)) {
Debug.alternativa3d::drawBounds(param1,this,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ,10092288);
}
}
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.sfx.colortransform {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.CollectionCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battlefield.models.tankparts.sfx.colortransform.ColorTransformCC;
import projects.tanks.client.battlefield.models.tankparts.sfx.colortransform.struct.ColorTransformStruct;
public class CodecColorTransformCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_colorTransforms:ICodec;
public function CodecColorTransformCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_colorTransforms = param1.getCodec(new CollectionCodecInfo(new TypeCodecInfo(ColorTransformStruct,false),false,1));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:ColorTransformCC = new ColorTransformCC();
local2.colorTransforms = this.codec_colorTransforms.decode(param1) as Vector.<ColorTransformStruct>;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:ColorTransformCC = ColorTransformCC(param2);
this.codec_colorTransforms.encode(param1,local3.colorTransforms);
}
}
}
|
package alternativa.tanks.vehicles.tanks
{
import flash.display.BitmapData;
public interface ISkinTextureRegistry
{
function getTexture(param1:TankSkinPart, param2:BitmapData) : BitmapData;
function releaseTexture(param1:TankSkinPart, param2:BitmapData) : void;
function clear() : void;
}
}
|
package alternativa.tanks.model.item.modification {
import alternativa.types.Long;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class IModificationEvents implements IModification {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function IModificationEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function getBaseItemId() : Long {
var result:Long = null;
var i:int = 0;
var m:IModification = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = IModification(this.impl[i]);
result = m.getBaseItemId();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function getModificationIndex() : int {
var result:int = 0;
var i:int = 0;
var m:IModification = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = IModification(this.impl[i]);
result = int(m.getModificationIndex());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package alternativa.tanks.view.icons {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.view.icons.BattleParamsBattleInfoIcons_suppliesClass.png")]
public class BattleParamsBattleInfoIcons_suppliesClass extends BitmapAsset {
public function BattleParamsBattleInfoIcons_suppliesClass() {
super();
}
}
}
|
package alternativa.tanks.model.payment.shop.specialkit {
import platform.client.fp10.core.type.IGameObject;
[ModelInterface]
public interface SinglePayMode {
function getPayMode() : IGameObject;
}
}
|
package assets.window.bitmaps {
import flash.display.BitmapData;
[Embed(source="/_assets/assets.window.bitmaps.WindowTop.png")]
public class WindowTop extends BitmapData {
public function WindowTop(param1:int, param2:int, param3:Boolean = true, param4:uint = 0) {
super(param1,param2,param3,param4);
}
}
}
|
package controls.lifeindicator
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class LineLife_bitmapLeft extends BitmapAsset
{
public function LineLife_bitmapLeft()
{
super();
}
}
}
|
package alternativa.tanks.controller.events {
import flash.events.Event;
public class AuthorizationFailedEvent extends Event {
public static const PASSWORD_AUTHORIZATION_FAILED:String = "AuthorizationFailedEvent.PASSWORD_AUTHORIZATION_FAILED";
public static const HASH_AUTHORIZATION_FAILED:String = "AuthorizationFailedEvent.HASH_AUTHORIZATION_FAILED";
public static const PASSWORD_EXTERNAL_AUTHORIZATION_FAILED:String = "AuthorizationFailedEvent.PASSWORD_EXTERNAL_AUTHORIZATION_FAILED";
public static const EXTERNAL_LINK_ALREADY_EXISTS:String = "AuthorizationFailedEvent.EXTERNAL_LINK_ALREADY_EXISTS";
public static const EXTERNAL_VALIDATION_FAILED:String = "AuthorizationFailedEvent.EXTERNAL_VALIDATION_FAILED";
public static const PARTNER_PASSWORD_AUTHORIZATION_FAILED:String = "AuthorizationFailedEvent.PARTNER_PASSWORD_AUTHORIZATION_FAILED";
public static const PARTNER_LINK_ALREADY_EXISTS:String = "AuthorizationFailedEvent.PARTNER_LINK_ALREADY_EXISTS";
public function AuthorizationFailedEvent(param1:String) {
super(param1);
}
override public function clone() : Event {
return new AuthorizationFailedEvent(type);
}
}
}
|
package alternativa.tanks.service.settings.keybinding {
import alternativa.tanks.AbstractEnum;
public class GameActionEnum extends AbstractEnum {
private static var _values:Vector.<GameActionEnum> = new Vector.<GameActionEnum>();
public static const ROTATE_TURRET_LEFT:GameActionEnum = create("ROTATE_TURRET_LEFT");
public static const ROTATE_TURRET_RIGHT:GameActionEnum = create("ROTATE_TURRET_RIGHT");
public static const CENTER_TURRET:GameActionEnum = create("CENTER_TURRET");
public static const CHASSIS_LEFT_MOVEMENT:GameActionEnum = create("CHASSIS_LEFT_MOVEMENT");
public static const CHASSIS_RIGHT_MOVEMENT:GameActionEnum = create("CHASSIS_RIGHT_MOVEMENT");
public static const CHASSIS_FORWARD_MOVEMENT:GameActionEnum = create("CHASSIS_FORWARD_MOVEMENT");
public static const CHASSIS_BACKWARD_MOVEMENT:GameActionEnum = create("CHASSIS_BACKWARD_MOVEMENT");
public static const FOLLOW_CAMERA_UP:GameActionEnum = create("FOLLOW_CAMERA_UP");
public static const FOLLOW_CAMERA_DOWN:GameActionEnum = create("FOLLOW_CAMERA_DOWN");
public static const DROP_FLAG:GameActionEnum = create("DROP_FLAG");
public static const BATTLE_PAUSE:GameActionEnum = create("BATTLE_PAUSE");
public static const BATTLE_VIEW_INCREASE:GameActionEnum = create("BATTLE_VIEW_INCREASE");
public static const BATTLE_VIEW_DECREASE:GameActionEnum = create("BATTLE_VIEW_DECREASE");
public static const FULL_SCREEN:GameActionEnum = create("FULL_SCREEN");
public static const SUICIDE:GameActionEnum = create("SUICIDE");
public static const SHOW_TANK_PARAMETERS:GameActionEnum = create("SHOW_TANK_PARAMETERS");
public static const USE_FIRS_AID:GameActionEnum = create("USE_FIRS_AID");
public static const USE_DOUBLE_ARMOR:GameActionEnum = create("USE_DOUBLE_ARMOR");
public static const USE_DOUBLE_DAMAGE:GameActionEnum = create("USE_DOUBLE_DAMAGE");
public static const USE_NITRO:GameActionEnum = create("USE_NITRO");
public static const USE_MINE:GameActionEnum = create("USE_MINE");
public static const DROP_GOLD_BOX:GameActionEnum = create("DROP_GOLD_BOX");
public static const SHOT:GameActionEnum = create("SHOT");
public static const ULTIMATE:GameActionEnum = create("ULTIMATE");
public static const OPEN_GARAGE:GameActionEnum = create("OPEN_GARAGE");
public static const SHOW_BATTLE_STATS_TABLE:GameActionEnum = create("SHOW_BATTLE_STATS_TABLE");
public static const LOOK_AROUND:GameActionEnum = create("LOOK_AROUND");
public function GameActionEnum(param1:int, param2:String) {
super(param1,param2);
}
private static function create(param1:String) : GameActionEnum {
var local2:GameActionEnum = new GameActionEnum(_values.length,param1);
_values.push(local2);
return local2;
}
public static function get values() : Vector.<GameActionEnum> {
return _values;
}
}
}
|
package resources.windowheaders.background {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/resources.windowheaders.background.BackgroundHeader_shortBackgroundHeaderClass.png")]
public class BackgroundHeader_shortBackgroundHeaderClass extends BitmapAsset {
public function BackgroundHeader_shortBackgroundHeaderClass() {
super();
}
}
}
|
package alternativa.tanks.models.weapon.flamethrower {
import alternativa.tanks.models.weapon.shared.streamweapon.StreamWeaponEffects;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class IFlamethrowerSFXModelAdapt implements IFlamethrowerSFXModel {
private var object:IGameObject;
private var impl:IFlamethrowerSFXModel;
public function IFlamethrowerSFXModelAdapt(param1:IGameObject, param2:IFlamethrowerSFXModel) {
super();
this.object = param1;
this.impl = param2;
}
public function getFlamethrowerEffects(param1:Number, param2:Number) : StreamWeaponEffects {
var result:StreamWeaponEffects = null;
var range:Number = param1;
var coneAngle:Number = param2;
try {
Model.object = this.object;
result = this.impl.getFlamethrowerEffects(range,coneAngle);
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package platform.clients.fp10.libraries.alternativapartners.models.socialnetworkparameters {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class SocialNetworkParametersEvents implements SocialNetworkParameters {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function SocialNetworkParametersEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function hasOwnPaymentSystem() : Boolean {
var result:Boolean = false;
var i:int = 0;
var m:SocialNetworkParameters = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = SocialNetworkParameters(this.impl[i]);
result = Boolean(m.hasOwnPaymentSystem());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function hasSocialFunction() : Boolean {
var result:Boolean = false;
var i:int = 0;
var m:SocialNetworkParameters = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = SocialNetworkParameters(this.impl[i]);
result = Boolean(m.hasSocialFunction());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package forms.friends
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class FriendsWindowStateBigButton_ButtonDownRight extends BitmapAsset
{
public function FriendsWindowStateBigButton_ButtonDownRight()
{
super();
}
}
}
|
package scpacker.utils
{
import flash.display.Bitmap;
import flash.display.Loader;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.utils.ByteArray;
public class CaptchaParser
{
public function CaptchaParser()
{
super();
}
public static function parse(packet:String, onBitmapParsedHandler:Function) : void
{
var loader:Loader = null;
var byte:String = null;
loader = null;
var byteArray:ByteArray = new ByteArray();
var i:int = 0;
var bytes:Array = packet.split(",");
for each(byte in bytes)
{
byteArray.writeByte(parseInt(byte));
i++;
}
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,function(param1:Event):void
{
onBitmapParsedHandler.apply(null,[loader.content as Bitmap]);
(param1.target as EventDispatcher).removeEventListener(param1.type,arguments.callee);
});
loader.loadBytes(byteArray);
}
}
}
|
package alternativa.tanks.model.useremailandpassword {
import alternativa.osgi.OSGi;
import alternativa.tanks.service.panel.IPanelView;
import alternativa.tanks.service.settings.ISettingsService;
import alternativa.tanks.service.socialnetwork.ISocialNetworkPanelService;
import platform.client.fp10.core.model.ObjectLoadListener;
import platform.client.fp10.core.model.ObjectUnloadListener;
import projects.tanks.client.panel.model.profile.useremailpassword.IUserEmailAndPasswordModelBase;
import projects.tanks.client.panel.model.profile.useremailpassword.UserEmailAndPasswordModelBase;
import projects.tanks.clients.fp10.libraries.tanksservices.service.alertservices.IAlertService;
import services.alertservice.Alert;
[ModelInfo]
public class UserEmailAndPasswordModel extends UserEmailAndPasswordModelBase implements IUserEmailAndPasswordModelBase, ObjectLoadListener, ObjectUnloadListener, IUserEmailAndPassword, PasswordService {
[Inject]
public static var panelView:IPanelView;
[Inject]
public static var socialNetworkPanelService:ISocialNetworkPanelService;
[Inject]
public static var alertService:IAlertService;
[Inject]
public static var settingService:ISettingsService;
private var email:String;
private var unconfirmedEmail:String;
private var callbackCheckPassword:Function;
private var callbackPasswordIsSet:Function;
public function UserEmailAndPasswordModel() {
super();
}
public function objectLoaded() : void {
this.email = getInitParam().email;
settingService.setEmail(this.email,getInitParam().emailConfirmed);
OSGi.getInstance().registerService(PasswordService,object.adapt(PasswordService));
}
public function objectUnloaded() : void {
OSGi.getInstance().unregisterService(PasswordService);
}
public function activateMessage(param1:String) : void {
panelView.showAlert(param1);
this.email = this.unconfirmedEmail;
}
public function emailAlreadyUsed() : void {
alertService.showAlertById(Alert.ERROR_EMAIL_UNIQUE);
}
public function emailConfirmed(param1:String) : void {
settingService.setEmail(param1,true);
this.email = param1;
}
public function incorrectEmail() : void {
alertService.showAlertById(Alert.ERROR_EMAIL_INVALID);
}
public function notifyCorrectPassword() : void {
this.callbackFunction(this.callbackCheckPassword,true);
}
public function notifyIncorrectPassword() : void {
this.callbackFunction(this.callbackCheckPassword,false);
}
public function notifyPasswordIsNotSet() : void {
this.callbackFunction(this.callbackPasswordIsSet,false);
}
public function notifyPasswordIsSet() : void {
this.callbackFunction(this.callbackPasswordIsSet,true);
}
private function callbackFunction(param1:Function, param2:Boolean) : * {
if(Boolean(param1)) {
param1(param2);
}
param1 = null;
}
public function passwordChanged() : void {
socialNetworkPanelService.passwordCreated = true;
}
public function updatePasswordError() : void {
alertService.showAlertById(Alert.ERROR_PASSWORD_CHANGE);
}
public function changeEmail(param1:String) : void {
this.unconfirmedEmail = param1;
settingService.setEmail(param1,false);
server.updateEmail(param1);
}
public function getEmail() : String {
return this.email;
}
public function sendChangeInstruction() : void {
server.sendPasswordAndEmailChangeInstruction();
}
public function checkIsPasswordSet(param1:Function) : void {
this.callbackPasswordIsSet = param1;
server.checkPasswordIsSet();
}
public function setPassword(param1:String) : void {
server.setPassword(param1);
}
public function checkPassword(param1:String, param2:Function) : void {
this.callbackCheckPassword = param2;
server.checkPasswordCorrectness(param1);
}
public function updatePassword(param1:String, param2:String) : void {
server.updatePassword(param1,param2);
}
}
}
|
package forms.ranks {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/forms.ranks.PremiumRankBitmaps_bitmapBigRank16.png")]
public class PremiumRankBitmaps_bitmapBigRank16 extends BitmapAsset {
public function PremiumRankBitmaps_bitmapBigRank16() {
super();
}
}
}
|
package alternativa.tanks.display.usertitle {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.display.usertitle.ProgressBarSkin_barShadowCls.png")]
public class ProgressBarSkin_barShadowCls extends BitmapAsset {
public function ProgressBarSkin_barShadowCls() {
super();
}
}
}
|
package alternativa.tanks.models.panel.clanpanel {
import alternativa.types.Long;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class IClanPanelModelAdapt implements IClanPanelModel {
private var object:IGameObject;
private var impl:IClanPanelModel;
public function IClanPanelModelAdapt(param1:IGameObject, param2:IClanPanelModel) {
super();
this.object = param1;
this.impl = param2;
}
public function sendInviteToClan(param1:Long) : void {
var userId:Long = param1;
try {
Model.object = this.object;
this.impl.sendInviteToClan(userId);
}
finally {
Model.popObject();
}
}
}
}
|
package _codec.projects.tanks.client.panel.model.shop.clientlayoutkit {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.CollectionCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import platform.client.fp10.core.resource.types.ImageResource;
import projects.tanks.client.panel.model.shop.clientlayoutkit.CCBundleText;
import projects.tanks.client.panel.model.shop.clientlayoutkit.KitBundleViewCC;
import projects.tanks.client.panel.model.shop.clientlayoutkit.entity.BundleImage;
public class CodecKitBundleViewCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_button:ICodec;
private var codec_buttonOver:ICodec;
private var codec_imageBlocks:ICodec;
private var codec_priceLabelColor:ICodec;
private var codec_priceLabelFontPercentSize:ICodec;
private var codec_priceLabelPositionPercentX:ICodec;
private var codec_priceLabelPositionPercentY:ICodec;
private var codec_textBlocks:ICodec;
public function CodecKitBundleViewCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_button = param1.getCodec(new TypeCodecInfo(ImageResource,true));
this.codec_buttonOver = param1.getCodec(new TypeCodecInfo(ImageResource,true));
this.codec_imageBlocks = param1.getCodec(new CollectionCodecInfo(new TypeCodecInfo(BundleImage,false),false,1));
this.codec_priceLabelColor = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_priceLabelFontPercentSize = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_priceLabelPositionPercentX = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_priceLabelPositionPercentY = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_textBlocks = param1.getCodec(new CollectionCodecInfo(new TypeCodecInfo(CCBundleText,false),false,1));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:KitBundleViewCC = new KitBundleViewCC();
local2.button = this.codec_button.decode(param1) as ImageResource;
local2.buttonOver = this.codec_buttonOver.decode(param1) as ImageResource;
local2.imageBlocks = this.codec_imageBlocks.decode(param1) as Vector.<BundleImage>;
local2.priceLabelColor = this.codec_priceLabelColor.decode(param1) as int;
local2.priceLabelFontPercentSize = this.codec_priceLabelFontPercentSize.decode(param1) as int;
local2.priceLabelPositionPercentX = this.codec_priceLabelPositionPercentX.decode(param1) as int;
local2.priceLabelPositionPercentY = this.codec_priceLabelPositionPercentY.decode(param1) as int;
local2.textBlocks = this.codec_textBlocks.decode(param1) as Vector.<CCBundleText>;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:KitBundleViewCC = KitBundleViewCC(param2);
this.codec_button.encode(param1,local3.button);
this.codec_buttonOver.encode(param1,local3.buttonOver);
this.codec_imageBlocks.encode(param1,local3.imageBlocks);
this.codec_priceLabelColor.encode(param1,local3.priceLabelColor);
this.codec_priceLabelFontPercentSize.encode(param1,local3.priceLabelFontPercentSize);
this.codec_priceLabelPositionPercentX.encode(param1,local3.priceLabelPositionPercentX);
this.codec_priceLabelPositionPercentY.encode(param1,local3.priceLabelPositionPercentY);
this.codec_textBlocks.encode(param1,local3.textBlocks);
}
}
}
|
package controls.rangicons
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class RangsIcon_p22 extends BitmapAsset
{
public function RangsIcon_p22()
{
super();
}
}
}
|
package platform.client.core.general.spaces.loading.dispatcher {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.CollectionCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.core.general.spaces.loading.dispatcher.types.ObjectsData;
import platform.client.core.general.spaces.loading.dispatcher.types.ObjectsDependencies;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class DispatcherModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:DispatcherModelServer;
private var client:IDispatcherModelBase = IDispatcherModelBase(this);
private var modelId:Long = Long.getLong(191355032,163351191);
private var _loadDependenciesId:Long = Long.getLong(748816660,1488436371);
private var _loadDependencies_dependenciesCodec:ICodec;
private var _loadObjectsDataId:Long = Long.getLong(1779039460,1862164506);
private var _loadObjectsData_objectsDataCodec:ICodec;
private var _unloadObjectsId:Long = Long.getLong(2104499555,54326167);
private var _unloadObjects_objectsCodec:ICodec;
public function DispatcherModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new DispatcherModelServer(IModel(this));
this._loadDependencies_dependenciesCodec = this._protocol.getCodec(new TypeCodecInfo(ObjectsDependencies,false));
this._loadObjectsData_objectsDataCodec = this._protocol.getCodec(new TypeCodecInfo(ObjectsData,false));
this._unloadObjects_objectsCodec = this._protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(IGameObject,false),false,1));
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._loadDependenciesId:
this.client.loadDependencies(ObjectsDependencies(this._loadDependencies_dependenciesCodec.decode(param2)));
break;
case this._loadObjectsDataId:
this.client.loadObjectsData(ObjectsData(this._loadObjectsData_objectsDataCodec.decode(param2)));
break;
case this._unloadObjectsId:
this.client.unloadObjects(this._unloadObjects_objectsCodec.decode(param2) as Vector.<IGameObject>);
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.weapon.terminator.sfx {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import platform.client.fp10.core.resource.types.SoundResource;
import projects.tanks.client.battlefield.models.tankparts.weapon.terminator.sfx.TerminatorSFXCC;
public class CodecTerminatorSFXCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_closedSound:ICodec;
private var codec_openedSound:ICodec;
private var codec_servoSound:ICodec;
public function CodecTerminatorSFXCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_closedSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_openedSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_servoSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:TerminatorSFXCC = new TerminatorSFXCC();
local2.closedSound = this.codec_closedSound.decode(param1) as SoundResource;
local2.openedSound = this.codec_openedSound.decode(param1) as SoundResource;
local2.servoSound = this.codec_servoSound.decode(param1) as SoundResource;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:TerminatorSFXCC = TerminatorSFXCC(param2);
this.codec_closedSound.encode(param1,local3.closedSound);
this.codec_openedSound.encode(param1,local3.openedSound);
this.codec_servoSound.encode(param1,local3.servoSound);
}
}
}
|
package projects.tanks.client.battlefield.models.bonus.battle.bonusregions {
public interface IBonusRegionsModelBase {
}
}
|
package alternativa.tanks.models.panel {
import alternativa.tanks.service.clan.ClanPanelNotificationService;
import platform.client.fp10.core.model.ObjectLoadListener;
import projects.tanks.client.clans.panel.notification.ClanPanelNotificationModelBase;
import projects.tanks.client.clans.panel.notification.IClanPanelNotificationModelBase;
[ModelInfo]
public class ClanPanelNotificationModel extends ClanPanelNotificationModelBase implements IClanPanelNotificationModelBase, ObjectLoadListener {
[Inject]
public static var clanPanelNotificationService:ClanPanelNotificationService;
public function ClanPanelNotificationModel() {
super();
}
public function objectLoaded() : void {
clanPanelNotificationService.init(getInitParam().numberNotifications);
clanPanelNotificationService.restrictionTimeJoinClanInSec = getInitParam().restrictionTimeJoinClanInSec;
}
public function added() : void {
clanPanelNotificationService.add();
}
public function removed() : void {
clanPanelNotificationService.remove();
}
public function updateRestrictionTimeJoinClan(param1:int) : void {
clanPanelNotificationService.restrictionTimeJoinClanInSec = param1;
}
}
}
|
package forms.ranks {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/forms.ranks.PremiumRankBitmaps_bitmapBigRank18.png")]
public class PremiumRankBitmaps_bitmapBigRank18 extends BitmapAsset {
public function PremiumRankBitmaps_bitmapBigRank18() {
super();
}
}
}
|
package scpacker.test
{
import alternativa.init.Main;
import controls.Label;
import controls.rangicons.RangsIcon;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.GlowFilter;
public class UpdateRankLabel extends Sprite
{
private static const bitmapCrystal:Class = UpdateRankLabel_bitmapCrystal;
private static const crystalBd:BitmapData = new bitmapCrystal().bitmapData;
private var time:int = 0;
private var _alpha:Number = 1.0;
private var icon:Bitmap;
private var crystalIcon:Bitmap;
private var welcome:Label;
private var rankNotification:Label;
private var priseNotification:Label;
public function UpdateRankLabel(rankName:String, rang:int)
{
this.icon = new Bitmap(RangsIcon.getBD(rang));
this.crystalIcon = new Bitmap(crystalBd);
this.welcome = new Label();
this.rankNotification = new Label();
this.priseNotification = new Label();
super();
this.welcome.size = 20;
this.rankNotification.size = 20;
this.priseNotification.size = 20;
this.welcome.textColor = 16777011;
this.rankNotification.textColor = 16777011;
this.priseNotification.textColor = 16777011;
var glow:GlowFilter = new GlowFilter(0);
this.filters = [glow];
this.welcome.text = "Поздравляем!";
this.rankNotification.text = "Вы получили звание «" + rankName + "»";
this.priseNotification.text = "Ваш подарок " + UpdateRankPrize.getCount(rang);
addEventListener(Event.ADDED_TO_STAGE,this.onAdded);
addEventListener(Event.REMOVED_FROM_STAGE,this.onDeleteFromFrame);
}
private function onAdded(e:Event) : void
{
removeEventListener(Event.ADDED_TO_STAGE,this.onAdded);
addEventListener(Event.ENTER_FRAME,this.update);
Main.stage.addEventListener(Event.RESIZE,this.resize);
addChild(this.icon);
addChild(this.crystalIcon);
addChild(this.welcome);
addChild(this.rankNotification);
addChild(this.priseNotification);
this.resize(null);
}
public function resize(e:Event) : void
{
this.welcome.x = Main.stage.stageWidth - this.welcome.width >>> 1;
this.welcome.y = Main.stage.stageHeight / 2 - this.height / 2 - this.rankNotification.height;
this.rankNotification.x = Main.stage.stageWidth - this.rankNotification.width >>> 1;
this.rankNotification.y = this.welcome.y + this.rankNotification.height;
this.priseNotification.x = Main.stage.stageWidth / 2 - this.priseNotification.width / 2;
this.priseNotification.y = this.rankNotification.y + this.priseNotification.height + 20;
this.icon.x = Main.stage.stageWidth / 2 - this.icon.width / 2;
this.icon.y = this.welcome.y - this.icon.height - 10;
this.crystalIcon.x = this.priseNotification.x + this.priseNotification.width + 5;
this.crystalIcon.y = this.priseNotification.y;
}
private function update(e:Event) : void
{
this.time += 20;
if(this.time >= 2500)
{
this._alpha -= 0.05;
this.alpha = this._alpha;
if(this._alpha <= 0.01)
{
removeEventListener(Event.ENTER_FRAME,this.update);
removeEventListener(Event.RESIZE,this.resize);
this.filters = [];
this.onDeleteFromFrame(null);
}
}
}
private function onDeleteFromFrame(e:Event) : void
{
removeEventListener(Event.REMOVED_FROM_STAGE,this.onDeleteFromFrame);
removeChild(this.icon);
removeChild(this.crystalIcon);
removeChild(this.welcome);
removeChild(this.rankNotification);
removeChild(this.priseNotification);
Main.contentUILayer.removeChild(this);
}
}
}
|
package projects.tanks.client.battlefield.models.user.bossstate {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.EnumCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
public class BossStateModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:BossStateModelServer;
private var client:IBossStateModelBase = IBossStateModelBase(this);
private var modelId:Long = Long.getLong(1177132817,1695744884);
private var _changeRoleId:Long = Long.getLong(1216877919,-1226060135);
private var _changeRole_newRoleCodec:ICodec;
public function BossStateModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new BossStateModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(BossStateCC,false)));
this._changeRole_newRoleCodec = this._protocol.getCodec(new EnumCodecInfo(BossRelationRole,false));
}
protected function getInitParam() : BossStateCC {
return BossStateCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._changeRoleId:
this.client.changeRole(BossRelationRole(this._changeRole_newRoleCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.tanks.sfx
{
public class SoundOptions
{
public static var nearRadius:Number = 1000;
public static var farRadius:Number = 5000;
public static var farDelimiter:Number = 5;
public function SoundOptions()
{
super();
}
}
}
|
package _codec.projects.tanks.client.commons.models.challenge.time {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.commons.models.challenge.time.ChallengesTimeCC;
public class VectorCodecChallengesTimeCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecChallengesTimeCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(ChallengesTimeCC,false));
if(this.optionalElement) {
this.elementCodec = new OptionalCodecDecorator(this.elementCodec);
}
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:int = LengthCodecHelper.decodeLength(param1);
var local3:Vector.<ChallengesTimeCC> = new Vector.<ChallengesTimeCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = ChallengesTimeCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:ChallengesTimeCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<ChallengesTimeCC> = Vector.<ChallengesTimeCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Float;
import projects.tanks.client.battlefield.models.tankparts.weapons.artillery.ArtilleryCC;
public class CodecArtilleryCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_chargingTime:ICodec;
private var codec_initialTurretAngle:ICodec;
private var codec_maxShellSpeed:ICodec;
private var codec_minShellSpeed:ICodec;
private var codec_shellGravityCoef:ICodec;
private var codec_shellRadius:ICodec;
private var codec_speedsCount:ICodec;
public function CodecArtilleryCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_chargingTime = param1.getCodec(new TypeCodecInfo(Float,false));
this.codec_initialTurretAngle = param1.getCodec(new TypeCodecInfo(Float,false));
this.codec_maxShellSpeed = param1.getCodec(new TypeCodecInfo(Float,false));
this.codec_minShellSpeed = param1.getCodec(new TypeCodecInfo(Float,false));
this.codec_shellGravityCoef = param1.getCodec(new TypeCodecInfo(Float,false));
this.codec_shellRadius = param1.getCodec(new TypeCodecInfo(Float,false));
this.codec_speedsCount = param1.getCodec(new TypeCodecInfo(int,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:ArtilleryCC = new ArtilleryCC();
local2.chargingTime = this.codec_chargingTime.decode(param1) as Number;
local2.initialTurretAngle = this.codec_initialTurretAngle.decode(param1) as Number;
local2.maxShellSpeed = this.codec_maxShellSpeed.decode(param1) as Number;
local2.minShellSpeed = this.codec_minShellSpeed.decode(param1) as Number;
local2.shellGravityCoef = this.codec_shellGravityCoef.decode(param1) as Number;
local2.shellRadius = this.codec_shellRadius.decode(param1) as Number;
local2.speedsCount = this.codec_speedsCount.decode(param1) as int;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:ArtilleryCC = ArtilleryCC(param2);
this.codec_chargingTime.encode(param1,local3.chargingTime);
this.codec_initialTurretAngle.encode(param1,local3.initialTurretAngle);
this.codec_maxShellSpeed.encode(param1,local3.maxShellSpeed);
this.codec_minShellSpeed.encode(param1,local3.minShellSpeed);
this.codec_shellGravityCoef.encode(param1,local3.shellGravityCoef);
this.codec_shellRadius.encode(param1,local3.shellRadius);
this.codec_speedsCount.encode(param1,local3.speedsCount);
}
}
}
|
package alternativa.tanks.view.mainview.button {
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.gui.frames.YellowFrame;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.net.navigateToURL;
import projects.tanks.clients.fp10.libraries.TanksLocale;
public class MainViewStarsEventButton extends MainViewButton {
[Inject]
public static var localeService:ILocaleService;
private var url:String;
public function MainViewStarsEventButton(param1:String, param2:String, param3:Bitmap, param4:int, param5:String) {
var local6:Bitmap = Boolean(param3) ? param3 : new Bitmap(new BitmapData(166,106,true,2298478591));
this.url = param5;
super(param1,param2,local6,param4,new YellowFrame(100,FRAME_HEIGHT));
button.setText(localeService.getText(TanksLocale.TEXT_OPEN_BATTLE_LIST_BUTTON));
}
override protected function onClick(param1:MouseEvent) : void {
navigateToURL(new URLRequest(this.url));
}
override public function setSpectatorsButtonVisible(param1:Boolean) : void {
}
}
}
|
package assets.scroller {
import flash.display.BitmapData;
public class ThumbMiddle extends BitmapData {
public function ThumbMiddle(param1:int, param2:int, param3:Boolean = true, param4:uint = 4294967295) {
super(param1,param2,param3,param4);
}
}
}
|
package alternativa.tanks.models.battle.facilities {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class FacilitySphericalZoneEvents implements FacilitySphericalZone {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function FacilitySphericalZoneEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function getRadius() : Number {
var result:Number = NaN;
var i:int = 0;
var m:FacilitySphericalZone = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = FacilitySphericalZone(this.impl[i]);
result = Number(m.getRadius());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function getCenterOffsetZ() : Number {
var result:Number = NaN;
var i:int = 0;
var m:FacilitySphericalZone = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = FacilitySphericalZone(this.impl[i]);
result = Number(m.getCenterOffsetZ());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package alternativa.tanks.battle.objects.tank.skintexturesregistry {
import alternativa.tanks.battle.objects.tank.tankskin.TankSkinPartCacheItem;
import flash.display.BitmapData;
public interface TankSkinTextureRegistry {
function getTexture(param1:TankSkinPartCacheItem, param2:BitmapData) : BitmapData;
function releaseTexture(param1:TankSkinPartCacheItem, param2:BitmapData) : void;
function clear() : void;
}
}
|
package alternativa.tanks.gui.socialnetwork.ok {
import alternativa.tanks.gui.socialnetwork.AbstractSNGroupEnteringWindow;
import flash.display.Bitmap;
import flash.display.BitmapData;
import projects.tanks.clients.fp10.libraries.TanksLocale;
public class OkGroupThanksForEnteringWindow extends AbstractSNGroupEnteringWindow {
private static var thanksForEnteringBitmapDataClass:Class = OkGroupThanksForEnteringWindow_thanksForEnteringBitmapDataClass;
protected static var thanksForEnteringBitmapData:BitmapData = Bitmap(new thanksForEnteringBitmapDataClass()).bitmapData;
public function OkGroupThanksForEnteringWindow() {
super(thanksForEnteringBitmapData,OkGroupReminderWindow.OK_GROUP_RUL,localeService.getText(TanksLocale.TEXT_OK_ENTER_GROUP_BONUS));
}
}
}
|
package controls.base {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.base.MainPanelClanButtonBase_iconClass.png")]
public class MainPanelClanButtonBase_iconClass extends BitmapAsset {
public function MainPanelClanButtonBase_iconClass() {
super();
}
}
}
|
package forms.ranks {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/forms.ranks.DefaultRanksBitmaps_bitmapBigRank16.png")]
public class DefaultRanksBitmaps_bitmapBigRank16 extends BitmapAsset {
public function DefaultRanksBitmaps_bitmapBigRank16() {
super();
}
}
}
|
package projects.tanks.client.panel.model.payment.modes.platbox {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
public class PlatBoxPaymentModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:PlatBoxPaymentModelServer;
private var client:IPlatBoxPaymentModelBase = IPlatBoxPaymentModelBase(this);
private var modelId:Long = Long.getLong(1738044130,-258469210);
private var _paymentErrorId:Long = Long.getLong(907995372,2081080733);
private var _paymentInitedId:Long = Long.getLong(1916914524,-199552186);
private var _phoneIsInvalidId:Long = Long.getLong(1929960861,1764460250);
private var _phoneIsInvalid_phoneCodec:ICodec;
private var _phoneIsValidId:Long = Long.getLong(909269845,-241303137);
private var _phoneIsValid_phoneCodec:ICodec;
public function PlatBoxPaymentModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new PlatBoxPaymentModelServer(IModel(this));
this._phoneIsInvalid_phoneCodec = this._protocol.getCodec(new TypeCodecInfo(String,false));
this._phoneIsValid_phoneCodec = this._protocol.getCodec(new TypeCodecInfo(String,false));
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._paymentErrorId:
this.client.paymentError();
break;
case this._paymentInitedId:
this.client.paymentInited();
break;
case this._phoneIsInvalidId:
this.client.phoneIsInvalid(String(this._phoneIsInvalid_phoneCodec.decode(param2)));
break;
case this._phoneIsValidId:
this.client.phoneIsValid(String(this._phoneIsValid_phoneCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package _codec.projects.tanks.client.tanksservices.model.reconnect {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.CollectionCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.tanksservices.model.reconnect.RemoteEndpointData;
public class CodecRemoteEndpointData implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_host:ICodec;
private var codec_ports:ICodec;
public function CodecRemoteEndpointData() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_host = param1.getCodec(new TypeCodecInfo(String,false));
this.codec_ports = param1.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:RemoteEndpointData = new RemoteEndpointData();
local2.host = this.codec_host.decode(param1) as String;
local2.ports = this.codec_ports.decode(param1) as Vector.<int>;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:RemoteEndpointData = RemoteEndpointData(param2);
this.codec_host.encode(param1,local3.host);
this.codec_ports.encode(param1,local3.ports);
}
}
}
|
package alternativa.tanks.model.bonus.showing.items {
import projects.tanks.client.panel.model.bonus.showing.items.BonusItemCC;
import projects.tanks.client.panel.model.bonus.showing.items.BonusItemModelBase;
import projects.tanks.client.panel.model.bonus.showing.items.IBonusItemModelBase;
[ModelInfo]
public class BonusItemModel extends BonusItemModelBase implements IBonusItemModelBase, BonusItem {
public function BonusItemModel() {
super();
}
public function getItem() : BonusItemCC {
return getInitParam();
}
}
}
|
package alternativa.init
{
import alternativa.osgi.bundle.IBundleActivator;
public class NetworkActivator implements IBundleActivator
{
public static var osgi:OSGi;
public function NetworkActivator()
{
super();
}
public function start(osgi:OSGi) : void
{
NetworkActivator.osgi = osgi;
}
public function stop(osgi:OSGi) : void
{
NetworkActivator.osgi = null;
}
}
}
|
package alternativa.tanks.model.shop.items.crystallitem
{
import flash.display.BitmapData;
public class CrystalPackageItemIcons
{
[Embed(source="1169.png")]
private static const crystalBlueClass:Class;
public static const crystalBlue:BitmapData = new crystalBlueClass().bitmapData;
[Embed(source="931.png")]
private static const crystalWhiteClass:Class;
public static const crystalWhite:BitmapData = new crystalWhiteClass().bitmapData;
[Embed(source="755.png")]
private static const crystalsPackage1Class:Class;
[Embed(source="860.png")]
private static const crystalsPackage2Class:Class;
[Embed(source="1129.png")]
private static const crystalsPackage3Class:Class;
[Embed(source="1006.png")]
private static const crystalsPackage4Class:Class;
[Embed(source="901.png")]
private static const crystalsPackage5Class:Class;
public static const crystalsPackages:Array = [null,new crystalsPackage1Class().bitmapData,new crystalsPackage2Class().bitmapData,new crystalsPackage3Class().bitmapData,new crystalsPackage4Class().bitmapData,new crystalsPackage5Class().bitmapData];
public function CrystalPackageItemIcons()
{
super();
}
}
}
|
package platform.clients.fp10.libraries.alternativapartners.service.impl {
import alternativa.osgi.service.launcherparams.ILauncherParams;
import alternativa.osgi.service.logging.LogService;
import platform.client.fp10.core.service.address.AddressService;
import platform.client.fp10.core.type.IGameObject;
import platform.clients.fp10.libraries.alternativapartners.models.socialnetworkparameters.SocialNetworkParameters;
import platform.clients.fp10.libraries.alternativapartners.service.IPartnerService;
import platform.clients.fp10.libraries.alternativapartners.type.IPartner;
public class PartnerService implements IPartnerService {
[Inject]
public static var addressService:AddressService;
[Inject]
public static var log:LogService;
[Inject]
public static var paramsService:ILauncherParams;
private var _partner:IPartner;
private var _hasOwnPaymentSystem:Boolean = false;
private var _hasSocialFunction:Boolean = false;
public function PartnerService() {
super();
}
public function isRunningInsidePartnerEnvironment() : Boolean {
var local1:String = this.getEnvironmentPartnerId();
return Boolean(local1);
}
public function getEnvironmentPartnerId() : String {
var local1:String = addressService.getQueryParameter("partnerId");
if(!local1) {
local1 = paramsService.getParameter("partnerId");
if(!local1) {
local1 = "";
}
}
return local1.toLowerCase();
}
public function hasPaymentAction() : Boolean {
return Boolean(this._partner) ? Boolean(this._partner.hasPaymentAction()) : false;
}
public function makePaymentAction() : void {
if(Boolean(this._partner)) {
this._partner.paymentAction();
}
}
public function hasOwnPaymentSystem() : Boolean {
return this._hasOwnPaymentSystem;
}
public function hasSocialFunction() : Boolean {
return this._hasSocialFunction;
}
public function getFailRedirectUrl() : String {
return Boolean(this._partner) ? this._partner.getFailRedirectUrl() : "";
}
public function isExternalLoginAllowed() : Boolean {
return Boolean(this._partner) ? Boolean(this._partner.isExternalLoginAllowed()) : true;
}
public function setPartner(param1:IGameObject) : void {
this._partner = IPartner(param1.adapt(IPartner));
this._hasOwnPaymentSystem = SocialNetworkParameters(param1.adapt(SocialNetworkParameters)).hasOwnPaymentSystem();
this._hasSocialFunction = SocialNetworkParameters(param1.adapt(SocialNetworkParameters)).hasSocialFunction();
}
public function hasRatings() : Boolean {
return Boolean(this._partner) ? Boolean(this._partner.hasRatings()) : false;
}
public function isRunningInside(param1:String) : Boolean {
var local2:String = this.getEnvironmentPartnerId();
if(local2 == null) {
return null;
}
return local2.toLocaleLowerCase() == param1.toLocaleLowerCase();
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.battle.battlefield.mine {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import projects.tanks.client.battlefield.models.battle.battlefield.mine.BattleMine;
import projects.tanks.client.battlefield.types.Vector3d;
public class CodecBattleMine implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_activated:ICodec;
private var codec_expirationMine:ICodec;
private var codec_expirationTaskId:ICodec;
private var codec_mineId:ICodec;
private var codec_ownerId:ICodec;
private var codec_position:ICodec;
public function CodecBattleMine() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_activated = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_expirationMine = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_expirationTaskId = param1.getCodec(new TypeCodecInfo(Long,false));
this.codec_mineId = param1.getCodec(new TypeCodecInfo(Long,false));
this.codec_ownerId = param1.getCodec(new TypeCodecInfo(Long,false));
this.codec_position = param1.getCodec(new TypeCodecInfo(Vector3d,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:BattleMine = new BattleMine();
local2.activated = this.codec_activated.decode(param1) as Boolean;
local2.expirationMine = this.codec_expirationMine.decode(param1) as Boolean;
local2.expirationTaskId = this.codec_expirationTaskId.decode(param1) as Long;
local2.mineId = this.codec_mineId.decode(param1) as Long;
local2.ownerId = this.codec_ownerId.decode(param1) as Long;
local2.position = this.codec_position.decode(param1) as Vector3d;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:BattleMine = BattleMine(param2);
this.codec_activated.encode(param1,local3.activated);
this.codec_expirationMine.encode(param1,local3.expirationMine);
this.codec_expirationTaskId.encode(param1,local3.expirationTaskId);
this.codec_mineId.encode(param1,local3.mineId);
this.codec_ownerId.encode(param1,local3.ownerId);
this.codec_position.encode(param1,local3.position);
}
}
}
|
package alternativa.tanks.models.weapon.artillery {
import alternativa.engine3d.core.Object3D;
import alternativa.tanks.battle.BattleService;
import alternativa.tanks.battle.objects.tank.tankskin.turret.ArtilleryTurretSkin;
import alternativa.tanks.battle.scene3d.Renderer;
public class ArtilleryCannonEffect implements Renderer {
[Inject]
public static var battleService:BattleService;
private static const RECOIL_LENGTH:Number = 75;
private static const RECOIL_TIME:Number = 35;
private static const EFFECT_TIME:Number = 450;
private var cannon:Object3D;
private var elapsedTime:int;
private var initialCannonY:Number;
public function ArtilleryCannonEffect(param1:ArtilleryTurretSkin) {
super();
this.cannon = param1.getCannon3D();
this.initialCannonY = this.cannon.y;
}
public function run() : void {
battleService.getBattleScene3D().addRenderer(this);
this.elapsedTime = 0;
}
public function reset() : void {
this.cannon.y = this.initialCannonY;
battleService.getBattleScene3D().removeRenderer(this);
}
public function render(param1:int, param2:int) : void {
this.elapsedTime += param2;
if(this.elapsedTime >= EFFECT_TIME) {
this.reset();
return;
}
if(this.elapsedTime < RECOIL_TIME) {
this.cannon.y = this.initialCannonY - this.elapsedTime / RECOIL_TIME * RECOIL_LENGTH;
return;
}
this.cannon.y = this.initialCannonY + (this.elapsedTime - RECOIL_TIME) / (EFFECT_TIME - RECOIL_TIME) * RECOIL_LENGTH - RECOIL_LENGTH;
}
}
}
|
package projects.tanks.client.battlefield.models.bonus.bonuslight {
import alternativa.osgi.OSGi;
import alternativa.protocol.IProtocol;
import alternativa.protocol.OptionalMap;
import alternativa.protocol.ProtocolBuffer;
import flash.utils.ByteArray;
import platform.client.fp10.core.model.IModel;
public class BonusLightModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function BonusLightModelServer(param1:IModel) {
super();
this.model = param1;
var local2:ByteArray = new ByteArray();
this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol));
this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap());
}
}
}
|
package alternativa.tanks.models.battle.battlefield.keyboard {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.models.battle.battlefield.keyboard.DeviceIcons_robocrosshairIconClass.png")]
public class DeviceIcons_robocrosshairIconClass extends BitmapAsset {
public function DeviceIcons_robocrosshairIconClass() {
super();
}
}
}
|
package _codec.projects.tanks.client.tanksservices.model.reconnect {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.tanksservices.model.reconnect.RemoteEndpointData;
public class VectorCodecRemoteEndpointDataLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecRemoteEndpointDataLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(RemoteEndpointData,false));
if(this.optionalElement) {
this.elementCodec = new OptionalCodecDecorator(this.elementCodec);
}
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:int = LengthCodecHelper.decodeLength(param1);
var local3:Vector.<RemoteEndpointData> = new Vector.<RemoteEndpointData>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = RemoteEndpointData(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:RemoteEndpointData = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<RemoteEndpointData> = Vector.<RemoteEndpointData>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package _codec.projects.tanks.client.battleservice.model.statistics {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.CollectionCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import projects.tanks.client.battleservice.model.createparams.BattleLimits;
import projects.tanks.client.battleservice.model.statistics.StatisticsModelCC;
public class CodecStatisticsModelCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_battleName:ICodec;
private var codec_equipmentConstraintsMode:ICodec;
private var codec_fund:ICodec;
private var codec_limits:ICodec;
private var codec_mapName:ICodec;
private var codec_matchBattle:ICodec;
private var codec_maxPeopleCount:ICodec;
private var codec_modeName:ICodec;
private var codec_parkourMode:ICodec;
private var codec_running:ICodec;
private var codec_spectator:ICodec;
private var codec_suspiciousUserIds:ICodec;
private var codec_timeLeft:ICodec;
private var codec_valuableRound:ICodec;
public function CodecStatisticsModelCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_battleName = param1.getCodec(new TypeCodecInfo(String,true));
this.codec_equipmentConstraintsMode = param1.getCodec(new TypeCodecInfo(String,true));
this.codec_fund = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_limits = param1.getCodec(new TypeCodecInfo(BattleLimits,false));
this.codec_mapName = param1.getCodec(new TypeCodecInfo(String,false));
this.codec_matchBattle = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_maxPeopleCount = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_modeName = param1.getCodec(new TypeCodecInfo(String,false));
this.codec_parkourMode = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_running = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_spectator = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_suspiciousUserIds = param1.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1));
this.codec_timeLeft = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_valuableRound = param1.getCodec(new TypeCodecInfo(Boolean,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:StatisticsModelCC = new StatisticsModelCC();
local2.battleName = this.codec_battleName.decode(param1) as String;
local2.equipmentConstraintsMode = this.codec_equipmentConstraintsMode.decode(param1) as String;
local2.fund = this.codec_fund.decode(param1) as int;
local2.limits = this.codec_limits.decode(param1) as BattleLimits;
local2.mapName = this.codec_mapName.decode(param1) as String;
local2.matchBattle = this.codec_matchBattle.decode(param1) as Boolean;
local2.maxPeopleCount = this.codec_maxPeopleCount.decode(param1) as int;
local2.modeName = this.codec_modeName.decode(param1) as String;
local2.parkourMode = this.codec_parkourMode.decode(param1) as Boolean;
local2.running = this.codec_running.decode(param1) as Boolean;
local2.spectator = this.codec_spectator.decode(param1) as Boolean;
local2.suspiciousUserIds = this.codec_suspiciousUserIds.decode(param1) as Vector.<Long>;
local2.timeLeft = this.codec_timeLeft.decode(param1) as int;
local2.valuableRound = this.codec_valuableRound.decode(param1) as Boolean;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:StatisticsModelCC = StatisticsModelCC(param2);
this.codec_battleName.encode(param1,local3.battleName);
this.codec_equipmentConstraintsMode.encode(param1,local3.equipmentConstraintsMode);
this.codec_fund.encode(param1,local3.fund);
this.codec_limits.encode(param1,local3.limits);
this.codec_mapName.encode(param1,local3.mapName);
this.codec_matchBattle.encode(param1,local3.matchBattle);
this.codec_maxPeopleCount.encode(param1,local3.maxPeopleCount);
this.codec_modeName.encode(param1,local3.modeName);
this.codec_parkourMode.encode(param1,local3.parkourMode);
this.codec_running.encode(param1,local3.running);
this.codec_spectator.encode(param1,local3.spectator);
this.codec_suspiciousUserIds.encode(param1,local3.suspiciousUserIds);
this.codec_timeLeft.encode(param1,local3.timeLeft);
this.codec_valuableRound.encode(param1,local3.valuableRound);
}
}
}
|
package assets.scroller {
import flash.display.BitmapData;
import flash.display.MovieClip;
import flash.display.Shape;
public class ScrollThumbSkin extends MovieClip {
private var _height:Number = 30;
private var _width:Number = 14;
public var toppng:BitmapData;
public var midpng:BitmapData;
private var top:Shape = new Shape();
private var bottom:Shape = new Shape();
public function ScrollThumbSkin() {
super();
this.initSkin();
this.top.graphics.clear();
this.top.graphics.beginBitmapFill(this.toppng);
this.top.graphics.drawRect(0,0,this._width,1);
this.top.graphics.endFill();
this.bottom.graphics.clear();
this.bottom.graphics.beginBitmapFill(this.toppng);
this.bottom.graphics.drawRect(0,0,this._width,1);
this.bottom.graphics.endFill();
addChild(this.top);
addChild(this.bottom);
this.top.y = -12;
}
public function initSkin() : void {
this.toppng = new ThumbTop(14,1);
this.midpng = new ThumbMiddle(14,1);
}
override public function set height(param1:Number) : void {
this._height = int(param1);
this.draw();
}
override public function set y(param1:Number) : void {
super.y = int(param1);
}
override public function get height() : Number {
return this._height;
}
override public function set width(param1:Number) : void {
this.draw();
}
override public function get width() : Number {
return this._width;
}
private function draw() : void {
this.bottom.y = this._height + 11;
graphics.clear();
graphics.beginBitmapFill(this.midpng);
graphics.drawRect(0,-11,this._width,this._height + 22);
graphics.endFill();
}
}
}
|
package alternativa.tanks.models.battlefield.effects.graffiti
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class GraffitiMenu_leftLockBitmap extends BitmapAsset
{
public function GraffitiMenu_leftLockBitmap()
{
super();
}
}
}
|
package alternativa.tanks.models.coloradjust {
import flash.geom.ColorTransform;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class IColorAdjustAdapt implements IColorAdjust {
private var object:IGameObject;
private var impl:IColorAdjust;
public function IColorAdjustAdapt(param1:IGameObject, param2:IColorAdjust) {
super();
this.object = param1;
this.impl = param2;
}
public function getHWHeat() : ColorTransform {
var result:ColorTransform = null;
try {
Model.object = this.object;
result = this.impl.getHWHeat();
}
finally {
Model.popObject();
}
return result;
}
public function getHWFrost() : ColorTransform {
var result:ColorTransform = null;
try {
Model.object = this.object;
result = this.impl.getHWFrost();
}
finally {
Model.popObject();
}
return result;
}
public function getSoftHeat() : ColorTransform {
var result:ColorTransform = null;
try {
Model.object = this.object;
result = this.impl.getSoftHeat();
}
finally {
Model.popObject();
}
return result;
}
public function getSoftFrost() : ColorTransform {
var result:ColorTransform = null;
try {
Model.object = this.object;
result = this.impl.getSoftFrost();
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.map {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battlefield.models.map.DustParams;
public class VectorCodecDustParamsLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecDustParamsLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(DustParams,false));
if(this.optionalElement) {
this.elementCodec = new OptionalCodecDecorator(this.elementCodec);
}
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:int = int(LengthCodecHelper.decodeLength(param1));
var local3:Vector.<DustParams> = new Vector.<DustParams>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = DustParams(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:DustParams = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<DustParams> = Vector.<DustParams>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package alternativa.tanks.gui.upgrade {
import alternativa.osgi.service.locale.ILocaleService;
import controls.base.DefaultButtonBase;
import flash.events.MouseEvent;
import forms.base.BaseForm;
import projects.tanks.clients.fp10.libraries.TanksLocale;
import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.gui.DialogWindow;
public class UpgradeWindowBase extends DialogWindow {
[Inject]
public static var localeService:ILocaleService;
private static const VERTICAL_MARGIN:int = 8;
private static const HORIZONTAL_MARGIN:int = 12;
private var baseForm:BaseForm;
protected var cancelButton:DefaultButtonBase;
public function UpgradeWindowBase(param1:int, param2:int) {
super();
this.baseForm = new BaseForm(param1,param2);
addChild(this.baseForm);
this.baseForm.window.setHeaderId(TanksLocale.TEXT_HEADER_UPGRADE);
this.cancelButton = new DefaultButtonBase();
this.cancelButton.width = 95;
this.cancelButton.label = localeService.getText(TanksLocale.TEXT_GARAGE_CLOSE_TEXT);
this.cancelButton.addEventListener(MouseEvent.CLICK,this.onMouseClick);
this.baseForm.window.addChild(this.cancelButton);
this.align();
}
private function align() : void {
this.cancelButton.y = this.baseForm.window.height - 5 - this.cancelButton.height - VERTICAL_MARGIN;
this.cancelButton.x = this.baseForm.window.width - this.cancelButton.width - HORIZONTAL_MARGIN;
}
override public function set width(param1:Number) : void {
this.baseForm.window.width = int(param1);
this.align();
}
override public function set height(param1:Number) : void {
this.baseForm.window.height = int(param1);
this.align();
}
private function onMouseClick(param1:MouseEvent) : void {
this.onClose();
}
override protected function cancelKeyPressed() : void {
this.onClose();
}
protected function onClose() : void {
}
protected function removeEvents() : void {
this.cancelButton.removeEventListener(MouseEvent.CLICK,this.onClose);
}
}
}
|
package projects.tanks.client.battlefield.models.ultimate.effects.viking {
import alternativa.osgi.OSGi;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
public class VikingUltimateModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:VikingUltimateModelServer;
private var client:IVikingUltimateModelBase = IVikingUltimateModelBase(this);
private var modelId:Long = Long.getLong(1758244583,2134467693);
private var _effectActivatedId:Long = Long.getLong(2075479607,-38975934);
private var _effectDeactivatedId:Long = Long.getLong(1670496931,1822038243);
public function VikingUltimateModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new VikingUltimateModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(VikingUltimateCC,false)));
}
protected function getInitParam() : VikingUltimateCC {
return VikingUltimateCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._effectActivatedId:
this.client.effectActivated();
break;
case this._effectDeactivatedId:
this.client.effectDeactivated();
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package projects.tanks.client.panel.model.alerts.entrancealert {
import platform.client.fp10.core.resource.types.LocalizedImageResource;
public interface IEntranceAlertModelBase {
function showAlert(param1:LocalizedImageResource, param2:String, param3:String) : void;
}
}
|
package alternativa.tanks.gui.friends.list.renderer.background {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.friends.list.renderer.background.UserOfflineCellSelected_leftIconClass.png")]
public class UserOfflineCellSelected_leftIconClass extends BitmapAsset {
public function UserOfflineCellSelected_leftIconClass() {
super();
}
}
}
|
package alternativa.tanks.view.battlelist.modefilter {
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import projects.tanks.client.battleservice.BattleMode;
public class BattleModeCheckBox extends Sprite {
private static const normalStateClass:Class = BattleModeCheckBox_normalStateClass;
private static const normalStateBitmapData:BitmapData = Bitmap(new normalStateClass()).bitmapData;
private static const overStateClass:Class = BattleModeCheckBox_overStateClass;
private static const overStateBitmapData:BitmapData = Bitmap(new overStateClass()).bitmapData;
private static const pressedStateClass:Class = BattleModeCheckBox_pressedStateClass;
private static const pressedStateBitmapData:BitmapData = Bitmap(new pressedStateClass()).bitmapData;
private var _isPressed:Boolean;
private var _icon:Bitmap;
private var _battleMode:BattleMode;
private var _buttonNormalState:Bitmap;
private var _buttonOverState:Bitmap;
private var _buttonPressedState:Bitmap;
public function BattleModeCheckBox(param1:BattleMode) {
super();
this._battleMode = param1;
this._buttonPressedState = new Bitmap(pressedStateBitmapData);
addChild(this._buttonPressedState);
this._buttonNormalState = new Bitmap(normalStateBitmapData);
addChild(this._buttonNormalState);
this._buttonOverState = new Bitmap(overStateBitmapData);
addChild(this._buttonOverState);
this._icon = new Bitmap(BattleModeIcons.getIcon(param1));
addChild(this._icon);
this._icon.x = (width - this._icon.width) / 2;
this._icon.y = (height - this._icon.height) / 2;
addEventListener(MouseEvent.CLICK,this.onClick);
this.isPressed = false;
this.lock = false;
}
private function onClick(param1:MouseEvent) : void {
this.isPressed = !this._isPressed;
dispatchEvent(new Event(Event.CHANGE));
}
public function get isPressed() : Boolean {
return this._isPressed;
}
public function destroy() : void {
if(hasEventListener(MouseEvent.CLICK)) {
removeEventListener(MouseEvent.CLICK,this.onClick);
}
if(hasEventListener(MouseEvent.MOUSE_OVER)) {
removeEventListener(MouseEvent.MOUSE_OVER,this.onMouseOver);
}
if(hasEventListener(MouseEvent.MOUSE_OUT)) {
removeEventListener(MouseEvent.MOUSE_OUT,this.onMouseOut);
}
}
public function set isPressed(param1:Boolean) : void {
this._isPressed = param1;
if(this._isPressed) {
this._icon.y = (height - this._icon.height) / 2 + 1;
removeEventListener(MouseEvent.MOUSE_OVER,this.onMouseOver);
removeEventListener(MouseEvent.MOUSE_OUT,this.onMouseOut);
this.setState(3);
} else {
this._icon.y = (height - this._icon.height) / 2;
this.setState(1);
addEventListener(MouseEvent.MOUSE_OVER,this.onMouseOver);
addEventListener(MouseEvent.MOUSE_OUT,this.onMouseOut);
}
}
private function setState(param1:int) : void {
switch(param1) {
case 1:
this._buttonNormalState.visible = true;
this._buttonOverState.visible = false;
this._buttonPressedState.visible = false;
break;
case 2:
this._buttonOverState.visible = true;
break;
case 3:
this._buttonNormalState.visible = false;
this._buttonOverState.visible = false;
this._buttonPressedState.visible = true;
}
}
private function onMouseOver(param1:MouseEvent) : void {
this.setState(2);
}
private function onMouseOut(param1:MouseEvent) : void {
this.setState(1);
}
public function get battleMode() : BattleMode {
return this._battleMode;
}
public function set lock(param1:Boolean) : void {
this.mouseChildren = !param1;
this.mouseEnabled = !param1;
this.buttonMode = !param1;
this.useHandCursor = !param1;
}
}
}
|
package alternativa.tanks.help
{
import controls.Label;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.BlendMode;
import flash.display.Shape;
import flash.display.Sprite;
import flash.display.StageQuality;
import flash.geom.ColorTransform;
import flash.geom.Matrix;
import flash.geom.Point;
import flash.text.TextFormat;
public class BubbleHelper extends Helper
{
private static var defaultTextFormat:TextFormat = new TextFormat("Tahoma",10,16777215,true);
private var back:Shape;
private var outline:Shape;
public const r:int = 16;
private const lineThickness:int = 1;
private const lineColor:uint = 16777215;
private const fillColor:uint = 0;
private const lineAlpha:Number = 1;
private const fillAlpha:Number = 0.85;
private const arrowShift:int = 24.0;
private const arrowWidth:int = 24.0;
private var _arrowLehgth:int = 48.0;
private var _arrowAlign:int;
private var _align:int;
private var arrowP1:Point;
private var arrowP2:Point;
private var arrowTarget:Point;
private var outlineArrowP1:Point;
private var outlineArrowP2:Point;
private var outlineArrowTarget:Point;
private var arrowDirection:Boolean;
private var descriptionLabel:Label;
private var margin:int = 12;
private var bmp:Bitmap;
private var bd:BitmapData;
private var backContainer:Sprite;
public function BubbleHelper()
{
this.arrowP1 = new Point();
this.arrowP2 = new Point();
this.arrowTarget = new Point();
this.outlineArrowP1 = new Point();
this.outlineArrowP2 = new Point();
this.outlineArrowTarget = new Point();
super();
_size = new Point();
_targetPoint = new Point();
this.bmp = new Bitmap();
addChild(this.bmp);
this.backContainer = new Sprite();
this.backContainer.mouseEnabled = false;
this.backContainer.mouseChildren = false;
this.backContainer.tabEnabled = false;
this.backContainer.tabChildren = false;
this.outline = new Shape();
this.backContainer.addChild(this.outline);
this.back = new Shape();
this.backContainer.addChild(this.back);
this.arrowAlign = HelperAlign.MIDDLE_RIGHT;
this.descriptionLabel = new Label();
this.descriptionLabel.multiline = true;
addChild(this.descriptionLabel);
this.descriptionLabel.x = this.margin - 3;
this.descriptionLabel.y = this.margin - 4;
this.descriptionLabel.mouseEnabled = false;
this.descriptionLabel.tabEnabled = false;
}
public static function set textFormat(tf:TextFormat) : void
{
BubbleHelper.defaultTextFormat = tf;
}
override public function draw(size:Point) : void
{
_size.x = int(size.x);
_size.y = int(size.y);
this.outline.graphics.clear();
this.outline.graphics.beginFill(this.lineColor,this.lineAlpha);
this.outline.graphics.drawRoundRect(-this.lineThickness,-this.lineThickness,size.x + this.lineThickness * 2,size.y + this.lineThickness * 2,this.r + 2,this.r + 2);
this.outline.graphics.drawRoundRect(0,0,size.x,size.y,this.r,this.r);
this.back.graphics.clear();
this.back.graphics.beginFill(this.fillColor,this.fillAlpha);
this.back.graphics.drawRoundRect(0,0,size.x,size.y,this.r,this.r);
var tga:Number = this._arrowLehgth / this.arrowWidth;
if(this._arrowAlign & HelperAlign.TOP_MASK)
{
this.arrowP1.y = 0;
this.arrowP2.y = 0;
this.arrowTarget.y = -this._arrowLehgth;
this.outlineArrowP1.y = 0;
this.outlineArrowP2.y = 0;
this.outlineArrowTarget.y = -tga * (this.arrowWidth + this.lineThickness * 2);
}
else if(this._arrowAlign & HelperAlign.MIDDLE_MASK)
{
this.arrowP1.y = size.y - this.arrowWidth >> 1;
this.arrowP2.y = this.arrowP1.y + this.arrowWidth;
this.arrowTarget.y = this.arrowP1.y;
this.outlineArrowP1.y = this.arrowP1.y - this.lineThickness;
this.outlineArrowP2.y = this.arrowP1.y + this.arrowWidth + this.lineThickness;
this.outlineArrowTarget.y = this.outlineArrowP1.y;
}
else
{
this.arrowP1.y = size.y;
this.arrowP2.y = size.y;
this.arrowTarget.y = size.y + this._arrowLehgth;
this.outlineArrowP1.y = size.y;
this.outlineArrowP2.y = size.y;
this.outlineArrowTarget.y = size.y + tga * (this.arrowWidth + this.lineThickness * 2);
}
if(this._arrowAlign & HelperAlign.LEFT_MASK)
{
if(this.arrowDirection == HelperArrowDirection.VERTICAL)
{
this.arrowTarget.x = this.arrowShift;
this.arrowP1.x = this.arrowShift;
this.arrowP2.x = this.arrowShift + this.arrowWidth;
this.outlineArrowTarget.x = this.arrowShift - this.lineThickness;
this.outlineArrowP1.x = this.arrowShift - this.lineThickness;
this.outlineArrowP2.x = this.arrowShift + this.arrowWidth + this.lineThickness;
}
else
{
this.arrowTarget.x = -this._arrowLehgth;
this.arrowP1.x = 0;
this.arrowP2.x = 0;
this.outlineArrowTarget.x = -tga * (this.arrowWidth + this.lineThickness * 2);
this.outlineArrowP1.x = 0;
this.outlineArrowP2.x = 0;
}
if(this._arrowAlign & HelperAlign.TOP_MASK)
{
this.outline.graphics.drawRect(this.arrowP1.x,this.arrowP1.y - this.lineThickness,this.arrowP2.x - this.arrowP1.x,this.lineThickness);
}
else if(this._arrowAlign & HelperAlign.MIDDLE_MASK)
{
this.outline.graphics.drawRect(this.arrowP1.x - this.lineThickness,this.arrowP1.y,this.lineThickness,this.arrowP2.y - this.arrowP1.y);
}
else
{
this.outline.graphics.drawRect(this.arrowP1.x,this.arrowP1.y,this.arrowP2.x - this.arrowP1.x,this.lineThickness);
}
}
else if(this._arrowAlign & HelperAlign.CENTER_MASK)
{
this.arrowTarget.x = size.x - this.arrowWidth >> 1;
this.arrowP1.x = this.arrowTarget.x;
this.arrowP2.x = this.arrowTarget.x + this.arrowWidth;
this.outlineArrowTarget.x = this.arrowTarget.x - this.lineThickness;
this.outlineArrowP1.x = this.outlineArrowTarget.x;
this.outlineArrowP2.x = this.arrowP2.x + this.lineThickness;
if(this._arrowAlign & HelperAlign.TOP_MASK)
{
this.outline.graphics.drawRect(this.arrowP1.x,this.arrowP1.y - this.lineThickness,this.arrowP2.x - this.arrowP1.x,this.lineThickness);
}
else
{
this.outline.graphics.drawRect(this.arrowP1.x,this.arrowP1.y,this.arrowP2.x - this.arrowP1.x,this.lineThickness);
}
}
else
{
if(this.arrowDirection == HelperArrowDirection.VERTICAL)
{
this.arrowTarget.x = size.x - this.arrowShift;
this.arrowP1.x = this.arrowTarget.x;
this.arrowP2.x = this.arrowP1.x - this.arrowWidth;
this.outlineArrowTarget.x = this.arrowTarget.x + this.lineThickness;
this.outlineArrowP1.x = this.outlineArrowTarget.x;
this.outlineArrowP2.x = this.arrowTarget.x - this.arrowWidth - this.lineThickness;
}
else
{
this.arrowTarget.x = size.x + this._arrowLehgth;
this.arrowP1.x = size.x;
this.arrowP2.x = size.x;
this.outlineArrowTarget.x = size.x + tga * (this.arrowWidth + this.lineThickness * 2);
this.outlineArrowP1.x = size.x;
this.outlineArrowP2.x = size.x;
}
if(this._arrowAlign & HelperAlign.TOP_MASK)
{
this.outline.graphics.drawRect(this.arrowP1.x,this.arrowP1.y - this.lineThickness,this.arrowP2.x - this.arrowP1.x,this.lineThickness);
}
else if(this._arrowAlign & HelperAlign.MIDDLE_MASK)
{
this.outline.graphics.drawRect(this.arrowP1.x,this.arrowP1.y,this.lineThickness,this.arrowP2.y - this.arrowP1.y);
}
else
{
this.outline.graphics.drawRect(this.arrowP1.x,this.arrowP1.y,this.arrowP2.x - this.arrowP1.x,this.lineThickness);
}
}
this.back.graphics.moveTo(this.arrowTarget.x,this.arrowTarget.y);
this.back.graphics.lineTo(this.arrowP1.x,this.arrowP1.y);
this.back.graphics.lineTo(this.arrowP2.x,this.arrowP2.y);
this.back.graphics.lineTo(this.arrowTarget.x,this.arrowTarget.y);
this.outline.graphics.beginFill(this.lineColor,this.lineAlpha);
this.outline.graphics.moveTo(this.outlineArrowTarget.x,this.outlineArrowTarget.y);
this.outline.graphics.lineTo(this.outlineArrowP1.x,this.outlineArrowP1.y);
this.outline.graphics.lineTo(this.outlineArrowP2.x,this.outlineArrowP2.y);
this.outline.graphics.lineTo(this.outlineArrowTarget.x,this.outlineArrowTarget.y);
this.outline.graphics.moveTo(this.arrowTarget.x,this.arrowTarget.y);
this.outline.graphics.lineTo(this.arrowP1.x,this.arrowP1.y);
this.outline.graphics.lineTo(this.arrowP2.x,this.arrowP2.y);
this.outline.graphics.lineTo(this.arrowTarget.x,this.arrowTarget.y);
var stageQuality:String = stage.quality;
stage.quality = StageQuality.HIGH;
var matrix:Matrix = new Matrix();
if(this.outlineArrowTarget.x < 0)
{
matrix.tx = -Math.round(this.outlineArrowTarget.x);
this.bmp.x = Math.round(this.outlineArrowTarget.x);
}
else
{
matrix.tx = this.lineThickness;
this.bmp.x = -this.lineThickness;
}
if(this.outlineArrowTarget.y < 0)
{
matrix.ty = -Math.round(this.outlineArrowTarget.y);
this.bmp.y = Math.round(this.outlineArrowTarget.y);
}
else
{
matrix.ty = this.lineThickness;
this.bmp.y = -this.lineThickness;
}
this.bmp.bitmapData = new BitmapData(Math.round(this.outline.width),Math.round(this.outline.height),true,0);
this.bmp.bitmapData.draw(this.backContainer,matrix,new ColorTransform(),BlendMode.NORMAL,null,true);
stage.quality = stageQuality;
this.descriptionLabel.width = size.x - this.margin * 2;
}
override public function align(stageWidth:int, stageHeight:int) : void
{
this.targetPoint = targetPoint;
}
public function get arrowLehgth() : int
{
return this._arrowLehgth;
}
public function set arrowLehgth(value:int) : void
{
this._arrowLehgth = value;
}
public function get arrowAlign() : int
{
return this._arrowAlign;
}
public function set arrowAlign(value:int) : void
{
if(value == HelperAlign.MIDDLE_CENTER)
{
this._arrowAlign = HelperAlign.BOTTOM_LEFT;
}
else
{
this._arrowAlign = value;
}
if(this._arrowAlign & HelperAlign.TOP_MASK || this._arrowAlign & HelperAlign.BOTTOM_MASK)
{
this.arrowDirection = HelperArrowDirection.VERTICAL;
}
else
{
this.arrowDirection = HelperArrowDirection.HORIZONTAL;
}
}
public function set text(value:String) : void
{
this.descriptionLabel.htmlText = value;
_size.x = Math.round(this.descriptionLabel.textWidth + this.margin * 2);
_size.y = Math.round(this.descriptionLabel.textHeight + this.margin * 2) - 3;
}
override public function set targetPoint(p:Point) : void
{
var localCoords:Point = null;
super.targetPoint = p;
if(parent != null)
{
localCoords = parent.globalToLocal(p);
this.x = Math.round(localCoords.x - this.outlineArrowTarget.x);
this.y = Math.round(localCoords.y - this.outlineArrowTarget.y);
}
}
}
}
|
package alternativa.debug
{
public interface IDebugCommandHandler
{
function execute(param1:String) : String;
}
}
|
package alternativa.tanks.view.icons {
import flash.display.Bitmap;
import flash.display.BitmapData;
public class BattleParamsBattleInfoIcons {
private static const autoBalanceClass:Class = BattleParamsBattleInfoIcons_autoBalanceClass;
public static const autoBalanceBitmapData:BitmapData = Bitmap(new autoBalanceClass()).bitmapData;
private static const bonusesClass:Class = BattleParamsBattleInfoIcons_bonusesClass;
public static const bonusesBitmapData:BitmapData = Bitmap(new bonusesClass()).bitmapData;
private static const cpClass:Class = BattleParamsBattleInfoIcons_cpClass;
public static const cpBitmapData:BitmapData = Bitmap(new cpClass()).bitmapData;
private static const ctfClass:Class = BattleParamsBattleInfoIcons_ctfClass;
public static const ctfBitmapData:BitmapData = Bitmap(new ctfClass()).bitmapData;
private static const dependentCooldownsClass:Class = BattleParamsBattleInfoIcons_dependentCooldownsClass;
public static const dependentCooldownsBitmapData:BitmapData = Bitmap(new dependentCooldownsClass()).bitmapData;
private static const dmClass:Class = BattleParamsBattleInfoIcons_dmClass;
public static const dmBitmapData:BitmapData = Bitmap(new dmClass()).bitmapData;
private static const friendlyFireClass:Class = BattleParamsBattleInfoIcons_friendlyFireClass;
public static const friendlyFireBitmapData:BitmapData = Bitmap(new friendlyFireClass()).bitmapData;
private static const goldBonusesClass:Class = BattleParamsBattleInfoIcons_goldBonusesClass;
public static const goldBonusesBitmapData:BitmapData = Bitmap(new goldBonusesClass()).bitmapData;
private static const formatBattleClass:Class = BattleParamsBattleInfoIcons_formatBattleClass;
public static const formatBattleBitmapData:BitmapData = Bitmap(new formatBattleClass()).bitmapData;
private static const proClass:Class = BattleParamsBattleInfoIcons_proClass;
public static const proBitmapData:BitmapData = Bitmap(new proClass()).bitmapData;
private static const rearmorClass:Class = BattleParamsBattleInfoIcons_rearmorClass;
public static const rearmorBitmapData:BitmapData = Bitmap(new rearmorClass()).bitmapData;
private static const suppliesClass:Class = BattleParamsBattleInfoIcons_suppliesClass;
public static const suppliesBitmapData:BitmapData = Bitmap(new suppliesClass()).bitmapData;
private static const upgradesClass:Class = BattleParamsBattleInfoIcons_upgradesClass;
public static const upgradesBitmapData:BitmapData = Bitmap(new upgradesClass()).bitmapData;
private static const devicesClass:Class = BattleParamsBattleInfoIcons_devicesClass;
public static const devicesBitmapData:BitmapData = Bitmap(new devicesClass()).bitmapData;
private static const clanBattleClass:Class = BattleParamsBattleInfoIcons_clanBattleClass;
public static const clanBattleBitmapData:BitmapData = Bitmap(new clanBattleClass()).bitmapData;
private static const ultimatesClass:Class = BattleParamsBattleInfoIcons_ultimatesClass;
public static const ultimatesBitmapData:BitmapData = Bitmap(new ultimatesClass()).bitmapData;
private static const matchmakingStampClass:Class = BattleParamsBattleInfoIcons_matchmakingStampClass;
public static const matchmakingStampBitmapData:BitmapData = Bitmap(new matchmakingStampClass()).bitmapData;
public function BattleParamsBattleInfoIcons() {
super();
}
}
}
|
package alternativa.tanks.model.item.resistance {
import alternativa.tanks.model.garage.resistance.ModuleResistances;
import alternativa.tanks.model.item.info.ItemActionPanel;
import alternativa.tanks.model.item.properties.ItemPropertyValue;
import alternativa.tanks.model.item.resistance.view.ResistancePanel;
import alternativa.tanks.service.item.ItemService;
import flash.display.DisplayObjectContainer;
import flash.events.IEventDispatcher;
import projects.tanks.client.commons.types.ItemGarageProperty;
import projects.tanks.client.garage.models.item.resistance.IResistanceModuleModelBase;
import projects.tanks.client.garage.models.item.resistance.ResistanceModuleModelBase;
[ModelInfo]
public class ResistanceModuleModel extends ResistanceModuleModelBase implements IResistanceModuleModelBase, ModuleResistances, ItemActionPanel {
[Inject]
public static var itemService:ItemService;
private var actionPanel:ResistancePanel;
public function ResistanceModuleModel() {
super();
}
public function getPanel() : ResistancePanel {
if(this.actionPanel == null) {
this.actionPanel = new ResistancePanel();
}
return this.actionPanel;
}
public function getResistances() : Vector.<ItemGarageProperty> {
var local1:Vector.<ItemPropertyValue> = itemService.getProperties(object);
var local2:Vector.<ItemGarageProperty> = new Vector.<ItemGarageProperty>(local1.length);
var local3:int = 0;
while(local3 < local1.length) {
local2[local3] = local1[local3].getProperty();
local3++;
}
return local2;
}
public function handleDoubleClickOnItemPreview() : void {
this.getPanel().onDoubleClick();
}
public function updateActionElements(param1:DisplayObjectContainer, param2:IEventDispatcher) : void {
this.getPanel().updateActionElements(param1,param2,object);
}
}
}
|
package alternativa.engine3d.lights {
import alternativa.engine3d.alternativa3d;
import alternativa.engine3d.core.Camera3D;
import alternativa.engine3d.core.Canvas;
import alternativa.engine3d.core.Debug;
import alternativa.engine3d.core.Light3D;
import alternativa.engine3d.core.Object3D;
use namespace alternativa3d;
public class DirectionalLight extends Light3D {
alternativa3d var localDirectionX:Number;
alternativa3d var localDirectionY:Number;
alternativa3d var localDirectionZ:Number;
public function DirectionalLight(param1:uint) {
super();
this.color = param1;
calculateBounds();
}
public function lookAt(param1:Number, param2:Number, param3:Number) : void {
var local4:Number = param1 - this.x;
var local5:Number = param2 - this.y;
var local6:Number = param3 - this.z;
rotationX = Math.atan2(local6,Math.sqrt(local4 * local4 + local5 * local5)) - Math.PI / 2;
rotationY = 0;
rotationZ = -Math.atan2(local4,local5);
}
override public function clone() : Object3D {
var local1:DirectionalLight = new DirectionalLight(color);
local1.clonePropertiesFrom(this);
return local1;
}
override alternativa3d function drawDebug(param1:Camera3D, param2:Canvas) : void {
var local4:Canvas = null;
var local5:Number = NaN;
var local6:Number = NaN;
var local7:Number = NaN;
var local8:int = 0;
var local9:Number = NaN;
var local10:Number = NaN;
var local11:Number = NaN;
var local12:Number = NaN;
var local13:Number = NaN;
var local14:Number = NaN;
var local15:Number = NaN;
var local16:Number = NaN;
var local17:Number = NaN;
var local18:Number = NaN;
var local19:Number = NaN;
var local20:Number = NaN;
var local21:Number = NaN;
var local22:Number = NaN;
var local23:Number = NaN;
var local24:Number = NaN;
var local25:Number = NaN;
var local26:Number = NaN;
var local27:Number = NaN;
var local28:Number = NaN;
var local29:Number = NaN;
var local30:Number = NaN;
var local31:Number = NaN;
var local32:Number = NaN;
var local33:Number = NaN;
var local34:Number = NaN;
var local35:Number = NaN;
var local36:Number = NaN;
var local37:Number = NaN;
var local38:Number = NaN;
var local39:Number = NaN;
var local40:Number = NaN;
var local41:Number = NaN;
var local42:Number = NaN;
var local43:Number = NaN;
var local44:Number = NaN;
var local45:Number = NaN;
var local46:Number = NaN;
var local47:Number = NaN;
var local48:Number = NaN;
var local49:Number = NaN;
var local50:Number = NaN;
var local51:Number = NaN;
var local52:Number = NaN;
var local53:Number = NaN;
var local54:Number = NaN;
var local55:Number = NaN;
var local56:Number = NaN;
var local57:Number = NaN;
var local58:Number = NaN;
var local59:Number = NaN;
var local60:Number = NaN;
var local61:Number = NaN;
var local62:Number = NaN;
var local63:Number = NaN;
var local64:Number = NaN;
var local65:Number = NaN;
var local3:int = int(param1.alternativa3d::checkInDebug(this));
if(local3 > 0) {
local4 = param2.alternativa3d::getChildCanvas(true,false);
if(Boolean(local3 & Debug.LIGHTS) && alternativa3d::ml > param1.nearClipping) {
local5 = (color >> 16 & 0xFF) * intensity;
local6 = (color >> 8 & 0xFF) * intensity;
local7 = (color & 0xFF) * intensity;
local8 = ((local5 > 255 ? 255 : local5) << 16) + ((local6 > 255 ? 255 : local6) << 8) + (local7 > 255 ? 255 : local7);
local9 = alternativa3d::md * param1.alternativa3d::viewSizeX / param1.alternativa3d::focalLength;
local10 = alternativa3d::mh * param1.alternativa3d::viewSizeY / param1.alternativa3d::focalLength;
local11 = Number(alternativa3d::ml);
local12 = alternativa3d::mc * param1.alternativa3d::viewSizeX / param1.alternativa3d::focalLength;
local13 = alternativa3d::mg * param1.alternativa3d::viewSizeY / param1.alternativa3d::focalLength;
local14 = Number(alternativa3d::mk);
local15 = Math.sqrt(local12 * local12 + local13 * local13 + local14 * local14);
local12 /= local15;
local13 /= local15;
local14 /= local15;
local16 = alternativa3d::ma * param1.alternativa3d::viewSizeX / param1.alternativa3d::focalLength;
local17 = alternativa3d::me * param1.alternativa3d::viewSizeY / param1.alternativa3d::focalLength;
local18 = Number(alternativa3d::mi);
local19 = local18 * local13 - local17 * local14;
local20 = local16 * local14 - local18 * local12;
local21 = local17 * local12 - local16 * local13;
local15 = Math.sqrt(local19 * local19 + local20 * local20 + local21 * local21);
local19 /= local15;
local20 /= local15;
local21 /= local15;
local16 = alternativa3d::mb * param1.alternativa3d::viewSizeX / param1.alternativa3d::focalLength;
local17 = alternativa3d::mf * param1.alternativa3d::viewSizeY / param1.alternativa3d::focalLength;
local18 = Number(alternativa3d::mj);
local16 = local21 * local13 - local20 * local14;
local17 = local19 * local14 - local21 * local12;
local18 = local20 * local12 - local19 * local13;
local22 = alternativa3d::ml / param1.alternativa3d::focalLength;
local12 *= local22;
local13 *= local22;
local14 *= local22;
local16 *= local22;
local17 *= local22;
local18 *= local22;
local19 *= local22;
local20 *= local22;
local21 *= local22;
local23 = 16;
local24 = 24;
local25 = 4;
local26 = 8;
local27 = local9 + local12 * local24;
local28 = local10 + local13 * local24;
local29 = local11 + local14 * local24;
local30 = local9 + local16 * local25 + local19 * local25;
local31 = local10 + local17 * local25 + local20 * local25;
local32 = local11 + local18 * local25 + local21 * local25;
local33 = local9 - local16 * local25 + local19 * local25;
local34 = local10 - local17 * local25 + local20 * local25;
local35 = local11 - local18 * local25 + local21 * local25;
local36 = local9 - local16 * local25 - local19 * local25;
local37 = local10 - local17 * local25 - local20 * local25;
local38 = local11 - local18 * local25 - local21 * local25;
local39 = local9 + local16 * local25 - local19 * local25;
local40 = local10 + local17 * local25 - local20 * local25;
local41 = local11 + local18 * local25 - local21 * local25;
local42 = local9 + local12 * local23 + local16 * local25 + local19 * local25;
local43 = local10 + local13 * local23 + local17 * local25 + local20 * local25;
local44 = local11 + local14 * local23 + local18 * local25 + local21 * local25;
local45 = local9 + local12 * local23 - local16 * local25 + local19 * local25;
local46 = local10 + local13 * local23 - local17 * local25 + local20 * local25;
local47 = local11 + local14 * local23 - local18 * local25 + local21 * local25;
local48 = local9 + local12 * local23 - local16 * local25 - local19 * local25;
local49 = local10 + local13 * local23 - local17 * local25 - local20 * local25;
local50 = local11 + local14 * local23 - local18 * local25 - local21 * local25;
local51 = local9 + local12 * local23 + local16 * local25 - local19 * local25;
local52 = local10 + local13 * local23 + local17 * local25 - local20 * local25;
local53 = local11 + local14 * local23 + local18 * local25 - local21 * local25;
local54 = local9 + local12 * local23 + local16 * local26 + local19 * local26;
local55 = local10 + local13 * local23 + local17 * local26 + local20 * local26;
local56 = local11 + local14 * local23 + local18 * local26 + local21 * local26;
local57 = local9 + local12 * local23 - local16 * local26 + local19 * local26;
local58 = local10 + local13 * local23 - local17 * local26 + local20 * local26;
local59 = local11 + local14 * local23 - local18 * local26 + local21 * local26;
local60 = local9 + local12 * local23 - local16 * local26 - local19 * local26;
local61 = local10 + local13 * local23 - local17 * local26 - local20 * local26;
local62 = local11 + local14 * local23 - local18 * local26 - local21 * local26;
local63 = local9 + local12 * local23 + local16 * local26 - local19 * local26;
local64 = local10 + local13 * local23 + local17 * local26 - local20 * local26;
local65 = local11 + local14 * local23 + local18 * local26 - local21 * local26;
if(local29 > param1.nearClipping && local32 > param1.nearClipping && local35 > param1.nearClipping && local38 > param1.nearClipping && local41 > param1.nearClipping && local44 > param1.nearClipping && local47 > param1.nearClipping && local50 > param1.nearClipping && local53 > param1.nearClipping && local56 > param1.nearClipping && local59 > param1.nearClipping && local62 > param1.nearClipping && local65 > param1.nearClipping) {
local4.alternativa3d::gfx.lineStyle(1,local8);
local4.alternativa3d::gfx.moveTo(local30 * param1.alternativa3d::focalLength / local32,local31 * param1.alternativa3d::focalLength / local32);
local4.alternativa3d::gfx.lineTo(local33 * param1.alternativa3d::focalLength / local35,local34 * param1.alternativa3d::focalLength / local35);
local4.alternativa3d::gfx.lineTo(local36 * param1.alternativa3d::focalLength / local38,local37 * param1.alternativa3d::focalLength / local38);
local4.alternativa3d::gfx.lineTo(local39 * param1.alternativa3d::focalLength / local41,local40 * param1.alternativa3d::focalLength / local41);
local4.alternativa3d::gfx.lineTo(local30 * param1.alternativa3d::focalLength / local32,local31 * param1.alternativa3d::focalLength / local32);
local4.alternativa3d::gfx.moveTo(local42 * param1.alternativa3d::focalLength / local44,local43 * param1.alternativa3d::focalLength / local44);
local4.alternativa3d::gfx.lineTo(local45 * param1.alternativa3d::focalLength / local47,local46 * param1.alternativa3d::focalLength / local47);
local4.alternativa3d::gfx.lineTo(local48 * param1.alternativa3d::focalLength / local50,local49 * param1.alternativa3d::focalLength / local50);
local4.alternativa3d::gfx.lineTo(local51 * param1.alternativa3d::focalLength / local53,local52 * param1.alternativa3d::focalLength / local53);
local4.alternativa3d::gfx.lineTo(local42 * param1.alternativa3d::focalLength / local44,local43 * param1.alternativa3d::focalLength / local44);
local4.alternativa3d::gfx.moveTo(local54 * param1.alternativa3d::focalLength / local56,local55 * param1.alternativa3d::focalLength / local56);
local4.alternativa3d::gfx.lineTo(local57 * param1.alternativa3d::focalLength / local59,local58 * param1.alternativa3d::focalLength / local59);
local4.alternativa3d::gfx.lineTo(local60 * param1.alternativa3d::focalLength / local62,local61 * param1.alternativa3d::focalLength / local62);
local4.alternativa3d::gfx.lineTo(local63 * param1.alternativa3d::focalLength / local65,local64 * param1.alternativa3d::focalLength / local65);
local4.alternativa3d::gfx.lineTo(local54 * param1.alternativa3d::focalLength / local56,local55 * param1.alternativa3d::focalLength / local56);
local4.alternativa3d::gfx.moveTo(local27 * param1.alternativa3d::focalLength / local29,local28 * param1.alternativa3d::focalLength / local29);
local4.alternativa3d::gfx.lineTo(local54 * param1.alternativa3d::focalLength / local56,local55 * param1.alternativa3d::focalLength / local56);
local4.alternativa3d::gfx.moveTo(local27 * param1.alternativa3d::focalLength / local29,local28 * param1.alternativa3d::focalLength / local29);
local4.alternativa3d::gfx.lineTo(local57 * param1.alternativa3d::focalLength / local59,local58 * param1.alternativa3d::focalLength / local59);
local4.alternativa3d::gfx.moveTo(local27 * param1.alternativa3d::focalLength / local29,local28 * param1.alternativa3d::focalLength / local29);
local4.alternativa3d::gfx.lineTo(local60 * param1.alternativa3d::focalLength / local62,local61 * param1.alternativa3d::focalLength / local62);
local4.alternativa3d::gfx.moveTo(local27 * param1.alternativa3d::focalLength / local29,local28 * param1.alternativa3d::focalLength / local29);
local4.alternativa3d::gfx.lineTo(local63 * param1.alternativa3d::focalLength / local65,local64 * param1.alternativa3d::focalLength / local65);
local4.alternativa3d::gfx.moveTo(local30 * param1.alternativa3d::focalLength / local32,local31 * param1.alternativa3d::focalLength / local32);
local4.alternativa3d::gfx.lineTo(local42 * param1.alternativa3d::focalLength / local44,local43 * param1.alternativa3d::focalLength / local44);
local4.alternativa3d::gfx.moveTo(local33 * param1.alternativa3d::focalLength / local35,local34 * param1.alternativa3d::focalLength / local35);
local4.alternativa3d::gfx.lineTo(local45 * param1.alternativa3d::focalLength / local47,local46 * param1.alternativa3d::focalLength / local47);
local4.alternativa3d::gfx.moveTo(local36 * param1.alternativa3d::focalLength / local38,local37 * param1.alternativa3d::focalLength / local38);
local4.alternativa3d::gfx.lineTo(local48 * param1.alternativa3d::focalLength / local50,local49 * param1.alternativa3d::focalLength / local50);
local4.alternativa3d::gfx.moveTo(local39 * param1.alternativa3d::focalLength / local41,local40 * param1.alternativa3d::focalLength / local41);
local4.alternativa3d::gfx.lineTo(local51 * param1.alternativa3d::focalLength / local53,local52 * param1.alternativa3d::focalLength / local53);
}
}
if(Boolean(local3 & Debug.BOUNDS)) {
Debug.alternativa3d::drawBounds(param1,local4,this,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ,10092288);
}
}
}
}
}
|
package alternativa.tanks.bonuses {
import alternativa.tanks.battle.BattleService;
import alternativa.tanks.battle.scene3d.Renderer;
import alternativa.tanks.utils.objectpool.Pool;
import alternativa.tanks.utils.objectpool.PooledObject;
import flash.geom.ColorTransform;
public class BonusPickupAnimation extends PooledObject implements Renderer {
[Inject]
public static var battleService:BattleService;
private static const PICKUP_ANIMATION_TIME:int = 2000;
private static const FLASH_DURATION:int = 300;
private static const ALPHA_DURATION:int = PICKUP_ANIMATION_TIME - FLASH_DURATION;
private static const MAX_ADDITIVE_VALUE:int = 204;
private static const ADDITIVE_SPEED_UP:Number = Number(MAX_ADDITIVE_VALUE) / FLASH_DURATION;
private static const ADDITIVE_SPEED_DOWN:Number = Number(MAX_ADDITIVE_VALUE) / (PICKUP_ANIMATION_TIME - FLASH_DURATION);
private static const UP_SPEED:Number = 300;
private static const ANGLE_SPEED:Number = 2;
private var bonusMesh:BonusMesh;
private var colorTransform:ColorTransform = new ColorTransform();
private var animationTime:int;
private var additiveValue:int;
public function BonusPickupAnimation(param1:Pool) {
super(param1);
}
public function start(param1:BonusMesh) : void {
this.bonusMesh = param1;
this.bonusMesh.setColorTransform(this.colorTransform);
this.animationTime = PICKUP_ANIMATION_TIME;
this.additiveValue = 0;
battleService.getBattleScene3D().addRenderer(this,0);
}
public function render(param1:int, param2:int) : void {
if(this.animationTime > 0) {
this.playAnimation(param2);
} else {
this.destroy();
}
}
private function playAnimation(param1:int) : void {
var local2:Number = param1 / 1000;
this.bonusMesh.addZ((UP_SPEED * this.animationTime / PICKUP_ANIMATION_TIME + UP_SPEED * 0.1) * local2);
this.bonusMesh.addRotationZ((ANGLE_SPEED * this.animationTime / PICKUP_ANIMATION_TIME + ANGLE_SPEED * 0.1) * local2);
if(this.animationTime > PICKUP_ANIMATION_TIME - FLASH_DURATION) {
this.additiveValue += ADDITIVE_SPEED_UP * param1;
if(this.additiveValue > MAX_ADDITIVE_VALUE) {
this.additiveValue = MAX_ADDITIVE_VALUE;
}
} else {
this.additiveValue -= ADDITIVE_SPEED_DOWN * param1;
if(this.additiveValue < 0) {
this.additiveValue = 0;
}
}
this.colorTransform.redOffset = this.additiveValue;
this.colorTransform.blueOffset = this.additiveValue;
this.colorTransform.greenOffset = this.additiveValue;
if(this.animationTime < ALPHA_DURATION) {
this.bonusMesh.setAlpha(this.animationTime / ALPHA_DURATION);
}
this.animationTime -= param1;
}
private function destroy() : void {
this.bonusMesh.setColorTransform(null);
this.bonusMesh.removeFromScene();
this.bonusMesh.recycle();
this.bonusMesh = null;
battleService.getBattleScene3D().removeRenderer(this,0);
recycle();
}
}
}
|
package platform.client.fp10.core.network.connection.protection {
import flash.utils.ByteArray;
import flash.utils.IDataInput;
import flash.utils.IDataOutput;
import platform.client.fp10.core.network.connection.IProtectionContext;
public class PrimitiveProtectionContext implements IProtectionContext {
public static const INSTANCE:PrimitiveProtectionContext = new PrimitiveProtectionContext();
public function PrimitiveProtectionContext() {
super();
}
public function wrap(param1:IDataOutput, param2:ByteArray) : void {
param1.writeBytes(param2,param2.position);
}
public function unwrap(param1:ByteArray, param2:IDataInput) : void {
param2.readBytes(param1,param1.position);
}
public function reset() : void {
}
}
}
|
package platform.client.core.general.socialnetwork.types {
import flash.utils.Dictionary;
public class LoginParameters {
private var _parameters:Dictionary;
public function LoginParameters(param1:Dictionary = null) {
super();
this._parameters = param1;
}
public function get parameters() : Dictionary {
return this._parameters;
}
public function set parameters(param1:Dictionary) : void {
this._parameters = param1;
}
public function toString() : String {
var local1:String = "LoginParameters [";
local1 += "parameters = " + this.parameters + " ";
return local1 + "]";
}
}
}
|
package alternativa.tanks.gui {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.ItemInfoPanelBitmaps_minDamagePercentClass.png")]
public class ItemInfoPanelBitmaps_minDamagePercentClass extends BitmapAsset {
public function ItemInfoPanelBitmaps_minDamagePercentClass() {
super();
}
}
}
|
package controls.buttons.h50px {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.buttons.h50px.GreyBigButtonSkin_leftOverClass.png")]
public class GreyBigButtonSkin_leftOverClass extends BitmapAsset {
public function GreyBigButtonSkin_leftOverClass() {
super();
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.