mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 09:59:07 -07:00
Use rename identifiers
This commit is contained in:
@@ -1,209 +0,0 @@
|
||||
package §_-5U§
|
||||
{
|
||||
import §_-5g§.§_-OD§;
|
||||
import §_-5g§.§_-iB§;
|
||||
import §_-Ep§.§_-7§;
|
||||
import §_-Ep§.§_-pA§;
|
||||
import §_-GD§.§_-6A§;
|
||||
import §_-GD§.§_-X8§;
|
||||
import §_-GD§.§_-dX§;
|
||||
import §_-HW§.§_-pf§;
|
||||
import §_-MU§.§_-5-§;
|
||||
import §_-MU§.§_-du§;
|
||||
import §_-O5§.§_-c-§;
|
||||
import §_-Tt§.§_-Hi§;
|
||||
import §_-Tt§.§_-Ho§;
|
||||
import §_-Uy§.§_-oP§;
|
||||
import §_-XV§.§_-31§;
|
||||
import §_-XV§.§_-Yx§;
|
||||
import §_-aA§.§_-1O§;
|
||||
import §_-aA§.§_-6t§;
|
||||
import §_-aA§.§_-a-§;
|
||||
import §_-io§.§_-39§;
|
||||
import §_-io§.§_-Cs§;
|
||||
import §_-o8§.§_-Bh§;
|
||||
import §_-o8§.§_-Ut§;
|
||||
import flash.display.DisplayObjectContainer;
|
||||
import flash.display.Stage;
|
||||
import flash.events.KeyboardEvent;
|
||||
import flash.ui.Keyboard;
|
||||
|
||||
public class §_-Kr§ implements §_-6t§
|
||||
{
|
||||
private var osgi:§_-oP§;
|
||||
|
||||
private var clientLog:§_-5-§;
|
||||
|
||||
private var console:§_-dX§;
|
||||
|
||||
private var §_-UU§:KeyboardShortcut;
|
||||
|
||||
private var §_-jQ§:KeyboardShortcut;
|
||||
|
||||
public function §_-Kr§()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function start(rootContainer:DisplayObjectContainer, urlParams:§_-c-§, libraryInfos:Vector.<§_-a-§>, connectionParameters:§_-1O§, startupLogStrings:Vector.<String>) : void
|
||||
{
|
||||
var libraryInfo:§_-a-§ = null;
|
||||
this.osgi = §_-oP§.§_-nQ§();
|
||||
this.§_-SF§(urlParams,startupLogStrings);
|
||||
this.§_-33§(rootContainer.stage,urlParams);
|
||||
this.osgi.§_-g2§(§_-iB§,new §_-OD§(urlParams,libraryInfos));
|
||||
this.osgi.§_-g2§(§_-31§,new §_-Yx§(rootContainer));
|
||||
this.osgi.§_-g2§(§_-Ho§,new §_-Hi§(connectionParameters.serverAddress,connectionParameters.serverPorts,connectionParameters.resourcesRootURL));
|
||||
var language:String = urlParams.§_-aR§("lang","ru");
|
||||
this.osgi.§_-g2§(§_-7§,new §_-pA§(language,"en"));
|
||||
var dumpService:§_-39§ = new §_-Cs§(this.osgi);
|
||||
this.osgi.§_-g2§(§_-39§,dumpService);
|
||||
dumpService.§_-Wc§(new §_-Bh§(this.osgi));
|
||||
dumpService.§_-Wc§(new §_-Ut§(this.osgi));
|
||||
for each(libraryInfo in libraryInfos)
|
||||
{
|
||||
this.osgi.§_-XK§(new §_-pf§(libraryInfo.manifestProperties));
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-SF§(urlParams:§_-c-§, startupLogStrings:Vector.<String>) : void
|
||||
{
|
||||
var s:String = null;
|
||||
var logChannelBufferSize:int = int(int(urlParams.§_-aR§("log_channel_buffer_size","1000")));
|
||||
this.clientLog = new §_-du§(logChannelBufferSize);
|
||||
§_-oP§.clientLog = this.clientLog;
|
||||
this.osgi.§_-g2§(§_-5-§,this.clientLog);
|
||||
for each(s in startupLogStrings)
|
||||
{
|
||||
this.clientLog.log("startup",s);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-33§(stage:Stage, urlParams:§_-c-§) : void
|
||||
{
|
||||
var channelName:String = null;
|
||||
this.console = new §_-dX§(stage,50,100,1,1);
|
||||
this.osgi.§_-g2§(§_-6A§,this.console);
|
||||
var consoleParams:String = urlParams.§_-PU§("console");
|
||||
if(Boolean(consoleParams))
|
||||
{
|
||||
this.§_-bC§(stage,this.console,consoleParams);
|
||||
}
|
||||
var clientLogConnector:§_-X8§ = new §_-X8§(this.clientLog,this.console);
|
||||
this.console.§_-0j§("log",clientLogConnector.§_-9Q§);
|
||||
var logChannels:String = urlParams.§_-PU§("showlog");
|
||||
if(Boolean(logChannels))
|
||||
{
|
||||
if(logChannels == "all")
|
||||
{
|
||||
this.clientLog.addLogListener(clientLogConnector);
|
||||
}
|
||||
else
|
||||
{
|
||||
for each(channelName in logChannels.split(","))
|
||||
{
|
||||
this.clientLog.addLogChannelListener(channelName,clientLogConnector);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-bC§(stage:Stage, console:§_-dX§, consoleParams:String) : void
|
||||
{
|
||||
var pair:String = null;
|
||||
var parts:Array = null;
|
||||
var pairs:Array = consoleParams.split(",");
|
||||
var params:Object = {};
|
||||
for each(pair in pairs)
|
||||
{
|
||||
parts = pair.split(":");
|
||||
params[parts[0]] = parts[1];
|
||||
}
|
||||
if(params["show"] != null)
|
||||
{
|
||||
console.show();
|
||||
}
|
||||
if(params["ha"] != null)
|
||||
{
|
||||
console.§_-TC§ = int(params["ha"]);
|
||||
}
|
||||
if(params["va"] != null)
|
||||
{
|
||||
console.§_-p2§ = int(params["va"]);
|
||||
}
|
||||
if(params["w"] != null)
|
||||
{
|
||||
console.width = int(params["w"]);
|
||||
}
|
||||
if(params["h"] != null)
|
||||
{
|
||||
console.height = int(params["h"]);
|
||||
}
|
||||
if(params["alpha"] != null)
|
||||
{
|
||||
console.§_-I1§("con_alpha " + params["alpha"]);
|
||||
}
|
||||
this.§_-UU§ = this.§ for§(params["hsw"],Keyboard.LEFT,false,true,true);
|
||||
this.§_-jQ§ = this.§ for§(params["vsw"],Keyboard.UP,false,true,true);
|
||||
stage.addEventListener(KeyboardEvent.KEY_DOWN,this.§_-bM§,true);
|
||||
}
|
||||
|
||||
private function § for§(s:String, defKey:int, defAlt:Boolean, defCtrl:Boolean, defShift:Boolean) : KeyboardShortcut
|
||||
{
|
||||
if(s == null)
|
||||
{
|
||||
return new KeyboardShortcut(defKey,defAlt,defCtrl,defShift);
|
||||
}
|
||||
return new KeyboardShortcut(parseInt(s),s.indexOf("a") > -1,s.indexOf("c") > -1,s.indexOf("s") > -1);
|
||||
}
|
||||
|
||||
private function §_-bM§(e:KeyboardEvent) : void
|
||||
{
|
||||
switch(e.keyCode)
|
||||
{
|
||||
case this.§_-UU§.keyCode:
|
||||
if(this.§_-UU§.altKey == e.altKey && this.§_-UU§.shiftKey == e.shiftKey && this.§_-UU§.ctrlKey == e.ctrlKey)
|
||||
{
|
||||
if(this.console.§_-TC§ == 1)
|
||||
{
|
||||
this.console.§_-TC§ = 2;
|
||||
break;
|
||||
}
|
||||
this.console.§_-TC§ = 1;
|
||||
}
|
||||
break;
|
||||
case this.§_-jQ§.keyCode:
|
||||
if(this.§_-jQ§.altKey == e.altKey && this.§_-jQ§.shiftKey == e.shiftKey && this.§_-jQ§.ctrlKey == e.ctrlKey)
|
||||
{
|
||||
if(this.console.§_-p2§ == 1)
|
||||
{
|
||||
this.console.§_-p2§ = 2;
|
||||
break;
|
||||
}
|
||||
this.console.§_-p2§ = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class KeyboardShortcut
|
||||
{
|
||||
public var keyCode:int;
|
||||
|
||||
public var altKey:Boolean;
|
||||
|
||||
public var ctrlKey:Boolean;
|
||||
|
||||
public var shiftKey:Boolean;
|
||||
|
||||
public function KeyboardShortcut(keyCode:int, altKey:Boolean, ctrlKey:Boolean, shiftKey:Boolean)
|
||||
{
|
||||
super();
|
||||
this.keyCode = keyCode;
|
||||
this.altKey = altKey;
|
||||
this.ctrlKey = ctrlKey;
|
||||
this.shiftKey = shiftKey;
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package
|
||||
{
|
||||
import mx.core.BitmapAsset;
|
||||
|
||||
[ExcludeClass]
|
||||
[Embed(source="/_assets/13__-9C.jpg")]
|
||||
public class §_-9C§ extends BitmapAsset
|
||||
{
|
||||
public function §_-9C§()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
package §_-9n§
|
||||
{
|
||||
import §_-OZ§.§_-SK§;
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class §_-kB§ extends §_-Np§
|
||||
{
|
||||
private static var temp:§_-j3§ = new §_-j3§();
|
||||
|
||||
alternativa3d var §_-ku§:§_-j3§;
|
||||
|
||||
public var property:String;
|
||||
|
||||
public function §_-kB§(object:String, property:String)
|
||||
{
|
||||
super();
|
||||
this.property = property;
|
||||
this.object = object;
|
||||
}
|
||||
|
||||
override alternativa3d function get keyFramesList() : §_-NS§
|
||||
{
|
||||
return this.alternativa3d::_-ku;
|
||||
}
|
||||
|
||||
override alternativa3d function set keyFramesList(value:§_-NS§) : void
|
||||
{
|
||||
this.alternativa3d::_-ku = §_-j3§(value);
|
||||
}
|
||||
|
||||
public function §_-Le§(time:Number, value:Number = 0) : §_-NS§
|
||||
{
|
||||
var key:§_-j3§ = new §_-j3§();
|
||||
key.alternativa3d::_-qC = time;
|
||||
key.value = value;
|
||||
alternativa3d::_-K1(key);
|
||||
return key;
|
||||
}
|
||||
|
||||
override alternativa3d function blend(time:Number, weight:Number, state:§_-SK§) : void
|
||||
{
|
||||
var prev:§_-j3§ = null;
|
||||
if(this.property == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var next:§_-j3§ = this.alternativa3d::_-ku;
|
||||
while(next != null && next.alternativa3d::_-qC < time)
|
||||
{
|
||||
prev = next;
|
||||
next = next.alternativa3d::next;
|
||||
}
|
||||
if(prev != null)
|
||||
{
|
||||
if(next != null)
|
||||
{
|
||||
temp.interpolate(prev,next,(time - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC));
|
||||
state.§_-B§(this.property,temp.alternativa3d::_-4O,weight);
|
||||
}
|
||||
else
|
||||
{
|
||||
state.§_-B§(this.property,prev.alternativa3d::_-4O,weight);
|
||||
}
|
||||
}
|
||||
else if(next != null)
|
||||
{
|
||||
state.§_-B§(this.property,next.alternativa3d::_-4O,weight);
|
||||
}
|
||||
}
|
||||
|
||||
override alternativa3d function createKeyFrame() : §_-NS§
|
||||
{
|
||||
return new §_-j3§();
|
||||
}
|
||||
|
||||
override alternativa3d function interpolateKeyFrame(dest:§_-NS§, a:§_-NS§, b:§_-NS§, value:Number) : void
|
||||
{
|
||||
§_-j3§(dest).interpolate(§_-j3§(a),§_-j3§(b),value);
|
||||
}
|
||||
|
||||
override public function slice(start:Number, end:Number = 1.7976931348623157e+308) : §_-Np§
|
||||
{
|
||||
var track:§_-kB§ = new §_-kB§(object,this.property);
|
||||
alternativa3d::_-2Y(track,start,end);
|
||||
return track;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,353 +0,0 @@
|
||||
package §_-Fc§
|
||||
{
|
||||
import §_-1e§.§_-Nh§;
|
||||
import §_-KA§.§_-FW§;
|
||||
import §_-RQ§.§_-Q9§;
|
||||
import §_-US§.§_-DB§;
|
||||
import §_-az§.§_-ps§;
|
||||
import §_-bJ§.§_-eG§;
|
||||
import §_-fT§.§_-ZI§;
|
||||
import §_-fT§.§_-Zm§;
|
||||
import §_-lS§.§_-h2§;
|
||||
import §_-nl§.§_-bj§;
|
||||
import flash.utils.getTimer;
|
||||
import §in §.§_-eF§;
|
||||
|
||||
public class §_-8a§ extends §_-ps§
|
||||
{
|
||||
private static var USE_GRID_COLLISION_DETECTOR:Boolean = true;
|
||||
|
||||
public var interpolationCoeff:Number;
|
||||
|
||||
private var physicsStep:int = 33;
|
||||
|
||||
private var physicsScene:§_-DB§;
|
||||
|
||||
private var §_-hl§:Vector.<§catch§>;
|
||||
|
||||
private var §_-g7§:int;
|
||||
|
||||
private var §_-b5§:Vector.<§catch§>;
|
||||
|
||||
private var §_-f5§:int;
|
||||
|
||||
private var §_-ST§:Vector.<§catch§>;
|
||||
|
||||
private var §_-7y§:int;
|
||||
|
||||
private var §_-jp§:§_-eG§;
|
||||
|
||||
private var §_-FE§:int;
|
||||
|
||||
private var running:Boolean;
|
||||
|
||||
private var §_-pR§:§_-eF§;
|
||||
|
||||
private var objectPoolManager:§_-Q9§;
|
||||
|
||||
public function §_-8a§(priority:int, objectPoolManager:§_-Q9§)
|
||||
{
|
||||
super(priority);
|
||||
this.objectPoolManager = objectPoolManager;
|
||||
this.§_-hl§ = new Vector.<§catch§>();
|
||||
this.§_-b5§ = new Vector.<§catch§>();
|
||||
this.§_-ST§ = new Vector.<§catch§>();
|
||||
this.physicsScene = new §_-DB§();
|
||||
this.physicsScene.§_-06§ = true;
|
||||
this.physicsScene.§_-YB§ = 5;
|
||||
this.physicsScene.dynamic = 100;
|
||||
this.physicsScene.gravity = new §_-bj§(0,0,-1000);
|
||||
if(USE_GRID_COLLISION_DETECTOR)
|
||||
{
|
||||
this.§_-jp§ = new §_-eG§();
|
||||
this.physicsScene.collisionDetector = this.§_-jp§;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.physicsScene.collisionDetector = new §_-ZI§();
|
||||
}
|
||||
}
|
||||
|
||||
override protected function onPause() : void
|
||||
{
|
||||
this.§_-FE§ = getTimer();
|
||||
}
|
||||
|
||||
override protected function onResume() : void
|
||||
{
|
||||
this.§_-FE§ = getTimer() - this.§_-FE§;
|
||||
this.physicsScene.time += this.§_-FE§;
|
||||
}
|
||||
|
||||
public function §_-Zo§() : §_-eG§
|
||||
{
|
||||
return this.§_-jp§;
|
||||
}
|
||||
|
||||
public function §_-Xh§() : int
|
||||
{
|
||||
return this.physicsStep;
|
||||
}
|
||||
|
||||
public function §_-d-§() : §_-DB§
|
||||
{
|
||||
return this.physicsScene;
|
||||
}
|
||||
|
||||
public function §_-kO§(collisionPrimitives:Vector.<§_-Nh§>) : void
|
||||
{
|
||||
var gridCellSize:Number = NaN;
|
||||
var collisionDetector:§_-ZI§ = null;
|
||||
var bb:§_-FW§ = null;
|
||||
var size:Number = NaN;
|
||||
if(USE_GRID_COLLISION_DETECTOR)
|
||||
{
|
||||
gridCellSize = 800;
|
||||
this.§_-jp§.§_-hS§(gridCellSize,collisionPrimitives);
|
||||
}
|
||||
else
|
||||
{
|
||||
collisionDetector = §_-ZI§(this.physicsScene.collisionDetector);
|
||||
bb = new §_-FW§();
|
||||
size = 20000;
|
||||
bb.§_-k2§(-size,-size,-size,size,size,size);
|
||||
collisionDetector.§_-Vy§(collisionPrimitives,bb);
|
||||
}
|
||||
}
|
||||
|
||||
public function addControllerBefore(controller:§catch§) : void
|
||||
{
|
||||
var deferredActionAddBefore:DeferredActionAddBefore = null;
|
||||
if(this.running)
|
||||
{
|
||||
deferredActionAddBefore = DeferredActionAddBefore(this.objectPoolManager.§_-kP§(DeferredActionAddBefore));
|
||||
this.§_-5W§(deferredActionAddBefore,controller);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(this.§_-hl§.indexOf(controller) >= 0)
|
||||
{
|
||||
throw new Error("Controller " + controller + " already exists");
|
||||
}
|
||||
var _loc3_:* = this.§_-g7§++;
|
||||
this.§_-hl§[_loc3_] = controller;
|
||||
}
|
||||
}
|
||||
|
||||
public function addControllerAfter(controller:§catch§) : void
|
||||
{
|
||||
var deferredActionAddAfter:DeferredActionAddAfter = null;
|
||||
if(this.running)
|
||||
{
|
||||
deferredActionAddAfter = DeferredActionAddAfter(this.objectPoolManager.§_-kP§(DeferredActionAddAfter));
|
||||
this.§_-5W§(deferredActionAddAfter,controller);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(this.§_-b5§.indexOf(controller) >= 0)
|
||||
{
|
||||
throw new Error("Controller " + controller + " already exists");
|
||||
}
|
||||
var _loc3_:* = this.§_-f5§++;
|
||||
this.§_-b5§[_loc3_] = controller;
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-Ve§(controller:§catch§) : void
|
||||
{
|
||||
if(this.§_-ST§.indexOf(controller) >= 0)
|
||||
{
|
||||
throw new Error("Controller " + controller + " already exists");
|
||||
}
|
||||
var _loc2_:* = this.§_-7y§++;
|
||||
this.§_-ST§[_loc2_] = controller;
|
||||
}
|
||||
|
||||
public function removeControllerBefore(controller:§catch§) : void
|
||||
{
|
||||
var deferredActionRemoveBefore:DeferredActionRemoveBefore = null;
|
||||
var index:int = 0;
|
||||
if(this.running)
|
||||
{
|
||||
deferredActionRemoveBefore = DeferredActionRemoveBefore(this.objectPoolManager.§_-kP§(DeferredActionRemoveBefore));
|
||||
this.§_-5W§(deferredActionRemoveBefore,controller);
|
||||
}
|
||||
else
|
||||
{
|
||||
index = int(this.§_-hl§.indexOf(controller));
|
||||
if(index < 0)
|
||||
{
|
||||
throw new Error("Controller " + controller + " not found");
|
||||
}
|
||||
this.§_-hl§[index] = this.§_-hl§[--this.§_-g7§];
|
||||
this.§_-hl§[this.§_-g7§] = null;
|
||||
}
|
||||
}
|
||||
|
||||
public function removeControllerAfter(controller:§catch§) : void
|
||||
{
|
||||
var deferredActionRemoveAfter:DeferredActionRemoveAfter = null;
|
||||
var index:int = 0;
|
||||
if(this.running)
|
||||
{
|
||||
deferredActionRemoveAfter = DeferredActionRemoveAfter(this.objectPoolManager.§_-kP§(DeferredActionRemoveAfter));
|
||||
this.§_-5W§(deferredActionRemoveAfter,controller);
|
||||
}
|
||||
else
|
||||
{
|
||||
index = int(this.§_-b5§.indexOf(controller));
|
||||
if(index < 0)
|
||||
{
|
||||
throw new Error("Controller " + controller + " not found");
|
||||
}
|
||||
this.§_-b5§[index] = this.§_-b5§[--this.§_-f5§];
|
||||
this.§_-b5§[this.§_-f5§] = null;
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-Fs§(controller:§catch§) : void
|
||||
{
|
||||
var index:int = int(this.§_-ST§.indexOf(controller));
|
||||
if(index < 0)
|
||||
{
|
||||
throw new Error("Controller " + controller + " not found");
|
||||
}
|
||||
this.§_-ST§[index] = this.§_-ST§[--this.§_-7y§];
|
||||
this.§_-ST§[this.§_-7y§] = null;
|
||||
}
|
||||
|
||||
override public function start() : void
|
||||
{
|
||||
this.physicsScene.time = §_-h2§.time;
|
||||
}
|
||||
|
||||
override public function run() : void
|
||||
{
|
||||
var i:int = 0;
|
||||
var controller:§catch§ = null;
|
||||
var action:§_-eF§ = null;
|
||||
var currentTime:int = int(§_-h2§.time);
|
||||
if(this.physicsScene.time < currentTime)
|
||||
{
|
||||
while(this.physicsScene.time < currentTime)
|
||||
{
|
||||
this.running = true;
|
||||
§_-Zm§(this.physicsScene.collisionDetector).§_-9F§();
|
||||
for(i = 0; i < this.§_-g7§; i++)
|
||||
{
|
||||
controller = this.§_-hl§[i];
|
||||
controller.updateBeforeSimulation(this.physicsStep);
|
||||
}
|
||||
this.physicsScene.update(this.physicsStep);
|
||||
§_-Zm§(this.physicsScene.collisionDetector).§_-9F§();
|
||||
for(i = 0; i < this.§_-f5§; i++)
|
||||
{
|
||||
controller = this.§_-b5§[i];
|
||||
controller.updateAfterSimulation(this.physicsStep);
|
||||
}
|
||||
for(this.running = false; this.§_-pR§ != null; )
|
||||
{
|
||||
action = this.§_-pR§;
|
||||
this.§_-pR§ = this.§_-pR§.next;
|
||||
action.next = null;
|
||||
action.execute();
|
||||
action.§_-DQ§();
|
||||
}
|
||||
}
|
||||
}
|
||||
this.interpolationCoeff = 1 - (this.physicsScene.time - currentTime) / this.physicsStep;
|
||||
for(i = 0; i < this.§_-7y§; i++)
|
||||
{
|
||||
controller = this.§_-ST§[i];
|
||||
controller.interpolate(this.interpolationCoeff);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-5W§(deferredAction:DeferredAction, controller:§catch§) : void
|
||||
{
|
||||
deferredAction.system = this;
|
||||
deferredAction.controller = controller;
|
||||
deferredAction.next = this.§_-pR§;
|
||||
this.§_-pR§ = deferredAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-RQ§.§_-HE§;
|
||||
import §_-RQ§.§_-Va§;
|
||||
import §in §.§_-eF§;
|
||||
|
||||
class DeferredAction extends §_-eF§
|
||||
{
|
||||
public var system:§_-8a§;
|
||||
|
||||
public var controller:§catch§;
|
||||
|
||||
public function DeferredAction(objectPool:§_-Va§)
|
||||
{
|
||||
super(objectPool);
|
||||
}
|
||||
|
||||
override public function execute() : void
|
||||
{
|
||||
this.doExecute();
|
||||
this.system = null;
|
||||
this.controller = null;
|
||||
}
|
||||
|
||||
protected function doExecute() : void
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
class DeferredActionAddBefore extends DeferredAction
|
||||
{
|
||||
public function DeferredActionAddBefore(objectPool:§_-Va§)
|
||||
{
|
||||
super(objectPool);
|
||||
}
|
||||
|
||||
override protected function doExecute() : void
|
||||
{
|
||||
system.addControllerBefore(controller);
|
||||
}
|
||||
}
|
||||
|
||||
class DeferredActionAddAfter extends DeferredAction
|
||||
{
|
||||
public function DeferredActionAddAfter(objectPool:§_-Va§)
|
||||
{
|
||||
super(objectPool);
|
||||
}
|
||||
|
||||
override protected function doExecute() : void
|
||||
{
|
||||
system.addControllerAfter(controller);
|
||||
}
|
||||
}
|
||||
|
||||
class DeferredActionRemoveBefore extends DeferredAction
|
||||
{
|
||||
public function DeferredActionRemoveBefore(objectPool:§_-Va§)
|
||||
{
|
||||
super(objectPool);
|
||||
}
|
||||
|
||||
override protected function doExecute() : void
|
||||
{
|
||||
system.removeControllerBefore(controller);
|
||||
}
|
||||
}
|
||||
|
||||
class DeferredActionRemoveAfter extends DeferredAction
|
||||
{
|
||||
public function DeferredActionRemoveAfter(objectPool:§_-Va§)
|
||||
{
|
||||
super(objectPool);
|
||||
}
|
||||
|
||||
override protected function doExecute() : void
|
||||
{
|
||||
system.removeControllerAfter(controller);
|
||||
}
|
||||
}
|
||||
@@ -1,443 +0,0 @@
|
||||
package §_-I0§
|
||||
{
|
||||
import §_-1e§.§_-fx§;
|
||||
import §_-8D§.§_-OX§;
|
||||
import §_-Ex§.§_-U2§;
|
||||
import §_-KA§.§_-jr§;
|
||||
import §_-KT§.§_-Ju§;
|
||||
import §_-KT§.§_-UT§;
|
||||
import §_-OR§.§_-om§;
|
||||
import §_-V-§.§_-aY§;
|
||||
import §_-aM§.§_-Lm§;
|
||||
import §_-az§.§_-gw§;
|
||||
import §_-e6§.§_-RE§;
|
||||
import §_-e6§.§_-gb§;
|
||||
import §_-lS§.§_-h2§;
|
||||
import §_-nl§.Matrix3;
|
||||
import §_-nl§.Matrix4;
|
||||
import §_-nl§.§_-bj§;
|
||||
import flash.ui.Keyboard;
|
||||
import flash.utils.getTimer;
|
||||
|
||||
public class §_-bt§ extends §_-Ww§ implements §_-gb§
|
||||
{
|
||||
private static var parentMatrix:Matrix4 = new Matrix4();
|
||||
|
||||
private static var matrix:Matrix4 = new Matrix4();
|
||||
|
||||
private static var maxPositionError:Number = 10;
|
||||
|
||||
private static var maxAngleError:Number = Math.PI / 180;
|
||||
|
||||
private static var camSpeedThreshold:Number = 10;
|
||||
|
||||
private static var fixedPitch:§_-Ju§ = new §_-Ju§("cam_fixedpitch",10 * Math.PI / 180,-1,1);
|
||||
|
||||
private static var noPitchCorrection:§_-UT§ = new §_-UT§("cam_nopitchcorrection",1,0,1);
|
||||
|
||||
private static var pitchCorrectionCoeff:§_-Ju§ = new §_-Ju§("cam_pitchcorrectioncoeff",1,0,10);
|
||||
|
||||
private static var reboundDelay:§_-UT§ = new §_-UT§("cam_rebound",1000,0,2000);
|
||||
|
||||
private static var elevationAngles:Vector.<Number> = new Vector.<Number>(1,true);
|
||||
|
||||
private static var rotationMatrix:Matrix3 = new Matrix3();
|
||||
|
||||
private static var axis:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var rayDirection:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static const MIN_CAMERA_ANGLE:Number = 5 * Math.PI / 180;
|
||||
|
||||
private static const KEY_CAMERA_UP:uint = Keyboard.PAGE_UP;
|
||||
|
||||
private static const KEY_CAMERA_DOWN:uint = Keyboard.PAGE_DOWN;
|
||||
|
||||
private static const HEIGHT_CHANGE_STEP:Number = 50;
|
||||
|
||||
private static const MIN_HEIGHT:Number = 150;
|
||||
|
||||
private static const MAX_HEIGHT:Number = 3100;
|
||||
|
||||
private static const MIN_DISTANCE:Number = 300;
|
||||
|
||||
private static const COLLISION_OFFSET:Number = 100;
|
||||
|
||||
private static const targetOffset:§_-bj§ = new §_-bj§(0,0,50);
|
||||
|
||||
private static var currentPosition:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var currentRotation:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var rayOrigin:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var flatDirection:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var positionDelta:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var rayHit:§_-jr§ = new §_-jr§();
|
||||
|
||||
private var collisionDetector:§_-fx§;
|
||||
|
||||
private var collisionMask:int;
|
||||
|
||||
private var §_-U1§:Number = 0;
|
||||
|
||||
private var §_-7h§:Number = 0;
|
||||
|
||||
private var locked:Boolean;
|
||||
|
||||
private var position:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var rotation:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var targetPosition:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var targetDirection:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var §_-Wq§:Number = 0;
|
||||
|
||||
private var §_-fq§:Number = 0;
|
||||
|
||||
private var §_-qF§:Number = 0;
|
||||
|
||||
private var §_-51§:Number = 10000000;
|
||||
|
||||
private var §_-kz§:int;
|
||||
|
||||
private var cameraPositionData:CameraPositionData = new CameraPositionData();
|
||||
|
||||
private var §_-4G§:Number;
|
||||
|
||||
private var input:§_-Lm§;
|
||||
|
||||
private var §_-fZ§:§_-U2§;
|
||||
|
||||
private var §_-LT§:Number = 0;
|
||||
|
||||
private var §_-mg§:Number = 0;
|
||||
|
||||
private var §_-R2§:Number = 1000;
|
||||
|
||||
private var §_-Rb§:Number = 0;
|
||||
|
||||
private var §_-NW§:Number = 0;
|
||||
|
||||
private var §_-1J§:Number = 1000;
|
||||
|
||||
public var smoothing:Number = 40;
|
||||
|
||||
private var angles:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var §_-n9§:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var rotationMatrix:Matrix4 = new Matrix4();
|
||||
|
||||
private var §_-Ys§:Matrix4 = new Matrix4();
|
||||
|
||||
private var §_-b4§:§_-bj§ = new §_-bj§();
|
||||
|
||||
public function §_-bt§(camera:§_-RE§, collisionDetector:§_-fx§, collisionMask:int, input:§_-Lm§)
|
||||
{
|
||||
super();
|
||||
this.camera = camera;
|
||||
if(collisionDetector == null)
|
||||
{
|
||||
throw new ArgumentError("Parameter collisionDetector cannot be null");
|
||||
}
|
||||
this.collisionDetector = collisionDetector;
|
||||
this.collisionMask = collisionMask;
|
||||
this.input = input;
|
||||
this.§_-Tq§ = 600;
|
||||
}
|
||||
|
||||
public function §_-eA§() : void
|
||||
{
|
||||
}
|
||||
|
||||
public function §_-O-§(target:§_-gw§) : void
|
||||
{
|
||||
if(target == null)
|
||||
{
|
||||
this.§_-fZ§ = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-fZ§ = §_-om§(target.getComponentStrict(§_-om§)).§_-dW§;
|
||||
}
|
||||
}
|
||||
|
||||
public function update() : void
|
||||
{
|
||||
if(this.§_-fZ§ == null)
|
||||
{
|
||||
throw new Error("Target is not set");
|
||||
}
|
||||
if(camera == null)
|
||||
{
|
||||
throw new Error("Camera is not set");
|
||||
}
|
||||
var dt:Number = Number(§_-h2§.timeDeltaSeconds);
|
||||
if(dt > 0.1)
|
||||
{
|
||||
dt = 0.1;
|
||||
}
|
||||
this.§_-1E§();
|
||||
matrix.§_-eP§(targetOffset,this.§_-n9§);
|
||||
var distanceChangeDir:int = this.input.§_-OO§(KEY_CAMERA_UP) - this.input.§_-OO§(KEY_CAMERA_DOWN) - this.input.§_-i9§();
|
||||
if(distanceChangeDir != 0)
|
||||
{
|
||||
this.§_-1J§ *= Math.pow(10,distanceChangeDir * 0.02);
|
||||
}
|
||||
if(this.input.§_-an§())
|
||||
{
|
||||
this.§_-Rb§ -= this.input.§_-ac§() * 0.01;
|
||||
this.§_-NW§ -= this.input.§_-ow§() * 0.01;
|
||||
}
|
||||
var k:Number = 1;
|
||||
if(this.smoothing > 0)
|
||||
{
|
||||
k = 100 / this.smoothing * dt;
|
||||
k = k > 1 ? 1 : k;
|
||||
this.§_-LT§ += (this.§_-Rb§ - this.§_-LT§) * k;
|
||||
this.§_-mg§ += (this.§_-NW§ - this.§_-mg§) * k;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-LT§ = this.§_-Rb§;
|
||||
this.§_-mg§ = this.§_-NW§;
|
||||
}
|
||||
this.rotationMatrix.§_-Wl§(this.§_-LT§,0,this.§_-mg§);
|
||||
this.rotationMatrix.§_-oa§(matrix.d,matrix.h,matrix.l);
|
||||
matrix.getAxis(3,rayOrigin);
|
||||
this.rotationMatrix.§_-Uz§(§_-bj§.Y_AXIS,rayDirection);
|
||||
rayDirection.reverse();
|
||||
var distance:Number = this.§_-1J§;
|
||||
if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,distance,null,rayHit))
|
||||
{
|
||||
distance = rayHit.t - COLLISION_OFFSET;
|
||||
}
|
||||
if(distanceChangeDir != 0)
|
||||
{
|
||||
this.§_-1J§ = distance;
|
||||
}
|
||||
if(this.smoothing > 0)
|
||||
{
|
||||
this.§_-R2§ += (distance - this.§_-R2§) * k;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-R2§ = distance;
|
||||
}
|
||||
this.position.x = 0;
|
||||
this.position.y = -this.§_-R2§;
|
||||
this.position.z = 0;
|
||||
this.rotationMatrix.§_-eP§(this.position,currentPosition);
|
||||
camera.x = currentPosition.x;
|
||||
camera.y = currentPosition.y;
|
||||
camera.z = currentPosition.z;
|
||||
var dx:Number = this.§_-n9§.x - camera.x;
|
||||
var dy:Number = this.§_-n9§.y - camera.y;
|
||||
var dz:Number = this.§_-n9§.z - camera.z;
|
||||
camera.rotationX = Math.atan2(dz,Math.sqrt(dx * dx + dy * dy)) - 0.5 * Math.PI;
|
||||
camera.rotationY = 0;
|
||||
camera.rotationZ = -Math.atan2(dx,dy);
|
||||
}
|
||||
|
||||
private function set §_-Tq§(value:Number) : void
|
||||
{
|
||||
this.§_-U1§ = §_-aY§.clamp(value,MIN_HEIGHT,MAX_HEIGHT);
|
||||
var d:Number = this.§_-pq§(this.§_-U1§);
|
||||
this.§_-4G§ = Math.atan2(this.§_-U1§,d);
|
||||
this.§_-7h§ = Math.sqrt(this.§_-U1§ * this.§_-U1§ + d * d);
|
||||
this.§_-kz§ = 0;
|
||||
}
|
||||
|
||||
private function §_-TS§(targetPosition:§_-bj§, targetDirection:§_-bj§, useReboundDelay:Boolean, dt:Number, result:CameraPositionData) : void
|
||||
{
|
||||
var angle:Number = NaN;
|
||||
var now:int = 0;
|
||||
var delta:Number = NaN;
|
||||
var actualElevation:Number = this.§_-4G§;
|
||||
var xyLength:Number = Number(Math.sqrt(targetDirection.x * targetDirection.x + targetDirection.y * targetDirection.y));
|
||||
if(xyLength < 0.00001)
|
||||
{
|
||||
flatDirection.x = 1;
|
||||
flatDirection.y = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
flatDirection.x = targetDirection.x / xyLength;
|
||||
flatDirection.y = targetDirection.y / xyLength;
|
||||
}
|
||||
result.extraPitch = 0;
|
||||
result.t = 1;
|
||||
var minCollisionDistance:Number = this.§_-7h§;
|
||||
rayOrigin.copy(targetPosition);
|
||||
elevationAngles[0] = actualElevation;
|
||||
axis.x = flatDirection.y;
|
||||
axis.y = -flatDirection.x;
|
||||
flatDirection.reverse();
|
||||
for each(angle in elevationAngles)
|
||||
{
|
||||
this.rotationMatrix.§_-OB§(axis,-angle);
|
||||
this.rotationMatrix.§_-Uz§(flatDirection,rayDirection);
|
||||
minCollisionDistance = this.§_-LI§(rayOrigin,rayDirection,this.§_-7h§,minCollisionDistance);
|
||||
}
|
||||
if(useReboundDelay)
|
||||
{
|
||||
now = int(getTimer());
|
||||
if(minCollisionDistance <= this.§_-51§ + 0.001)
|
||||
{
|
||||
this.§_-51§ = minCollisionDistance;
|
||||
this.§_-kz§ = now;
|
||||
}
|
||||
else if(now - this.§_-kz§ < reboundDelay.value)
|
||||
{
|
||||
minCollisionDistance = this.§_-51§;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-51§ = minCollisionDistance;
|
||||
}
|
||||
}
|
||||
if(minCollisionDistance < this.§_-7h§)
|
||||
{
|
||||
result.t = minCollisionDistance / this.§_-7h§;
|
||||
if(minCollisionDistance < MIN_DISTANCE)
|
||||
{
|
||||
rayOrigin.§_-LQ§(minCollisionDistance,rayDirection);
|
||||
delta = MIN_DISTANCE - minCollisionDistance;
|
||||
if(this.collisionDetector.raycast(rayOrigin,§_-bj§.Z_AXIS,this.collisionMask,delta,null,rayHit))
|
||||
{
|
||||
delta = rayHit.t - 10;
|
||||
if(delta < 0)
|
||||
{
|
||||
delta = 0;
|
||||
}
|
||||
}
|
||||
result.position.copy(rayOrigin).§_-LQ§(delta,§_-bj§.Z_AXIS);
|
||||
}
|
||||
else
|
||||
{
|
||||
result.position.copy(rayOrigin).§_-LQ§(minCollisionDistance,rayDirection);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result.position.copy(rayOrigin).§_-LQ§(this.§_-7h§,rayDirection);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-LI§(rayOrigin:§_-bj§, rayDirection:§_-bj§, rayLength:Number, minCollisionDistance:Number) : Number
|
||||
{
|
||||
var distance:Number = NaN;
|
||||
if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,rayLength,null,rayHit))
|
||||
{
|
||||
distance = Number(rayHit.t);
|
||||
if(distance < COLLISION_OFFSET)
|
||||
{
|
||||
distance = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
distance -= COLLISION_OFFSET;
|
||||
}
|
||||
if(distance < minCollisionDistance)
|
||||
{
|
||||
return distance;
|
||||
}
|
||||
}
|
||||
return minCollisionDistance;
|
||||
}
|
||||
|
||||
private function §_-1E§() : void
|
||||
{
|
||||
this.§_-U6§(this.§_-fZ§.parent,parentMatrix);
|
||||
this.§_-U6§(this.§_-fZ§,matrix);
|
||||
matrix.append(parentMatrix);
|
||||
matrix.getAxis(3,this.targetPosition);
|
||||
this.targetDirection.reset(matrix.b,matrix.f,matrix.j);
|
||||
}
|
||||
|
||||
private function §_-U6§(object:§_-OX§, matrix:Matrix4) : void
|
||||
{
|
||||
matrix.§_-Wl§(object.rotationX,object.rotationY,object.rotationZ);
|
||||
matrix.§_-oa§(object.x,object.y,object.z);
|
||||
}
|
||||
|
||||
private function §_-K4§() : void
|
||||
{
|
||||
var heightChangeDir:int = this.input.§_-OO§(KEY_CAMERA_UP) - this.input.§_-OO§(KEY_CAMERA_DOWN);
|
||||
if(heightChangeDir != 0)
|
||||
{
|
||||
this.§_-Tq§ = this.§_-U1§ + heightChangeDir * HEIGHT_CHANGE_STEP;
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-pq§(h:Number) : Number
|
||||
{
|
||||
var v:Number = 200 - 1750;
|
||||
var k:Number = (1300 - 600) / (v * v);
|
||||
return -k * (h - 1750) * (h - 1750) + 1300;
|
||||
}
|
||||
|
||||
private function §_-Tu§(positionError:Number) : Number
|
||||
{
|
||||
return 3 * positionError;
|
||||
}
|
||||
|
||||
private function §_-NP§(angleError:Number, currentSpeed:Number) : Number
|
||||
{
|
||||
if(angleError < -maxAngleError)
|
||||
{
|
||||
return 3 * (angleError + maxAngleError);
|
||||
}
|
||||
if(angleError > maxAngleError)
|
||||
{
|
||||
return 3 * (angleError - maxAngleError);
|
||||
}
|
||||
return currentSpeed;
|
||||
}
|
||||
|
||||
private function §each §(value:Number, snapValue:Number, epsilon:Number) : Number
|
||||
{
|
||||
if(value > snapValue - epsilon && value < snapValue + epsilon)
|
||||
{
|
||||
return snapValue;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
private function §_-Xv§(cameraPositionData:CameraPositionData) : Number
|
||||
{
|
||||
var angle:Number = this.§_-4G§ - fixedPitch.value;
|
||||
if(angle < 0)
|
||||
{
|
||||
angle = 0;
|
||||
}
|
||||
var t:Number = cameraPositionData.t;
|
||||
if(t >= 1 || angle < MIN_CAMERA_ANGLE || noPitchCorrection.value == 1)
|
||||
{
|
||||
return cameraPositionData.extraPitch - angle;
|
||||
}
|
||||
return cameraPositionData.extraPitch - Math.atan2(t * this.§_-U1§,pitchCorrectionCoeff.value * this.§_-U1§ * (1 / Math.tan(angle) - (1 - t) / Math.tan(this.§_-4G§)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-nl§.§_-bj§;
|
||||
|
||||
class CameraPositionData
|
||||
{
|
||||
public var t:Number;
|
||||
|
||||
public var extraPitch:Number;
|
||||
|
||||
public var position:§_-bj§ = new §_-bj§();
|
||||
|
||||
public function CameraPositionData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -1,473 +0,0 @@
|
||||
package §_-I0§
|
||||
{
|
||||
import §_-1e§.§_-fx§;
|
||||
import §_-8D§.§_-OX§;
|
||||
import §_-Ex§.§_-U2§;
|
||||
import §_-KA§.§_-jr§;
|
||||
import §_-KT§.§_-Ju§;
|
||||
import §_-KT§.§_-UT§;
|
||||
import §_-OR§.§_-om§;
|
||||
import §_-V-§.§_-aY§;
|
||||
import §_-aM§.§_-Lm§;
|
||||
import §_-az§.§_-gw§;
|
||||
import §_-e6§.§_-RE§;
|
||||
import §_-e6§.§_-gb§;
|
||||
import §_-lS§.§_-h2§;
|
||||
import §_-nl§.Matrix3;
|
||||
import §_-nl§.Matrix4;
|
||||
import §_-nl§.§_-bj§;
|
||||
import flash.ui.Keyboard;
|
||||
import flash.utils.getTimer;
|
||||
|
||||
public class §_-hB§ extends §_-Ww§ implements §_-gb§
|
||||
{
|
||||
private static var parentMatrix:Matrix4 = new Matrix4();
|
||||
|
||||
private static var matrix:Matrix4 = new Matrix4();
|
||||
|
||||
public static var maxPositionError:Number = 10;
|
||||
|
||||
public static var maxAngleError:Number = Math.PI / 180;
|
||||
|
||||
public static var camSpeedThreshold:Number = 10;
|
||||
|
||||
private static var fixedPitch:§_-Ju§ = new §_-Ju§("cam_fixedpitch",10 * Math.PI / 180,-1,1);
|
||||
|
||||
private static var noPitchCorrection:§_-UT§ = new §_-UT§("cam_nopitchcorrection",1,0,1);
|
||||
|
||||
private static var pitchCorrectionCoeff:§_-Ju§ = new §_-Ju§("cam_pitchcorrectioncoeff",1,0,10);
|
||||
|
||||
private static var reboundDelay:§_-UT§ = new §_-UT§("cam_rebound",1000,0,2000);
|
||||
|
||||
private static var elevationAngles:Vector.<Number> = new Vector.<Number>(1,true);
|
||||
|
||||
private static var rotationMatrix:Matrix3 = new Matrix3();
|
||||
|
||||
private static var axis:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var rayDirection:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static const MIN_CAMERA_ANGLE:Number = 5 * Math.PI / 180;
|
||||
|
||||
private static const KEY_CAMERA_UP:uint = Keyboard.PAGE_UP;
|
||||
|
||||
private static const ALT_KEY_CAMERA_UP:uint = 221;
|
||||
|
||||
private static const KEY_CAMERA_DOWN:uint = Keyboard.PAGE_DOWN;
|
||||
|
||||
private static const ALT_KEY_CAMERA_DOWN:uint = 219;
|
||||
|
||||
private static const HEIGHT_CHANGE_STEP:Number = 50;
|
||||
|
||||
private static const MIN_HEIGHT:Number = 150;
|
||||
|
||||
private static const MAX_HEIGHT:Number = 3100;
|
||||
|
||||
private static const MIN_DISTANCE:Number = 300;
|
||||
|
||||
private static const COLLISION_OFFSET:Number = 50;
|
||||
|
||||
private static var currentPosition:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var currentRotation:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var rayOrigin:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var flatDirection:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var positionDelta:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var rayHit:§_-jr§ = new §_-jr§();
|
||||
|
||||
private var collisionDetector:§_-fx§;
|
||||
|
||||
private var collisionMask:int;
|
||||
|
||||
private var §_-U1§:Number = 0;
|
||||
|
||||
private var §_-7h§:Number = 0;
|
||||
|
||||
private var locked:Boolean;
|
||||
|
||||
private var position:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var rotation:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var targetPosition:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var targetDirection:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var §_-Wq§:Number = 0;
|
||||
|
||||
private var §_-fq§:Number = 0;
|
||||
|
||||
private var §_-qF§:Number = 0;
|
||||
|
||||
private var §_-51§:Number = 10000000;
|
||||
|
||||
private var §_-kz§:int;
|
||||
|
||||
private var cameraPositionData:CameraPositionData = new CameraPositionData();
|
||||
|
||||
private var §_-4G§:Number;
|
||||
|
||||
private var §_-d9§:Number = 0;
|
||||
|
||||
private var input:§_-Lm§;
|
||||
|
||||
private var §_-fZ§:§_-U2§;
|
||||
|
||||
public function §_-hB§(camera:§_-RE§, collisionDetector:§_-fx§, collisionMask:int, input:§_-Lm§)
|
||||
{
|
||||
super();
|
||||
this.camera = camera;
|
||||
if(collisionDetector == null)
|
||||
{
|
||||
throw new ArgumentError("Parameter collisionDetector cannot be null");
|
||||
}
|
||||
this.collisionDetector = collisionDetector;
|
||||
this.collisionMask = collisionMask;
|
||||
this.input = input;
|
||||
this.§_-Tq§ = 600;
|
||||
}
|
||||
|
||||
public function §_-eA§() : void
|
||||
{
|
||||
}
|
||||
|
||||
public function §_-O-§(target:§_-gw§) : void
|
||||
{
|
||||
if(target == null)
|
||||
{
|
||||
this.§_-fZ§ = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-fZ§ = §_-om§(target.getComponentStrict(§_-om§)).§_-dW§;
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-7o§() : void
|
||||
{
|
||||
noPitchCorrection.value = 1;
|
||||
}
|
||||
|
||||
public function §_-hI§() : void
|
||||
{
|
||||
noPitchCorrection.value = 0;
|
||||
}
|
||||
|
||||
public function §_-WF§(targetPosition:§_-bj§, targetDirection:§_-bj§) : void
|
||||
{
|
||||
this.targetPosition.copy(targetPosition);
|
||||
this.targetDirection.copy(targetDirection);
|
||||
this.§_-kz§ = 0;
|
||||
this.§_-TS§(targetPosition,targetDirection,false,10000,this.cameraPositionData);
|
||||
this.position.copy(this.cameraPositionData.position);
|
||||
this.rotation.x = this.§_-Xv§(this.cameraPositionData) - 0.5 * Math.PI;
|
||||
this.rotation.z = Math.atan2(-targetDirection.x,targetDirection.y);
|
||||
§_-Vi§(this.position);
|
||||
§_-LV§(this.rotation);
|
||||
}
|
||||
|
||||
public function §_-5p§() : void
|
||||
{
|
||||
this.position.reset(camera.x,camera.y,camera.z);
|
||||
this.rotation.reset(camera.rotationX,camera.rotationY,camera.rotationZ);
|
||||
}
|
||||
|
||||
public function update() : void
|
||||
{
|
||||
if(this.§_-fZ§ == null)
|
||||
{
|
||||
throw new Error("Target is not set");
|
||||
}
|
||||
if(camera == null)
|
||||
{
|
||||
throw new Error("Camera is not set");
|
||||
}
|
||||
var dt:Number = Number(§_-h2§.timeDeltaSeconds);
|
||||
if(dt > 0.1)
|
||||
{
|
||||
dt = 0.1;
|
||||
}
|
||||
this.§_-K4§();
|
||||
if(!this.locked)
|
||||
{
|
||||
this.§_-1E§();
|
||||
}
|
||||
this.§_-TS§(this.targetPosition,this.targetDirection,true,dt,this.cameraPositionData);
|
||||
positionDelta.§_-hL§(this.cameraPositionData.position,this.position);
|
||||
var positionError:Number = Number(positionDelta.length());
|
||||
if(positionError > maxPositionError)
|
||||
{
|
||||
this.§_-Wq§ = this.§_-Tu§(positionError - maxPositionError);
|
||||
}
|
||||
var distance:Number = this.§_-Wq§ * dt;
|
||||
if(distance > positionError)
|
||||
{
|
||||
distance = positionError;
|
||||
}
|
||||
positionDelta.normalize().scale(distance);
|
||||
var targetPitchAngle:Number = this.§_-Xv§(this.cameraPositionData);
|
||||
var targetYawAngle:Number = Number(Math.atan2(-this.targetDirection.x,this.targetDirection.y));
|
||||
var currentPitchAngle:Number = Number(§_-aY§.§_-d§(this.rotation.x + 0.5 * Math.PI));
|
||||
var currentYawAngle:Number = Number(§_-aY§.§_-d§(this.rotation.z));
|
||||
var pitchError:Number = Number(§_-aY§.§_-Bu§(targetPitchAngle - currentPitchAngle));
|
||||
this.§_-fq§ = this.§_-NP§(pitchError,this.§_-fq§);
|
||||
var deltaPitch:Number = this.§_-fq§ * dt;
|
||||
if(pitchError > 0 && deltaPitch > pitchError || pitchError < 0 && deltaPitch < pitchError)
|
||||
{
|
||||
deltaPitch = pitchError;
|
||||
}
|
||||
var yawError:Number = Number(§_-aY§.§_-Bu§(targetYawAngle - currentYawAngle));
|
||||
this.§_-qF§ = this.§_-NP§(yawError,this.§_-qF§);
|
||||
var deltaYaw:Number = this.§_-qF§ * dt;
|
||||
if(yawError > 0 && deltaYaw > yawError || yawError < 0 && deltaYaw < yawError)
|
||||
{
|
||||
deltaYaw = yawError;
|
||||
}
|
||||
this.§_-Wq§ = this.§each §(this.§_-Wq§,0,camSpeedThreshold);
|
||||
this.§_-fq§ = this.§each §(this.§_-fq§,0,camSpeedThreshold);
|
||||
this.§_-qF§ = this.§each §(this.§_-qF§,0,camSpeedThreshold);
|
||||
this.position.add(positionDelta);
|
||||
this.rotation.x += deltaPitch;
|
||||
this.rotation.z += deltaYaw;
|
||||
currentPosition.copy(this.position);
|
||||
currentRotation.copy(this.rotation);
|
||||
§_-Vi§(currentPosition);
|
||||
§_-LV§(currentRotation);
|
||||
}
|
||||
|
||||
public function §_-qb§(locked:Boolean) : void
|
||||
{
|
||||
this.locked = locked;
|
||||
}
|
||||
|
||||
public function get §_-Tq§() : Number
|
||||
{
|
||||
return this.§_-U1§;
|
||||
}
|
||||
|
||||
public function set §_-Tq§(value:Number) : void
|
||||
{
|
||||
this.§_-U1§ = §_-aY§.clamp(value,MIN_HEIGHT,MAX_HEIGHT);
|
||||
var d:Number = this.§_-pq§(this.§_-U1§);
|
||||
this.§_-4G§ = Math.atan2(this.§_-U1§,d);
|
||||
this.§_-7h§ = Math.sqrt(this.§_-U1§ * this.§_-U1§ + d * d);
|
||||
this.§_-kz§ = 0;
|
||||
}
|
||||
|
||||
public function §_-Ls§(targetPosition:§_-bj§, targetDirection:§_-bj§, resultingPosition:§_-bj§, resultingAngles:§_-bj§) : void
|
||||
{
|
||||
this.§_-TS§(targetPosition,targetDirection,false,10000,this.cameraPositionData);
|
||||
resultingAngles.x = this.§_-Xv§(this.cameraPositionData) - 0.5 * Math.PI;
|
||||
resultingAngles.z = Math.atan2(-targetDirection.x,targetDirection.y);
|
||||
resultingPosition.copy(this.cameraPositionData.position);
|
||||
}
|
||||
|
||||
private function §_-TS§(targetPosition:§_-bj§, targetDirection:§_-bj§, useReboundDelay:Boolean, dt:Number, result:CameraPositionData) : void
|
||||
{
|
||||
var angle:Number = NaN;
|
||||
var now:int = 0;
|
||||
var delta:Number = NaN;
|
||||
var actualElevation:Number = this.§_-4G§;
|
||||
var xyLength:Number = Number(Math.sqrt(targetDirection.x * targetDirection.x + targetDirection.y * targetDirection.y));
|
||||
if(xyLength < 0.00001)
|
||||
{
|
||||
flatDirection.x = 1;
|
||||
flatDirection.y = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
flatDirection.x = targetDirection.x / xyLength;
|
||||
flatDirection.y = targetDirection.y / xyLength;
|
||||
}
|
||||
result.extraPitch = 0;
|
||||
result.t = 1;
|
||||
var minCollisionDistance:Number = this.§_-7h§;
|
||||
rayOrigin.copy(targetPosition);
|
||||
elevationAngles[0] = actualElevation;
|
||||
axis.x = flatDirection.y;
|
||||
axis.y = -flatDirection.x;
|
||||
flatDirection.reverse();
|
||||
for each(angle in elevationAngles)
|
||||
{
|
||||
rotationMatrix.§_-OB§(axis,-angle);
|
||||
rotationMatrix.§_-Uz§(flatDirection,rayDirection);
|
||||
minCollisionDistance = this.§_-5y§(rayOrigin,rayDirection,this.§_-7h§,minCollisionDistance);
|
||||
}
|
||||
if(useReboundDelay)
|
||||
{
|
||||
now = int(getTimer());
|
||||
if(minCollisionDistance <= this.§_-51§ + 0.001)
|
||||
{
|
||||
this.§_-51§ = minCollisionDistance;
|
||||
this.§_-kz§ = now;
|
||||
}
|
||||
else if(now - this.§_-kz§ < reboundDelay.value)
|
||||
{
|
||||
minCollisionDistance = this.§_-51§;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-51§ = minCollisionDistance;
|
||||
}
|
||||
}
|
||||
if(minCollisionDistance < this.§_-7h§)
|
||||
{
|
||||
result.t = minCollisionDistance / this.§_-7h§;
|
||||
if(minCollisionDistance < MIN_DISTANCE)
|
||||
{
|
||||
rayOrigin.§_-LQ§(minCollisionDistance,rayDirection);
|
||||
delta = MIN_DISTANCE - minCollisionDistance;
|
||||
if(this.collisionDetector.raycast(rayOrigin,§_-bj§.Z_AXIS,this.collisionMask,delta,null,rayHit))
|
||||
{
|
||||
delta = rayHit.t - 10;
|
||||
if(delta < 0)
|
||||
{
|
||||
delta = 0;
|
||||
}
|
||||
}
|
||||
result.position.copy(rayOrigin).§_-LQ§(delta,§_-bj§.Z_AXIS);
|
||||
}
|
||||
else
|
||||
{
|
||||
result.position.copy(rayOrigin).§_-LQ§(minCollisionDistance,rayDirection);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result.position.copy(rayOrigin).§_-LQ§(this.§_-7h§,rayDirection);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-5y§(rayOrigin:§_-bj§, rayDirection:§_-bj§, rayLength:Number, minCollisionDistance:Number) : Number
|
||||
{
|
||||
var distance:Number = NaN;
|
||||
if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,rayLength,null,rayHit))
|
||||
{
|
||||
distance = Number(rayHit.t);
|
||||
if(distance < COLLISION_OFFSET)
|
||||
{
|
||||
distance = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
distance -= COLLISION_OFFSET;
|
||||
}
|
||||
if(distance < minCollisionDistance)
|
||||
{
|
||||
return distance;
|
||||
}
|
||||
}
|
||||
return minCollisionDistance;
|
||||
}
|
||||
|
||||
private function §_-1E§() : void
|
||||
{
|
||||
this.setMatrix(this.§_-fZ§.parent,parentMatrix);
|
||||
this.setMatrix(this.§_-fZ§,matrix);
|
||||
matrix.append(parentMatrix);
|
||||
matrix.getAxis(3,this.targetPosition);
|
||||
this.targetDirection.reset(matrix.b,matrix.f,matrix.j);
|
||||
}
|
||||
|
||||
private function setMatrix(object:§_-OX§, matrix:Matrix4) : void
|
||||
{
|
||||
matrix.§_-Wl§(object.rotationX,object.rotationY,object.rotationZ);
|
||||
matrix.§_-oa§(object.x,object.y,object.z);
|
||||
}
|
||||
|
||||
private function §_-K4§() : void
|
||||
{
|
||||
var heightChangeDir:int = this.input.§_-OO§(KEY_CAMERA_UP) - this.input.§_-OO§(KEY_CAMERA_DOWN);
|
||||
if(heightChangeDir != 0)
|
||||
{
|
||||
this.§_-Tq§ = this.§_-U1§ + heightChangeDir * HEIGHT_CHANGE_STEP;
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-pq§(h:Number) : Number
|
||||
{
|
||||
var hMid:Number = 0.5 * (3300 + 200);
|
||||
var a:Number = hMid;
|
||||
var v:Number = 200 - hMid;
|
||||
var k:Number = (1300 - 600) / (v * v);
|
||||
return -k * (h - a) * (h - a) + 1300;
|
||||
}
|
||||
|
||||
private function §_-Tu§(positionError:Number) : Number
|
||||
{
|
||||
return 3 * positionError;
|
||||
}
|
||||
|
||||
private function §_-NP§(angleError:Number, currentSpeed:Number) : Number
|
||||
{
|
||||
if(angleError < -maxAngleError)
|
||||
{
|
||||
return 3 * (angleError + maxAngleError);
|
||||
}
|
||||
if(angleError > maxAngleError)
|
||||
{
|
||||
return 3 * (angleError - maxAngleError);
|
||||
}
|
||||
return currentSpeed;
|
||||
}
|
||||
|
||||
private function §each §(value:Number, snapValue:Number, epsilon:Number) : Number
|
||||
{
|
||||
if(value > snapValue - epsilon && value < snapValue + epsilon)
|
||||
{
|
||||
return snapValue;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
private function §_-Xv§(cameraPositionData:CameraPositionData) : Number
|
||||
{
|
||||
var angle:Number = this.§_-4G§ - fixedPitch.value;
|
||||
if(angle < 0)
|
||||
{
|
||||
angle = 0;
|
||||
}
|
||||
var t:Number = cameraPositionData.t;
|
||||
if(t >= 1 || angle < MIN_CAMERA_ANGLE || noPitchCorrection.value == 1)
|
||||
{
|
||||
return cameraPositionData.extraPitch - angle;
|
||||
}
|
||||
return cameraPositionData.extraPitch - Math.atan2(t * this.§_-U1§,pitchCorrectionCoeff.value * this.§_-U1§ * (1 / Math.tan(angle) - (1 - t) / Math.tan(this.§_-4G§)));
|
||||
}
|
||||
|
||||
private function §_-PD§(value:Number, targetValue:Number, delta:Number) : Number
|
||||
{
|
||||
if(value < targetValue)
|
||||
{
|
||||
value += delta;
|
||||
return value > targetValue ? targetValue : value;
|
||||
}
|
||||
if(value > targetValue)
|
||||
{
|
||||
value -= delta;
|
||||
return value < targetValue ? targetValue : value;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-nl§.§_-bj§;
|
||||
|
||||
class CameraPositionData
|
||||
{
|
||||
public var t:Number;
|
||||
|
||||
public var extraPitch:Number;
|
||||
|
||||
public var position:§_-bj§ = new §_-bj§();
|
||||
|
||||
public function CameraPositionData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package
|
||||
{
|
||||
import mx.core.BitmapAsset;
|
||||
|
||||
[ExcludeClass]
|
||||
[Embed(source="/_assets/16__-Lz.jpg")]
|
||||
public class §_-Lz§ extends BitmapAsset
|
||||
{
|
||||
public function §_-Lz§()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
package
|
||||
{
|
||||
import mx.core.BitmapAsset;
|
||||
|
||||
[ExcludeClass]
|
||||
[Embed(source="/_assets/14__-M9.jpg")]
|
||||
public class §_-M9§ extends BitmapAsset
|
||||
{
|
||||
public function §_-M9§()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,392 +0,0 @@
|
||||
package §_-OZ§
|
||||
{
|
||||
import §_-8D§.§_-OX§;
|
||||
import §_-9n§.§_-Np§;
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class §_-FA§ extends §_-CO§
|
||||
{
|
||||
alternativa3d var §_-Kq§:Array;
|
||||
|
||||
public var name:String;
|
||||
|
||||
public var loop:Boolean = true;
|
||||
|
||||
public var length:Number = 0;
|
||||
|
||||
public var animated:Boolean = true;
|
||||
|
||||
private var §_-qC§:Number = 0;
|
||||
|
||||
private var §_-Iv§:int = 0;
|
||||
|
||||
private var §_-cT§:Vector.<§_-Np§> = new Vector.<§_-Np§>();
|
||||
|
||||
private var §_-Ci§:§_-Re§;
|
||||
|
||||
public function §_-FA§(name:String = null)
|
||||
{
|
||||
super();
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public function get objects() : Array
|
||||
{
|
||||
return this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq);
|
||||
}
|
||||
|
||||
public function set objects(value:Array) : void
|
||||
{
|
||||
this.§_-R5§(this.alternativa3d::_-Kq,alternativa3d::controller,value,alternativa3d::controller);
|
||||
this.alternativa3d::_-Kq = value == null ? null : [].concat(value);
|
||||
}
|
||||
|
||||
override alternativa3d function setController(value:§_-cK§) : void
|
||||
{
|
||||
this.§_-R5§(this.alternativa3d::_-Kq,alternativa3d::controller,this.alternativa3d::_-Kq,value);
|
||||
this.alternativa3d::controller = value;
|
||||
}
|
||||
|
||||
private function addObject(object:Object) : void
|
||||
{
|
||||
if(this.alternativa3d::_-Kq == null)
|
||||
{
|
||||
this.alternativa3d::_-Kq = [object];
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::_-Kq.push(object);
|
||||
}
|
||||
if(alternativa3d::controller != null)
|
||||
{
|
||||
alternativa3d::controller.alternativa3d::addObject(object);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-R5§(oldObjects:Array, oldController:§_-cK§, newObjects:Array, newController:§_-cK§) : void
|
||||
{
|
||||
var i:int = 0;
|
||||
var count:int = 0;
|
||||
if(oldController != null && oldObjects != null)
|
||||
{
|
||||
for(i = 0,count = int(this.alternativa3d::_-Kq.length); i < count; i++)
|
||||
{
|
||||
oldController.alternativa3d::_-il(oldObjects[i]);
|
||||
}
|
||||
}
|
||||
if(newController != null && newObjects != null)
|
||||
{
|
||||
for(i = 0,count = int(newObjects.length); i < count; i++)
|
||||
{
|
||||
newController.alternativa3d::addObject(newObjects[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-SR§() : void
|
||||
{
|
||||
var track:§_-Np§ = null;
|
||||
var len:Number = NaN;
|
||||
for(var i:int = 0; i < this.§_-Iv§; )
|
||||
{
|
||||
track = this.§_-cT§[i];
|
||||
len = track.length;
|
||||
if(len > this.length)
|
||||
{
|
||||
this.length = len;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-nn§(track:§_-Np§) : §_-Np§
|
||||
{
|
||||
if(track == null)
|
||||
{
|
||||
throw new Error("Track can not be null");
|
||||
}
|
||||
var _loc2_:* = this.§_-Iv§++;
|
||||
this.§_-cT§[_loc2_] = track;
|
||||
if(track.length > this.length)
|
||||
{
|
||||
this.length = track.length;
|
||||
}
|
||||
return track;
|
||||
}
|
||||
|
||||
public function §_-kS§(track:§_-Np§) : §_-Np§
|
||||
{
|
||||
var t:§_-Np§ = null;
|
||||
var index:int = int(this.§_-cT§.indexOf(track));
|
||||
if(index < 0)
|
||||
{
|
||||
throw new ArgumentError("Track not found");
|
||||
}
|
||||
--this.§_-Iv§;
|
||||
for(var j:int = index + 1; index < this.§_-Iv§; )
|
||||
{
|
||||
this.§_-cT§[index] = this.§_-cT§[j];
|
||||
index++;
|
||||
j++;
|
||||
}
|
||||
this.§_-cT§.length = this.§_-Iv§;
|
||||
this.length = 0;
|
||||
for(var i:int = 0; i < this.§_-Iv§; )
|
||||
{
|
||||
t = this.§_-cT§[i];
|
||||
if(t.length > this.length)
|
||||
{
|
||||
this.length = t.length;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return track;
|
||||
}
|
||||
|
||||
public function §_-QA§(index:int) : §_-Np§
|
||||
{
|
||||
return this.§_-cT§[index];
|
||||
}
|
||||
|
||||
public function get numTracks() : int
|
||||
{
|
||||
return this.§_-Iv§;
|
||||
}
|
||||
|
||||
override alternativa3d function update(interval:Number, weight:Number) : void
|
||||
{
|
||||
var i:int = 0;
|
||||
var track:§_-Np§ = null;
|
||||
var state:§_-SK§ = null;
|
||||
var oldTime:Number = this.§_-qC§;
|
||||
if(this.animated)
|
||||
{
|
||||
this.§_-qC§ += interval * speed;
|
||||
if(this.loop)
|
||||
{
|
||||
if(this.§_-qC§ < 0)
|
||||
{
|
||||
this.§_-qC§ = 0;
|
||||
}
|
||||
else if(this.§_-qC§ >= this.length)
|
||||
{
|
||||
this.alternativa3d::_-D3(oldTime,this.length);
|
||||
this.§_-qC§ = this.length <= 0 ? 0 : this.§_-qC§ % this.length;
|
||||
this.alternativa3d::_-D3(0,this.§_-qC§);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::_-D3(oldTime,this.§_-qC§);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(this.§_-qC§ < 0)
|
||||
{
|
||||
this.§_-qC§ = 0;
|
||||
}
|
||||
else if(this.§_-qC§ >= this.length)
|
||||
{
|
||||
this.§_-qC§ = this.length;
|
||||
}
|
||||
this.alternativa3d::_-D3(oldTime,this.§_-qC§);
|
||||
}
|
||||
}
|
||||
if(weight > 0)
|
||||
{
|
||||
for(i = 0; i < this.§_-Iv§; )
|
||||
{
|
||||
track = this.§_-cT§[i];
|
||||
if(track.object != null)
|
||||
{
|
||||
state = alternativa3d::controller.alternativa3d::getState(track.object);
|
||||
if(state != null)
|
||||
{
|
||||
track.alternativa3d::blend(this.§_-qC§,weight,state);
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function get time() : Number
|
||||
{
|
||||
return this.§_-qC§;
|
||||
}
|
||||
|
||||
public function set time(value:Number) : void
|
||||
{
|
||||
this.§_-qC§ = value;
|
||||
}
|
||||
|
||||
public function get §_-SA§() : Number
|
||||
{
|
||||
return this.length == 0 ? 0 : this.§_-qC§ / this.length;
|
||||
}
|
||||
|
||||
public function set §_-SA§(value:Number) : void
|
||||
{
|
||||
this.§_-qC§ = value * this.length;
|
||||
}
|
||||
|
||||
private function §_-8I§(object:Object) : int
|
||||
{
|
||||
if(object is §_-OX§)
|
||||
{
|
||||
return §_-OX§(object).numChildren;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private function getChildAt(object:Object, index:int) : Object
|
||||
{
|
||||
if(object is §_-OX§)
|
||||
{
|
||||
return §_-OX§(object).getChildAt(index);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private function §_-Lo§(object:Object) : void
|
||||
{
|
||||
var child:Object = null;
|
||||
for(var i:int = 0,var numChildren:int = this.§_-8I§(object); i < numChildren; i++)
|
||||
{
|
||||
child = this.getChildAt(object,i);
|
||||
this.addObject(child);
|
||||
this.§_-Lo§(child);
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-L6§(object:Object, includeDescendants:Boolean) : void
|
||||
{
|
||||
this.§_-R5§(this.alternativa3d::_-Kq,alternativa3d::controller,null,alternativa3d::controller);
|
||||
this.alternativa3d::_-Kq = null;
|
||||
this.addObject(object);
|
||||
if(includeDescendants)
|
||||
{
|
||||
this.§_-Lo§(object);
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function §_-D3§(start:Number, end:Number) : void
|
||||
{
|
||||
for(var notify:§_-Re§ = this.§_-Ci§; notify != null; )
|
||||
{
|
||||
if(notify.alternativa3d::_-qC > start)
|
||||
{
|
||||
if(notify.alternativa3d::_-qC > end)
|
||||
{
|
||||
notify = notify.alternativa3d::next;
|
||||
continue;
|
||||
}
|
||||
notify.alternativa3d::_-XY = alternativa3d::controller.alternativa3d::nearestNotifyers;
|
||||
alternativa3d::controller.alternativa3d::nearestNotifyers = notify;
|
||||
}
|
||||
notify = notify.alternativa3d::next;
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-Bn§(time:Number, name:String = null) : §_-Re§
|
||||
{
|
||||
var n:§_-Re§ = null;
|
||||
time = time <= 0 ? 0 : (time >= this.length ? this.length : time);
|
||||
var notify:§_-Re§ = new §_-Re§(name);
|
||||
notify.alternativa3d::_-qC = time;
|
||||
if(this.§_-Ci§ == null)
|
||||
{
|
||||
this.§_-Ci§ = notify;
|
||||
return notify;
|
||||
}
|
||||
if(this.§_-Ci§.alternativa3d::_-qC > time)
|
||||
{
|
||||
notify.alternativa3d::next = this.§_-Ci§;
|
||||
this.§_-Ci§ = notify;
|
||||
return notify;
|
||||
}
|
||||
n = this.§_-Ci§;
|
||||
while(n.alternativa3d::next != null && n.alternativa3d::next.alternativa3d::_-qC <= time)
|
||||
{
|
||||
n = n.alternativa3d::next;
|
||||
}
|
||||
if(n.alternativa3d::next == null)
|
||||
{
|
||||
n.alternativa3d::next = notify;
|
||||
}
|
||||
else
|
||||
{
|
||||
notify.alternativa3d::next = n.alternativa3d::next;
|
||||
n.alternativa3d::next = notify;
|
||||
}
|
||||
return notify;
|
||||
}
|
||||
|
||||
public function §_-VB§(offsetFromEnd:Number = 0, name:String = null) : §_-Re§
|
||||
{
|
||||
return this.§_-Bn§(this.length - offsetFromEnd,name);
|
||||
}
|
||||
|
||||
public function §_-LH§(notify:§_-Re§) : §_-Re§
|
||||
{
|
||||
var n:§_-Re§ = null;
|
||||
if(this.§_-Ci§ != null)
|
||||
{
|
||||
if(this.§_-Ci§ == notify)
|
||||
{
|
||||
this.§_-Ci§ = this.§_-Ci§.alternativa3d::next;
|
||||
return notify;
|
||||
}
|
||||
n = this.§_-Ci§;
|
||||
while(n.alternativa3d::next != null && n.alternativa3d::next != notify)
|
||||
{
|
||||
n = n.alternativa3d::next;
|
||||
}
|
||||
if(n.alternativa3d::next == notify)
|
||||
{
|
||||
n.alternativa3d::next = notify.alternativa3d::next;
|
||||
return notify;
|
||||
}
|
||||
}
|
||||
throw new Error("Notify not found");
|
||||
}
|
||||
|
||||
public function get §_-ZY§() : Vector.<§_-Re§>
|
||||
{
|
||||
var result:Vector.<§_-Re§> = new Vector.<§_-Re§>();
|
||||
var i:int = 0;
|
||||
for(var notify:§_-Re§ = this.§_-Ci§; notify != null; notify = notify.alternativa3d::next)
|
||||
{
|
||||
result[i] = notify;
|
||||
i++;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public function slice(start:Number, end:Number = 1.7976931348623157e+308) : §_-FA§
|
||||
{
|
||||
var sliced:§_-FA§ = new §_-FA§(this.name);
|
||||
sliced.alternativa3d::_-Kq = this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq);
|
||||
for(var i:int = 0; i < this.§_-Iv§; i++)
|
||||
{
|
||||
sliced.§_-nn§(this.§_-cT§[i].slice(start,end));
|
||||
}
|
||||
return sliced;
|
||||
}
|
||||
|
||||
public function clone() : §_-FA§
|
||||
{
|
||||
var cloned:§_-FA§ = new §_-FA§(this.name);
|
||||
cloned.alternativa3d::_-Kq = this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq);
|
||||
for(var i:int = 0; i < this.§_-Iv§; i++)
|
||||
{
|
||||
cloned.§_-nn§(this.§_-cT§[i]);
|
||||
}
|
||||
cloned.length = this.length;
|
||||
return cloned;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,444 +0,0 @@
|
||||
package §_-RG§
|
||||
{
|
||||
import §_-1e§.§_-Nh§;
|
||||
import §_-1z§.§_-KJ§;
|
||||
import §_-1z§.§_-VF§;
|
||||
import §_-1z§.§_-b1§;
|
||||
import §_-1z§.§_-n4§;
|
||||
import §_-1z§.§_-pi§;
|
||||
import §_-8D§.§_-Jo§;
|
||||
import §_-8D§.§_-OX§;
|
||||
import §_-Ex§.§_-8f§;
|
||||
import §_-Ex§.§_-U2§;
|
||||
import §_-Ex§.§_-a2§;
|
||||
import §_-O5§.§_-Hk§;
|
||||
import §_-V-§.§_-Q4§;
|
||||
import §_-V-§.§_-Ui§;
|
||||
import §_-Vh§.§_-18§;
|
||||
import §_-Yj§.§_-4X§;
|
||||
import §_-am§.§_-Fh§;
|
||||
import §_-am§.§_-Jd§;
|
||||
import §_-am§.§_-qn§;
|
||||
import §_-fT§.§_-HM§;
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import flash.display.BitmapData;
|
||||
import flash.events.Event;
|
||||
import flash.events.EventDispatcher;
|
||||
import flash.utils.ByteArray;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class A3DMapBuilder extends EventDispatcher
|
||||
{
|
||||
public static const MAIN_FILE:String = "main.a3d";
|
||||
|
||||
public static const ADDITIONAL_FILES_START:String = "part";
|
||||
|
||||
public static const TREES_FILE:String = "trees.a3d";
|
||||
|
||||
public static const MARKET_FILE:String = "market.a3d";
|
||||
|
||||
public static const PHYSICS_FILE:String = "physics.a3d";
|
||||
|
||||
public static const BEAMS_FILE:String = "beams.a3d";
|
||||
|
||||
public static const LIGHTS_FILE:String = "lights.dae";
|
||||
|
||||
private static const COLLISION_MASK:int = 255;
|
||||
|
||||
private static var fakeEmissionTextureResource:§_-b1§ = new §_-b1§(new BitmapData(1,1,false,8355711));
|
||||
|
||||
private static var fakeBumpTextureResource:§_-b1§ = new §_-b1§(new BitmapData(1,1,false,8355839));
|
||||
|
||||
private var §_-Kq§:Vector.<§_-OX§> = new Vector.<§_-OX§>();
|
||||
|
||||
private var §_-73§:Vector.<§_-Nh§>;
|
||||
|
||||
private var §_-9k§:Vector.<§_-Jo§>;
|
||||
|
||||
private var §_-Gv§:Vector.<§_-8f§> = new Vector.<§_-8f§>();
|
||||
|
||||
private var §_-ah§:§_-Ui§;
|
||||
|
||||
private var mapFiles:§_-Hk§;
|
||||
|
||||
private var collector:Vector.<§_-OX§>;
|
||||
|
||||
private var §_-TE§:§_-VF§ = new §_-VF§(new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680),new BitmapData(1,1,false,16711680));
|
||||
|
||||
public function A3DMapBuilder()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function get objects() : Vector.<§_-OX§>
|
||||
{
|
||||
return this.§_-Kq§;
|
||||
}
|
||||
|
||||
public function get collisionPrimitives() : Vector.<§_-Nh§>
|
||||
{
|
||||
return this.§_-73§;
|
||||
}
|
||||
|
||||
public function get lights() : Vector.<§_-Jo§>
|
||||
{
|
||||
return this.§_-9k§;
|
||||
}
|
||||
|
||||
public function get decals() : Vector.<§_-8f§>
|
||||
{
|
||||
return this.§_-Gv§;
|
||||
}
|
||||
|
||||
public function §_-Q7§(mapFiles:§_-Hk§) : void
|
||||
{
|
||||
var geometryFileName:String = null;
|
||||
this.mapFiles = mapFiles;
|
||||
var mapGeometryFiles:Vector.<String> = this.§_-VG§(mapFiles);
|
||||
this.collector = new Vector.<§_-OX§>();
|
||||
this.§_-ah§ = new §_-Ui§();
|
||||
for each(geometryFileName in mapGeometryFiles)
|
||||
{
|
||||
this.§_-ah§.addTask(new GeometryBuildTask(mapFiles.§_-HG§(geometryFileName),this.collector));
|
||||
}
|
||||
this.§_-ah§.addEventListener(Event.COMPLETE,this.§_-OY§);
|
||||
this.§_-ah§.run();
|
||||
}
|
||||
|
||||
private function §_-OY§(event:Event) : void
|
||||
{
|
||||
var surface:§_-a2§ = null;
|
||||
var object:§_-OX§ = null;
|
||||
var mesh:§_-U2§ = null;
|
||||
var meshName:String = null;
|
||||
var decal:§_-8f§ = null;
|
||||
var resourceCache:Object = {};
|
||||
for each(object in this.collector)
|
||||
{
|
||||
mesh = object as §_-U2§;
|
||||
if(mesh != null)
|
||||
{
|
||||
meshName = mesh.name.toLowerCase();
|
||||
if(meshName.indexOf("decal") >= 0)
|
||||
{
|
||||
decal = new §_-8f§(1.5);
|
||||
decal.name = meshName;
|
||||
decal.useShadow = true;
|
||||
decal.geometry = mesh.geometry;
|
||||
decal.alternativa3d::_-eW = mesh.alternativa3d::_-eW;
|
||||
decal.alternativa3d::_-Oy = mesh.alternativa3d::_-Oy;
|
||||
for each(surface in decal.alternativa3d::_-eW)
|
||||
{
|
||||
surface.alternativa3d::object = decal;
|
||||
}
|
||||
decal.boundBox = mesh.boundBox;
|
||||
decal.matrix = mesh.matrix;
|
||||
mesh = decal;
|
||||
this.§_-Gv§.push(decal);
|
||||
}
|
||||
mesh.calculateBoundBox();
|
||||
this.§_-Gj§(mesh,resourceCache);
|
||||
this.§_-Kq§.push(mesh);
|
||||
}
|
||||
}
|
||||
this.collector = null;
|
||||
this.§_-ah§ = null;
|
||||
this.§_-gU§(this.mapFiles.§_-HG§(TREES_FILE));
|
||||
this.§_-hj§(this.mapFiles.§_-HG§(MARKET_FILE));
|
||||
this.§_-1o§(this.mapFiles.§_-HG§(BEAMS_FILE));
|
||||
this.§_-F0§(this.mapFiles.§_-HG§(LIGHTS_FILE));
|
||||
this.§_-et§(this.mapFiles.§_-HG§(PHYSICS_FILE));
|
||||
dispatchEvent(new Event(Event.COMPLETE));
|
||||
}
|
||||
|
||||
private function §_-hj§(data:ByteArray) : void
|
||||
{
|
||||
var parser:§_-Fh§ = null;
|
||||
var resourceCache:Object = null;
|
||||
var object:§_-OX§ = null;
|
||||
var mesh:§_-U2§ = null;
|
||||
var i:int = 0;
|
||||
var surface:§_-a2§ = null;
|
||||
var material:§_-qn§ = null;
|
||||
var diffName:String = null;
|
||||
var diffuse:§_-pi§ = null;
|
||||
var bump:§_-pi§ = null;
|
||||
var opacity:§_-pi§ = null;
|
||||
var emission:§_-pi§ = null;
|
||||
var reflection:§_-pi§ = null;
|
||||
var envMaterial:§_-18§ = null;
|
||||
if(data != null)
|
||||
{
|
||||
parser = new §_-Fh§();
|
||||
parser.§_-Om§(data);
|
||||
resourceCache = {};
|
||||
for each(object in parser.objects)
|
||||
{
|
||||
mesh = object as §_-U2§;
|
||||
if(mesh != null)
|
||||
{
|
||||
for(i = 0; i < mesh.§_-hT§; )
|
||||
{
|
||||
surface = mesh.§_-Hq§(i);
|
||||
if(surface.material != null)
|
||||
{
|
||||
material = §_-qn§(surface.material);
|
||||
diffName = §_-n4§(material.textures["diffuse"]).url;
|
||||
diffuse = this.§_-kb§(material.textures["diffuse"],resourceCache,this.mapFiles);
|
||||
bump = this.§_-kb§(material.textures["bump"],resourceCache,this.mapFiles);
|
||||
opacity = this.§_-kb§(material.textures["transparent"],resourceCache,this.mapFiles);
|
||||
emission = this.§_-kb§(material.textures["emission"],resourceCache,this.mapFiles);
|
||||
if(diffName.indexOf("vetrino01") >= 0)
|
||||
{
|
||||
reflection = this.§_-kb§(new §_-n4§("vetrino_rfl.atf"),resourceCache,this.mapFiles);
|
||||
envMaterial = new §_-18§(diffuse,this.§_-TE§,null,reflection,emission,opacity);
|
||||
envMaterial.reflection = 0.4;
|
||||
surface.material = envMaterial;
|
||||
}
|
||||
else
|
||||
{
|
||||
surface.material = new §_-pE§(diffuse,emission,1,opacity);
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
this.§_-Kq§.push(mesh);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-Gj§(mesh:§_-U2§, resourceCache:Object) : void
|
||||
{
|
||||
var surface:§_-a2§ = null;
|
||||
var parserMaterial:§_-qn§ = null;
|
||||
var diffuseTextureResource:§_-pi§ = null;
|
||||
var emissionTextureResource:§_-pi§ = null;
|
||||
var opacityTextureResource:§_-pi§ = null;
|
||||
var material:§_-pE§ = null;
|
||||
for each(surface in mesh.alternativa3d::_-eW)
|
||||
{
|
||||
parserMaterial = surface.material as §_-qn§;
|
||||
if(parserMaterial != null)
|
||||
{
|
||||
diffuseTextureResource = this.§_-kb§(parserMaterial.textures["diffuse"],resourceCache,this.mapFiles);
|
||||
emissionTextureResource = this.§_-kb§(parserMaterial.textures["emission"],resourceCache,this.mapFiles);
|
||||
opacityTextureResource = this.§_-kb§(parserMaterial.textures["transparent"],resourceCache,this.mapFiles);
|
||||
if(emissionTextureResource == null)
|
||||
{
|
||||
material = new §_-pE§(diffuseTextureResource,fakeEmissionTextureResource,0,opacityTextureResource);
|
||||
}
|
||||
else
|
||||
{
|
||||
material = new §_-pE§(diffuseTextureResource,emissionTextureResource,1,opacityTextureResource);
|
||||
}
|
||||
surface.material = material;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-VG§(mapFiles:§_-Hk§) : Vector.<String>
|
||||
{
|
||||
var name:String = null;
|
||||
var names:Vector.<String> = new Vector.<String>();
|
||||
names.push(MAIN_FILE);
|
||||
for(name in mapFiles.data)
|
||||
{
|
||||
if(name.indexOf(ADDITIONAL_FILES_START) == 0 && name.indexOf(".a3d") > 0)
|
||||
{
|
||||
names.push(name);
|
||||
}
|
||||
}
|
||||
return names;
|
||||
}
|
||||
|
||||
private function §_-gU§(data:ByteArray) : void
|
||||
{
|
||||
var parser:§_-Fh§ = null;
|
||||
var resourceCache:Object = null;
|
||||
var object:§_-OX§ = null;
|
||||
var mesh:§_-U2§ = null;
|
||||
var i:int = 0;
|
||||
var surface:§_-a2§ = null;
|
||||
var material:§_-qn§ = null;
|
||||
var diffuse:§_-pi§ = null;
|
||||
var bump:§_-pi§ = null;
|
||||
var opacity:§_-pi§ = null;
|
||||
var trMaterial:§_-4X§ = null;
|
||||
if(data != null)
|
||||
{
|
||||
parser = new §_-Fh§();
|
||||
parser.§_-Om§(data);
|
||||
resourceCache = {};
|
||||
for each(object in parser.objects)
|
||||
{
|
||||
mesh = object as §_-U2§;
|
||||
if(mesh != null)
|
||||
{
|
||||
for(i = 0; i < mesh.§_-hT§; )
|
||||
{
|
||||
surface = mesh.§_-Hq§(i);
|
||||
if(surface.material != null)
|
||||
{
|
||||
material = §_-qn§(surface.material);
|
||||
diffuse = this.§_-kb§(material.textures["diffuse"],resourceCache,this.mapFiles);
|
||||
bump = this.§_-kb§(material.textures["bump"],resourceCache,this.mapFiles);
|
||||
opacity = this.§_-kb§(material.textures["transparent"],resourceCache,this.mapFiles);
|
||||
trMaterial = new §_-4X§(diffuse,fakeBumpTextureResource,null,null,opacity);
|
||||
trMaterial.§_-kj§ = 0;
|
||||
trMaterial.alphaThreshold = 0.2;
|
||||
surface.material = trMaterial;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
this.§_-Kq§.push(mesh);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-1o§(data:ByteArray) : void
|
||||
{
|
||||
var object:§_-OX§ = null;
|
||||
var mesh:§_-U2§ = null;
|
||||
var i:int = 0;
|
||||
var surface:§_-a2§ = null;
|
||||
var material:§_-qn§ = null;
|
||||
var diffuse:§_-pi§ = null;
|
||||
var opacity:§_-pi§ = null;
|
||||
if(data == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var parser:§_-Fh§ = new §_-Fh§();
|
||||
parser.§_-Om§(data);
|
||||
var resourceCache:Object = {};
|
||||
for each(object in parser.objects)
|
||||
{
|
||||
mesh = object as §_-U2§;
|
||||
if(mesh != null)
|
||||
{
|
||||
for(i = 0; i < mesh.§_-hT§; )
|
||||
{
|
||||
surface = mesh.§_-Hq§(i);
|
||||
if(surface.material != null)
|
||||
{
|
||||
material = §_-qn§(surface.material);
|
||||
diffuse = this.§_-kb§(material.textures["diffuse"],resourceCache,this.mapFiles);
|
||||
opacity = this.§_-kb§(material.textures["transparent"],resourceCache,this.mapFiles);
|
||||
surface.material = new §_-Au§(opacity);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
this.§_-Kq§.push(mesh);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-F0§(lightsData:ByteArray) : void
|
||||
{
|
||||
var parserCollada:§_-Jd§ = null;
|
||||
var numLights:uint = 0;
|
||||
var i:int = 0;
|
||||
if(lightsData != null)
|
||||
{
|
||||
parserCollada = new §_-Jd§();
|
||||
parserCollada.§_-Om§(XML(lightsData.toString()));
|
||||
numLights = uint(parserCollada.lights.length);
|
||||
this.§_-9k§ = new Vector.<§_-Jo§>(numLights);
|
||||
for(i = 0; i < numLights; i++)
|
||||
{
|
||||
this.§_-9k§[i] = parserCollada.lights[i];
|
||||
§_-Jo§(this.§_-9k§[i]).alternativa3d::removeFromParent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-kb§(fileTextureResource:§_-n4§, resourceCache:Object, mapFiles:§_-Hk§) : §_-KJ§
|
||||
{
|
||||
var textureName:String = null;
|
||||
var resource:§_-KJ§ = null;
|
||||
var textureData:ByteArray = null;
|
||||
if(fileTextureResource != null && Boolean(fileTextureResource.url))
|
||||
{
|
||||
textureName = fileTextureResource.url.toLowerCase();
|
||||
textureName = textureName.replace(".png",".atf");
|
||||
textureName = textureName.replace(".jpg",".atf");
|
||||
if(mapFiles.§_-HG§(textureName) != null)
|
||||
{
|
||||
resource = resourceCache[textureName];
|
||||
if(resource == null)
|
||||
{
|
||||
textureData = mapFiles.§_-HG§(textureName);
|
||||
resource = new §_-KJ§(textureData);
|
||||
resourceCache[textureName] = resource;
|
||||
}
|
||||
return resource;
|
||||
}
|
||||
trace("[WARN] texture not found:",fileTextureResource.url.toLowerCase());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private function §_-et§(a3dData:ByteArray) : void
|
||||
{
|
||||
var object:§_-OX§ = null;
|
||||
var objectName:String = null;
|
||||
var parserA3D:§_-Fh§ = new §_-Fh§();
|
||||
parserA3D.§_-Om§(a3dData);
|
||||
this.§_-73§ = new Vector.<§_-Nh§>();
|
||||
for each(object in parserA3D.objects)
|
||||
{
|
||||
if(object is §_-U2§)
|
||||
{
|
||||
objectName = object.name.toLowerCase();
|
||||
if(objectName.indexOf("tri") == 0)
|
||||
{
|
||||
§_-Q4§.§_-eU§(§_-U2§(object),this.§_-73§,§_-HM§.STATIC,COLLISION_MASK);
|
||||
}
|
||||
else if(objectName.indexOf("box") == 0)
|
||||
{
|
||||
§_-Q4§.§_-MS§(§_-U2§(object),this.§_-73§,§_-HM§.STATIC,COLLISION_MASK);
|
||||
}
|
||||
else if(objectName.indexOf("plane") == 0)
|
||||
{
|
||||
§_-Q4§.§_-4D§(§_-U2§(object),this.§_-73§,§_-HM§.STATIC,COLLISION_MASK);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-8D§.§_-OX§;
|
||||
import §_-V-§.§_-h5§;
|
||||
import §_-am§.§_-Fh§;
|
||||
import flash.utils.ByteArray;
|
||||
import flash.utils.setTimeout;
|
||||
|
||||
class GeometryBuildTask extends §_-h5§
|
||||
{
|
||||
private var data:ByteArray;
|
||||
|
||||
private var collector:Vector.<§_-OX§>;
|
||||
|
||||
public function GeometryBuildTask(data:ByteArray, collector:Vector.<§_-OX§>)
|
||||
{
|
||||
super();
|
||||
this.data = data;
|
||||
this.collector = collector;
|
||||
}
|
||||
|
||||
override public function run() : void
|
||||
{
|
||||
var object:§_-OX§ = null;
|
||||
var parser:§_-Fh§ = new §_-Fh§();
|
||||
parser.§_-Om§(this.data);
|
||||
for each(object in parser.objects)
|
||||
{
|
||||
this.collector.push(object);
|
||||
}
|
||||
setTimeout(§_-3Z§,0);
|
||||
}
|
||||
}
|
||||
@@ -1,231 +0,0 @@
|
||||
package §_-Wh§
|
||||
{
|
||||
import §_-8D§.§_-OX§;
|
||||
import §_-Ex§.§_-2S§;
|
||||
import §_-LX§.§_-VO§;
|
||||
import §_-US§.§_-4q§;
|
||||
import §_-US§.§_-BV§;
|
||||
import §_-Vh§.§_-YD§;
|
||||
import §_-aG§.§_-7-§;
|
||||
import §_-az§.§_-2J§;
|
||||
import §_-az§.§_-AG§;
|
||||
import §_-e6§.§_-1I§;
|
||||
import §_-e6§.§_-Kn§;
|
||||
import §_-fj§.§_-cx§;
|
||||
import §_-fj§.§_-gd§;
|
||||
import §_-fj§.§_-nL§;
|
||||
import §_-jd§.§_-82§;
|
||||
import §_-nl§.Matrix4;
|
||||
import §_-nl§.§_-bj§;
|
||||
import §_-pe§.§_-m3§;
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import §default§.§_-dT§;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class §_-4Q§ extends §_-2J§ implements §_-Kn§
|
||||
{
|
||||
private static var material:§_-YD§ = new §_-YD§(11141120);
|
||||
|
||||
private static var bodyMaterial:§_-YD§ = new §_-YD§(43520);
|
||||
|
||||
private static var eulerAngles:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var chassis:§_-cx§;
|
||||
|
||||
private var turret:§_-82§;
|
||||
|
||||
private var §_-hF§:Vector.<CollisionPrimitive3D>;
|
||||
|
||||
private var §_-ec§:§_-OX§;
|
||||
|
||||
private var rays:Vector.<RayEntry>;
|
||||
|
||||
public function §_-4Q§()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
override public function initComponent() : void
|
||||
{
|
||||
var collisionBox:§_-m3§ = null;
|
||||
var hs:§_-bj§ = null;
|
||||
var box:§_-7-§ = null;
|
||||
var wireFrame:§_-2S§ = null;
|
||||
this.chassis = §_-cx§(entity.getComponentStrict(§_-cx§));
|
||||
this.turret = §_-82§(entity.getComponentStrict(§_-82§));
|
||||
this.§_-hF§ = new Vector.<CollisionPrimitive3D>();
|
||||
var body:§_-BV§ = this.chassis.getBody();
|
||||
for(var item:§_-4q§ = body.collisionPrimitives.head; item != null; )
|
||||
{
|
||||
collisionBox = §_-m3§(item.primitive);
|
||||
hs = collisionBox.hs.clone().scale(2);
|
||||
box = new §_-7-§(hs.x,hs.y,hs.z);
|
||||
wireFrame = §_-2S§.§_-LJ§(box,16711680);
|
||||
this.§_-hF§.push(new CollisionPrimitive3D(collisionBox,wireFrame));
|
||||
item = item.next;
|
||||
}
|
||||
var trackedChassisGraphicsComponent:§_-VO§ = §_-VO§(entity.getComponentStrict(§_-VO§));
|
||||
var hull:§_-dT§ = trackedChassisGraphicsComponent.§_-lD§();
|
||||
hs = hull.§_-eh§.hs.clone().scale(2);
|
||||
box = new §_-7-§(hs.x,hs.y,hs.z);
|
||||
this.§_-ec§ = §_-2S§.§_-LJ§(box,65280);
|
||||
this.§_-CT§();
|
||||
}
|
||||
|
||||
private function §_-CT§() : void
|
||||
{
|
||||
this.rays = new Vector.<RayEntry>();
|
||||
this.§_-6S§(this.chassis.§_-Ei§,this.rays);
|
||||
this.§_-6S§(this.chassis.§_-iA§,this.rays);
|
||||
}
|
||||
|
||||
private function §_-6S§(track:§_-nL§, rays:Vector.<RayEntry>) : void
|
||||
{
|
||||
var ray:§_-gd§ = null;
|
||||
var box:§_-7-§ = null;
|
||||
var wireFrame1:§_-2S§ = null;
|
||||
var wireFrame2:§_-2S§ = null;
|
||||
for each(ray in track.rays)
|
||||
{
|
||||
box = new §_-7-§(10,10,10);
|
||||
wireFrame1 = §_-2S§.§_-LJ§(box,255);
|
||||
box = new §_-7-§(10,10,10);
|
||||
wireFrame2 = §_-2S§.§_-LJ§(box,65535);
|
||||
rays.push(new RayEntry(ray,wireFrame1,wireFrame2));
|
||||
}
|
||||
}
|
||||
|
||||
override public function addToGame(gameKernel:§_-AG§) : void
|
||||
{
|
||||
var collisionPrimitive3D:CollisionPrimitive3D = null;
|
||||
var rayEntry:RayEntry = null;
|
||||
var renderSystem:§_-1I§ = gameKernel.§_-DZ§();
|
||||
for each(collisionPrimitive3D in this.§_-hF§)
|
||||
{
|
||||
this.§_-Ab§(renderSystem,collisionPrimitive3D.skin);
|
||||
}
|
||||
this.§_-Ab§(renderSystem,this.§_-ec§);
|
||||
for each(rayEntry in this.rays)
|
||||
{
|
||||
this.§_-Ab§(renderSystem,rayEntry.originSkin);
|
||||
this.§_-Ab§(renderSystem,rayEntry.endSkin);
|
||||
}
|
||||
renderSystem.§_-mA§(this);
|
||||
}
|
||||
|
||||
override public function removeFromGame(gameKernel:§_-AG§) : void
|
||||
{
|
||||
var collisionPrimitive3D:CollisionPrimitive3D = null;
|
||||
var rayEntry:RayEntry = null;
|
||||
var renderSystem:§_-1I§ = gameKernel.§_-DZ§();
|
||||
for each(collisionPrimitive3D in this.§_-hF§)
|
||||
{
|
||||
this.§_-Je§(renderSystem,collisionPrimitive3D.skin);
|
||||
}
|
||||
for each(rayEntry in this.rays)
|
||||
{
|
||||
this.§_-Je§(renderSystem,rayEntry.originSkin);
|
||||
this.§_-Je§(renderSystem,rayEntry.endSkin);
|
||||
}
|
||||
this.§_-Je§(renderSystem,this.§_-ec§);
|
||||
gameKernel.§_-DZ§().§_-EI§(this);
|
||||
}
|
||||
|
||||
private function §_-Ab§(renderSystem:§_-1I§, object:§_-OX§) : void
|
||||
{
|
||||
renderSystem.§_-Bj§().addChild(object);
|
||||
renderSystem.§_-IL§(object.getResources());
|
||||
}
|
||||
|
||||
private function §_-Je§(renderSystem:§_-1I§, object:§_-OX§) : void
|
||||
{
|
||||
object.alternativa3d::removeFromParent();
|
||||
renderSystem.§_-Jb§(object.getResources());
|
||||
}
|
||||
|
||||
public function render() : void
|
||||
{
|
||||
var entry:CollisionPrimitive3D = null;
|
||||
var body:§_-BV§ = null;
|
||||
var rayEntry:RayEntry = null;
|
||||
var transform:Matrix4 = null;
|
||||
var skin:§_-OX§ = null;
|
||||
var worldPos:§_-bj§ = null;
|
||||
var rayLength:Number = NaN;
|
||||
for each(entry in this.§_-hF§)
|
||||
{
|
||||
transform = entry.collisionPrimitive.transform;
|
||||
transform.§_-fJ§(eulerAngles);
|
||||
skin = entry.skin;
|
||||
skin.x = transform.d;
|
||||
skin.y = transform.h;
|
||||
skin.z = transform.l;
|
||||
skin.rotationX = eulerAngles.x;
|
||||
skin.rotationY = eulerAngles.y;
|
||||
skin.rotationZ = eulerAngles.z;
|
||||
}
|
||||
body = this.chassis.getBody();
|
||||
body.baseMatrix.§_-fJ§(eulerAngles);
|
||||
this.§_-ec§.rotationX = eulerAngles.x;
|
||||
this.§_-ec§.rotationY = eulerAngles.y;
|
||||
this.§_-ec§.rotationZ = eulerAngles.z;
|
||||
this.§_-ec§.x = body.state.position.x;
|
||||
this.§_-ec§.y = body.state.position.y;
|
||||
this.§_-ec§.z = body.state.position.z;
|
||||
for each(rayEntry in this.rays)
|
||||
{
|
||||
worldPos = rayEntry.ray.worldPos;
|
||||
rayEntry.originSkin.x = worldPos.x;
|
||||
rayEntry.originSkin.y = worldPos.y;
|
||||
rayEntry.originSkin.z = worldPos.z;
|
||||
if(rayEntry.ray.§_-n3§)
|
||||
{
|
||||
rayLength = Number(rayEntry.ray.§_-ZA§.t);
|
||||
}
|
||||
else
|
||||
{
|
||||
rayLength = Number(this.chassis.§_-CF§.rayLength);
|
||||
}
|
||||
rayEntry.endSkin.x = worldPos.x + rayEntry.ray.§_-Py§.x * rayLength;
|
||||
rayEntry.endSkin.y = worldPos.y + rayEntry.ray.§_-Py§.y * rayLength;
|
||||
rayEntry.endSkin.z = worldPos.z + rayEntry.ray.§_-Py§.z * rayLength;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-1e§.§_-Nh§;
|
||||
import §_-8D§.§_-OX§;
|
||||
import §_-fj§.§_-gd§;
|
||||
|
||||
class CollisionPrimitive3D
|
||||
{
|
||||
public var collisionPrimitive:§_-Nh§;
|
||||
|
||||
public var skin:§_-OX§;
|
||||
|
||||
public function CollisionPrimitive3D(collisionPrimitive:§_-Nh§, skin:§_-OX§)
|
||||
{
|
||||
super();
|
||||
this.collisionPrimitive = collisionPrimitive;
|
||||
this.skin = skin;
|
||||
}
|
||||
}
|
||||
|
||||
class RayEntry
|
||||
{
|
||||
public var ray:§_-gd§;
|
||||
|
||||
public var originSkin:§_-OX§;
|
||||
|
||||
public var endSkin:§_-OX§;
|
||||
|
||||
public function RayEntry(ray:§_-gd§, originSkin:§_-OX§, endSkin:§_-OX§)
|
||||
{
|
||||
super();
|
||||
this.ray = ray;
|
||||
this.originSkin = originSkin;
|
||||
this.endSkin = endSkin;
|
||||
}
|
||||
}
|
||||
1431
src/?_-YQ?/?_-A3?.as
1431
src/?_-YQ?/?_-A3?.as
File diff suppressed because it is too large
Load Diff
@@ -1,92 +0,0 @@
|
||||
package §_-YQ§
|
||||
{
|
||||
import §_-Ex§.§_-5P§;
|
||||
import §_-I0§.§_-Jv§;
|
||||
import §_-O5§.§_-Hk§;
|
||||
import §_-RG§.A3DMapComponent;
|
||||
import §_-az§.§_-AG§;
|
||||
import §_-az§.§_-gw§;
|
||||
import §_-az§.§_-ps§;
|
||||
import §_-cv§.§_-YU§;
|
||||
import §_-cv§.§_-cP§;
|
||||
import §_-cv§.§_-dD§;
|
||||
import §_-e6§.§_-1I§;
|
||||
import flash.display.DisplayObjectContainer;
|
||||
|
||||
public class §_-DN§ extends §_-ps§
|
||||
{
|
||||
private var gameKernel:§_-AG§;
|
||||
|
||||
private var config:§_-YU§;
|
||||
|
||||
private var container:DisplayObjectContainer;
|
||||
|
||||
private var preloader:Preloader;
|
||||
|
||||
public function §_-DN§(param1:§_-AG§, param2:§_-YU§, param3:DisplayObjectContainer, param4:Preloader)
|
||||
{
|
||||
super(§_-AG§.EVENT_SYSTEM_PRIORITY + 1);
|
||||
this.gameKernel = param1;
|
||||
this.config = param2;
|
||||
this.preloader = param4;
|
||||
this.container = param3;
|
||||
}
|
||||
|
||||
override public function run() : void
|
||||
{
|
||||
var _loc1_:§_-1I§ = this.gameKernel.§_-DZ§();
|
||||
var _loc2_:§_-Jv§ = new §_-Jv§(_loc1_.§_-GW§(),this.gameKernel.§_-Ku§());
|
||||
_loc1_.§_-N8§(_loc2_);
|
||||
_loc2_.§_-oa§(0,0,1000);
|
||||
_loc2_.§_-38§(0,2000,0);
|
||||
this.container.addChild(_loc1_.§_-0D§());
|
||||
var _loc3_:§_-gw§ = this.§_-pL§();
|
||||
this.gameKernel.§_-oR§(_loc3_);
|
||||
this.preloader.§_-QU§(0.75);
|
||||
§_-Uw§.addTask(new §_-A3§(§_-AG§.INPUT_SYSTEM_PRIORITY + 1,this.config,this.gameKernel,_loc2_,this.preloader));
|
||||
§_-Uw§.killTask(this);
|
||||
}
|
||||
|
||||
private function §_-pL§() : §_-gw§
|
||||
{
|
||||
var _loc2_:§_-Hk§ = null;
|
||||
var _loc6_:§_-dD§ = null;
|
||||
var _loc7_:String = null;
|
||||
var _loc3_:§_-cP§ = this.config.§_-WG§.§_-hJ§("skybox");
|
||||
if(_loc3_ != null)
|
||||
{
|
||||
_loc2_ = new §_-Hk§();
|
||||
_loc6_ = _loc3_.§_-EZ§(this.config.§_-f§());
|
||||
for each(_loc7_ in [§_-5P§.BACK,§_-5P§.BOTTOM,§_-5P§.FRONT,§_-5P§.LEFT,§_-5P§.RIGHT,§_-5P§.TOP])
|
||||
{
|
||||
_loc2_.§_-9v§(_loc7_,_loc6_.§_-Vf§(_loc7_));
|
||||
}
|
||||
}
|
||||
var _loc4_:§_-gw§ = new §_-gw§(§_-gw§.§_-9o§());
|
||||
var _loc5_:A3DMapComponent = new A3DMapComponent(this.config.mapData,_loc2_,1000000,new MapListener(this.gameKernel.§_-Ev§()));
|
||||
_loc4_.§_-2d§(_loc5_);
|
||||
_loc4_.§_-m7§();
|
||||
return _loc4_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-RG§.§_-7J§;
|
||||
import §_-az§.§_-Ss§;
|
||||
import §_-j-§.§_-B7§;
|
||||
|
||||
class MapListener implements §_-7J§
|
||||
{
|
||||
private var eventSystem:§_-B7§;
|
||||
|
||||
public function MapListener(param1:§_-B7§)
|
||||
{
|
||||
super();
|
||||
this.eventSystem = param1;
|
||||
}
|
||||
|
||||
public function onA3DMapComplete() : void
|
||||
{
|
||||
this.eventSystem.dispatchEvent(§_-Ss§.MAP_COMPLETE,null);
|
||||
}
|
||||
}
|
||||
@@ -1,699 +0,0 @@
|
||||
package §_-Yj§
|
||||
{
|
||||
import §_-1z§.§_-b1§;
|
||||
import §_-1z§.§_-gA§;
|
||||
import §_-1z§.§_-pi§;
|
||||
import §_-8D§.§_-Jo§;
|
||||
import §_-8D§.§_-OX§;
|
||||
import §_-8D§.§_-QF§;
|
||||
import §_-8D§.§_-WR§;
|
||||
import §_-8D§.§_-be§;
|
||||
import §_-8D§.§_-d6§;
|
||||
import §_-8D§.§_-jw§;
|
||||
import §_-Ex§.§_-a2§;
|
||||
import §_-M8§.§_-5§;
|
||||
import §_-M8§.§_-Xk§;
|
||||
import §_-M8§.§_-hR§;
|
||||
import §_-R1§.DirectionalLight;
|
||||
import §_-R1§.OmniLight;
|
||||
import §_-Vh§.§_-Pt§;
|
||||
import §_-Vh§.§_-RB§;
|
||||
import §_-Vh§.§_-b9§;
|
||||
import §_-Vh§.§_-pZ§;
|
||||
import §_-Z2§.§_-ZC§;
|
||||
import §_-Z2§.§_-cD§;
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import flash.display.BitmapData;
|
||||
import flash.display3D.Context3DBlendFactor;
|
||||
import flash.display3D.Context3DProgramType;
|
||||
import flash.display3D.VertexBuffer3D;
|
||||
import flash.utils.Dictionary;
|
||||
import flash.utils.getDefinitionByName;
|
||||
import flash.utils.getQualifiedClassName;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class TankMaterial2 extends §_-pZ§
|
||||
{
|
||||
private static var fogTexture:§_-pi§;
|
||||
|
||||
public static const DISABLED:int = 0;
|
||||
|
||||
public static const SIMPLE:int = 1;
|
||||
|
||||
public static const ADVANCED:int = 2;
|
||||
|
||||
public static var fogMode:int = DISABLED;
|
||||
|
||||
public static var fogNear:Number = 1000;
|
||||
|
||||
public static var fogFar:Number = 5000;
|
||||
|
||||
public static var fogMaxDensity:Number = 1;
|
||||
|
||||
public static var fogColorR:Number = 200 / 255;
|
||||
|
||||
public static var fogColorG:Number = 162 / 255;
|
||||
|
||||
public static var fogColorB:Number = 200 / 255;
|
||||
|
||||
private static const passSimpleFogConstProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z"],"passSimpleFogConst");
|
||||
|
||||
private static const outputWithSimpleFogProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogColor","#c1=cFogRange","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mul t1.xyz, c0.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithSimpleFog");
|
||||
|
||||
private static const postPassAdvancedFogConstProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogSpace","dp4 t0.z, i0, c0","mov v0, t0.zzzz","sub v0.y, i0.w, t0.z","mov v0.zw, i1.xwxw","mov o0, i1"],"postPassAdvancedFogConst");
|
||||
|
||||
private static const outputWithAdvancedFogProcedure:§_-Xk§ = new §_-Xk§(["#v0=vZDistance","#c0=cFogConsts","#c1=cFogRange","#s0=sFogTexture","min t0.xy, v0.xy, c1.xy","max t0.xy, t0.xy, c1.zw","mov t1.xyzw, c0.yyzw","div t0.z, v0.z, v0.w","mul t0.z, t0.z, c0.x","add t1.x, t1.x, t0.z","tex t1, t1, s0 <2d, repeat, linear, miplinear>","mul t1.xyz, t1.xyz, t0.x","mov t1.w, t0.y","mov o0, t1"],"outputWithAdvancedFog");
|
||||
|
||||
private static const objectsProgramsSets:Dictionary = new Dictionary();
|
||||
|
||||
private static const lightContainer:Vector.<§_-Jo§> = new Vector.<§_-Jo§>(1,true);
|
||||
|
||||
private static const actualLigths:Vector.<§_-Jo§> = new Vector.<§_-Jo§>();
|
||||
|
||||
private static const passUVProcedure:§_-Xk§ = new §_-Xk§(["#a0=aUV","#v0=vUV","mov v0, a0"],"passUVProcedure");
|
||||
|
||||
private static const diffuseProcedure:§_-Xk§ = §_-Xk§.§_-En§(["#v0=vUV","#c0=cTiling","#s0=sColormap","#s1=sDiffuse","#s2=sSurface","mul t0, v0, c0","tex t1, t0, s0 <2d, repeat, linear, miplinear>","tex t0, v0, s1 <2d, clamp, linear, miplinear>","add t2, t0, t0","mul t2, t2, t1","tex t1, v0, s2 <2d, clamp, linear, miplinear>","mul t2, t2, t1.x","add t2, t2, t0","mul t0, t0, t1.x","sub o0, t2, t0"],"diffuse");
|
||||
|
||||
private static const setColorProcedure:§_-Xk§ = new §_-Xk§(["mov o0, i0"],"setColorProcedure");
|
||||
|
||||
private static const outputWithLightProcedure:§_-Xk§ = new §_-Xk§(["mul t0.xyz, i0.xyz, i1.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithLightProcedure");
|
||||
|
||||
private static const outputProcedure:§_-Xk§ = new §_-Xk§(["mov o0, i0"],"outputProcedure");
|
||||
|
||||
private static const passVaryingsProcedure:§_-Xk§ = new §_-Xk§(["#c0=cCamera","#v0=vPosition","#v1=vViewVector","mov v0, i0","sub t0, c0, i0","mov v1.xyz, t0.xyz","mov v1.w, c0.w"],"passVaryingsProcedure");
|
||||
|
||||
private static const getNormalAndViewProcedure:§_-Xk§ = new §_-Xk§(["#v0=vUV","#v1=vViewVector","#c0=cSurface","#s0=sBump","tex t0, v0, s0 <2d,clamp,linear,miplinear>","add t0, t0, t0","sub t0.xyz, t0.xyz, c0.www","neg t0.y, t0.y","nrm o0.xyz, t0.xyz","nrm o1.xyz, v1"],"getNormalAndViewProcedure");
|
||||
|
||||
private static const getSpecularOptionsProcedure:§_-Xk§ = new §_-Xk§(["#v0=vUV","#c0=cSurface","#s0=sSurface","tex t0, v0, s0 <2d, clamp, linear, miplinear>","mul i0.w, c0.y, t0.z","mul i1.w, c0.z, t0.y"],"getSpecularOptionsProcedure");
|
||||
|
||||
public var diffuse:§_-pi§;
|
||||
|
||||
public var colorMap:§_-pi§;
|
||||
|
||||
public var surfaceMap:§_-pi§;
|
||||
|
||||
public var §_-jM§:Number = 1;
|
||||
|
||||
public var §_-Sf§:Number = 1;
|
||||
|
||||
public var normalMap:§_-pi§;
|
||||
|
||||
public var glossiness:Number = 100;
|
||||
|
||||
public var §_-kj§:Number = 1;
|
||||
|
||||
private const outputWithSpecularProcedure:§_-Xk§ = new §_-Xk§(["mul t0.xyz, i0.xyz, i1.xyz","add t0.xyz, t0.xyz, i2.xyz","mov t0.w, i1.w","mov o0, t0"],"outputWithSpecularProcedure");
|
||||
|
||||
public function TankMaterial2(colorMap:§_-pi§ = null, diffuse:§_-pi§ = null, normalMap:§_-pi§ = null, surfaceMap:§_-pi§ = null)
|
||||
{
|
||||
super();
|
||||
this.colorMap = colorMap;
|
||||
this.diffuse = diffuse;
|
||||
this.normalMap = normalMap;
|
||||
this.surfaceMap = surfaceMap;
|
||||
}
|
||||
|
||||
public static function §_-RX§(texture:§_-pi§) : void
|
||||
{
|
||||
fogTexture = texture;
|
||||
}
|
||||
|
||||
private static function directionalProcedure(light:§_-Jo§, add:Boolean) : §_-Xk§
|
||||
{
|
||||
return new §_-Xk§(["#c0=c" + light.alternativa3d::_-oG + "Direction","#c1=c" + light.alternativa3d::_-oG + "Color","add t0.xyz, i1.xyz, c0.xyz","nrm t0.xyz, t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, i0.w","mul t0.w, t0.w, i1.w","dp3 t0.x, i0.xyz, c0.xyz","sat t0.x, t0.x",add ? "mul t0.xyz, c1.xyz, t0.x" : "mul o0.xyz, c1.xyz, t0.x",add ? "add o0.xyz, o0.xyz, t0.xyz" : "mov o0.w, c0.w",add ? "mul t0.xyz, c1.xyz, t0.w" : "mul o1.xyz, c1.xyz, t0.w",add ? "add o1.xyz, o1.xyz, t0.xyz" : "mov o1.w, c0.w"],"directionalProcedure");
|
||||
}
|
||||
|
||||
private static function omniProcedure(light:§_-Jo§, add:Boolean) : §_-Xk§
|
||||
{
|
||||
return new §_-Xk§(["#c0=c" + light.alternativa3d::_-oG + "Position","#c1=c" + light.alternativa3d::_-oG + "Color","#c2=c" + light.alternativa3d::_-oG + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, i0.w","mul t1.w, t1.w, i1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx",add ? "mul t1.xyz, t0.xyz, t0.w" : "mul o0.xyz, t0.xyz, t0.w",add ? "add o0.xyz, o0.xyz, t1.xyz" : "mov o0.w, c0.w",add ? "mul t1.xyz, t0.xyz, t1.w" : "mul o1.xyz, t0.xyz, t1.w",add ? "add o1.xyz, o1.xyz, t1.xyz" : "mov o1.w, c0.w"],"omniProcedure");
|
||||
}
|
||||
|
||||
override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void
|
||||
{
|
||||
super.alternativa3d::fillResources(resources,resourceType);
|
||||
if(this.diffuse != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.diffuse)) as Class,resourceType)))
|
||||
{
|
||||
resources[this.diffuse] = true;
|
||||
}
|
||||
if(this.colorMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.colorMap)) as Class,resourceType)))
|
||||
{
|
||||
resources[this.colorMap] = true;
|
||||
}
|
||||
if(this.normalMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.normalMap)) as Class,resourceType)))
|
||||
{
|
||||
resources[this.normalMap] = true;
|
||||
}
|
||||
if(this.surfaceMap != null && Boolean(§_-Pt§.alternativa3d::_-EU(getDefinitionByName(getQualifiedClassName(this.surfaceMap)) as Class,resourceType)))
|
||||
{
|
||||
resources[this.surfaceMap] = true;
|
||||
}
|
||||
}
|
||||
|
||||
override alternativa3d function collectDraws(camera:§_-be§, surface:§_-a2§, geometry:§_-gA§, lights:Vector.<§_-Jo§>, lightsLength:int, objectRenderPriority:int = -1) : void
|
||||
{
|
||||
var i:int = 0;
|
||||
var light:§_-Jo§ = null;
|
||||
var shadowedLight:DirectionalLight = null;
|
||||
var drawUnit:§_-QF§ = null;
|
||||
var shadowOrAmbientProgram:ShadowOrAmbientProgram = null;
|
||||
var lightingProgram:LightingProgram = null;
|
||||
var numShadows:int = 0;
|
||||
var shadow:§_-ZC§ = null;
|
||||
var lightsPrograms:Dictionary = null;
|
||||
var fogProgram:FogProgram = null;
|
||||
if(this.diffuse == null || this.colorMap == null || this.normalMap == null || this.surfaceMap == null || this.diffuse.alternativa3d::_texture == null || this.colorMap.alternativa3d::_texture == null || this.normalMap.alternativa3d::_texture == null || this.surfaceMap.alternativa3d::_texture == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var object:§_-OX§ = surface.alternativa3d::object;
|
||||
var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION);
|
||||
var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[0]);
|
||||
if(positionBuffer == null || uvBuffer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var lightsKey:String = "";
|
||||
var actualLightsLength:int = 0;
|
||||
for(i = 0; i < lightsLength; )
|
||||
{
|
||||
light = lights[i];
|
||||
if(light is DirectionalLight && shadowedLight == null && DirectionalLight(light).shadow != null)
|
||||
{
|
||||
shadowedLight = DirectionalLight(light);
|
||||
}
|
||||
else if(actualLightsLength < 8 && (light is OmniLight || light is DirectionalLight))
|
||||
{
|
||||
actualLigths[actualLightsLength] = light;
|
||||
lightsKey += light.alternativa3d::_-oG;
|
||||
actualLightsLength++;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
var programs:Array = objectsProgramsSets[object.alternativa3d::transformProcedure];
|
||||
if(programs == null)
|
||||
{
|
||||
programs = [];
|
||||
objectsProgramsSets[object.alternativa3d::transformProcedure] = programs;
|
||||
}
|
||||
if(shadowedLight != null)
|
||||
{
|
||||
shadowOrAmbientProgram = programs[0];
|
||||
if(shadowOrAmbientProgram == null)
|
||||
{
|
||||
shadowOrAmbientProgram = this.§_-3O§(object,shadowedLight.shadow,true);
|
||||
shadowOrAmbientProgram.upload(camera.alternativa3d::context3D);
|
||||
programs[0] = shadowOrAmbientProgram;
|
||||
}
|
||||
drawUnit = this.§_-Mi§(shadowOrAmbientProgram,shadowedLight.shadow,true,camera,object,surface,geometry);
|
||||
}
|
||||
else
|
||||
{
|
||||
shadowOrAmbientProgram = programs[1];
|
||||
if(shadowOrAmbientProgram == null)
|
||||
{
|
||||
shadowOrAmbientProgram = this.§_-3O§(object,null,true);
|
||||
shadowOrAmbientProgram.upload(camera.alternativa3d::context3D);
|
||||
programs[1] = shadowOrAmbientProgram;
|
||||
}
|
||||
drawUnit = this.§_-Mi§(shadowOrAmbientProgram,null,true,camera,object,surface,geometry);
|
||||
}
|
||||
drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE;
|
||||
drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ZERO;
|
||||
camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.TANK_OPAQUE);
|
||||
if(shadowedLight != null)
|
||||
{
|
||||
numShadows = object.alternativa3d::shadowRenderers != null ? int(object.alternativa3d::shadowRenderers.length) : 0;
|
||||
for(i = 0; i < numShadows; )
|
||||
{
|
||||
shadow = object.alternativa3d::shadowRenderers[i];
|
||||
if(shadow is §_-cD§)
|
||||
{
|
||||
shadowOrAmbientProgram = programs[2];
|
||||
if(shadowOrAmbientProgram == null)
|
||||
{
|
||||
shadowOrAmbientProgram = this.§_-3O§(object,shadow,false);
|
||||
shadowOrAmbientProgram.upload(camera.alternativa3d::context3D);
|
||||
programs[2] = shadowOrAmbientProgram;
|
||||
}
|
||||
drawUnit = this.§_-Mi§(shadowOrAmbientProgram,shadow,false,camera,object,surface,geometry);
|
||||
drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ZERO;
|
||||
drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_COLOR;
|
||||
camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.SHADOWS);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
lightingProgram = programs[3];
|
||||
if(lightingProgram == null)
|
||||
{
|
||||
lightContainer[0] = shadowedLight;
|
||||
lightingProgram = this.§_-F§(object,lightContainer,1);
|
||||
lightingProgram.upload(camera.alternativa3d::context3D);
|
||||
programs[3] = lightingProgram;
|
||||
}
|
||||
drawUnit = this.§_-MK§(lightingProgram,lightContainer,1,camera,object,surface,geometry);
|
||||
drawUnit.alternativa3d::blendSource = Context3DBlendFactor.DESTINATION_ALPHA;
|
||||
drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE;
|
||||
camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.SHADOWED_LIGHTS);
|
||||
}
|
||||
if(actualLightsLength > 0)
|
||||
{
|
||||
lightsPrograms = programs[4];
|
||||
if(lightsPrograms == null)
|
||||
{
|
||||
lightsPrograms = new Dictionary(false);
|
||||
programs[4] = lightsPrograms;
|
||||
}
|
||||
lightingProgram = lightsPrograms[lightsKey];
|
||||
if(lightingProgram == null)
|
||||
{
|
||||
lightingProgram = this.§_-F§(object,actualLigths,actualLightsLength);
|
||||
lightingProgram.upload(camera.alternativa3d::context3D);
|
||||
lightsPrograms[lightsKey] = lightingProgram;
|
||||
}
|
||||
drawUnit = this.§_-MK§(lightingProgram,actualLigths,actualLightsLength,camera,object,surface,geometry);
|
||||
drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE;
|
||||
drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE;
|
||||
camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.LIGHTS);
|
||||
}
|
||||
if(fogMode == SIMPLE || fogMode == ADVANCED)
|
||||
{
|
||||
fogProgram = programs[int(fogMode + 4)];
|
||||
if(fogProgram == null)
|
||||
{
|
||||
fogProgram = this.§_-Ck§(object);
|
||||
fogProgram.upload(camera.alternativa3d::context3D);
|
||||
programs[int(fogMode + 4)] = fogProgram;
|
||||
}
|
||||
drawUnit = this.§_-P8§(fogProgram,camera,object,surface,geometry);
|
||||
drawUnit.alternativa3d::blendSource = Context3DBlendFactor.ONE;
|
||||
drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.SOURCE_ALPHA;
|
||||
camera.alternativa3d::renderer.alternativa3d::_-SH(drawUnit,§_-WR§.FOG);
|
||||
}
|
||||
actualLigths.length = 0;
|
||||
}
|
||||
|
||||
private function §_-3O§(object:§_-OX§, shadow:§_-ZC§, ambient:Boolean) : ShadowOrAmbientProgram
|
||||
{
|
||||
var shadowProc:§_-Xk§ = null;
|
||||
var vertexLinker:§_-hR§ = new §_-hR§(Context3DProgramType.VERTEX);
|
||||
var fragmentLinker:§_-hR§ = new §_-hR§(Context3DProgramType.FRAGMENT);
|
||||
var positionVar:String = "aPosition";
|
||||
vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE);
|
||||
if(object.alternativa3d::transformProcedure != null)
|
||||
{
|
||||
positionVar = alternativa3d::_-di(object.alternativa3d::transformProcedure,vertexLinker);
|
||||
}
|
||||
vertexLinker.§_-on§(alternativa3d::_projectProcedure);
|
||||
vertexLinker.§_-FS§(alternativa3d::_projectProcedure,positionVar);
|
||||
if(ambient)
|
||||
{
|
||||
vertexLinker.§_-on§(passUVProcedure);
|
||||
}
|
||||
var colorConst:String = ambient ? "cAmbient" : "cShadow";
|
||||
fragmentLinker.§_-LU§(colorConst,§_-5§.CONSTANT);
|
||||
fragmentLinker.§_-LU§("tLight");
|
||||
fragmentLinker.§_-on§(setColorProcedure);
|
||||
fragmentLinker.§_-FS§(setColorProcedure,colorConst);
|
||||
fragmentLinker.§_-qd§(setColorProcedure,"tLight");
|
||||
if(shadow != null)
|
||||
{
|
||||
vertexLinker.§_-on§(shadow.getVShader());
|
||||
shadowProc = shadow.getFIntensityShader();
|
||||
fragmentLinker.§_-on§(shadowProc);
|
||||
fragmentLinker.§_-qd§(shadowProc,"tLight");
|
||||
}
|
||||
if(ambient)
|
||||
{
|
||||
fragmentLinker.§_-LU§("tColor");
|
||||
fragmentLinker.§_-on§(diffuseProcedure);
|
||||
fragmentLinker.§_-qd§(diffuseProcedure,"tColor");
|
||||
fragmentLinker.§_-on§(outputWithLightProcedure);
|
||||
fragmentLinker.§_-FS§(outputWithLightProcedure,"tColor","tLight");
|
||||
}
|
||||
else
|
||||
{
|
||||
fragmentLinker.§_-on§(outputProcedure);
|
||||
fragmentLinker.§_-FS§(outputProcedure,"tLight");
|
||||
}
|
||||
fragmentLinker.§_-NA§(vertexLinker);
|
||||
return new ShadowOrAmbientProgram(vertexLinker,fragmentLinker);
|
||||
}
|
||||
|
||||
private function §_-Mi§(program:ShadowOrAmbientProgram, shadow:§_-ZC§, ambient:Boolean, camera:§_-be§, object:§_-OX§, surface:§_-a2§, geometry:§_-gA§) : §_-QF§
|
||||
{
|
||||
var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION);
|
||||
var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[0]);
|
||||
var drawUnit:§_-QF§ = camera.alternativa3d::renderer.alternativa3d::_-2s(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program);
|
||||
drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]);
|
||||
if(ambient)
|
||||
{
|
||||
drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TEXCOORDS[0]],§_-d6§.alternativa3d::FORMATS[§_-d6§.TEXCOORDS[0]]);
|
||||
}
|
||||
object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera);
|
||||
drawUnit.alternativa3d::_-mQ(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform);
|
||||
if(ambient)
|
||||
{
|
||||
drawUnit.alternativa3d::_-Ry(program.cAmbient,camera.alternativa3d::ambient[0],camera.alternativa3d::ambient[1],camera.alternativa3d::ambient[2],1);
|
||||
drawUnit.alternativa3d::_-Ry(program.cTiling,this.§_-jM§,this.§_-Sf§,0,0);
|
||||
drawUnit.alternativa3d::setTextureAt(program.sDiffuse,this.diffuse.alternativa3d::_texture);
|
||||
drawUnit.alternativa3d::setTextureAt(program.sColormap,this.colorMap.alternativa3d::_texture);
|
||||
drawUnit.alternativa3d::setTextureAt(program.sSurface,this.surfaceMap.alternativa3d::_texture);
|
||||
}
|
||||
else
|
||||
{
|
||||
drawUnit.alternativa3d::_-Ry(program.cShadow,1,1,1,1);
|
||||
}
|
||||
if(shadow != null)
|
||||
{
|
||||
shadow.applyShader(drawUnit,program,object,camera);
|
||||
}
|
||||
return drawUnit;
|
||||
}
|
||||
|
||||
private function §_-F§(object:§_-OX§, lights:Vector.<§_-Jo§>, lightsLength:int) : LightingProgram
|
||||
{
|
||||
var procedure:§_-Xk§ = null;
|
||||
var light:§_-Jo§ = null;
|
||||
var vertexLinker:§_-hR§ = new §_-hR§(Context3DProgramType.VERTEX);
|
||||
var fragmentLinker:§_-hR§ = new §_-hR§(Context3DProgramType.FRAGMENT);
|
||||
var positionVar:String = "aPosition";
|
||||
vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE);
|
||||
if(object.alternativa3d::transformProcedure != null)
|
||||
{
|
||||
positionVar = alternativa3d::_-di(object.alternativa3d::transformProcedure,vertexLinker);
|
||||
}
|
||||
vertexLinker.§_-on§(alternativa3d::_projectProcedure);
|
||||
vertexLinker.§_-FS§(alternativa3d::_projectProcedure,positionVar);
|
||||
vertexLinker.§_-on§(passUVProcedure);
|
||||
vertexLinker.§_-on§(passVaryingsProcedure);
|
||||
vertexLinker.§_-FS§(passVaryingsProcedure,positionVar);
|
||||
fragmentLinker.§_-LU§("tNormal");
|
||||
fragmentLinker.§_-LU§("tView");
|
||||
fragmentLinker.§_-on§(getNormalAndViewProcedure);
|
||||
fragmentLinker.§_-qd§(getNormalAndViewProcedure,"tNormal","tView");
|
||||
fragmentLinker.§_-on§(getSpecularOptionsProcedure);
|
||||
fragmentLinker.§_-FS§(getSpecularOptionsProcedure,"tNormal","tView");
|
||||
fragmentLinker.§_-LU§("tLight");
|
||||
fragmentLinker.§_-LU§("tHLight");
|
||||
var first:Boolean = true;
|
||||
for(var i:int = 0; i < lightsLength; )
|
||||
{
|
||||
light = lights[i];
|
||||
if(light is DirectionalLight)
|
||||
{
|
||||
procedure = directionalProcedure(light,!first);
|
||||
fragmentLinker.§_-on§(procedure);
|
||||
fragmentLinker.§_-FS§(procedure,"tNormal","tView");
|
||||
fragmentLinker.§_-qd§(procedure,"tLight","tHLight");
|
||||
if(first)
|
||||
{
|
||||
first = false;
|
||||
}
|
||||
}
|
||||
else if(light is OmniLight)
|
||||
{
|
||||
procedure = omniProcedure(light,!first);
|
||||
fragmentLinker.§_-on§(procedure);
|
||||
fragmentLinker.§_-FS§(procedure,"tNormal","tView");
|
||||
fragmentLinker.§_-qd§(procedure,"tLight","tHLight");
|
||||
if(first)
|
||||
{
|
||||
first = false;
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
fragmentLinker.§_-LU§("outColor");
|
||||
fragmentLinker.§_-on§(diffuseProcedure);
|
||||
fragmentLinker.§_-qd§(diffuseProcedure,"outColor");
|
||||
fragmentLinker.§_-on§(this.outputWithSpecularProcedure);
|
||||
fragmentLinker.§_-FS§(this.outputWithSpecularProcedure,"outColor","tLight","tHLight");
|
||||
fragmentLinker.§_-NA§(vertexLinker);
|
||||
return new LightingProgram(vertexLinker,fragmentLinker);
|
||||
}
|
||||
|
||||
private function §_-MK§(program:LightingProgram, lights:Vector.<§_-Jo§>, lightsLength:int, camera:§_-be§, object:§_-OX§, surface:§_-a2§, geometry:§_-gA§) : §_-QF§
|
||||
{
|
||||
var rScale:Number = NaN;
|
||||
var transform:§_-jw§ = null;
|
||||
var light:§_-Jo§ = null;
|
||||
var len:Number = NaN;
|
||||
var omni:OmniLight = null;
|
||||
var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION);
|
||||
var uvBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.TEXCOORDS[0]);
|
||||
var drawUnit:§_-QF§ = camera.alternativa3d::renderer.alternativa3d::_-2s(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program);
|
||||
drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]);
|
||||
drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.TEXCOORDS[0]],§_-d6§.alternativa3d::FORMATS[§_-d6§.TEXCOORDS[0]]);
|
||||
object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera);
|
||||
drawUnit.alternativa3d::_-mQ(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform);
|
||||
drawUnit.alternativa3d:: if(program.cCamera,object.alternativa3d::cameraToLocalTransform.d,object.alternativa3d::cameraToLocalTransform.h,object.alternativa3d::cameraToLocalTransform.l,1);
|
||||
for(var i:int = 0; i < lightsLength; )
|
||||
{
|
||||
light = lights[i];
|
||||
if(light is DirectionalLight)
|
||||
{
|
||||
transform = light.alternativa3d::_-cl;
|
||||
len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k));
|
||||
drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1);
|
||||
drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue);
|
||||
}
|
||||
else if(light is OmniLight)
|
||||
{
|
||||
omni = OmniLight(light);
|
||||
transform = light.alternativa3d::_-cl;
|
||||
rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i));
|
||||
rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j);
|
||||
rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k);
|
||||
rScale /= 3;
|
||||
drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l);
|
||||
drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale);
|
||||
drawUnit.alternativa3d::_-Ry(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
drawUnit.alternativa3d::_-Ry(program.cSurface,0,this.glossiness,this.§_-kj§,1);
|
||||
drawUnit.alternativa3d::_-Ry(program.cTiling,this.§_-jM§,this.§_-Sf§,0,0);
|
||||
drawUnit.alternativa3d::setTextureAt(program.sDiffuse,this.diffuse.alternativa3d::_texture);
|
||||
drawUnit.alternativa3d::setTextureAt(program.sColormap,this.colorMap.alternativa3d::_texture);
|
||||
drawUnit.alternativa3d::setTextureAt(program.sSurface,this.surfaceMap.alternativa3d::_texture);
|
||||
drawUnit.alternativa3d::setTextureAt(program.sBump,this.normalMap.alternativa3d::_texture);
|
||||
return drawUnit;
|
||||
}
|
||||
|
||||
private function §_-Ck§(object:§_-OX§) : FogProgram
|
||||
{
|
||||
var vertexLinker:§_-hR§ = new §_-hR§(Context3DProgramType.VERTEX);
|
||||
var fragmentLinker:§_-hR§ = new §_-hR§(Context3DProgramType.FRAGMENT);
|
||||
var positionVar:String = "aPosition";
|
||||
vertexLinker.§_-LU§(positionVar,§_-5§.ATTRIBUTE);
|
||||
if(object.alternativa3d::transformProcedure != null)
|
||||
{
|
||||
positionVar = alternativa3d::_-di(object.alternativa3d::transformProcedure,vertexLinker);
|
||||
}
|
||||
vertexLinker.§_-on§(alternativa3d::_projectProcedure);
|
||||
vertexLinker.§_-FS§(alternativa3d::_projectProcedure,positionVar);
|
||||
if(fogMode == SIMPLE)
|
||||
{
|
||||
vertexLinker.§_-on§(passSimpleFogConstProcedure);
|
||||
vertexLinker.§_-FS§(passSimpleFogConstProcedure,positionVar);
|
||||
fragmentLinker.§_-on§(outputWithSimpleFogProcedure);
|
||||
}
|
||||
else
|
||||
{
|
||||
vertexLinker.§_-LU§("projected");
|
||||
vertexLinker.§_-qd§(alternativa3d::_projectProcedure,"projected");
|
||||
vertexLinker.§_-on§(postPassAdvancedFogConstProcedure);
|
||||
vertexLinker.§_-FS§(postPassAdvancedFogConstProcedure,positionVar,"projected");
|
||||
fragmentLinker.§_-on§(outputWithAdvancedFogProcedure);
|
||||
}
|
||||
fragmentLinker.§_-NA§(vertexLinker);
|
||||
return new FogProgram(vertexLinker,fragmentLinker);
|
||||
}
|
||||
|
||||
private function §_-P8§(program:FogProgram, camera:§_-be§, object:§_-OX§, surface:§_-a2§, geometry:§_-gA§) : §_-QF§
|
||||
{
|
||||
var lm:§_-jw§ = null;
|
||||
var dist:Number = NaN;
|
||||
var cLocal:§_-jw§ = null;
|
||||
var halfW:Number = NaN;
|
||||
var leftX:Number = NaN;
|
||||
var leftY:Number = NaN;
|
||||
var rightX:Number = NaN;
|
||||
var rightY:Number = NaN;
|
||||
var angle:Number = NaN;
|
||||
var dx:Number = NaN;
|
||||
var dy:Number = NaN;
|
||||
var lens:Number = NaN;
|
||||
var uScale:Number = NaN;
|
||||
var uRight:Number = NaN;
|
||||
var bmd:BitmapData = null;
|
||||
var i:int = 0;
|
||||
var positionBuffer:VertexBuffer3D = geometry.alternativa3d::getVertexBuffer(§_-d6§.POSITION);
|
||||
var drawUnit:§_-QF§ = camera.alternativa3d::renderer.alternativa3d::_-2s(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program);
|
||||
drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[§_-d6§.POSITION],§_-d6§.alternativa3d::FORMATS[§_-d6§.POSITION]);
|
||||
object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera);
|
||||
drawUnit.alternativa3d::_-mQ(camera,program.cProjMatrix,object.alternativa3d::localToCameraTransform);
|
||||
if(fogMode == SIMPLE || fogMode == ADVANCED)
|
||||
{
|
||||
lm = object.alternativa3d::localToCameraTransform;
|
||||
dist = fogFar - fogNear;
|
||||
drawUnit.alternativa3d:: if(program.cFogSpace,lm.i / dist,lm.j / dist,lm.k / dist,(lm.l - fogNear) / dist);
|
||||
drawUnit.alternativa3d::_-Ry(program.cFogRange,fogMaxDensity,1,0,1 - fogMaxDensity);
|
||||
}
|
||||
if(fogMode == SIMPLE)
|
||||
{
|
||||
drawUnit.alternativa3d::_-Ry(program.cFogColor,fogColorR,fogColorG,fogColorB);
|
||||
}
|
||||
if(fogMode == ADVANCED)
|
||||
{
|
||||
if(fogTexture == null)
|
||||
{
|
||||
bmd = new BitmapData(32,1,false,16711680);
|
||||
for(i = 0; i < 32; i++)
|
||||
{
|
||||
bmd.setPixel(i,0,i / 32 * 255 << 16);
|
||||
}
|
||||
fogTexture = new §_-b1§(bmd);
|
||||
fogTexture.upload(camera.alternativa3d::context3D);
|
||||
}
|
||||
cLocal = camera.alternativa3d::localToGlobalTransform;
|
||||
halfW = camera.view.width / 2;
|
||||
leftX = -halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c;
|
||||
leftY = -halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g;
|
||||
rightX = halfW * cLocal.a + camera.alternativa3d::focalLength * cLocal.c;
|
||||
rightY = halfW * cLocal.e + camera.alternativa3d::focalLength * cLocal.g;
|
||||
angle = Math.atan2(leftY,leftX) - Math.PI / 2;
|
||||
if(angle < 0)
|
||||
{
|
||||
angle += Math.PI * 2;
|
||||
}
|
||||
dx = rightX - leftX;
|
||||
dy = rightY - leftY;
|
||||
lens = Number(Math.sqrt(dx * dx + dy * dy));
|
||||
leftX /= lens;
|
||||
leftY /= lens;
|
||||
rightX /= lens;
|
||||
rightY /= lens;
|
||||
uScale = Math.acos(leftX * rightX + leftY * rightY) / Math.PI / 2;
|
||||
uRight = angle / Math.PI / 2;
|
||||
drawUnit.alternativa3d::_-Ry(program.cFogConsts,0.5 * uScale,0.5 - uRight,0);
|
||||
drawUnit.alternativa3d::setTextureAt(program.sFogTexture,fogTexture.alternativa3d::_texture);
|
||||
}
|
||||
return drawUnit;
|
||||
}
|
||||
|
||||
override public function clone() : §_-b9§
|
||||
{
|
||||
var cloned:TankMaterial2 = new TankMaterial2(this.colorMap,this.diffuse,this.normalMap,this.surfaceMap);
|
||||
cloned.§_-kj§ = this.§_-kj§;
|
||||
cloned.glossiness = this.glossiness;
|
||||
return cloned;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-M8§.§_-hR§;
|
||||
import §_-Vh§.§_-RB§;
|
||||
|
||||
class ShadowOrAmbientProgram extends §_-RB§
|
||||
{
|
||||
public var aPosition:int;
|
||||
|
||||
public var aUV:int;
|
||||
|
||||
public var cProjMatrix:int;
|
||||
|
||||
public var cAmbient:int;
|
||||
|
||||
public var cTiling:int;
|
||||
|
||||
public var sDiffuse:int;
|
||||
|
||||
public var sColormap:int;
|
||||
|
||||
public var sSurface:int;
|
||||
|
||||
public var cShadow:int;
|
||||
|
||||
public function ShadowOrAmbientProgram(vertex:§_-hR§, fragment:§_-hR§)
|
||||
{
|
||||
super(vertex,fragment);
|
||||
this.aPosition = vertex.§_-Dj§("aPosition");
|
||||
this.aUV = vertex.§_-Dj§("aUV");
|
||||
this.cProjMatrix = vertex.§_-Dj§("cProjMatrix");
|
||||
this.cAmbient = fragment.§_-Dj§("cAmbient");
|
||||
this.cTiling = fragment.§_-Dj§("cTiling");
|
||||
this.sDiffuse = fragment.§_-Dj§("sDiffuse");
|
||||
this.sColormap = fragment.§_-Dj§("sColormap");
|
||||
this.sSurface = fragment.§_-Dj§("sSurface");
|
||||
this.cShadow = fragment.§_-Dj§("cShadow");
|
||||
}
|
||||
}
|
||||
|
||||
class LightingProgram extends §_-RB§
|
||||
{
|
||||
public var aPosition:int;
|
||||
|
||||
public var aUV:int;
|
||||
|
||||
public var cProjMatrix:int;
|
||||
|
||||
public var cCamera:int;
|
||||
|
||||
public var cSurface:int;
|
||||
|
||||
public var cTiling:int;
|
||||
|
||||
public var sDiffuse:int;
|
||||
|
||||
public var sColormap:int;
|
||||
|
||||
public var sSurface:int;
|
||||
|
||||
public var sBump:int;
|
||||
|
||||
public function LightingProgram(vertex:§_-hR§, fragment:§_-hR§)
|
||||
{
|
||||
super(vertex,fragment);
|
||||
this.aPosition = vertex.§_-Dj§("aPosition");
|
||||
this.aUV = vertex.§_-Dj§("aUV");
|
||||
this.cProjMatrix = vertex.§_-Dj§("cProjMatrix");
|
||||
this.cCamera = vertex.§_-Dj§("cCamera");
|
||||
this.cSurface = fragment.§_-Dj§("cSurface");
|
||||
this.cTiling = fragment.§_-Dj§("cTiling");
|
||||
this.sDiffuse = fragment.§_-Dj§("sDiffuse");
|
||||
this.sColormap = fragment.§_-Dj§("sColormap");
|
||||
this.sSurface = fragment.§_-Dj§("sSurface");
|
||||
this.sBump = fragment.§_-Dj§("sBump");
|
||||
}
|
||||
}
|
||||
|
||||
class FogProgram extends §_-RB§
|
||||
{
|
||||
public var aPosition:int;
|
||||
|
||||
public var cProjMatrix:int;
|
||||
|
||||
public var cFogSpace:int;
|
||||
|
||||
public var cFogRange:int;
|
||||
|
||||
public var cFogColor:int;
|
||||
|
||||
public var cFogConsts:int;
|
||||
|
||||
public var sFogTexture:int;
|
||||
|
||||
public function FogProgram(vertex:§_-hR§, fragment:§_-hR§)
|
||||
{
|
||||
super(vertex,fragment);
|
||||
this.aPosition = vertex.§_-Dj§("aPosition");
|
||||
this.cProjMatrix = vertex.§_-Dj§("cProjMatrix");
|
||||
this.cFogSpace = vertex.§_-Dj§("cFogSpace");
|
||||
this.cFogRange = fragment.§_-Dj§("cFogRange");
|
||||
this.cFogColor = fragment.§_-Dj§("cFogColor");
|
||||
this.cFogConsts = fragment.§_-Dj§("cFogConsts");
|
||||
this.sFogTexture = fragment.§_-Dj§("sFogTexture");
|
||||
}
|
||||
}
|
||||
@@ -1,232 +0,0 @@
|
||||
package §_-aF§
|
||||
{
|
||||
import §_-8D§.§_-FW§;
|
||||
import §_-8D§.§_-jw§;
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import flash.geom.Vector3D;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
public class §_-SG§
|
||||
{
|
||||
private static var randomNumbers:Vector.<Number>;
|
||||
|
||||
private static const randomNumbersCount:int = 1000;
|
||||
|
||||
private static const vector:Vector3D = new Vector3D();
|
||||
|
||||
public var name:String;
|
||||
|
||||
public var scale:Number = 1;
|
||||
|
||||
public var boundBox:§_-FW§;
|
||||
|
||||
alternativa3d var next:§_-SG§;
|
||||
|
||||
alternativa3d var §implements§:§_-SG§;
|
||||
|
||||
alternativa3d var system:§_-ja§;
|
||||
|
||||
alternativa3d var startTime:Number;
|
||||
|
||||
alternativa3d var lifeTime:Number = 1.7976931348623157e+308;
|
||||
|
||||
alternativa3d var particleList:Particle;
|
||||
|
||||
alternativa3d var aabb:§_-FW§;
|
||||
|
||||
alternativa3d var §_-M7§:Vector3D;
|
||||
|
||||
protected var §_-cF§:Vector3D;
|
||||
|
||||
protected var §_-gV§:Vector.<Number>;
|
||||
|
||||
protected var §_-lB§:Vector.<Vector3D>;
|
||||
|
||||
protected var §_-ib§:Vector.<Vector3D>;
|
||||
|
||||
protected var §_-Nz§:Vector.<Function>;
|
||||
|
||||
protected var §_-kf§:int = 0;
|
||||
|
||||
private var §_-TK§:int;
|
||||
|
||||
private var §_-hs§:int;
|
||||
|
||||
private var §_-G1§:Vector3D;
|
||||
|
||||
private var §_-Q2§:Vector3D;
|
||||
|
||||
public function §_-SG§()
|
||||
{
|
||||
var i:int = 0;
|
||||
this.alternativa3d::aabb = new §_-FW§();
|
||||
this.§_-gV§ = new Vector.<Number>();
|
||||
this.§_-lB§ = new Vector.<Vector3D>();
|
||||
this.§_-ib§ = new Vector.<Vector3D>();
|
||||
this.§_-Nz§ = new Vector.<Function>();
|
||||
this.§_-G1§ = new Vector3D(0,0,0);
|
||||
this.§_-Q2§ = new Vector3D(0,0,1);
|
||||
super();
|
||||
if(randomNumbers == null)
|
||||
{
|
||||
randomNumbers = new Vector.<Number>();
|
||||
for(i = 0; i < randomNumbersCount; randomNumbers[i] = Math.random(),i++)
|
||||
{
|
||||
}
|
||||
}
|
||||
this.§_-TK§ = Math.random() * randomNumbersCount;
|
||||
}
|
||||
|
||||
public function get position() : Vector3D
|
||||
{
|
||||
return this.§_-G1§.clone();
|
||||
}
|
||||
|
||||
public function set position(value:Vector3D) : void
|
||||
{
|
||||
this.§_-G1§.x = value.x;
|
||||
this.§_-G1§.y = value.y;
|
||||
this.§_-G1§.z = value.z;
|
||||
this.§_-G1§.w = value.w;
|
||||
if(this.alternativa3d::system != null)
|
||||
{
|
||||
this.alternativa3d::_-is(this.alternativa3d::system.alternativa3d::_-EV() - this.alternativa3d::startTime);
|
||||
}
|
||||
}
|
||||
|
||||
public function get direction() : Vector3D
|
||||
{
|
||||
return this.§_-Q2§.clone();
|
||||
}
|
||||
|
||||
public function set direction(value:Vector3D) : void
|
||||
{
|
||||
this.§_-Q2§.x = value.x;
|
||||
this.§_-Q2§.y = value.y;
|
||||
this.§_-Q2§.z = value.z;
|
||||
this.§_-Q2§.w = value.w;
|
||||
if(this.alternativa3d::system != null)
|
||||
{
|
||||
this.alternativa3d::_-Af(this.alternativa3d::system.alternativa3d::_-EV() - this.alternativa3d::startTime);
|
||||
}
|
||||
}
|
||||
|
||||
public function stop() : void
|
||||
{
|
||||
var time:Number = this.alternativa3d::system.alternativa3d::_-EV() - this.alternativa3d::startTime;
|
||||
for(var i:int = 0; i < this.§_-kf§; )
|
||||
{
|
||||
if(time < this.§_-gV§[i])
|
||||
{
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
this.§_-kf§ = i;
|
||||
}
|
||||
|
||||
protected function get §_-Ta§() : §_-ja§
|
||||
{
|
||||
return this.alternativa3d::system;
|
||||
}
|
||||
|
||||
protected function get §_-iq§() : §_-jw§
|
||||
{
|
||||
return this.alternativa3d::system.alternativa3d::cameraToLocalTransform;
|
||||
}
|
||||
|
||||
protected function random() : Number
|
||||
{
|
||||
var res:Number = randomNumbers[this.§_-hs§];
|
||||
++this.§_-hs§;
|
||||
if(this.§_-hs§ == randomNumbersCount)
|
||||
{
|
||||
this.§_-hs§ = 0;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
protected function §_-Le§(time:Number, script:Function) : void
|
||||
{
|
||||
this.§_-gV§[this.§_-kf§] = time;
|
||||
this.§_-lB§[this.§_-kf§] = new Vector3D();
|
||||
this.§_-ib§[this.§_-kf§] = new Vector3D();
|
||||
this.§_-Nz§[this.§_-kf§] = script;
|
||||
++this.§_-kf§;
|
||||
}
|
||||
|
||||
protected function §_-DM§(time:Number) : void
|
||||
{
|
||||
this.alternativa3d::lifeTime = time;
|
||||
}
|
||||
|
||||
alternativa3d function calculateAABB() : void
|
||||
{
|
||||
this.alternativa3d::aabb.minX = this.boundBox.minX * this.scale + this.§_-G1§.x;
|
||||
this.alternativa3d::aabb.minY = this.boundBox.minY * this.scale + this.§_-G1§.y;
|
||||
this.alternativa3d::aabb.minZ = this.boundBox.minZ * this.scale + this.§_-G1§.z;
|
||||
this.alternativa3d::aabb.maxX = this.boundBox.maxX * this.scale + this.§_-G1§.x;
|
||||
this.alternativa3d::aabb.maxY = this.boundBox.maxY * this.scale + this.§_-G1§.y;
|
||||
this.alternativa3d::aabb.maxZ = this.boundBox.maxZ * this.scale + this.§_-G1§.z;
|
||||
}
|
||||
|
||||
alternativa3d function §_-is§(time:Number) : void
|
||||
{
|
||||
var pos:Vector3D = null;
|
||||
for(var i:int = 0; i < this.§_-kf§; )
|
||||
{
|
||||
if(time <= this.§_-gV§[i])
|
||||
{
|
||||
pos = this.§_-lB§[i];
|
||||
pos.x = this.§_-G1§.x;
|
||||
pos.y = this.§_-G1§.y;
|
||||
pos.z = this.§_-G1§.z;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function §_-Af§(time:Number) : void
|
||||
{
|
||||
var dir:Vector3D = null;
|
||||
vector.x = this.§_-Q2§.x;
|
||||
vector.y = this.§_-Q2§.y;
|
||||
vector.z = this.§_-Q2§.z;
|
||||
vector.normalize();
|
||||
for(var i:int = 0; i < this.§_-kf§; )
|
||||
{
|
||||
if(time <= this.§_-gV§[i])
|
||||
{
|
||||
dir = this.§_-ib§[i];
|
||||
dir.x = vector.x;
|
||||
dir.y = vector.y;
|
||||
dir.z = vector.z;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function §_-Xj§(time:Number) : Boolean
|
||||
{
|
||||
var keyTime:Number = NaN;
|
||||
var script:Function = null;
|
||||
this.§_-hs§ = this.§_-TK§;
|
||||
for(var i:int = 0; i < this.§_-kf§; )
|
||||
{
|
||||
keyTime = this.§_-gV§[i];
|
||||
if(time < keyTime)
|
||||
{
|
||||
break;
|
||||
}
|
||||
this.alternativa3d::_-M7 = this.§_-lB§[i];
|
||||
this.§_-cF§ = this.§_-ib§[i];
|
||||
script = this.§_-Nz§[i];
|
||||
script.call(this,keyTime,time - keyTime);
|
||||
i++;
|
||||
}
|
||||
return i < this.§_-kf§ || this.alternativa3d::particleList != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,101 +0,0 @@
|
||||
package §_-aa§
|
||||
{
|
||||
import §_-cv§.§_-FR§;
|
||||
import §_-cv§.§_-NN§;
|
||||
import §_-cv§.§_-YU§;
|
||||
import flash.events.Event;
|
||||
import flash.media.Sound;
|
||||
import §return§.§_-Ui§;
|
||||
import §return§.§_-pj§;
|
||||
|
||||
public class §_-i0§ extends §_-FR§
|
||||
{
|
||||
private var sounds:Object = {};
|
||||
|
||||
private var §_-d5§:§_-Ui§;
|
||||
|
||||
public function §_-i0§(param1:§_-YU§)
|
||||
{
|
||||
super("Sounds library loader",param1);
|
||||
}
|
||||
|
||||
public function §_-lM§(param1:String) : Sound
|
||||
{
|
||||
return this.sounds[param1];
|
||||
}
|
||||
|
||||
public function §_-Od§(param1:String, param2:Sound) : void
|
||||
{
|
||||
this.sounds[param1] = param2;
|
||||
}
|
||||
|
||||
override public function run() : void
|
||||
{
|
||||
var _loc3_:XML = null;
|
||||
if(config.xml.sounds == null)
|
||||
{
|
||||
§_-3Z§();
|
||||
return;
|
||||
}
|
||||
var _loc1_:XML = config.xml.sounds[0];
|
||||
var _loc2_:String = §_-NN§.§_-KN§(_loc1_.@baseUrl);
|
||||
this.§_-d5§ = new §_-Ui§();
|
||||
for each(_loc3_ in _loc1_.sound)
|
||||
{
|
||||
this.§_-d5§.addTask(new SoundLoader(_loc3_.@id,_loc2_ + _loc3_.@file,this));
|
||||
}
|
||||
this.§_-d5§.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-fm§);
|
||||
this.§_-d5§.addEventListener(Event.COMPLETE,this.§_-Pw§);
|
||||
this.§_-d5§.run();
|
||||
}
|
||||
|
||||
private function §_-fm§(param1:§_-pj§) : void
|
||||
{
|
||||
dispatchEvent(new §_-pj§(§_-pj§.TASK_PROGRESS,1,this.§_-d5§.length));
|
||||
}
|
||||
|
||||
private function §_-Pw§(param1:Event) : void
|
||||
{
|
||||
this.§_-d5§ = null;
|
||||
§_-3Z§();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import flash.events.Event;
|
||||
import flash.events.EventDispatcher;
|
||||
import flash.media.Sound;
|
||||
import flash.net.URLRequest;
|
||||
import §return§.§_-h5§;
|
||||
|
||||
class SoundLoader extends §_-h5§
|
||||
{
|
||||
private var id:String;
|
||||
|
||||
private var url:String;
|
||||
|
||||
private var library:§_-i0§;
|
||||
|
||||
private var loader:Sound;
|
||||
|
||||
public function SoundLoader(param1:String, param2:String, param3:§_-i0§)
|
||||
{
|
||||
super();
|
||||
this.id = param1;
|
||||
this.url = param2;
|
||||
this.library = param3;
|
||||
}
|
||||
|
||||
override public function run() : void
|
||||
{
|
||||
this.loader = new Sound();
|
||||
this.loader.addEventListener(Event.COMPLETE,this.onLoadingComplete);
|
||||
this.loader.load(new URLRequest(this.url));
|
||||
}
|
||||
|
||||
private function onLoadingComplete(param1:Event) : void
|
||||
{
|
||||
this.library.§_-Od§(this.id,this.loader);
|
||||
§_-3Z§();
|
||||
}
|
||||
}
|
||||
@@ -1,175 +0,0 @@
|
||||
package §_-az§
|
||||
{
|
||||
import §_-Lt§.§_-Fv§;
|
||||
import §_-Lt§.§_-x§;
|
||||
import flash.utils.Dictionary;
|
||||
import flash.utils.describeType;
|
||||
import flash.utils.getDefinitionByName;
|
||||
|
||||
public class §_-1H§
|
||||
{
|
||||
private var §_-AF§:§_-Fv§ = new §_-Fv§();
|
||||
|
||||
private var §_-Ey§:TaskArray = new TaskArray();
|
||||
|
||||
private var §_-4z§:TaskArray = new TaskArray();
|
||||
|
||||
private var §_-TV§:Dictionary = new Dictionary();
|
||||
|
||||
public function §_-1H§()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function addTask(task:§_-ps§) : void
|
||||
{
|
||||
if(this.§_-AF§.contains(task))
|
||||
{
|
||||
throw new Error("Task is already active");
|
||||
}
|
||||
if(this.§_-Ey§.contains(task))
|
||||
{
|
||||
throw new Error("Task has been already scheduled for addition");
|
||||
}
|
||||
this.§_-Ey§.add(task);
|
||||
}
|
||||
|
||||
public function killTask(task:§_-ps§) : void
|
||||
{
|
||||
if(Boolean(this.§_-AF§.contains(task)) && !this.§_-4z§.contains(task))
|
||||
{
|
||||
this.§_-4z§.add(task);
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-h3§() : void
|
||||
{
|
||||
var task:§_-ps§ = null;
|
||||
this.§_-db§();
|
||||
var iterator:§_-x§ = this.§_-AF§.listIterator();
|
||||
while(iterator.hasNext())
|
||||
{
|
||||
task = §_-ps§(iterator.next());
|
||||
if(!task.§_-DX§)
|
||||
{
|
||||
task.run();
|
||||
}
|
||||
}
|
||||
this.§_-4g§();
|
||||
}
|
||||
|
||||
public function getTaskInterface(taskInterface:Class) : Object
|
||||
{
|
||||
return this.§_-TV§[taskInterface];
|
||||
}
|
||||
|
||||
public function §_-Ap§() : void
|
||||
{
|
||||
var task:§_-ps§ = null;
|
||||
var listIterator:§_-x§ = this.§_-AF§.listIterator();
|
||||
while(listIterator.hasNext())
|
||||
{
|
||||
task = §_-ps§(listIterator.next());
|
||||
this.killTask(task);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-db§() : void
|
||||
{
|
||||
var task:§_-ps§ = null;
|
||||
var taskInterfaces:Vector.<Class> = null;
|
||||
var taskInterface:Class = null;
|
||||
var activeTasksIterator:§_-x§ = null;
|
||||
var activeTask:§_-ps§ = null;
|
||||
for(var i:int = 0; i < this.§_-Ey§.numTasks; i++)
|
||||
{
|
||||
task = this.§_-Ey§.tasks[i];
|
||||
task.§_-Uw§ = this;
|
||||
task.start();
|
||||
taskInterfaces = this.§_-8q§(task);
|
||||
for each(taskInterface in taskInterfaces)
|
||||
{
|
||||
this.§_-TV§[taskInterface] = task;
|
||||
}
|
||||
activeTasksIterator = this.§_-AF§.listIterator();
|
||||
while(activeTasksIterator.hasNext())
|
||||
{
|
||||
activeTask = §_-ps§(activeTasksIterator.next());
|
||||
if(activeTask.priority > task.priority)
|
||||
{
|
||||
activeTasksIterator.§_-q9§();
|
||||
break;
|
||||
}
|
||||
}
|
||||
activeTasksIterator.add(task);
|
||||
}
|
||||
this.§_-Ey§.clear();
|
||||
}
|
||||
|
||||
private function §_-4g§() : void
|
||||
{
|
||||
var task:§_-ps§ = null;
|
||||
var taskInterfaces:Vector.<Class> = null;
|
||||
var taskInterface:Class = null;
|
||||
for(var i:int = 0; i < this.§_-4z§.numTasks; i++)
|
||||
{
|
||||
task = this.§_-4z§.tasks[i];
|
||||
this.§_-AF§.remove(task);
|
||||
task.stop();
|
||||
taskInterfaces = this.§_-8q§(task);
|
||||
for each(taskInterface in taskInterfaces)
|
||||
{
|
||||
delete this.§_-TV§[taskInterface];
|
||||
}
|
||||
task.§_-Uw§ = null;
|
||||
}
|
||||
this.§_-4z§.clear();
|
||||
}
|
||||
|
||||
private function §_-8q§(object:Object) : Vector.<Class>
|
||||
{
|
||||
var interfaceXML:XML = null;
|
||||
var interfaceClass:Object = null;
|
||||
var result:Vector.<Class> = new Vector.<Class>();
|
||||
var xml:XML = describeType(object);
|
||||
for each(interfaceXML in xml.implementsInterface)
|
||||
{
|
||||
interfaceClass = getDefinitionByName(interfaceXML.@type);
|
||||
result.push(interfaceClass);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class TaskArray
|
||||
{
|
||||
public var tasks:Vector.<§_-ps§> = new Vector.<§_-ps§>();
|
||||
|
||||
public var numTasks:int;
|
||||
|
||||
public function TaskArray()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function add(task:§_-ps§) : void
|
||||
{
|
||||
var _loc2_:* = this.numTasks++;
|
||||
this.tasks[_loc2_] = task;
|
||||
}
|
||||
|
||||
public function clear() : void
|
||||
{
|
||||
for(var i:int = 0; i < this.numTasks; i++)
|
||||
{
|
||||
this.tasks[i] = null;
|
||||
}
|
||||
this.numTasks = 0;
|
||||
}
|
||||
|
||||
public function contains(task:§_-ps§) : Boolean
|
||||
{
|
||||
return this.tasks.indexOf(task) >= 0;
|
||||
}
|
||||
}
|
||||
@@ -1,216 +0,0 @@
|
||||
package §_-az§
|
||||
{
|
||||
import §_-Fc§.§_-8a§;
|
||||
import §_-RQ§.§_-Q9§;
|
||||
import §_-V-§.§_-mw§;
|
||||
import §_-aM§.§_-Lm§;
|
||||
import §_-aM§.§_-Yf§;
|
||||
import §_-e6§.§_-1I§;
|
||||
import §_-j-§.§_-B7§;
|
||||
import §_-j-§.§_-Wd§;
|
||||
import §_-lS§.§_-h2§;
|
||||
import §_-nO§.§_-5B§;
|
||||
import §_-nO§.§_-Yk§;
|
||||
import flash.display.Stage;
|
||||
import §in §.§_-N9§;
|
||||
import §in §.§_-eF§;
|
||||
|
||||
public class §_-AG§
|
||||
{
|
||||
public static const TIME_SYSTEM_PRIORITY:int = 0;
|
||||
|
||||
public static const INPUT_SYSTEM_PRIORITY:int = 1000;
|
||||
|
||||
public static const EVENT_SYSTEM_PRIORITY:int = 2000;
|
||||
|
||||
public static const LOGIC_SYSTEM_1_PRIORITY:int = 3000;
|
||||
|
||||
public static const LOGIC_SYSTEM_2_PRIORITY:int = 3001;
|
||||
|
||||
public static const PHYSICS_SYSTEM_PRIORITY:int = 4000;
|
||||
|
||||
public static const RENDER_SYSTEM_PRIORITY:int = 5000;
|
||||
|
||||
public static const CLEANUP_SYSTEM_PRIORITY:int = 6000;
|
||||
|
||||
public const §_-PI§:§_-mw§ = new §_-mw§(20);
|
||||
|
||||
private var §_-We§:Stage;
|
||||
|
||||
private var §_-D9§:Object;
|
||||
|
||||
private var §_-IC§:§_-kM§ = new DummyLogger();
|
||||
|
||||
private var §_-Uw§:§_-1H§;
|
||||
|
||||
private var §_-f2§:§_-h2§;
|
||||
|
||||
private var inputSystem:§_-Yf§;
|
||||
|
||||
private var eventSystem:§_-Wd§;
|
||||
|
||||
private var logicSystem1:§_-Yk§;
|
||||
|
||||
private var logicSystem2:§_-Yk§;
|
||||
|
||||
private var physicsSystem:§_-8a§;
|
||||
|
||||
private var renderSystem:§_-1I§;
|
||||
|
||||
private var §_-0s§:§_-N9§;
|
||||
|
||||
private var §_-jZ§:Vector.<§_-gw§>;
|
||||
|
||||
private var §_-TA§:int;
|
||||
|
||||
private var §_-XC§:§_-Q9§;
|
||||
|
||||
public function §_-AG§(stage:Stage, options:Object)
|
||||
{
|
||||
super();
|
||||
this.§_-We§ = stage;
|
||||
this.§_-D9§ = options || {};
|
||||
this.§_-jZ§ = new Vector.<§_-gw§>();
|
||||
this.§_-XC§ = new §_-Q9§();
|
||||
this.§_-Uw§ = new §_-1H§();
|
||||
this.§_-f2§ = new §_-h2§(TIME_SYSTEM_PRIORITY);
|
||||
this.§_-Uw§.addTask(this.§_-f2§);
|
||||
this.inputSystem = new §_-Yf§(INPUT_SYSTEM_PRIORITY,stage);
|
||||
this.§_-Uw§.addTask(this.inputSystem);
|
||||
this.eventSystem = new §_-Wd§(EVENT_SYSTEM_PRIORITY);
|
||||
this.§_-Uw§.addTask(this.eventSystem);
|
||||
this.logicSystem1 = new §_-Yk§(LOGIC_SYSTEM_1_PRIORITY,this);
|
||||
this.§_-Uw§.addTask(this.logicSystem1);
|
||||
this.logicSystem2 = new §_-Yk§(LOGIC_SYSTEM_2_PRIORITY,this);
|
||||
this.§_-Uw§.addTask(this.logicSystem2);
|
||||
this.physicsSystem = new §_-8a§(PHYSICS_SYSTEM_PRIORITY,this.§_-XC§);
|
||||
this.§_-Uw§.addTask(this.physicsSystem);
|
||||
this.renderSystem = new §_-1I§(RENDER_SYSTEM_PRIORITY,stage);
|
||||
this.§_-Uw§.addTask(this.renderSystem);
|
||||
this.§_-0s§ = new §_-N9§(CLEANUP_SYSTEM_PRIORITY);
|
||||
this.§_-Uw§.addTask(this.§_-0s§);
|
||||
}
|
||||
|
||||
public function get logger() : §_-kM§
|
||||
{
|
||||
return this.§_-IC§;
|
||||
}
|
||||
|
||||
public function set logger(value:§_-kM§) : void
|
||||
{
|
||||
if(value == null)
|
||||
{
|
||||
throw new ArgumentError("Logger is null");
|
||||
}
|
||||
this.§_-IC§ = value;
|
||||
}
|
||||
|
||||
public function get stage() : Stage
|
||||
{
|
||||
return this.§_-We§;
|
||||
}
|
||||
|
||||
public function get options() : Object
|
||||
{
|
||||
return this.§_-D9§;
|
||||
}
|
||||
|
||||
public function §_-L§(command:§_-eF§) : void
|
||||
{
|
||||
this.§_-0s§.§_-Si§(command);
|
||||
}
|
||||
|
||||
public function §_-11§() : §_-Q9§
|
||||
{
|
||||
return this.§_-XC§;
|
||||
}
|
||||
|
||||
public function addTask(gameTask:§_-ps§) : void
|
||||
{
|
||||
this.§_-Uw§.addTask(gameTask);
|
||||
}
|
||||
|
||||
public function §_-oR§(entity:§_-gw§) : void
|
||||
{
|
||||
if(entity.index < 0)
|
||||
{
|
||||
entity.index = this.§_-TA§;
|
||||
var _loc2_:* = this.§_-TA§++;
|
||||
this.§_-jZ§[_loc2_] = entity;
|
||||
entity.addToGame(this);
|
||||
return;
|
||||
}
|
||||
throw new Error("Entity " + entity + " is already in game");
|
||||
}
|
||||
|
||||
public function §_-13§(entity:§_-gw§) : void
|
||||
{
|
||||
var index:int = int(entity.index);
|
||||
if(index < 0)
|
||||
{
|
||||
throw new Error("Entity " + entity + " is not in game");
|
||||
}
|
||||
var lastEntity:§_-gw§ = this.§_-jZ§[--this.§_-TA§];
|
||||
lastEntity.index = index;
|
||||
this.§_-jZ§[index] = lastEntity;
|
||||
this.§_-jZ§[this.§_-TA§] = null;
|
||||
entity.index = -1;
|
||||
entity.removeFromGame(this);
|
||||
}
|
||||
|
||||
public function §_-Ku§() : §_-Lm§
|
||||
{
|
||||
return this.inputSystem;
|
||||
}
|
||||
|
||||
public function §_-Ev§() : §_-B7§
|
||||
{
|
||||
return this.eventSystem;
|
||||
}
|
||||
|
||||
public function getLogicSystem1() : §_-5B§
|
||||
{
|
||||
return this.logicSystem1;
|
||||
}
|
||||
|
||||
public function getLogicSystem2() : §_-5B§
|
||||
{
|
||||
return this.logicSystem2;
|
||||
}
|
||||
|
||||
public function §_-m8§() : §_-8a§
|
||||
{
|
||||
return this.physicsSystem;
|
||||
}
|
||||
|
||||
public function §_-DZ§() : §_-1I§
|
||||
{
|
||||
return this.renderSystem;
|
||||
}
|
||||
|
||||
public function §_-Kf§() : void
|
||||
{
|
||||
this.§_-PI§.§_-Ay§();
|
||||
this.§_-Uw§.§_-h3§();
|
||||
this.§_-PI§.§_-BM§();
|
||||
}
|
||||
|
||||
public function §_-EC§() : void
|
||||
{
|
||||
this.§_-Uw§.§_-Ap§();
|
||||
this.§_-Uw§.§_-h3§();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class DummyLogger implements §_-kM§
|
||||
{
|
||||
public function DummyLogger()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function log(channel:String, text:String) : void
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
package §_-cv§
|
||||
{
|
||||
import §_-O5§.§_-Hk§;
|
||||
import §_-aa§.§_-cS§;
|
||||
import §_-aa§.§_-i0§;
|
||||
import flash.events.Event;
|
||||
import flash.events.EventDispatcher;
|
||||
import flash.utils.ByteArray;
|
||||
import §return§.§_-Hr§;
|
||||
import §return§.§_-Ui§;
|
||||
import §return§.§_-h5§;
|
||||
import §return§.§_-pj§;
|
||||
|
||||
[Event(name="complete",type="flash.events.Event")]
|
||||
public class §_-YU§ extends EventDispatcher
|
||||
{
|
||||
public var mapData:§_-Hk§;
|
||||
|
||||
public var §_-WX§:§_-Tv§;
|
||||
|
||||
public var tankParts:§_-Kz§;
|
||||
|
||||
public var soundsLibrary:§_-i0§;
|
||||
|
||||
public var §_-WG§:§_-o6§ = new §_-o6§();
|
||||
|
||||
private var §_-Qb§:XML;
|
||||
|
||||
private var §_-d5§:§_-Ui§;
|
||||
|
||||
private var preloader:Preloader;
|
||||
|
||||
private var §_-D9§:Object = {};
|
||||
|
||||
public function §_-YU§()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function load(param1:String, param2:Preloader) : void
|
||||
{
|
||||
this.preloader = param2;
|
||||
this.§_-d5§ = new §_-Ui§();
|
||||
var _loc3_:ConfigXMLLoader = new ConfigXMLLoader(param1,this);
|
||||
this.§_-d5§.addTask(_loc3_);
|
||||
_loc3_.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-Ax§);
|
||||
var _loc4_:§_-cS§ = new §_-cS§(this);
|
||||
this.§_-d5§.addTask(_loc4_);
|
||||
_loc4_.addEventListener(§_-pj§.TASK_PROGRESS,this.§_-Ax§);
|
||||
this.§_-WX§ = new §_-Tv§(this);
|
||||
this.§_-WX§.addEventListener(§_-pj§.TASK_PROGRESS,this.§_-Ax§);
|
||||
this.§_-d5§.addTask(this.§_-WX§);
|
||||
var _loc5_:§_-h5§ = this.§_-kp§();
|
||||
this.§_-d5§.addTask(_loc5_);
|
||||
_loc5_.addEventListener(§_-pj§.TASK_COMPLETE,this.§_-Ax§);
|
||||
this.tankParts = new §_-Kz§(this);
|
||||
this.tankParts.addEventListener(§_-pj§.TASK_PROGRESS,this.§_-Ax§);
|
||||
this.§_-d5§.addTask(this.tankParts);
|
||||
this.soundsLibrary = new §_-i0§(this);
|
||||
this.soundsLibrary.addEventListener(§_-pj§.TASK_PROGRESS,this.§_-Ax§);
|
||||
this.§_-d5§.addTask(this.soundsLibrary);
|
||||
this.§_-d5§.addEventListener(Event.COMPLETE,this.§_-Pw§);
|
||||
this.§_-d5§.run();
|
||||
}
|
||||
|
||||
private function §_-Ax§(param1:§_-pj§) : void
|
||||
{
|
||||
this.preloader.§_-fE§(param1.progress / param1.total * 0.1);
|
||||
}
|
||||
|
||||
public function §_-f§() : String
|
||||
{
|
||||
return this.xml.map.@skybox;
|
||||
}
|
||||
|
||||
public function get xml() : XML
|
||||
{
|
||||
return this.§_-Qb§;
|
||||
}
|
||||
|
||||
public function set xml(param1:XML) : void
|
||||
{
|
||||
this.§_-Qb§ = param1;
|
||||
this.static();
|
||||
}
|
||||
|
||||
public function get options() : Object
|
||||
{
|
||||
return this.§_-D9§;
|
||||
}
|
||||
|
||||
public function clear() : void
|
||||
{
|
||||
var _loc1_:* = undefined;
|
||||
for(_loc1_ in this.mapData.data)
|
||||
{
|
||||
delete this.mapData.data[_loc1_];
|
||||
}
|
||||
this.§_-Qb§ = null;
|
||||
this.mapData = null;
|
||||
}
|
||||
|
||||
private function §_-kp§() : §_-h5§
|
||||
{
|
||||
return new MapLoadTask(this,this.§_-SN§);
|
||||
}
|
||||
|
||||
private function §_-Pw§(param1:Event) : void
|
||||
{
|
||||
this.§_-d5§ = null;
|
||||
dispatchEvent(new Event(Event.COMPLETE));
|
||||
}
|
||||
|
||||
private function §_-SN§(param1:ByteArray) : void
|
||||
{
|
||||
var _loc2_:§_-Hr§ = new §_-Hr§(param1);
|
||||
this.mapData = new §_-Hk§(_loc2_.data);
|
||||
}
|
||||
|
||||
private function static() : void
|
||||
{
|
||||
var _loc1_:XML = null;
|
||||
for each(_loc1_ in this.§_-Qb§.kernelOptions.option)
|
||||
{
|
||||
this.§_-D9§[_loc1_.@name] = _loc1_.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import flash.events.Event;
|
||||
import flash.events.EventDispatcher;
|
||||
import flash.net.URLLoader;
|
||||
import flash.net.URLLoaderDataFormat;
|
||||
import flash.net.URLRequest;
|
||||
import flash.utils.ByteArray;
|
||||
import §return§.§_-h5§;
|
||||
|
||||
class ConfigXMLLoader extends §_-h5§
|
||||
{
|
||||
private var config:§_-YU§;
|
||||
|
||||
private var loader:URLLoader;
|
||||
|
||||
private var url:String;
|
||||
|
||||
public function ConfigXMLLoader(param1:String, param2:§_-YU§)
|
||||
{
|
||||
super();
|
||||
this.url = param1;
|
||||
this.config = param2;
|
||||
}
|
||||
|
||||
override public function run() : void
|
||||
{
|
||||
this.loader = new URLLoader();
|
||||
this.loader.addEventListener(Event.COMPLETE,this.onLoadingComplete);
|
||||
this.loader.load(new URLRequest(this.url));
|
||||
}
|
||||
|
||||
private function onLoadingComplete(param1:Event) : void
|
||||
{
|
||||
this.config.xml = XML(this.loader.data);
|
||||
this.loader = null;
|
||||
§_-3Z§();
|
||||
}
|
||||
}
|
||||
|
||||
class MapLoadTask extends §_-h5§
|
||||
{
|
||||
private var callback:Function;
|
||||
|
||||
private var config:§_-YU§;
|
||||
|
||||
private var loader:URLLoader;
|
||||
|
||||
public function MapLoadTask(param1:§_-YU§, param2:Function)
|
||||
{
|
||||
super();
|
||||
this.config = param1;
|
||||
this.callback = param2;
|
||||
}
|
||||
|
||||
override public function run() : void
|
||||
{
|
||||
this.loader = new URLLoader();
|
||||
this.loader.dataFormat = URLLoaderDataFormat.BINARY;
|
||||
this.loader.addEventListener(Event.COMPLETE,this.onLoadingComplete);
|
||||
this.loader.load(new URLRequest(this.config.xml.map.@url));
|
||||
}
|
||||
|
||||
private function onLoadingComplete(param1:Event) : void
|
||||
{
|
||||
this.callback.call(null,ByteArray(this.loader.data));
|
||||
this.loader = null;
|
||||
§_-3Z§();
|
||||
}
|
||||
}
|
||||
@@ -1,118 +0,0 @@
|
||||
package §_-fj§
|
||||
{
|
||||
import §_-Fc§.§_-8a§;
|
||||
import §_-az§.§_-AG§;
|
||||
import §_-fT§.§_-HM§;
|
||||
import §default§.native;
|
||||
|
||||
public class §_-1t§ extends §_-Cv§
|
||||
{
|
||||
private var §_-Cn§:ContactFilter;
|
||||
|
||||
public function §_-1t§(component:§_-cx§)
|
||||
{
|
||||
super(component);
|
||||
this.§_-Cn§ = new ContactFilter();
|
||||
}
|
||||
|
||||
override public function start(data:*) : void
|
||||
{
|
||||
var gameKernel:§_-AG§ = null;
|
||||
var physicsSystem:§_-8a§ = null;
|
||||
component.addToScene();
|
||||
component.setDetailedCollisionGroup(§_-HM§.TANK);
|
||||
component.setSuspensionCollisionMask(§_-HM§.STATIC);
|
||||
component.body.postCollisionFilter = this.§_-Cn§;
|
||||
var callback:native = native(data);
|
||||
if(callback != null)
|
||||
{
|
||||
gameKernel = component.gameKernel;
|
||||
this.§_-Cn§.initCallback(callback);
|
||||
gameKernel.getLogicSystem1().addLogicUnit(this.§_-Cn§);
|
||||
physicsSystem = gameKernel.§_-m8§();
|
||||
physicsSystem.addControllerAfter(this.§_-Cn§);
|
||||
physicsSystem.addControllerBefore(this.§_-Cn§);
|
||||
}
|
||||
}
|
||||
|
||||
override public function stop() : void
|
||||
{
|
||||
var gameKernel:§_-AG§ = null;
|
||||
var physicsSystem:§_-8a§ = null;
|
||||
component.body.postCollisionFilter = null;
|
||||
if(this.§_-Cn§.callback != null)
|
||||
{
|
||||
gameKernel = component.gameKernel;
|
||||
gameKernel.getLogicSystem1().removeLogicUnit(this.§_-Cn§);
|
||||
physicsSystem = gameKernel.§_-m8§();
|
||||
physicsSystem.removeControllerAfter(this.§_-Cn§);
|
||||
physicsSystem.removeControllerBefore(this.§_-Cn§);
|
||||
this.§_-Cn§.callback = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-1e§.§_-p9§;
|
||||
import §_-Fc§.§catch§;
|
||||
import §_-US§.§_-BV§;
|
||||
import §_-lS§.§_-h2§;
|
||||
import §_-nO§.§_-KI§;
|
||||
import §default§.native;
|
||||
import flash.utils.getTimer;
|
||||
|
||||
class ContactFilter implements §_-p9§, §catch§, §_-KI§
|
||||
{
|
||||
private static const MIN_TRANSPARENCY_DURATION:int = 3000;
|
||||
|
||||
public var callback:native;
|
||||
|
||||
private var numContacts:int;
|
||||
|
||||
private var canActivate:Boolean;
|
||||
|
||||
private var startTime:int;
|
||||
|
||||
public function ContactFilter()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function initCallback(callback:native) : void
|
||||
{
|
||||
this.canActivate = false;
|
||||
this.startTime = getTimer();
|
||||
this.callback = callback;
|
||||
}
|
||||
|
||||
public function acceptBodiesCollision(body1:§_-BV§, body2:§_-BV§) : Boolean
|
||||
{
|
||||
++this.numContacts;
|
||||
return false;
|
||||
}
|
||||
|
||||
public function updateBeforeSimulation(physicsStep:int) : void
|
||||
{
|
||||
this.numContacts = 0;
|
||||
}
|
||||
|
||||
public function updateAfterSimulation(physicsStep:int) : void
|
||||
{
|
||||
if(Boolean(this.canActivate) && this.numContacts == 0)
|
||||
{
|
||||
this.callback.§_-PH§();
|
||||
}
|
||||
}
|
||||
|
||||
public function interpolate(interpolationCoeff:Number) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function runLogic() : void
|
||||
{
|
||||
if(§_-h2§.time - this.startTime > MIN_TRANSPARENCY_DURATION)
|
||||
{
|
||||
this.canActivate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,688 +0,0 @@
|
||||
package §_-fj§
|
||||
{
|
||||
import §_-1e§.§_-Nh§;
|
||||
import §_-78§.§_-GH§;
|
||||
import §_-78§.§_-M2§;
|
||||
import §_-7A§.§_-3e§;
|
||||
import §_-7A§.§_-Is§;
|
||||
import §_-7A§.§_-U-§;
|
||||
import §_-Fc§.§_-8a§;
|
||||
import §_-Fc§.§catch§;
|
||||
import §_-KA§.§_-FW§;
|
||||
import §_-MU§.§_-5-§;
|
||||
import §_-US§.§_-BV§;
|
||||
import §_-US§.§_-DB§;
|
||||
import §_-US§.§_-kG§;
|
||||
import §_-Uy§.§_-oP§;
|
||||
import §_-az§.§_-2J§;
|
||||
import §_-az§.§_-AG§;
|
||||
import §_-az§.§_-Ss§;
|
||||
import §_-fT§.§_-HM§;
|
||||
import §_-fT§.§_-WY§;
|
||||
import §_-fT§.§_-YY§;
|
||||
import §_-fT§.§_-Zm§;
|
||||
import §_-lS§.§_-h2§;
|
||||
import §_-nl§.Matrix3;
|
||||
import §_-nl§.Matrix4;
|
||||
import §_-nl§.§_-Ok§;
|
||||
import §_-nl§.§_-bj§;
|
||||
import §_-pe§.§_-m3§;
|
||||
import §default§.§_-BH§;
|
||||
import §default§.§_-dT§;
|
||||
import §default§.§_-kU§;
|
||||
|
||||
public class §_-cx§ extends §_-2J§ implements §catch§, §_-Is§, §_-BH§
|
||||
{
|
||||
private static var lastId:int;
|
||||
|
||||
private static const RAY_OFFSET:Number = 5;
|
||||
|
||||
private static var _v:§_-bj§ = new §_-bj§();
|
||||
|
||||
public var gameKernel:§_-AG§;
|
||||
|
||||
public var body:§_-BV§;
|
||||
|
||||
public var §_-Ei§:§_-nL§;
|
||||
|
||||
public var §_-iA§:§_-nL§;
|
||||
|
||||
public var maxSpeed:Number = 0;
|
||||
|
||||
private var §_-fL§:ValueSmoother = new ValueSmoother(100,1000,0,0);
|
||||
|
||||
public var maxTurnSpeed:Number = 0;
|
||||
|
||||
private var §_-dr§:ValueSmoother = new ValueSmoother(0.3,10,0,0);
|
||||
|
||||
private var §_-mt§:Number = 0;
|
||||
|
||||
private var §_-JJ§:Number = 0;
|
||||
|
||||
private var §_-Tb§:Boolean;
|
||||
|
||||
private var §_-mq§:Boolean;
|
||||
|
||||
private var §_-DC§:Vector.<§_-Nh§>;
|
||||
|
||||
public var §_-i1§:Vector.<§_-Nh§>;
|
||||
|
||||
public var §_-4Y§:Vector.<§_-Nh§>;
|
||||
|
||||
public var §_-bi§:§_-bj§ = new §_-bj§();
|
||||
|
||||
public var §_-UQ§:§_-Ok§ = new §_-Ok§();
|
||||
|
||||
public var §_-YH§:Matrix4 = new Matrix4();
|
||||
|
||||
public var §_-CF§:§_-8C§ = new §_-8C§();
|
||||
|
||||
public var moveDirection:int;
|
||||
|
||||
public var turnDirection:int;
|
||||
|
||||
private var hull:§_-dT§;
|
||||
|
||||
private var §_-Rg§:§_-YY§;
|
||||
|
||||
private var §_-z§:§_-M2§;
|
||||
|
||||
private var §case §:Boolean;
|
||||
|
||||
private var turret:§_-3e§;
|
||||
|
||||
private var §_-CG§:Vector.<§_-bj§>;
|
||||
|
||||
private var mass:Number = 1;
|
||||
|
||||
private var power:Number = 0;
|
||||
|
||||
private var reverseBackTurn:Boolean;
|
||||
|
||||
public function §_-cx§(hull:§_-dT§, mass:Number, power:Number)
|
||||
{
|
||||
super();
|
||||
this.mass = mass;
|
||||
this.power = power;
|
||||
this.§_-CG§ = new Vector.<§_-bj§>();
|
||||
this.body = new §_-BV§(1,Matrix3.IDENTITY);
|
||||
this.body.id = lastId++;
|
||||
this.§_-DC§ = new Vector.<§_-Nh§>();
|
||||
this.§_-4Y§ = new Vector.<§_-Nh§>();
|
||||
this.§_-i1§ = new Vector.<§_-Nh§>();
|
||||
this.§_-Rg§ = new §_-YY§(this.body,this.§_-i1§,this.§_-4Y§);
|
||||
this.§_-Uj§(hull);
|
||||
}
|
||||
|
||||
public function §_-P0§() : Vector.<§_-bj§>
|
||||
{
|
||||
return this.§_-CG§;
|
||||
}
|
||||
|
||||
public function getBody() : §_-BV§
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
|
||||
public function §_-Ln§(wheelName:String) : Number
|
||||
{
|
||||
var lastHitLength:Number = this.§_-Ei§.§_-fG§(wheelName,this.§_-CF§.rayLength);
|
||||
if(lastHitLength < 0)
|
||||
{
|
||||
lastHitLength = this.§_-iA§.§_-fG§(wheelName,this.§_-CF§.rayLength);
|
||||
}
|
||||
if(lastHitLength < 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return this.§_-CF§.§_-Fw§ - lastHitLength;
|
||||
}
|
||||
|
||||
public function §_-Ra§() : Number
|
||||
{
|
||||
return this.§_-Ei§.§_-gt§;
|
||||
}
|
||||
|
||||
public function §_-8p§() : Number
|
||||
{
|
||||
return this.§_-iA§.§_-gt§;
|
||||
}
|
||||
|
||||
public function §_-Uj§(hull:§_-dT§) : void
|
||||
{
|
||||
if(hull == null)
|
||||
{
|
||||
throw new ArgumentError("Parameter hull is null");
|
||||
}
|
||||
if(this.hull == hull)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.hull = hull;
|
||||
this.§_-21§(hull.§_-AE§,this.§_-DC§,§_-HM§.TANK,§_-HM§.TANK | §_-HM§.STATIC);
|
||||
this.§_-21§(hull.§_-KR§,this.§_-i1§,§_-HM§.TANK,§_-HM§.TANK);
|
||||
if(this.turret != null)
|
||||
{
|
||||
this.turret.setTurretMountPoint(hull.§_-Rj§);
|
||||
}
|
||||
this.§_-I3§();
|
||||
this.§_-Y2§();
|
||||
var rayZ:Number = this.§_-EQ§();
|
||||
this.setSuspensionCollisionMask(§_-HM§.TANK | §_-HM§.STATIC);
|
||||
this.§_-CF§.rayLength = 75;
|
||||
this.§_-CF§.§_-Fw§ = rayZ - hull.§_-Sh§.z;
|
||||
this.§_-CF§.§_-WZ§ = 1000;
|
||||
this.body.material.§_-J1§ = 0.1;
|
||||
this.setChassisControls(this.moveDirection,this.turnDirection,true);
|
||||
var bb:§_-FW§ = new §_-FW§();
|
||||
this.calculateBoundBox(bb);
|
||||
this.§_-JA§(bb);
|
||||
}
|
||||
|
||||
public function §_-Gu§(value:Number, immediate:Boolean) : void
|
||||
{
|
||||
if(immediate)
|
||||
{
|
||||
this.maxTurnSpeed = value;
|
||||
this.§_-dr§.reset(value);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-dr§.targetValue = value;
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-la§(value:Number, immediate:Boolean) : void
|
||||
{
|
||||
if(immediate)
|
||||
{
|
||||
this.maxSpeed = value;
|
||||
this.§_-fL§.reset(value);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-fL§.targetValue = value;
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-EQ§() : Number
|
||||
{
|
||||
var matrix:Matrix4 = new Matrix4();
|
||||
matrix.§_-Vi§(this.hull.§_-Sh§);
|
||||
this.§_-Ei§ = new §_-nL§(this.body,matrix,this.hull.§_-EY§);
|
||||
this.§_-iA§ = new §_-nL§(this.body,matrix,this.hull.§_-M4§);
|
||||
return this.§_-Ei§.rays[0].getRelativeZ();
|
||||
}
|
||||
|
||||
private function §_-Y2§() : void
|
||||
{
|
||||
var dimensions:§_-bj§ = null;
|
||||
var xx:Number = NaN;
|
||||
var yy:Number = NaN;
|
||||
var zz:Number = NaN;
|
||||
if(this.mass == Infinity)
|
||||
{
|
||||
this.body.invMass = 0;
|
||||
this.body.invInertia.copy(Matrix3.ZERO);
|
||||
}
|
||||
else
|
||||
{
|
||||
dimensions = this.hull.§_-eh§.hs.clone();
|
||||
dimensions.scale(2);
|
||||
this.body.invMass = 1 / this.mass;
|
||||
xx = dimensions.x * dimensions.x;
|
||||
yy = dimensions.y * dimensions.y;
|
||||
zz = dimensions.z * dimensions.z;
|
||||
this.body.invInertia.a = 12 * this.body.invMass / (yy + zz);
|
||||
this.body.invInertia.f = 12 * this.body.invMass / (zz + xx);
|
||||
this.body.invInertia.k = 12 * this.body.invMass / (xx + yy);
|
||||
}
|
||||
}
|
||||
|
||||
private function calculateBoundBox(boundBox:§_-FW§) : void
|
||||
{
|
||||
var collisionPrimitive:§_-Nh§ = null;
|
||||
var primitiveTransform:Matrix4 = null;
|
||||
boundBox.§_-GT§();
|
||||
for each(collisionPrimitive in this.§_-DC§)
|
||||
{
|
||||
primitiveTransform = collisionPrimitive.transform;
|
||||
collisionPrimitive.transform = collisionPrimitive.localTransform || Matrix4.IDENTITY;
|
||||
boundBox.§_-EH§(collisionPrimitive.calculateAABB());
|
||||
collisionPrimitive.transform = primitiveTransform;
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-JA§(boundBox:§_-FW§) : void
|
||||
{
|
||||
var z:int = (boundBox.maxZ - boundBox.minZ) / 2;
|
||||
this.§_-Ud§(0,boundBox.maxX,boundBox.maxY,z);
|
||||
this.§_-Ud§(1,boundBox.minX,boundBox.maxY,z);
|
||||
this.§_-Ud§(2,boundBox.minX,boundBox.minY,z);
|
||||
this.§_-Ud§(3,boundBox.maxX,boundBox.minY,z);
|
||||
}
|
||||
|
||||
private function §_-Ud§(index:int, x:Number, y:Number, z:Number) : void
|
||||
{
|
||||
var point:§_-bj§ = null;
|
||||
var clientLog:§_-5-§ = null;
|
||||
clientLog = §_-5-§(§_-oP§.§_-nQ§().§_-N6§(§_-5-§));
|
||||
clientLog.log("tank","LegacyTrackedChassisComponent::setBoundPoint() point %1: %2, %3, %4",index,x.toFixed(2),y.toFixed(2),z.toFixed(2));
|
||||
if(index < this.§_-CG§.length)
|
||||
{
|
||||
point = this.§_-CG§[index];
|
||||
}
|
||||
if(point == null)
|
||||
{
|
||||
point = new §_-bj§();
|
||||
this.§_-CG§[index] = point;
|
||||
}
|
||||
point.reset(x,y,z);
|
||||
}
|
||||
|
||||
public function §_-I3§() : void
|
||||
{
|
||||
var collisionPrimitive:§_-Nh§ = null;
|
||||
var turretPrimitives:Vector.<§_-Nh§> = null;
|
||||
if(this.body.collisionPrimitives != null)
|
||||
{
|
||||
this.body.collisionPrimitives.clear();
|
||||
}
|
||||
this.§_-y§(this.§_-DC§);
|
||||
this.§_-y§(this.§_-i1§);
|
||||
this.§_-4Y§.length = 0;
|
||||
for each(collisionPrimitive in this.§_-DC§)
|
||||
{
|
||||
this.§_-4Y§.push(collisionPrimitive);
|
||||
}
|
||||
if(this.turret != null)
|
||||
{
|
||||
turretPrimitives = this.turret.getTurretPrimitives();
|
||||
this.§_-y§(turretPrimitives);
|
||||
for each(collisionPrimitive in turretPrimitives)
|
||||
{
|
||||
this.§_-4Y§.push(collisionPrimitive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-JK§(velocity:§_-bj§) : void
|
||||
{
|
||||
this.body.§_-8g§(velocity);
|
||||
}
|
||||
|
||||
public function §_-VU§(velocity:§_-bj§) : void
|
||||
{
|
||||
this.body.§_-6F§(velocity);
|
||||
}
|
||||
|
||||
public function §_-LV§(orientation:§_-Ok§) : void
|
||||
{
|
||||
this.body.§_-LV§(orientation);
|
||||
}
|
||||
|
||||
public function §_-oa§(x:Number, y:Number, z:Number) : void
|
||||
{
|
||||
this.body.§_-oa§(x,y,z);
|
||||
}
|
||||
|
||||
public function §_-83§(w:Number, x:Number, y:Number, z:Number) : void
|
||||
{
|
||||
this.body.§_-83§(w,x,y,z);
|
||||
}
|
||||
|
||||
public function §_-C3§(x:Number, y:Number, z:Number) : void
|
||||
{
|
||||
var w:Number = 1 - x * x - y * y - z * z;
|
||||
this.body.§_-83§(w < 0 ? 0 : Number(Math.sqrt(w)),x,y,z);
|
||||
}
|
||||
|
||||
public function setLinearVelocityXYZ(x:Number, y:Number, z:Number) : void
|
||||
{
|
||||
this.body.§_-7q§(x,y,z);
|
||||
}
|
||||
|
||||
public function setAngularVelocityXYZ(x:Number, y:Number, z:Number) : void
|
||||
{
|
||||
this.body.§_-U4§(x,y,z);
|
||||
}
|
||||
|
||||
public function §_-Vi§(position:§_-bj§) : void
|
||||
{
|
||||
this.body.§_-Vi§(position);
|
||||
}
|
||||
|
||||
public function §_-eS§() : void
|
||||
{
|
||||
this.body.§use§();
|
||||
}
|
||||
|
||||
private function §_-Er§(throttleLeft:Number, throttleRight:Number) : void
|
||||
{
|
||||
this.§_-mt§ = throttleLeft;
|
||||
this.§_-JJ§ = throttleRight;
|
||||
}
|
||||
|
||||
private function § get§(lb:Boolean, rb:Boolean) : void
|
||||
{
|
||||
this.§_-Tb§ = lb;
|
||||
this.§_-mq§ = rb;
|
||||
}
|
||||
|
||||
public function setChassisControls(moveDirection:int, turnDirection:int, reverseBackTurn:Boolean, force:Boolean = false) : Boolean
|
||||
{
|
||||
var throttle:Number = NaN;
|
||||
var throttleLeft:Number = NaN;
|
||||
var throttleRight:Number = NaN;
|
||||
var k:Number = NaN;
|
||||
turnDirection = -turnDirection;
|
||||
if(force || this.moveDirection != moveDirection || this.turnDirection != turnDirection)
|
||||
{
|
||||
this.moveDirection = moveDirection;
|
||||
this.turnDirection = turnDirection;
|
||||
this.reverseBackTurn = reverseBackTurn;
|
||||
throttle = this.power;
|
||||
throttleLeft = moveDirection * throttle;
|
||||
throttleRight = moveDirection * throttle;
|
||||
if(moveDirection == 0)
|
||||
{
|
||||
this.§ get§(false,false);
|
||||
k = 0.8;
|
||||
throttleLeft -= turnDirection * throttle * k;
|
||||
throttleRight += turnDirection * throttle * k;
|
||||
}
|
||||
else
|
||||
{
|
||||
k = 0.4;
|
||||
if(moveDirection == 1)
|
||||
{
|
||||
this.§ get§(turnDirection == 1,turnDirection == -1);
|
||||
if(turnDirection == 1)
|
||||
{
|
||||
throttleLeft -= throttle * k;
|
||||
}
|
||||
if(turnDirection == -1)
|
||||
{
|
||||
throttleRight -= throttle * k;
|
||||
}
|
||||
}
|
||||
else if(reverseBackTurn)
|
||||
{
|
||||
this.§ get§(turnDirection == -1,turnDirection == 1);
|
||||
if(turnDirection == -1)
|
||||
{
|
||||
throttleLeft += throttle * k;
|
||||
}
|
||||
if(turnDirection == 1)
|
||||
{
|
||||
throttleRight += throttle * k;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§ get§(turnDirection == 1,turnDirection == -1);
|
||||
if(turnDirection == 1)
|
||||
{
|
||||
throttleLeft += throttle * k;
|
||||
}
|
||||
if(turnDirection == -1)
|
||||
{
|
||||
throttleRight += throttle * k;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.§_-Er§(throttleLeft,throttleRight);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
override public function addToGame(gameKernel:§_-AG§) : void
|
||||
{
|
||||
this.gameKernel = gameKernel;
|
||||
}
|
||||
|
||||
override public function removeFromGame(gameKernel:§_-AG§) : void
|
||||
{
|
||||
this.§_-z§.§_-Ah§.stop();
|
||||
this.removeFromScene();
|
||||
gameKernel = null;
|
||||
}
|
||||
|
||||
override public function initComponent() : void
|
||||
{
|
||||
§_-U-§(entity.getComponentStrict(§_-U-§)).§_-Ea§(this);
|
||||
this.§_-I3§();
|
||||
this.§_-z§ = new §_-M2§();
|
||||
var respawnState:§_-Gg§ = new §_-Gg§(this);
|
||||
this.§_-z§.§_-W§(entity,§_-kU§.SET_RESPAWN_STATE,respawnState);
|
||||
this.§_-z§.§_-W§(entity,§_-kU§.SET_ACTIVATING_STATE,new §_-1t§(this));
|
||||
this.§_-z§.§_-W§(entity,§_-kU§.SET_ACTIVE_STATE,new §_-Wz§(this));
|
||||
this.§_-z§.§_-W§(entity,§_-kU§.SET_DEAD_STATE,new §_-0N§(this));
|
||||
this.§_-z§.§_-Ah§ = §_-GH§.INSTANCE;
|
||||
entity.addEventHandler(§_-Ss§.BATTLE_FINISHED,this.§_-7L§);
|
||||
}
|
||||
|
||||
public function §_-pB§(point:§_-bj§) : void
|
||||
{
|
||||
point.copy(this.hull.§_-EN§);
|
||||
}
|
||||
|
||||
public function §_-Cd§() : Matrix4
|
||||
{
|
||||
return this.§_-YH§;
|
||||
}
|
||||
|
||||
public function setTurret(turret:§_-3e§) : void
|
||||
{
|
||||
this.turret = turret;
|
||||
if(turret != null)
|
||||
{
|
||||
this.§_-I3§();
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-Cj§(point:§_-bj§) : void
|
||||
{
|
||||
point.copy(this.hull.§_-Rj§);
|
||||
}
|
||||
|
||||
public function updateBeforeSimulation(physicsStep:int) : void
|
||||
{
|
||||
var d:Number = NaN;
|
||||
var limit:Number = NaN;
|
||||
var dt:Number = Number(§_-h2§.timeDeltaSeconds);
|
||||
if(this.maxSpeed != this.§_-fL§.targetValue)
|
||||
{
|
||||
this.maxSpeed = this.§_-fL§.update(dt);
|
||||
}
|
||||
if(this.maxTurnSpeed != this.§_-dr§.targetValue)
|
||||
{
|
||||
this.maxTurnSpeed = this.§_-dr§.update(dt);
|
||||
}
|
||||
var slipTerm:int = this.§_-mt§ > this.§_-JJ§ ? -1 : (this.§_-mt§ < this.§_-JJ§ ? 1 : 0);
|
||||
var world:§_-DB§ = this.body.scene;
|
||||
var weight:Number = this.mass * world.§_-MX§.length();
|
||||
var k:Number = this.§_-mt§ != this.§_-JJ§ && !(this.§_-Tb§ || this.§_-mq§) && this.body.state.rotation.length() > this.maxTurnSpeed ? 0.1 : 1;
|
||||
this.§_-Ei§.§_-HQ§(dt,k * this.§_-mt§,this.maxSpeed,slipTerm,weight,this.§_-CF§,this.§_-Tb§);
|
||||
this.§_-iA§.§_-HQ§(dt,k * this.§_-JJ§,this.maxSpeed,slipTerm,weight,this.§_-CF§,this.§_-mq§);
|
||||
var baseMatrix:Matrix3 = this.body.baseMatrix;
|
||||
if(this.§_-iA§.§_-Ca§ >= this.§_-iA§.numRays >> 1 || this.§_-Ei§.§_-Ca§ >= this.§_-Ei§.numRays >> 1)
|
||||
{
|
||||
d = world.§_-MX§.x * baseMatrix.c + world.§_-MX§.y * baseMatrix.g + world.§_-MX§.z * baseMatrix.k;
|
||||
limit = Math.SQRT1_2 * world.§_-MX§.length();
|
||||
if(d < -limit || d > limit)
|
||||
{
|
||||
_v.x = (baseMatrix.c * d - world.§_-MX§.x) * this.mass;
|
||||
_v.y = (baseMatrix.g * d - world.§_-MX§.y) * this.mass;
|
||||
_v.z = (baseMatrix.k * d - world.§_-MX§.z) * this.mass;
|
||||
this.body.§_-Qy§(_v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function updateAfterSimulation(physicsStep:int) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function interpolate(interpolationCoeff:Number) : void
|
||||
{
|
||||
this.body.interpolate(interpolationCoeff,this.§_-bi§,this.§_-UQ§);
|
||||
this.§_-UQ§.normalize();
|
||||
this.§_-UQ§.toMatrix4(this.§_-YH§);
|
||||
this.§_-YH§.§_-Vi§(this.§_-bi§);
|
||||
}
|
||||
|
||||
public function §_-5l§(mask:int) : void
|
||||
{
|
||||
for(var i:int = 0; i < this.§_-i1§.length; i++)
|
||||
{
|
||||
this.§_-i1§[i].collisionMask = mask;
|
||||
}
|
||||
}
|
||||
|
||||
public function setDetailedCollisionGroup(collisionGroup:int) : void
|
||||
{
|
||||
var collisionPrimitive:§_-Nh§ = null;
|
||||
for each(collisionPrimitive in this.§_-DC§)
|
||||
{
|
||||
collisionPrimitive.collisionGroup = collisionGroup;
|
||||
}
|
||||
if(this.turret != null)
|
||||
{
|
||||
for each(collisionPrimitive in this.turret.getTurretPrimitives())
|
||||
{
|
||||
collisionPrimitive.collisionGroup = collisionGroup;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function setSuspensionCollisionMask(collisionMask:int) : void
|
||||
{
|
||||
this.§_-Ei§.collisionMask = collisionMask;
|
||||
this.§_-iA§.collisionMask = collisionMask;
|
||||
}
|
||||
|
||||
public function addToScene() : void
|
||||
{
|
||||
var physicsSystem:§_-8a§ = null;
|
||||
var physicsScene:§_-DB§ = null;
|
||||
var collisionDetector:§_-Zm§ = null;
|
||||
if(!this.§case §)
|
||||
{
|
||||
physicsSystem = this.gameKernel.§_-m8§();
|
||||
physicsScene = physicsSystem.§_-d-§();
|
||||
collisionDetector = §_-Zm§(physicsScene.collisionDetector);
|
||||
physicsScene.§_-D8§(this.body);
|
||||
collisionDetector.§_-pN§(this.§_-Rg§);
|
||||
physicsSystem.addControllerBefore(this);
|
||||
this.§case § = true;
|
||||
}
|
||||
}
|
||||
|
||||
public function removeFromScene() : void
|
||||
{
|
||||
var physicsSystem:§_-8a§ = null;
|
||||
var physicsScene:§_-DB§ = null;
|
||||
var collisionDetector:§_-Zm§ = null;
|
||||
if(this.§case §)
|
||||
{
|
||||
physicsSystem = this.gameKernel.§_-m8§();
|
||||
physicsScene = physicsSystem.§_-d-§();
|
||||
collisionDetector = §_-Zm§(physicsScene.collisionDetector);
|
||||
physicsScene.§_-2x§(this.body);
|
||||
collisionDetector.§_-qP§(this.§_-Rg§);
|
||||
physicsSystem.removeControllerBefore(this);
|
||||
this.§case § = false;
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-Nr§(value:Number) : void
|
||||
{
|
||||
if(value <= 0)
|
||||
{
|
||||
throw new ArgumentError("Mass must have a positive value");
|
||||
}
|
||||
this.body.invMass = 1 / value;
|
||||
if(this.hull != null)
|
||||
{
|
||||
§_-kG§.§_-Il§(value,this.hull.§_-eh§.hs,this.body.invInertia);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-21§(geometryData:Vector.<§_-WY§>, primitives:Vector.<§_-Nh§>, collisionGroup:int, collisionMask:int) : void
|
||||
{
|
||||
var boxData:§_-WY§ = null;
|
||||
var primitive:§_-m3§ = null;
|
||||
primitives.length = 0;
|
||||
for each(boxData in geometryData)
|
||||
{
|
||||
primitive = new §_-m3§(boxData.hs,collisionGroup,collisionMask);
|
||||
primitive.localTransform = boxData.matrix.clone();
|
||||
primitive.body = this.body;
|
||||
primitives.push(primitive);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-y§(primitives:Vector.<§_-Nh§>) : void
|
||||
{
|
||||
var collisionPrimitive:§_-Nh§ = null;
|
||||
for each(collisionPrimitive in primitives)
|
||||
{
|
||||
this.body.§_-jH§(collisionPrimitive,collisionPrimitive.localTransform);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-7L§(gameType:String, gameData:*) : void
|
||||
{
|
||||
this.setChassisControls(0,0,false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class ValueSmoother
|
||||
{
|
||||
public var currentValue:Number;
|
||||
|
||||
public var targetValue:Number;
|
||||
|
||||
public var smoothingSpeedUp:Number;
|
||||
|
||||
public var smoothingSpeedDown:Number;
|
||||
|
||||
public function ValueSmoother(smoothingSpeedUp:Number, smoothingSpeedDown:Number, targetValue:Number, currentValue:Number)
|
||||
{
|
||||
super();
|
||||
this.smoothingSpeedUp = smoothingSpeedUp;
|
||||
this.smoothingSpeedDown = smoothingSpeedDown;
|
||||
this.targetValue = targetValue;
|
||||
this.currentValue = currentValue;
|
||||
}
|
||||
|
||||
public function reset(value:Number) : void
|
||||
{
|
||||
this.currentValue = value;
|
||||
this.targetValue = value;
|
||||
}
|
||||
|
||||
public function update(dt:Number) : Number
|
||||
{
|
||||
if(this.currentValue < this.targetValue)
|
||||
{
|
||||
this.currentValue += this.smoothingSpeedUp * dt;
|
||||
if(this.currentValue > this.targetValue)
|
||||
{
|
||||
this.currentValue = this.targetValue;
|
||||
}
|
||||
}
|
||||
else if(this.currentValue > this.targetValue)
|
||||
{
|
||||
this.currentValue -= this.smoothingSpeedDown * dt;
|
||||
if(this.currentValue < this.targetValue)
|
||||
{
|
||||
this.currentValue = this.targetValue;
|
||||
}
|
||||
}
|
||||
return this.currentValue;
|
||||
}
|
||||
}
|
||||
@@ -1,151 +0,0 @@
|
||||
package §_-fj§
|
||||
{
|
||||
import §_-KT§.§_-Ju§;
|
||||
import §_-US§.§_-BV§;
|
||||
import §_-V-§.§_-aY§;
|
||||
import §_-nl§.Matrix4;
|
||||
import §_-nl§.§_-bj§;
|
||||
import §default§.§_-49§;
|
||||
|
||||
public class §_-nL§
|
||||
{
|
||||
private static var conSpeedDamping:§_-Ju§ = new §_-Ju§("track_damping",0,0,1000);
|
||||
|
||||
public var chassisBody:§_-BV§;
|
||||
|
||||
public var rays:Vector.<§_-gd§>;
|
||||
|
||||
public var numRays:int;
|
||||
|
||||
public var §_-Ca§:int;
|
||||
|
||||
public var §_-gt§:Number = 0;
|
||||
|
||||
private var §_-Ce§:Object;
|
||||
|
||||
public function §_-nL§(chassisBody:§_-BV§, matrix:Matrix4, wheels:Vector.<§_-49§>)
|
||||
{
|
||||
super();
|
||||
this.chassisBody = chassisBody;
|
||||
this.§_-TD§(matrix,wheels);
|
||||
}
|
||||
|
||||
public function set collisionMask(value:int) : void
|
||||
{
|
||||
for(var i:int = 0; i < this.numRays; i++)
|
||||
{
|
||||
§_-gd§(this.rays[i]).collisionMask = value;
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-eO§(tankWheel:§_-49§) : Boolean
|
||||
{
|
||||
var parts:Array = tankWheel.name.split("_");
|
||||
return parts[1] == "1";
|
||||
}
|
||||
|
||||
public function §_-TD§(matrix:Matrix4, wheels:Vector.<§_-49§>) : void
|
||||
{
|
||||
var position:§_-bj§;
|
||||
var i:int;
|
||||
var tankWheel:§_-49§ = null;
|
||||
var mainWheel:§_-49§ = null;
|
||||
var ray:§_-gd§ = null;
|
||||
var mainWheels:Vector.<§_-49§> = new Vector.<§_-49§>();
|
||||
for each(tankWheel in wheels)
|
||||
{
|
||||
if(this.§_-eO§(tankWheel))
|
||||
{
|
||||
mainWheels.push(tankWheel);
|
||||
}
|
||||
}
|
||||
if(mainWheels.length == 0)
|
||||
{
|
||||
throw new Error("No main wheels found");
|
||||
}
|
||||
mainWheels.sort(function(a:§_-49§, b:§_-49§):Number
|
||||
{
|
||||
if(a.position.y > b.position.y)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
if(a.position.y < b.position.y)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
});
|
||||
this.§_-Ce§ = {};
|
||||
this.numRays = mainWheels.length;
|
||||
this.rays = new Vector.<§_-gd§>(this.numRays);
|
||||
position = new §_-bj§();
|
||||
for(i = 0; i < this.numRays; i++)
|
||||
{
|
||||
mainWheel = mainWheels[i];
|
||||
matrix.§_-eP§(mainWheel.position,position);
|
||||
ray = new §_-gd§(this.chassisBody,position,new §_-bj§(0,0,-1));
|
||||
this.rays[i] = ray;
|
||||
this.§_-Ce§[mainWheel.name] = ray;
|
||||
}
|
||||
}
|
||||
|
||||
public function §_-fG§(name:String, maxRayLength:Number) : Number
|
||||
{
|
||||
var ray:§_-gd§ = this.§_-Ce§[name];
|
||||
if(ray == null)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return !!ray.§_-n3§ ? Number(ray.§_-ZA§.t) : maxRayLength;
|
||||
}
|
||||
|
||||
public function §_-HQ§(dt:Number, throttle:Number, maxSpeed:Number, slipTerm:int, weight:Number, data:§_-8C§, brake:Boolean) : void
|
||||
{
|
||||
var i:int = 0;
|
||||
var springCoeff:Number = NaN;
|
||||
var mid:int = 0;
|
||||
var ray:§_-gd§ = null;
|
||||
this.§_-Ca§ = 0;
|
||||
for(i = 0; i < this.numRays; )
|
||||
{
|
||||
if(§_-gd§(this.rays[i]).§_-1l§(data.rayLength))
|
||||
{
|
||||
++this.§_-Ca§;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if(this.§_-Ca§ > 0)
|
||||
{
|
||||
this.§_-gt§ = 0;
|
||||
springCoeff = 0.5 * weight / (this.§_-Ca§ * (data.rayLength - data.§_-Fw§));
|
||||
throttle *= this.numRays / this.§_-Ca§;
|
||||
mid = this.numRays >> 1;
|
||||
if(Boolean(this.numRays & 1 == 0))
|
||||
{
|
||||
for(i = 0; i < this.numRays; i++)
|
||||
{
|
||||
ray = this.rays[i];
|
||||
ray.§_-Qy§(dt,throttle,maxSpeed,i <= mid ? slipTerm : int(-slipTerm),springCoeff,data,brake);
|
||||
this.§_-gt§ += ray.§_-bv§;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for(i = 0; i < this.numRays; )
|
||||
{
|
||||
ray = this.rays[i];
|
||||
ray.§_-Qy§(dt,throttle,maxSpeed,i < mid ? slipTerm : (i > mid ? int(-slipTerm) : 0),springCoeff,data,brake);
|
||||
this.§_-gt§ += ray.§_-bv§;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
this.§_-gt§ /= this.§_-Ca§;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-gt§ = §_-aY§.§_-Fi§(this.§_-gt§,0,conSpeedDamping.value * dt);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,133 +0,0 @@
|
||||
package §_-nO§
|
||||
{
|
||||
import §_-az§.§_-AG§;
|
||||
import §_-az§.§_-ps§;
|
||||
|
||||
public class §_-Yk§ extends §_-ps§ implements §_-5B§
|
||||
{
|
||||
private var §_-jB§:Vector.<§_-KI§>;
|
||||
|
||||
private var §_-0Y§:int;
|
||||
|
||||
private var running:Boolean;
|
||||
|
||||
private var gameKernel:§_-AG§;
|
||||
|
||||
public function §_-Yk§(priority:int, gameKernel:§_-AG§)
|
||||
{
|
||||
super(priority);
|
||||
this.gameKernel = gameKernel;
|
||||
this.§_-jB§ = new Vector.<§_-KI§>();
|
||||
}
|
||||
|
||||
public function addLogicUnit(logicUnit:§_-KI§) : void
|
||||
{
|
||||
var actionAddUnit:ActionAddUnit = null;
|
||||
if(this.running)
|
||||
{
|
||||
actionAddUnit = ActionAddUnit(this.gameKernel.§_-11§().§_-kP§(ActionAddUnit));
|
||||
this.§_-5W§(actionAddUnit,logicUnit);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(this.§_-jB§.indexOf(logicUnit) >= 0)
|
||||
{
|
||||
throw new Error("Logic unit already exists");
|
||||
}
|
||||
var _loc3_:* = this.§_-0Y§++;
|
||||
this.§_-jB§[_loc3_] = logicUnit;
|
||||
}
|
||||
}
|
||||
|
||||
public function removeLogicUnit(logicUnit:§_-KI§) : void
|
||||
{
|
||||
var actionRemoveUnit:ActionRemoveUnit = null;
|
||||
var index:int = 0;
|
||||
if(this.running)
|
||||
{
|
||||
actionRemoveUnit = ActionRemoveUnit(this.gameKernel.§_-11§().§_-kP§(ActionRemoveUnit));
|
||||
this.§_-5W§(actionRemoveUnit,logicUnit);
|
||||
}
|
||||
else
|
||||
{
|
||||
index = int(this.§_-jB§.indexOf(logicUnit));
|
||||
if(index < 0)
|
||||
{
|
||||
throw new Error("Logic unit not found");
|
||||
}
|
||||
this.§_-jB§[index] = this.§_-jB§[--this.§_-0Y§];
|
||||
this.§_-jB§[this.§_-0Y§] = null;
|
||||
}
|
||||
}
|
||||
|
||||
override public function run() : void
|
||||
{
|
||||
this.running = true;
|
||||
for(var i:int = 0; i < this.§_-0Y§; i++)
|
||||
{
|
||||
this.§_-jB§[i].runLogic();
|
||||
}
|
||||
this.running = false;
|
||||
}
|
||||
|
||||
private function §_-5W§(action:DeferredAction, unit:§_-KI§) : void
|
||||
{
|
||||
action.system = this;
|
||||
action.unit = unit;
|
||||
this.gameKernel.§_-L§(action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-RQ§.§_-HE§;
|
||||
import §_-RQ§.§_-Va§;
|
||||
import §in §.§_-eF§;
|
||||
|
||||
class DeferredAction extends §_-eF§
|
||||
{
|
||||
public var system:§_-5B§;
|
||||
|
||||
public var unit:§_-KI§;
|
||||
|
||||
public function DeferredAction(objectPool:§_-Va§)
|
||||
{
|
||||
super(objectPool);
|
||||
}
|
||||
|
||||
override public function execute() : void
|
||||
{
|
||||
this.doExecute();
|
||||
this.system = null;
|
||||
this.unit = null;
|
||||
}
|
||||
|
||||
protected function doExecute() : void
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
class ActionAddUnit extends DeferredAction
|
||||
{
|
||||
public function ActionAddUnit(objectPool:§_-Va§)
|
||||
{
|
||||
super(objectPool);
|
||||
}
|
||||
|
||||
override protected function doExecute() : void
|
||||
{
|
||||
system.addLogicUnit(unit);
|
||||
}
|
||||
}
|
||||
|
||||
class ActionRemoveUnit extends DeferredAction
|
||||
{
|
||||
public function ActionRemoveUnit(objectPool:§_-Va§)
|
||||
{
|
||||
super(objectPool);
|
||||
}
|
||||
|
||||
override protected function doExecute() : void
|
||||
{
|
||||
system.removeLogicUnit(unit);
|
||||
}
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
package §function§
|
||||
{
|
||||
import §_-1z§.§_-pi§;
|
||||
import §_-7A§.§_-3e§;
|
||||
import §_-az§.§_-2J§;
|
||||
import §_-az§.§_-AG§;
|
||||
import §_-jG§.§_-gg§;
|
||||
import §_-nl§.§_-bj§;
|
||||
import flash.media.Sound;
|
||||
|
||||
public class §_-T§ extends §_-2J§ implements §_-gg§
|
||||
{
|
||||
private var shotTextureResource:§_-pi§;
|
||||
|
||||
private var shotSound:Sound;
|
||||
|
||||
private var gameKernel:§_-AG§;
|
||||
|
||||
private var turret:§_-3e§;
|
||||
|
||||
public function §_-T§(shotTextureResource:§_-pi§, shotSound:Sound)
|
||||
{
|
||||
super();
|
||||
this.shotTextureResource = shotTextureResource;
|
||||
this.shotSound = shotSound;
|
||||
}
|
||||
|
||||
override public function initComponent() : void
|
||||
{
|
||||
this.turret = §_-3e§(entity.getComponentStrict(§_-3e§));
|
||||
}
|
||||
|
||||
override public function addToGame(gameKernel:§_-AG§) : void
|
||||
{
|
||||
this.gameKernel = gameKernel;
|
||||
}
|
||||
|
||||
override public function removeFromGame(gameKernel:§_-AG§) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function §_-km§(barrelIndex:int, barrelOrigin:§_-bj§, muzzlePosition:§_-bj§, gunDirection:§_-bj§, gunElevationAxis:§_-bj§) : void
|
||||
{
|
||||
var simpleWeaponShotEffect:SimpleWeaponShotEffect = SimpleWeaponShotEffect(this.gameKernel.§_-11§().§_-kP§(SimpleWeaponShotEffect));
|
||||
simpleWeaponShotEffect.init(barrelIndex,this.turret,this.shotTextureResource,100);
|
||||
this.gameKernel.§_-DZ§().each(simpleWeaponShotEffect);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import §_-1z§.§_-pi§;
|
||||
import §_-7A§.§_-3e§;
|
||||
import §_-Ex§.§_-U2§;
|
||||
import §_-RQ§.§_-HE§;
|
||||
import §_-RQ§.§_-Va§;
|
||||
import §_-V-§.§_-Eh§;
|
||||
import §_-Vh§.§_-pZ§;
|
||||
import §_-e6§.§_-1I§;
|
||||
import §_-e6§.§_-RE§;
|
||||
import §_-e6§.§_-fX§;
|
||||
import §_-lS§.§_-h2§;
|
||||
import §_-nl§.§_-bj§;
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
class SimpleWeaponShotEffect extends §_-HE§ implements §_-fX§
|
||||
{
|
||||
private static var muzzlePosition:§_-bj§ = new §_-bj§();
|
||||
|
||||
private static var gunDirection:§_-bj§ = new §_-bj§();
|
||||
|
||||
private var turret:§_-3e§;
|
||||
|
||||
private var mesh:§_-U2§;
|
||||
|
||||
private var material:§_-pZ§;
|
||||
|
||||
private var timeToLive:int;
|
||||
|
||||
private var barrelIndex:int;
|
||||
|
||||
public function SimpleWeaponShotEffect(objectPool:§_-Va§)
|
||||
{
|
||||
super(objectPool);
|
||||
this.mesh = new §_-Gi§(40,250,0,250 / 2);
|
||||
this.material = new §_-pZ§();
|
||||
this.material.§_-L4§ = true;
|
||||
this.mesh.setMaterialToAllSurfaces(this.material);
|
||||
}
|
||||
|
||||
public function init(barrelIndex:int, turret:§_-3e§, textureResource:§_-pi§, timeToLive:int) : void
|
||||
{
|
||||
this.barrelIndex = barrelIndex;
|
||||
this.turret = turret;
|
||||
this.timeToLive = timeToLive;
|
||||
this.material.diffuseMap = textureResource;
|
||||
}
|
||||
|
||||
public function addedToRenderSystem(system:§_-1I§) : void
|
||||
{
|
||||
system.§_-09§(this.mesh.geometry);
|
||||
system.§_-p1§().addChild(this.mesh);
|
||||
}
|
||||
|
||||
public function play(camera:§_-RE§) : Boolean
|
||||
{
|
||||
if(this.timeToLive < 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this.turret.getGunMuzzleData(this.barrelIndex,muzzlePosition,gunDirection);
|
||||
§_-Eh§.§_-Wr§(this.mesh,muzzlePosition,gunDirection,camera.position);
|
||||
this.timeToLive -= §_-h2§.timeDelta;
|
||||
return true;
|
||||
}
|
||||
|
||||
public function destroy() : void
|
||||
{
|
||||
this.mesh.alternativa3d::removeFromParent();
|
||||
}
|
||||
}
|
||||
@@ -1,44 +1,44 @@
|
||||
package
|
||||
{
|
||||
import §_-1z§.§_-b1§;
|
||||
import §_-1z§.§_-n4§;
|
||||
import §_-1z§.§_-pi§;
|
||||
import flash.display.Bitmap;
|
||||
import flash.display.BitmapData;
|
||||
import flash.display.Shape;
|
||||
import flash.display.Sprite;
|
||||
import flash.display3D.Context3D;
|
||||
import flash.events.Event;
|
||||
import package_21.name_84;
|
||||
import package_21.name_85;
|
||||
import package_21.name_86;
|
||||
|
||||
public class Preloader extends Sprite
|
||||
{
|
||||
private static const EmbedPreloader:Class = §_-Lz§;
|
||||
private static const EmbedPreloader:Class = name_82;
|
||||
|
||||
private static const EmbedPreloaderA:Class = §_-9C§;
|
||||
private static const EmbedPreloaderA:Class = name_81;
|
||||
|
||||
private static const EmbedProgress:Class = §_-M9§;
|
||||
private static const EmbedProgress:Class = name_83;
|
||||
|
||||
private var area:Shape = new Shape();
|
||||
|
||||
private var §_-1q§:Bitmap = new EmbedPreloader();
|
||||
private var var_27:Bitmap = new EmbedPreloader();
|
||||
|
||||
private var §_-Za§:Bitmap = new EmbedPreloaderA();
|
||||
private var var_28:Bitmap = new EmbedPreloaderA();
|
||||
|
||||
private var progress:Bitmap = new EmbedProgress();
|
||||
|
||||
private var context:Context3D;
|
||||
|
||||
public var maps:Vector.<§_-n4§>;
|
||||
public var maps:Vector.<name_85>;
|
||||
|
||||
private var §_-dH§:int;
|
||||
private var var_31:int;
|
||||
|
||||
private var counter:int;
|
||||
|
||||
private var baseURL:String;
|
||||
|
||||
private var §_-m§:§_-pi§ = new §_-b1§(new BitmapData(1,1,false,8355711));
|
||||
private var var_30:name_86 = new name_84(new BitmapData(1,1,false,8355711));
|
||||
|
||||
private var §_-UB§:Number = 0.09803921568627451;
|
||||
private var var_29:Number = 0.09803921568627451;
|
||||
|
||||
public function Preloader()
|
||||
{
|
||||
@@ -46,61 +46,61 @@ package
|
||||
addChild(this.area);
|
||||
this.area.alpha = 1;
|
||||
this.progress.alpha = 1;
|
||||
this.§_-1q§.alpha = 1;
|
||||
addChild(this.§_-1q§);
|
||||
addChild(this.§_-Za§);
|
||||
this.var_27.alpha = 1;
|
||||
addChild(this.var_27);
|
||||
addChild(this.var_28);
|
||||
addChild(this.progress);
|
||||
addEventListener(Event.ADDED_TO_STAGE,this.§_-Id§);
|
||||
addEventListener(Event.REMOVED_FROM_STAGE,this.§_-99§);
|
||||
addEventListener(Event.ADDED_TO_STAGE,this.method_26);
|
||||
addEventListener(Event.REMOVED_FROM_STAGE,this.method_25);
|
||||
this.progress.scaleX = 0.025;
|
||||
}
|
||||
|
||||
public function §_-QU§(param1:Number) : void
|
||||
public function name_68(param1:Number) : void
|
||||
{
|
||||
this.progress.scaleX = param1;
|
||||
if(this.progress.scaleX >= 1)
|
||||
{
|
||||
this.§_-Dq§();
|
||||
this.method_23();
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-Dq§() : void
|
||||
private function method_23() : void
|
||||
{
|
||||
addEventListener(Event.ENTER_FRAME,this.§_-ba§);
|
||||
addEventListener(Event.ENTER_FRAME,this.method_15);
|
||||
}
|
||||
|
||||
public function §_-fE§(param1:Number) : void
|
||||
public function method_27(param1:Number) : void
|
||||
{
|
||||
this.progress.scaleX += param1;
|
||||
if(this.progress.scaleX > 0.5)
|
||||
{
|
||||
addEventListener(Event.ENTER_FRAME,this.§_-MO§);
|
||||
addEventListener(Event.ENTER_FRAME,this.method_24);
|
||||
}
|
||||
if(this.progress.scaleX >= 1)
|
||||
{
|
||||
this.§_-Dq§();
|
||||
this.method_23();
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-Id§(param1:Event) : void
|
||||
private function method_26(param1:Event) : void
|
||||
{
|
||||
stage.addEventListener(Event.RESIZE,this.§_-7B§);
|
||||
this.§_-7B§();
|
||||
stage.addEventListener(Event.RESIZE,this.method_3);
|
||||
this.method_3();
|
||||
}
|
||||
|
||||
private function §_-99§(param1:Event) : void
|
||||
private function method_25(param1:Event) : void
|
||||
{
|
||||
stage.removeEventListener(Event.RESIZE,this.§_-7B§);
|
||||
stage.removeEventListener(Event.RESIZE,this.method_3);
|
||||
}
|
||||
|
||||
private function §_-ba§(param1:Event) : void
|
||||
private function method_15(param1:Event) : void
|
||||
{
|
||||
this.area.alpha -= this.§_-UB§;
|
||||
this.§_-1q§.alpha -= this.§_-UB§;
|
||||
this.progress.alpha -= this.§_-UB§;
|
||||
this.area.alpha -= this.var_29;
|
||||
this.var_27.alpha -= this.var_29;
|
||||
this.progress.alpha -= this.var_29;
|
||||
if(this.area.alpha <= 0)
|
||||
{
|
||||
removeEventListener(Event.ENTER_FRAME,this.§_-ba§);
|
||||
removeEventListener(Event.ENTER_FRAME,this.method_15);
|
||||
if(parent != null)
|
||||
{
|
||||
parent.removeChild(this);
|
||||
@@ -109,29 +109,29 @@ package
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-MO§(param1:Event) : void
|
||||
private function method_24(param1:Event) : void
|
||||
{
|
||||
this.§_-Za§.alpha -= this.§_-UB§ * 1.5;
|
||||
if(this.§_-Za§.alpha <= 0)
|
||||
this.var_28.alpha -= this.var_29 * 1.5;
|
||||
if(this.var_28.alpha <= 0)
|
||||
{
|
||||
removeEventListener(Event.ENTER_FRAME,this.§_-MO§);
|
||||
removeEventListener(Event.ENTER_FRAME,this.method_24);
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-7B§(param1:Event = null) : void
|
||||
private function method_3(param1:Event = null) : void
|
||||
{
|
||||
this.area.graphics.clear();
|
||||
this.§_-1q§.x = Math.round(stage.stageWidth / 2 - this.§_-1q§.width / 2);
|
||||
this.§_-1q§.y = Math.round(stage.stageHeight / 2 - this.§_-1q§.height / 2) - 30;
|
||||
this.§_-Za§.x = this.§_-1q§.x;
|
||||
this.§_-Za§.y = this.§_-1q§.y;
|
||||
this.progress.x = this.§_-1q§.x + 2;
|
||||
this.progress.y = this.§_-1q§.y + 221;
|
||||
this.var_27.x = Math.round(stage.stageWidth / 2 - this.var_27.width / 2);
|
||||
this.var_27.y = Math.round(stage.stageHeight / 2 - this.var_27.height / 2) - 30;
|
||||
this.var_28.x = this.var_27.x;
|
||||
this.var_28.y = this.var_27.y;
|
||||
this.progress.x = this.var_27.x + 2;
|
||||
this.progress.y = this.var_27.y + 221;
|
||||
this.area.graphics.beginFill(0);
|
||||
this.area.graphics.drawRect(0,0,this.§_-1q§.x,stage.stageHeight);
|
||||
this.area.graphics.drawRect(this.§_-1q§.x,0,this.§_-1q§.width,this.§_-1q§.y);
|
||||
this.area.graphics.drawRect(this.§_-1q§.x + this.§_-1q§.width,0,stage.stageWidth - this.§_-1q§.width - this.§_-1q§.x,stage.stageHeight);
|
||||
this.area.graphics.drawRect(this.§_-1q§.x,this.§_-1q§.y + this.§_-1q§.height,this.§_-1q§.width,stage.stageHeight - this.§_-1q§.height - this.§_-1q§.y);
|
||||
this.area.graphics.drawRect(0,0,this.var_27.x,stage.stageHeight);
|
||||
this.area.graphics.drawRect(this.var_27.x,0,this.var_27.width,this.var_27.y);
|
||||
this.area.graphics.drawRect(this.var_27.x + this.var_27.width,0,stage.stageWidth - this.var_27.width - this.var_27.x,stage.stageHeight);
|
||||
this.area.graphics.drawRect(this.var_27.x,this.var_27.y + this.var_27.height,this.var_27.width,stage.stageHeight - this.var_27.height - this.var_27.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,36 +1,5 @@
|
||||
package
|
||||
{
|
||||
import §_-1c§.§_-0F§;
|
||||
import §_-5U§.§_-Kr§;
|
||||
import §_-FM§.§_-fl§;
|
||||
import §_-GD§.§_-6A§;
|
||||
import §_-I0§.§_-Jv§;
|
||||
import §_-I0§.§_-VT§;
|
||||
import §_-KT§.§_-6L§;
|
||||
import §_-KT§.§_-Ju§;
|
||||
import §_-KT§.§_-UT§;
|
||||
import §_-KT§.§_-mN§;
|
||||
import §_-O5§.§_-c-§;
|
||||
import §_-RG§.§_-Au§;
|
||||
import §_-RG§.§_-pE§;
|
||||
import §_-TX§.§_-R3§;
|
||||
import §_-Uy§.§_-oP§;
|
||||
import §_-Vh§.§_-Pt§;
|
||||
import §_-Vh§.§_-Wn§;
|
||||
import §_-Vh§.§_-dn§;
|
||||
import §_-YQ§.§_-A3§;
|
||||
import §_-YQ§.§_-DN§;
|
||||
import §_-Yj§.TankMaterial2;
|
||||
import §_-Yj§.§_-4X§;
|
||||
import §_-Yj§.§_-as§;
|
||||
import §_-Yj§.§_-bZ§;
|
||||
import §_-Yj§.§_-jj§;
|
||||
import §_-aA§.§_-1O§;
|
||||
import §_-aA§.§_-a-§;
|
||||
import §_-az§.§_-AG§;
|
||||
import §_-cv§.§_-YU§;
|
||||
import §_-d8§.§_-R3§;
|
||||
import §_-e6§.§_-1I§;
|
||||
import flash.display.DisplayObject;
|
||||
import flash.display.Sprite;
|
||||
import flash.display.Stage3D;
|
||||
@@ -42,21 +11,52 @@ package
|
||||
import flash.events.FullScreenEvent;
|
||||
import flash.events.KeyboardEvent;
|
||||
import flash.ui.Keyboard;
|
||||
import package_1.TankMaterial2;
|
||||
import package_1.name_13;
|
||||
import package_1.name_30;
|
||||
import package_1.name_31;
|
||||
import package_1.name_7;
|
||||
import package_10.name_23;
|
||||
import package_11.name_4;
|
||||
import package_12.name_27;
|
||||
import package_13.name_28;
|
||||
import package_14.name_3;
|
||||
import package_15.name_17;
|
||||
import package_16.name_18;
|
||||
import package_17.name_28;
|
||||
import package_18.name_51;
|
||||
import package_2.name_1;
|
||||
import package_2.name_10;
|
||||
import package_2.name_26;
|
||||
import package_2.name_9;
|
||||
import package_3.name_12;
|
||||
import package_3.name_29;
|
||||
import package_3.name_6;
|
||||
import package_4.name_24;
|
||||
import package_4.name_25;
|
||||
import package_5.name_11;
|
||||
import package_5.name_2;
|
||||
import package_6.name_16;
|
||||
import package_6.name_50;
|
||||
import package_7.name_32;
|
||||
import package_7.name_33;
|
||||
import package_8.name_14;
|
||||
import package_9.name_15;
|
||||
|
||||
[SWF(backgroundColor="#333333",frameRate="100",width="1024",height="768")]
|
||||
public class TanksTestingTool extends Sprite
|
||||
{
|
||||
public static var testTask:§_-A3§;
|
||||
public static var testTask:name_50;
|
||||
|
||||
private var config:§_-YU§;
|
||||
private var config:name_18;
|
||||
|
||||
private var gameKernel:§_-AG§;
|
||||
private var gameKernel:name_17;
|
||||
|
||||
private var §_-6s§:§_-0F§;
|
||||
private var var_1:name_14;
|
||||
|
||||
private var stage3D:Stage3D;
|
||||
|
||||
private var §_-nZ§:§_-Kr§;
|
||||
private var var_2:name_15;
|
||||
|
||||
private var preloader:Preloader = new Preloader();
|
||||
|
||||
@@ -65,173 +65,173 @@ package
|
||||
super();
|
||||
mouseEnabled = false;
|
||||
mouseChildren = false;
|
||||
this.§_-PK§();
|
||||
this.§_-l2§();
|
||||
this.§_-33§();
|
||||
this.§_-5D§();
|
||||
§_-Au§.fadeRadius = 7000;
|
||||
§_-Au§.spotAngle = 140 * Math.PI / 180;
|
||||
§_-Au§.fallofAngle = 170 * Math.PI / 180;
|
||||
this.method_13();
|
||||
this.method_17();
|
||||
this.method_7();
|
||||
this.method_8();
|
||||
name_2.fadeRadius = 7000;
|
||||
name_2.spotAngle = 140 * Math.PI / 180;
|
||||
name_2.fallofAngle = 170 * Math.PI / 180;
|
||||
this.stage3D = stage.stage3Ds[0];
|
||||
this.stage3D.addEventListener(Event.CONTEXT3D_CREATE,this.§_-9x§);
|
||||
this.stage3D.addEventListener(Event.CONTEXT3D_CREATE,this.method_9);
|
||||
this.stage3D.requestContext3D();
|
||||
}
|
||||
|
||||
private function §_-9x§(param1:Event) : void
|
||||
private function method_9(param1:Event) : void
|
||||
{
|
||||
switch(§_-Pt§.§_-OP§(this.stage3D.context3D))
|
||||
switch(name_29.name_47(this.stage3D.context3D))
|
||||
{
|
||||
case §_-Wn§.DXT1:
|
||||
this.§_-Bw§("cfg.dxt1.xml");
|
||||
case name_6.DXT1:
|
||||
this.method_4("cfg.dxt1.xml");
|
||||
break;
|
||||
case §_-Wn§.ETC1:
|
||||
this.§_-Bw§("cfg.etc1.xml");
|
||||
case name_6.ETC1:
|
||||
this.method_4("cfg.etc1.xml");
|
||||
break;
|
||||
case §_-Wn§.PVRTC:
|
||||
this.§_-Bw§("cfg.pvrtc.xml");
|
||||
case name_6.PVRTC:
|
||||
this.method_4("cfg.pvrtc.xml");
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-5D§() : void
|
||||
private function method_8() : void
|
||||
{
|
||||
new §_-UT§("fog_mode",0,0,3,this.§_-JG§);
|
||||
new §_-Ju§("fog_near",0,0,1000000,this.§_-JG§);
|
||||
new §_-Ju§("fog_far",5000,0,1000000,this.§_-JG§);
|
||||
new §_-Ju§("fog_density",1,0,1,this.§_-JG§);
|
||||
new §_-Ju§("horizon_offset",0,-1000000,1000000,this.§_-JG§);
|
||||
new §_-Ju§("horizon_size",5000,0,1000000,this.§_-JG§);
|
||||
new §_-mN§("fog_color","0x0",this.§_-JG§);
|
||||
var _loc1_:§_-6A§ = §_-6A§(§_-oP§.§_-nQ§().§_-N6§(§_-6A§));
|
||||
_loc1_.§_-0j§("fog_texture",this.§_-nx§);
|
||||
new §_-Ju§("beam_distance",7000,0,1000000,this.§_-1B§);
|
||||
new §_-Ju§("beam_spot",140,0,180,this.§_-1B§);
|
||||
new §_-Ju§("beam_fallof",170,0,180,this.§_-1B§);
|
||||
new §_-Ju§("beam_fallof",170,0,180,this.§_-1B§);
|
||||
new §_-Ju§("camera_smoothing",20,0,200,this.§_-27§);
|
||||
§_-pE§.fogMode = §_-pE§.DISABLED;
|
||||
§_-4X§.fogMode = §_-4X§.DISABLED;
|
||||
§_-as§.fogMode = §_-as§.DISABLED;
|
||||
TankMaterial2.fogMode = §_-as§.DISABLED;
|
||||
§_-jj§.fogMode = §_-dn§.DISABLED;
|
||||
§_-bZ§.fogMode = §_-dn§.DISABLED;
|
||||
new name_9("fog_mode",0,0,3,this.method_1);
|
||||
new name_1("fog_near",0,0,1000000,this.method_1);
|
||||
new name_1("fog_far",5000,0,1000000,this.method_1);
|
||||
new name_1("fog_density",1,0,1,this.method_1);
|
||||
new name_1("horizon_offset",0,-1000000,1000000,this.method_1);
|
||||
new name_1("horizon_size",5000,0,1000000,this.method_1);
|
||||
new name_10("fog_color","0x0",this.method_1);
|
||||
var _loc1_:name_4 = name_4(name_3.name_8().name_21(name_4));
|
||||
_loc1_.name_34("fog_texture",this.method_19);
|
||||
new name_1("beam_distance",7000,0,1000000,this.method_2);
|
||||
new name_1("beam_spot",140,0,180,this.method_2);
|
||||
new name_1("beam_fallof",170,0,180,this.method_2);
|
||||
new name_1("beam_fallof",170,0,180,this.method_2);
|
||||
new name_1("camera_smoothing",20,0,200,this.method_6);
|
||||
name_11.fogMode = name_11.DISABLED;
|
||||
name_13.fogMode = name_13.DISABLED;
|
||||
name_7.fogMode = name_7.DISABLED;
|
||||
TankMaterial2.fogMode = name_7.DISABLED;
|
||||
name_31.fogMode = name_12.DISABLED;
|
||||
name_30.fogMode = name_12.DISABLED;
|
||||
}
|
||||
|
||||
private function §_-27§(param1:§_-Ju§) : void
|
||||
private function method_6(param1:name_1) : void
|
||||
{
|
||||
§_-Jv§.smoothing = param1.value;
|
||||
name_24.smoothing = param1.value;
|
||||
}
|
||||
|
||||
private function §_-1B§(param1:§_-6L§) : void
|
||||
private function method_2(param1:name_26) : void
|
||||
{
|
||||
switch(param1.§_-cC§())
|
||||
switch(param1.name_22())
|
||||
{
|
||||
case "beam_distance":
|
||||
§_-Au§.fadeRadius = §_-Ju§(param1).value;
|
||||
name_2.fadeRadius = name_1(param1).value;
|
||||
break;
|
||||
case "beam_spot":
|
||||
§_-Au§.spotAngle = §_-Ju§(param1).value * Math.PI / 180;
|
||||
name_2.spotAngle = name_1(param1).value * Math.PI / 180;
|
||||
break;
|
||||
case "beam_fallof":
|
||||
§_-Au§.fallofAngle = §_-Ju§(param1).value * Math.PI / 180;
|
||||
name_2.fallofAngle = name_1(param1).value * Math.PI / 180;
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-JG§(param1:§_-6L§) : void
|
||||
private function method_1(param1:name_26) : void
|
||||
{
|
||||
var _loc3_:Number = NaN;
|
||||
var _loc4_:Number = NaN;
|
||||
var _loc5_:Number = NaN;
|
||||
var _loc6_:§_-1I§ = this.gameKernel.§_-DZ§();
|
||||
switch(param1.§_-cC§())
|
||||
var _loc6_:name_51 = this.gameKernel.name_5();
|
||||
switch(param1.name_22())
|
||||
{
|
||||
case "fog_mode":
|
||||
_loc6_.§_-ev§(§_-UT§(param1).value);
|
||||
_loc6_.name_49(name_9(param1).value);
|
||||
break;
|
||||
case "fog_near":
|
||||
_loc6_.§_-9g§(§_-Ju§(param1).value);
|
||||
_loc6_.name_37(name_1(param1).value);
|
||||
break;
|
||||
case "fog_far":
|
||||
_loc6_.§_-H9§(§_-Ju§(param1).value);
|
||||
_loc6_.name_41(name_1(param1).value);
|
||||
break;
|
||||
case "fog_density":
|
||||
_loc6_.§_-J0§(§_-Ju§(param1).value);
|
||||
_loc6_.name_42(name_1(param1).value);
|
||||
break;
|
||||
case "horizon_size":
|
||||
_loc6_.§_-Jk§(§_-Ju§(param1).value);
|
||||
_loc6_.name_43(name_1(param1).value);
|
||||
break;
|
||||
case "horizon_offset":
|
||||
_loc6_.§_-Dd§(§_-Ju§(param1).value);
|
||||
_loc6_.name_38(name_1(param1).value);
|
||||
break;
|
||||
case "fog_color":
|
||||
_loc6_.§_-5d§(parseInt(§_-mN§(param1).value,16));
|
||||
_loc6_.name_36(parseInt(name_10(param1).value,16));
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-nx§(param1:§_-6A§, param2:Array) : void
|
||||
private function method_19(param1:name_4, param2:Array) : void
|
||||
{
|
||||
this.gameKernel.§_-DZ§().§_-FZ§(param2.join(" "));
|
||||
this.gameKernel.name_5().name_39(param2.join(" "));
|
||||
}
|
||||
|
||||
private function §_-PK§() : void
|
||||
private function method_13() : void
|
||||
{
|
||||
stage.scaleMode = StageScaleMode.NO_SCALE;
|
||||
stage.align = StageAlign.TOP_LEFT;
|
||||
stage.quality = StageQuality.LOW;
|
||||
}
|
||||
|
||||
private function §_-l2§() : void
|
||||
private function method_17() : void
|
||||
{
|
||||
new §_-oP§();
|
||||
this.§_-nZ§ = new §_-Kr§();
|
||||
this.§_-nZ§.start(this,new §_-c-§(loaderInfo.parameters),new Vector.<§_-a-§>(),new §_-1O§(null,null,null),new Vector.<String>());
|
||||
new §_-fl§().start(§_-oP§.§_-nQ§());
|
||||
new §_-TX§.§_-R3§().start(§_-oP§.§_-nQ§());
|
||||
new §_-d8§.§_-R3§().start(§_-oP§.§_-nQ§());
|
||||
new name_3();
|
||||
this.var_2 = new name_15();
|
||||
this.var_2.start(this,new name_27(loaderInfo.parameters),new Vector.<name_33>(),new name_32(null,null,null),new Vector.<String>());
|
||||
new name_23().start(name_3.name_8());
|
||||
new package_13.name_28().start(name_3.name_8());
|
||||
new package_17.name_28().start(name_3.name_8());
|
||||
}
|
||||
|
||||
private function §_-33§() : void
|
||||
private function method_7() : void
|
||||
{
|
||||
var _loc1_:§_-6A§ = §_-6A§(§_-oP§.§_-nQ§().§_-N6§(§_-6A§));
|
||||
var _loc1_:name_4 = name_4(name_3.name_8().name_21(name_4));
|
||||
_loc1_.width = 100;
|
||||
_loc1_.alpha = 0.8;
|
||||
_loc1_.height = 30;
|
||||
}
|
||||
|
||||
private function §_-Bw§(param1:String) : void
|
||||
private function method_4(param1:String) : void
|
||||
{
|
||||
addChild(this.preloader);
|
||||
this.config = new §_-YU§();
|
||||
this.config.addEventListener(Event.COMPLETE,this.§_-JY§);
|
||||
this.config = new name_18();
|
||||
this.config.addEventListener(Event.COMPLETE,this.method_12);
|
||||
this.config.load(param1,this.preloader);
|
||||
}
|
||||
|
||||
private function §_-JY§(param1:Event) : void
|
||||
private function method_12(param1:Event) : void
|
||||
{
|
||||
this.§_-G-§();
|
||||
this.§_-lN§();
|
||||
this.method_10();
|
||||
this.method_18();
|
||||
}
|
||||
|
||||
private function §_-lN§() : void
|
||||
private function method_18() : void
|
||||
{
|
||||
this.§_-6s§ = new §_-0F§();
|
||||
stage.addChild(this.§_-6s§);
|
||||
this.§_-6s§.mouseChildren = true;
|
||||
this.§_-6s§.mouseEnabled = true;
|
||||
this.§_-6s§.addEventListener("CLICK_FULL_SCREEN_BUTTON",this.§_-GO§);
|
||||
this.§_-6s§.addEventListener("CLICK_NEXT_TANK_BUTTON",this.§_-gC§);
|
||||
this.var_1 = new name_14();
|
||||
stage.addChild(this.var_1);
|
||||
this.var_1.mouseChildren = true;
|
||||
this.var_1.mouseEnabled = true;
|
||||
this.var_1.addEventListener("CLICK_FULL_SCREEN_BUTTON",this.method_11);
|
||||
this.var_1.addEventListener("CLICK_NEXT_TANK_BUTTON",this.method_16);
|
||||
stage.addChild(this.preloader);
|
||||
stage.addEventListener(KeyboardEvent.KEY_DOWN,this.§_-Ze§);
|
||||
this.gameKernel.§_-DZ§().§_-GW§().diagramVerticalMargin = 85;
|
||||
this.gameKernel.§_-DZ§().§_-GW§().diagramHorizontalMargin = 12;
|
||||
this.§_-7B§(null);
|
||||
stage.addEventListener(KeyboardEvent.KEY_DOWN,this.method_14);
|
||||
this.gameKernel.name_5().name_20().diagramVerticalMargin = 85;
|
||||
this.gameKernel.name_5().name_20().diagramHorizontalMargin = 12;
|
||||
this.method_3(null);
|
||||
}
|
||||
|
||||
private function §_-Ze§(param1:KeyboardEvent) : void
|
||||
private function method_14(param1:KeyboardEvent) : void
|
||||
{
|
||||
var _loc2_:DisplayObject = null;
|
||||
if(param1.keyCode == Keyboard.G)
|
||||
{
|
||||
_loc2_ = this.gameKernel.§_-DZ§().§_-G§();
|
||||
_loc2_ = this.gameKernel.name_5().name_40();
|
||||
if(_loc2_.parent != null)
|
||||
{
|
||||
_loc2_.parent.removeChild(_loc2_);
|
||||
@@ -243,19 +243,19 @@ package
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-GO§(param1:Event) : void
|
||||
private function method_11(param1:Event) : void
|
||||
{
|
||||
stage.displayState = !!this.§_-6s§.§_-8F§ ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL;
|
||||
stage.addEventListener(FullScreenEvent.FULL_SCREEN,this.§_-Tp§);
|
||||
stage.displayState = !!this.var_1.name_19 ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL;
|
||||
stage.addEventListener(FullScreenEvent.FULL_SCREEN,this.method_5);
|
||||
}
|
||||
|
||||
private function §_-Tp§(param1:Event) : void
|
||||
private function method_5(param1:Event) : void
|
||||
{
|
||||
stage.removeEventListener(FullScreenEvent.FULL_SCREEN,this.§_-Tp§);
|
||||
this.§_-6s§.§_-8F§ = stage.displayState != StageDisplayState.NORMAL;
|
||||
stage.removeEventListener(FullScreenEvent.FULL_SCREEN,this.method_5);
|
||||
this.var_1.name_19 = stage.displayState != StageDisplayState.NORMAL;
|
||||
}
|
||||
|
||||
private function §_-gC§(param1:Event) : void
|
||||
private function method_16(param1:Event) : void
|
||||
{
|
||||
if(testTask != null)
|
||||
{
|
||||
@@ -263,34 +263,34 @@ package
|
||||
}
|
||||
}
|
||||
|
||||
private function §_-G-§() : void
|
||||
private function method_10() : void
|
||||
{
|
||||
this.gameKernel = new §_-AG§(stage,this.config.options);
|
||||
this.gameKernel.§_-DZ§().§_-X4§(this.stage3D);
|
||||
var _loc1_:§_-DN§ = new §_-DN§(this.gameKernel,this.config,this,this.preloader);
|
||||
this.gameKernel = new name_17(stage,this.config.options);
|
||||
this.gameKernel.name_5().name_48(this.stage3D);
|
||||
var _loc1_:name_16 = new name_16(this.gameKernel,this.config,this,this.preloader);
|
||||
this.gameKernel.addTask(_loc1_);
|
||||
stage.addEventListener(Event.RESIZE,this.§_-7B§);
|
||||
this.§_-7B§(null);
|
||||
stage.addEventListener(Event.ENTER_FRAME,this.§_-ba§);
|
||||
stage.addEventListener(Event.RESIZE,this.method_3);
|
||||
this.method_3(null);
|
||||
stage.addEventListener(Event.ENTER_FRAME,this.method_15);
|
||||
}
|
||||
|
||||
private function §_-ba§(param1:Event) : void
|
||||
private function method_15(param1:Event) : void
|
||||
{
|
||||
this.gameKernel.§_-Kf§();
|
||||
this.gameKernel.name_45();
|
||||
}
|
||||
|
||||
private function §_-7B§(param1:Event) : void
|
||||
private function method_3(param1:Event) : void
|
||||
{
|
||||
var _loc2_:§_-VT§ = null;
|
||||
var _loc2_:name_25 = null;
|
||||
if(this.gameKernel != null)
|
||||
{
|
||||
this.gameKernel.§_-DZ§().§_-3N§(0,0,stage.stageWidth,stage.stageHeight);
|
||||
_loc2_ = this.gameKernel.§_-DZ§().§_-MG§();
|
||||
this.gameKernel.name_5().name_35(0,0,stage.stageWidth,stage.stageHeight);
|
||||
_loc2_ = this.gameKernel.name_5().name_46();
|
||||
_loc2_.y = stage.stageHeight - _loc2_.size;
|
||||
}
|
||||
if(this.§_-6s§ != null)
|
||||
if(this.var_1 != null)
|
||||
{
|
||||
this.§_-6s§.§_-K6§(stage.stageWidth,stage.stageHeight);
|
||||
this.var_1.name_44(stage.stageWidth,stage.stageHeight);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@@ -13,29 +13,29 @@ package _codec.commons
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Bx§:ICodec;
|
||||
private var var_324:ICodec;
|
||||
|
||||
private var §_-Qh§:ICodec;
|
||||
private var var_329:ICodec;
|
||||
|
||||
private var §_-ir§:ICodec;
|
||||
private var var_332:ICodec;
|
||||
|
||||
private var §_-p§:ICodec;
|
||||
private var var_333:ICodec;
|
||||
|
||||
private var §_-Kw§:ICodec;
|
||||
private var var_326:ICodec;
|
||||
|
||||
private var §_-PP§:ICodec;
|
||||
private var var_327:ICodec;
|
||||
|
||||
private var §_-e7§:ICodec;
|
||||
private var var_331:ICodec;
|
||||
|
||||
private var §_-QE§:ICodec;
|
||||
private var var_328:ICodec;
|
||||
|
||||
private var §_-SL§:ICodec;
|
||||
private var var_330:ICodec;
|
||||
|
||||
private var §for §:ICodec;
|
||||
private var var_334:ICodec;
|
||||
|
||||
private var §_-Hb§:ICodec;
|
||||
private var var_325:ICodec;
|
||||
|
||||
private var §_-3B§:ICodec;
|
||||
private var var_323:ICodec;
|
||||
|
||||
public function CodecA3DMatrix()
|
||||
{
|
||||
@@ -44,46 +44,46 @@ package _codec.commons
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Bx§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Qh§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-ir§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-p§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Kw§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-PP§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-e7§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-QE§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-SL§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§for § = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Hb§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-3B§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_324 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_329 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_332 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_333 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_326 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_327 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_331 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_328 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_330 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_334 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_325 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_323 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_a:Number = Number(this.§_-Bx§.decode(protocolBuffer) as Number);
|
||||
var value_a:Number = Number(this.var_324.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","a",value_a);
|
||||
var value_b:Number = Number(this.§_-Qh§.decode(protocolBuffer) as Number);
|
||||
var value_b:Number = Number(this.var_329.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","b",value_b);
|
||||
var value_c:Number = Number(this.§_-ir§.decode(protocolBuffer) as Number);
|
||||
var value_c:Number = Number(this.var_332.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","c",value_c);
|
||||
var value_d:Number = Number(this.§_-p§.decode(protocolBuffer) as Number);
|
||||
var value_d:Number = Number(this.var_333.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","d",value_d);
|
||||
var value_e:Number = Number(this.§_-Kw§.decode(protocolBuffer) as Number);
|
||||
var value_e:Number = Number(this.var_326.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","e",value_e);
|
||||
var value_f:Number = Number(this.§_-PP§.decode(protocolBuffer) as Number);
|
||||
var value_f:Number = Number(this.var_327.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","f",value_f);
|
||||
var value_g:Number = Number(this.§_-e7§.decode(protocolBuffer) as Number);
|
||||
var value_g:Number = Number(this.var_331.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","g",value_g);
|
||||
var value_h:Number = Number(this.§_-QE§.decode(protocolBuffer) as Number);
|
||||
var value_h:Number = Number(this.var_328.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","h",value_h);
|
||||
var value_i:Number = Number(this.§_-SL§.decode(protocolBuffer) as Number);
|
||||
var value_i:Number = Number(this.var_330.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","i",value_i);
|
||||
var value_j:Number = Number(this.§for §.decode(protocolBuffer) as Number);
|
||||
var value_j:Number = Number(this.var_334.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","j",value_j);
|
||||
var value_k:Number = Number(this.§_-Hb§.decode(protocolBuffer) as Number);
|
||||
var value_k:Number = Number(this.var_325.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","k",value_k);
|
||||
var value_l:Number = Number(this.§_-3B§.decode(protocolBuffer) as Number);
|
||||
var value_l:Number = Number(this.var_323.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","l",value_l);
|
||||
return new A3DMatrix(value_a,value_b,value_c,value_d,value_e,value_f,value_g,value_h,value_i,value_j,value_k,value_l);
|
||||
}
|
||||
@@ -95,18 +95,18 @@ package _codec.commons
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DMatrix = A3DMatrix(object);
|
||||
this.§_-Bx§.encode(protocolBuffer,struct.a);
|
||||
this.§_-Qh§.encode(protocolBuffer,struct.b);
|
||||
this.§_-ir§.encode(protocolBuffer,struct.c);
|
||||
this.§_-p§.encode(protocolBuffer,struct.d);
|
||||
this.§_-Kw§.encode(protocolBuffer,struct.e);
|
||||
this.§_-PP§.encode(protocolBuffer,struct.f);
|
||||
this.§_-e7§.encode(protocolBuffer,struct.g);
|
||||
this.§_-QE§.encode(protocolBuffer,struct.h);
|
||||
this.§_-SL§.encode(protocolBuffer,struct.i);
|
||||
this.§for §.encode(protocolBuffer,struct.j);
|
||||
this.§_-Hb§.encode(protocolBuffer,struct.k);
|
||||
this.§_-3B§.encode(protocolBuffer,struct.l);
|
||||
this.var_324.encode(protocolBuffer,struct.a);
|
||||
this.var_329.encode(protocolBuffer,struct.b);
|
||||
this.var_332.encode(protocolBuffer,struct.c);
|
||||
this.var_333.encode(protocolBuffer,struct.d);
|
||||
this.var_326.encode(protocolBuffer,struct.e);
|
||||
this.var_327.encode(protocolBuffer,struct.f);
|
||||
this.var_331.encode(protocolBuffer,struct.g);
|
||||
this.var_328.encode(protocolBuffer,struct.h);
|
||||
this.var_330.encode(protocolBuffer,struct.i);
|
||||
this.var_334.encode(protocolBuffer,struct.j);
|
||||
this.var_325.encode(protocolBuffer,struct.k);
|
||||
this.var_323.encode(protocolBuffer,struct.l);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ package _codec.commons
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
public function CodecId()
|
||||
{
|
||||
@@ -21,13 +21,13 @@ package _codec.commons
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:uint = uint(this.§_-2o§.decode(protocolBuffer) as uint);
|
||||
var value_id:uint = uint(this.var_243.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","commons.Id","id",value_id);
|
||||
return new Id(value_id);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ package _codec.commons
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:Id = Id(object);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,17 +19,17 @@ package _codec.versions.version1.a3d
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-EA§:ICodec;
|
||||
private var var_359:ICodec;
|
||||
|
||||
private var §_-PA§:ICodec;
|
||||
private var var_419:ICodec;
|
||||
|
||||
private var §_-Sd§:ICodec;
|
||||
private var var_363:ICodec;
|
||||
|
||||
private var §_-dB§:ICodec;
|
||||
private var var_365:ICodec;
|
||||
|
||||
private var §_-77§:ICodec;
|
||||
private var var_354:ICodec;
|
||||
|
||||
private var §_-1x§:ICodec;
|
||||
private var var_351:ICodec;
|
||||
|
||||
public function CodecA3D()
|
||||
{
|
||||
@@ -38,28 +38,28 @@ package _codec.versions.version1.a3d
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-EA§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1));
|
||||
this.§_-PA§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1));
|
||||
this.§_-Sd§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1));
|
||||
this.§_-dB§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1));
|
||||
this.§_-77§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1));
|
||||
this.§_-1x§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,1));
|
||||
this.var_359 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1));
|
||||
this.var_419 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1));
|
||||
this.var_363 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1));
|
||||
this.var_365 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1));
|
||||
this.var_354 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1));
|
||||
this.var_351 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,1));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boxes:Vector.<A3DBox> = this.§_-EA§.decode(protocolBuffer) as Vector.<A3DBox>;
|
||||
var value_boxes:Vector.<A3DBox> = this.var_359.decode(protocolBuffer) as Vector.<A3DBox>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","boxes",value_boxes);
|
||||
var value_geometries:Vector.<A3DGeometry> = this.§_-PA§.decode(protocolBuffer) as Vector.<A3DGeometry>;
|
||||
var value_geometries:Vector.<A3DGeometry> = this.var_419.decode(protocolBuffer) as Vector.<A3DGeometry>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","geometries",value_geometries);
|
||||
var value_images:Vector.<A3DImage> = this.§_-Sd§.decode(protocolBuffer) as Vector.<A3DImage>;
|
||||
var value_images:Vector.<A3DImage> = this.var_363.decode(protocolBuffer) as Vector.<A3DImage>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","images",value_images);
|
||||
var value_maps:Vector.<A3DMap> = this.§_-dB§.decode(protocolBuffer) as Vector.<A3DMap>;
|
||||
var value_maps:Vector.<A3DMap> = this.var_365.decode(protocolBuffer) as Vector.<A3DMap>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","maps",value_maps);
|
||||
var value_materials:Vector.<A3DMaterial> = this.§_-77§.decode(protocolBuffer) as Vector.<A3DMaterial>;
|
||||
var value_materials:Vector.<A3DMaterial> = this.var_354.decode(protocolBuffer) as Vector.<A3DMaterial>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","materials",value_materials);
|
||||
var value_objects:Vector.<A3DObject> = this.§_-1x§.decode(protocolBuffer) as Vector.<A3DObject>;
|
||||
var value_objects:Vector.<A3DObject> = this.var_351.decode(protocolBuffer) as Vector.<A3DObject>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","objects",value_objects);
|
||||
return new A3D(value_boxes,value_geometries,value_images,value_maps,value_materials,value_objects);
|
||||
}
|
||||
@@ -71,12 +71,12 @@ package _codec.versions.version1.a3d
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D = A3D(object);
|
||||
this.§_-EA§.encode(protocolBuffer,struct.boxes);
|
||||
this.§_-PA§.encode(protocolBuffer,struct.geometries);
|
||||
this.§_-Sd§.encode(protocolBuffer,struct.images);
|
||||
this.§_-dB§.encode(protocolBuffer,struct.maps);
|
||||
this.§_-77§.encode(protocolBuffer,struct.materials);
|
||||
this.§_-1x§.encode(protocolBuffer,struct.objects);
|
||||
this.var_359.encode(protocolBuffer,struct.boxes);
|
||||
this.var_419.encode(protocolBuffer,struct.geometries);
|
||||
this.var_363.encode(protocolBuffer,struct.images);
|
||||
this.var_365.encode(protocolBuffer,struct.maps);
|
||||
this.var_354.encode(protocolBuffer,struct.materials);
|
||||
this.var_351.encode(protocolBuffer,struct.objects);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ package _codec.versions.version1.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-XF§:ICodec;
|
||||
private var var_275:ICodec;
|
||||
|
||||
private var §_-U9§:ICodec;
|
||||
private var var_250:ICodec;
|
||||
|
||||
public function CodecA3DGeometry()
|
||||
{
|
||||
@@ -29,19 +29,19 @@ package _codec.versions.version1.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-XF§ = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,true));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,1));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_275 = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,true));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,1));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","id",value_id);
|
||||
var value_indexBuffer:A3DIndexBuffer = this.§_-XF§.decode(protocolBuffer) as A3DIndexBuffer;
|
||||
var value_indexBuffer:A3DIndexBuffer = this.var_275.decode(protocolBuffer) as A3DIndexBuffer;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","indexBuffer",value_indexBuffer);
|
||||
var value_vertexBuffers:Vector.<A3DVertexBuffer> = this.§_-U9§.decode(protocolBuffer) as Vector.<A3DVertexBuffer>;
|
||||
var value_vertexBuffers:Vector.<A3DVertexBuffer> = this.var_250.decode(protocolBuffer) as Vector.<A3DVertexBuffer>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","vertexBuffers",value_vertexBuffers);
|
||||
return new A3DGeometry(value_id,value_indexBuffer,value_vertexBuffers);
|
||||
}
|
||||
@@ -53,9 +53,9 @@ package _codec.versions.version1.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DGeometry = A3DGeometry(object);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-XF§.encode(protocolBuffer,struct.indexBuffer);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_275.encode(protocolBuffer,struct.indexBuffer);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,9 +13,9 @@ package _codec.versions.version1.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-GN§:ICodec;
|
||||
private var var_240:ICodec;
|
||||
|
||||
private var §_-mz§:ICodec;
|
||||
private var var_308:ICodec;
|
||||
|
||||
public function CodecA3DIndexBuffer()
|
||||
{
|
||||
@@ -24,16 +24,16 @@ package _codec.versions.version1.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,true));
|
||||
this.§_-mz§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,true));
|
||||
this.var_308 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray;
|
||||
var value_byteBuffer:ByteArray = this.var_240.decode(protocolBuffer) as ByteArray;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","byteBuffer",value_byteBuffer);
|
||||
var value_indexCount:int = int(this.§_-mz§.decode(protocolBuffer) as int);
|
||||
var value_indexCount:int = int(this.var_308.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","indexCount",value_indexCount);
|
||||
return new A3DIndexBuffer(value_byteBuffer,value_indexCount);
|
||||
}
|
||||
@@ -45,8 +45,8 @@ package _codec.versions.version1.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DIndexBuffer = A3DIndexBuffer(object);
|
||||
this.§_-GN§.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.§_-mz§.encode(protocolBuffer,struct.indexCount);
|
||||
this.var_240.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.var_308.encode(protocolBuffer,struct.indexCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ package _codec.versions.version1.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Lj§:ICodec;
|
||||
private var var_241:ICodec;
|
||||
|
||||
private var §_-GN§:ICodec;
|
||||
private var var_240:ICodec;
|
||||
|
||||
private var §_-hc§:ICodec;
|
||||
private var var_242:ICodec;
|
||||
|
||||
public function CodecA3DVertexBuffer()
|
||||
{
|
||||
@@ -29,19 +29,19 @@ package _codec.versions.version1.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Lj§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1));
|
||||
this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,true));
|
||||
this.§_-hc§ = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.var_241 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1));
|
||||
this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,true));
|
||||
this.var_242 = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_attributes:Vector.<int> = this.§_-Lj§.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_attributes:Vector.<int> = this.var_241.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","attributes",value_attributes);
|
||||
var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray;
|
||||
var value_byteBuffer:ByteArray = this.var_240.decode(protocolBuffer) as ByteArray;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","byteBuffer",value_byteBuffer);
|
||||
var value_vertexCount:uint = uint(this.§_-hc§.decode(protocolBuffer) as uint);
|
||||
var value_vertexCount:uint = uint(this.var_242.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","vertexCount",value_vertexCount);
|
||||
return new A3DVertexBuffer(value_attributes,value_byteBuffer,value_vertexCount);
|
||||
}
|
||||
@@ -53,9 +53,9 @@ package _codec.versions.version1.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DVertexBuffer = A3DVertexBuffer(object);
|
||||
this.§_-Lj§.encode(protocolBuffer,struct.attributes);
|
||||
this.§_-GN§.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.§_-hc§.encode(protocolBuffer,struct.vertexCount);
|
||||
this.var_241.encode(protocolBuffer,struct.attributes);
|
||||
this.var_240.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.var_242.encode(protocolBuffer,struct.vertexCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ package _codec.versions.version1.a3d.id
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
public function CodecParentId()
|
||||
{
|
||||
@@ -21,13 +21,13 @@ package _codec.versions.version1.a3d.id
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:uint = uint(this.§_-2o§.decode(protocolBuffer) as uint);
|
||||
var value_id:uint = uint(this.var_243.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.id.ParentId","id",value_id);
|
||||
return new ParentId(value_id);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ package _codec.versions.version1.a3d.id
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:ParentId = ParentId(object);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,9 +13,9 @@ package _codec.versions.version1.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-aV§:ICodec;
|
||||
private var var_307:ICodec;
|
||||
|
||||
public function CodecA3DImage()
|
||||
{
|
||||
@@ -24,16 +24,16 @@ package _codec.versions.version1.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-aV§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_307 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","id",value_id);
|
||||
var value_url:String = this.§_-aV§.decode(protocolBuffer) as String;
|
||||
var value_url:String = this.var_307.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","url",value_url);
|
||||
return new A3DImage(value_id,value_url);
|
||||
}
|
||||
@@ -45,8 +45,8 @@ package _codec.versions.version1.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DImage = A3DImage(object);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-aV§.encode(protocolBuffer,struct.url);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_307.encode(protocolBuffer,struct.url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,19 +15,19 @@ package _codec.versions.version1.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-mC§:ICodec;
|
||||
private var var_322:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-2N§:ICodec;
|
||||
private var var_321:ICodec;
|
||||
|
||||
private var §_-K5§:ICodec;
|
||||
private var var_407:ICodec;
|
||||
|
||||
private var §_-Q5§:ICodec;
|
||||
private var var_408:ICodec;
|
||||
|
||||
private var §_-WH§:ICodec;
|
||||
private var var_409:ICodec;
|
||||
|
||||
private var §_-kh§:ICodec;
|
||||
private var var_410:ICodec;
|
||||
|
||||
public function CodecA3DMap()
|
||||
{
|
||||
@@ -36,31 +36,31 @@ package _codec.versions.version1.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-mC§ = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-2N§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-K5§ = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.§_-Q5§ = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.§_-WH§ = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.§_-kh§ = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.var_322 = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_321 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_407 = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.var_408 = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.var_409 = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
this.var_410 = protocol.getCodec(new TypeCodecInfo(Float,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_channel:uint = uint(this.§_-mC§.decode(protocolBuffer) as uint);
|
||||
var value_channel:uint = uint(this.var_322.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","channel",value_channel);
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","id",value_id);
|
||||
var value_imageId:Id = this.§_-2N§.decode(protocolBuffer) as Id;
|
||||
var value_imageId:Id = this.var_321.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","imageId",value_imageId);
|
||||
var value_uOffset:Number = Number(this.§_-K5§.decode(protocolBuffer) as Number);
|
||||
var value_uOffset:Number = Number(this.var_407.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uOffset",value_uOffset);
|
||||
var value_uScale:Number = Number(this.§_-Q5§.decode(protocolBuffer) as Number);
|
||||
var value_uScale:Number = Number(this.var_408.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uScale",value_uScale);
|
||||
var value_vOffset:Number = Number(this.§_-WH§.decode(protocolBuffer) as Number);
|
||||
var value_vOffset:Number = Number(this.var_409.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vOffset",value_vOffset);
|
||||
var value_vScale:Number = Number(this.§_-kh§.decode(protocolBuffer) as Number);
|
||||
var value_vScale:Number = Number(this.var_410.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vScale",value_vScale);
|
||||
return new A3DMap(value_channel,value_id,value_imageId,value_uOffset,value_uScale,value_vOffset,value_vScale);
|
||||
}
|
||||
@@ -72,13 +72,13 @@ package _codec.versions.version1.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DMap = A3DMap(object);
|
||||
this.§_-mC§.encode(protocolBuffer,struct.channel);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-2N§.encode(protocolBuffer,struct.imageId);
|
||||
this.§_-K5§.encode(protocolBuffer,struct.uOffset);
|
||||
this.§_-Q5§.encode(protocolBuffer,struct.uScale);
|
||||
this.§_-WH§.encode(protocolBuffer,struct.vOffset);
|
||||
this.§_-kh§.encode(protocolBuffer,struct.vScale);
|
||||
this.var_322.encode(protocolBuffer,struct.channel);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_321.encode(protocolBuffer,struct.imageId);
|
||||
this.var_407.encode(protocolBuffer,struct.uOffset);
|
||||
this.var_408.encode(protocolBuffer,struct.uScale);
|
||||
this.var_409.encode(protocolBuffer,struct.vOffset);
|
||||
this.var_410.encode(protocolBuffer,struct.vScale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,19 +13,19 @@ package _codec.versions.version1.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-9A§:ICodec;
|
||||
private var var_381:ICodec;
|
||||
|
||||
private var §_-hw§:ICodec;
|
||||
private var var_386:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-Hu§:ICodec;
|
||||
private var var_384:ICodec;
|
||||
|
||||
private var §_-GK§:ICodec;
|
||||
private var var_383:ICodec;
|
||||
|
||||
private var §_-LZ§:ICodec;
|
||||
private var var_385:ICodec;
|
||||
|
||||
private var §_-FU§:ICodec;
|
||||
private var var_382:ICodec;
|
||||
|
||||
public function CodecA3DMaterial()
|
||||
{
|
||||
@@ -34,31 +34,31 @@ package _codec.versions.version1.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-9A§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-hw§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-Hu§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-GK§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-LZ§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-FU§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_381 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_386 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_384 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_383 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_385 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_382 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_diffuseMapId:Id = this.§_-9A§.decode(protocolBuffer) as Id;
|
||||
var value_diffuseMapId:Id = this.var_381.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","diffuseMapId",value_diffuseMapId);
|
||||
var value_glossinessMapId:Id = this.§_-hw§.decode(protocolBuffer) as Id;
|
||||
var value_glossinessMapId:Id = this.var_386.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","glossinessMapId",value_glossinessMapId);
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","id",value_id);
|
||||
var value_lightMapId:Id = this.§_-Hu§.decode(protocolBuffer) as Id;
|
||||
var value_lightMapId:Id = this.var_384.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","lightMapId",value_lightMapId);
|
||||
var value_normalMapId:Id = this.§_-GK§.decode(protocolBuffer) as Id;
|
||||
var value_normalMapId:Id = this.var_383.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","normalMapId",value_normalMapId);
|
||||
var value_opacityMapId:Id = this.§_-LZ§.decode(protocolBuffer) as Id;
|
||||
var value_opacityMapId:Id = this.var_385.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","opacityMapId",value_opacityMapId);
|
||||
var value_specularMapId:Id = this.§_-FU§.decode(protocolBuffer) as Id;
|
||||
var value_specularMapId:Id = this.var_382.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","specularMapId",value_specularMapId);
|
||||
return new A3DMaterial(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_specularMapId);
|
||||
}
|
||||
@@ -70,13 +70,13 @@ package _codec.versions.version1.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DMaterial = A3DMaterial(object);
|
||||
this.§_-9A§.encode(protocolBuffer,struct.diffuseMapId);
|
||||
this.§_-hw§.encode(protocolBuffer,struct.glossinessMapId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-Hu§.encode(protocolBuffer,struct.lightMapId);
|
||||
this.§_-GK§.encode(protocolBuffer,struct.normalMapId);
|
||||
this.§_-LZ§.encode(protocolBuffer,struct.opacityMapId);
|
||||
this.§_-FU§.encode(protocolBuffer,struct.specularMapId);
|
||||
this.var_381.encode(protocolBuffer,struct.diffuseMapId);
|
||||
this.var_386.encode(protocolBuffer,struct.glossinessMapId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_384.encode(protocolBuffer,struct.lightMapId);
|
||||
this.var_383.encode(protocolBuffer,struct.normalMapId);
|
||||
this.var_385.encode(protocolBuffer,struct.opacityMapId);
|
||||
this.var_382.encode(protocolBuffer,struct.specularMapId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ package _codec.versions.version1.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-pM§:ICodec;
|
||||
private var var_284:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
public function CodecA3DBox()
|
||||
{
|
||||
@@ -26,16 +26,16 @@ package _codec.versions.version1.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-pM§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_284 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_box:Vector.<Number> = this.§_-pM§.decode(protocolBuffer) as Vector.<Number>;
|
||||
var value_box:Vector.<Number> = this.var_284.decode(protocolBuffer) as Vector.<Number>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","box",value_box);
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","id",value_id);
|
||||
return new A3DBox(value_box,value_id);
|
||||
}
|
||||
@@ -47,8 +47,8 @@ package _codec.versions.version1.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DBox = A3DBox(object);
|
||||
this.§_-pM§.encode(protocolBuffer,struct.box);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.var_284.encode(protocolBuffer,struct.box);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,21 +17,21 @@ package _codec.versions.version1.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-e§:ICodec;
|
||||
private var var_256:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-Qr§:ICodec;
|
||||
private var var_248:ICodec;
|
||||
|
||||
private var §_-9u§:ICodec;
|
||||
private var var_255:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3DObject()
|
||||
{
|
||||
@@ -40,34 +40,34 @@ package _codec.versions.version1.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-e§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(ParentId,true));
|
||||
this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1));
|
||||
this.§_-9u§ = protocol.getCodec(new TypeCodecInfo(A3DTransformation,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,true));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_256 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(ParentId,true));
|
||||
this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1));
|
||||
this.var_255 = protocol.getCodec(new TypeCodecInfo(A3DTransformation,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:Id = this.§_-Dh§.decode(protocolBuffer) as Id;
|
||||
var value_boundBoxId:Id = this.var_245.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","boundBoxId",value_boundBoxId);
|
||||
var value_geometryId:Id = this.§_-e§.decode(protocolBuffer) as Id;
|
||||
var value_geometryId:Id = this.var_256.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","geometryId",value_geometryId);
|
||||
var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id;
|
||||
var value_id:Id = this.var_243.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","id",value_id);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","name",value_name);
|
||||
var value_parentId:ParentId = this.§_-jk§.decode(protocolBuffer) as ParentId;
|
||||
var value_parentId:ParentId = this.var_254.decode(protocolBuffer) as ParentId;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","parentId",value_parentId);
|
||||
var value_surfaces:Vector.<A3DSurface> = this.§_-Qr§.decode(protocolBuffer) as Vector.<A3DSurface>;
|
||||
var value_surfaces:Vector.<A3DSurface> = this.var_248.decode(protocolBuffer) as Vector.<A3DSurface>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","surfaces",value_surfaces);
|
||||
var value_transformation:A3DTransformation = this.§_-9u§.decode(protocolBuffer) as A3DTransformation;
|
||||
var value_transformation:A3DTransformation = this.var_255.decode(protocolBuffer) as A3DTransformation;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","transformation",value_transformation);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","visible",value_visible);
|
||||
return new A3DObject(value_boundBoxId,value_geometryId,value_id,value_name,value_parentId,value_surfaces,value_transformation,value_visible);
|
||||
}
|
||||
@@ -79,14 +79,14 @@ package _codec.versions.version1.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DObject = A3DObject(object);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-e§.encode(protocolBuffer,struct.geometryId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Qr§.encode(protocolBuffer,struct.surfaces);
|
||||
this.§_-9u§.encode(protocolBuffer,struct.transformation);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_256.encode(protocolBuffer,struct.geometryId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_248.encode(protocolBuffer,struct.surfaces);
|
||||
this.var_255.encode(protocolBuffer,struct.transformation);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,11 +13,11 @@ package _codec.versions.version1.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-AL§:ICodec;
|
||||
private var var_302:ICodec;
|
||||
|
||||
private var §_-Av§:ICodec;
|
||||
private var var_291:ICodec;
|
||||
|
||||
private var §_-pJ§:ICodec;
|
||||
private var var_303:ICodec;
|
||||
|
||||
public function CodecA3DSurface()
|
||||
{
|
||||
@@ -26,19 +26,19 @@ package _codec.versions.version1.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-AL§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-Av§ = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.§_-pJ§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_302 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_291 = protocol.getCodec(new TypeCodecInfo(Id,true));
|
||||
this.var_303 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_indexBegin:int = int(this.§_-AL§.decode(protocolBuffer) as int);
|
||||
var value_indexBegin:int = int(this.var_302.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","indexBegin",value_indexBegin);
|
||||
var value_materialId:Id = this.§_-Av§.decode(protocolBuffer) as Id;
|
||||
var value_materialId:Id = this.var_291.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","materialId",value_materialId);
|
||||
var value_numTriangles:int = int(this.§_-pJ§.decode(protocolBuffer) as int);
|
||||
var value_numTriangles:int = int(this.var_303.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","numTriangles",value_numTriangles);
|
||||
return new A3DSurface(value_indexBegin,value_materialId,value_numTriangles);
|
||||
}
|
||||
@@ -50,9 +50,9 @@ package _codec.versions.version1.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DSurface = A3DSurface(object);
|
||||
this.§_-AL§.encode(protocolBuffer,struct.indexBegin);
|
||||
this.§_-Av§.encode(protocolBuffer,struct.materialId);
|
||||
this.§_-pJ§.encode(protocolBuffer,struct.numTriangles);
|
||||
this.var_302.encode(protocolBuffer,struct.indexBegin);
|
||||
this.var_291.encode(protocolBuffer,struct.materialId);
|
||||
this.var_303.encode(protocolBuffer,struct.numTriangles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ package _codec.versions.version1.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-dG§:ICodec;
|
||||
private var var_411:ICodec;
|
||||
|
||||
public function CodecA3DTransformation()
|
||||
{
|
||||
@@ -22,13 +22,13 @@ package _codec.versions.version1.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-dG§ = protocol.getCodec(new TypeCodecInfo(A3DMatrix,true));
|
||||
this.var_411 = protocol.getCodec(new TypeCodecInfo(A3DMatrix,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_matrix:A3DMatrix = this.§_-dG§.decode(protocolBuffer) as A3DMatrix;
|
||||
var value_matrix:A3DMatrix = this.var_411.decode(protocolBuffer) as A3DMatrix;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DTransformation","matrix",value_matrix);
|
||||
return new A3DTransformation(value_matrix);
|
||||
}
|
||||
@@ -40,7 +40,7 @@ package _codec.versions.version1.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3DTransformation = A3DTransformation(object);
|
||||
this.§_-dG§.encode(protocolBuffer,struct.matrix);
|
||||
this.var_411.encode(protocolBuffer,struct.matrix);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,43 +32,43 @@ package _codec.versions.version2.a3d
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-8X§:ICodec;
|
||||
private var var_355:ICodec;
|
||||
|
||||
private var §_-Fa§:ICodec;
|
||||
private var var_360:ICodec;
|
||||
|
||||
private var §_-Aj§:ICodec;
|
||||
private var var_357:ICodec;
|
||||
|
||||
private var §_-EA§:ICodec;
|
||||
private var var_359:ICodec;
|
||||
|
||||
private var §_-lJ§:ICodec;
|
||||
private var var_367:ICodec;
|
||||
|
||||
private var §_-9f§:ICodec;
|
||||
private var var_356:ICodec;
|
||||
|
||||
private var §_-GC§:ICodec;
|
||||
private var var_361:ICodec;
|
||||
|
||||
private var §_-Sd§:ICodec;
|
||||
private var var_363:ICodec;
|
||||
|
||||
private var §_-76§:ICodec;
|
||||
private var var_353:ICodec;
|
||||
|
||||
private var §_-3f§:ICodec;
|
||||
private var var_244:ICodec;
|
||||
|
||||
private var §_-dB§:ICodec;
|
||||
private var var_365:ICodec;
|
||||
|
||||
private var §_-77§:ICodec;
|
||||
private var var_354:ICodec;
|
||||
|
||||
private var §_-PJ§:ICodec;
|
||||
private var var_362:ICodec;
|
||||
|
||||
private var §_-1x§:ICodec;
|
||||
private var var_351:ICodec;
|
||||
|
||||
private var §_-aP§:ICodec;
|
||||
private var var_364:ICodec;
|
||||
|
||||
private var §_-e9§:ICodec;
|
||||
private var var_366:ICodec;
|
||||
|
||||
private var §_-3y§:ICodec;
|
||||
private var var_352:ICodec;
|
||||
|
||||
private var §_-E2§:ICodec;
|
||||
private var var_358:ICodec;
|
||||
|
||||
private var §_-U9§:ICodec;
|
||||
private var var_250:ICodec;
|
||||
|
||||
public function CodecA3D2()
|
||||
{
|
||||
@@ -77,67 +77,67 @@ package _codec.versions.version2.a3d
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-8X§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1));
|
||||
this.§_-Fa§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1));
|
||||
this.§_-Aj§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1));
|
||||
this.§_-EA§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1));
|
||||
this.§_-lJ§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1));
|
||||
this.§_-9f§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1));
|
||||
this.§_-GC§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1));
|
||||
this.§_-Sd§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1));
|
||||
this.§_-76§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1));
|
||||
this.§_-3f§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1));
|
||||
this.§_-dB§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1));
|
||||
this.§_-77§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1));
|
||||
this.§_-PJ§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1));
|
||||
this.§_-1x§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1));
|
||||
this.§_-aP§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1));
|
||||
this.§_-e9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1));
|
||||
this.§_-3y§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1));
|
||||
this.§_-E2§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,1));
|
||||
this.var_355 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1));
|
||||
this.var_360 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1));
|
||||
this.var_357 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1));
|
||||
this.var_359 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1));
|
||||
this.var_367 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1));
|
||||
this.var_356 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1));
|
||||
this.var_361 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1));
|
||||
this.var_363 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1));
|
||||
this.var_353 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1));
|
||||
this.var_244 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1));
|
||||
this.var_365 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1));
|
||||
this.var_354 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1));
|
||||
this.var_362 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1));
|
||||
this.var_351 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1));
|
||||
this.var_364 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1));
|
||||
this.var_366 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1));
|
||||
this.var_352 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1));
|
||||
this.var_358 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,1));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_ambientLights:Vector.<A3D2AmbientLight> = this.§_-8X§.decode(protocolBuffer) as Vector.<A3D2AmbientLight>;
|
||||
var value_ambientLights:Vector.<A3D2AmbientLight> = this.var_355.decode(protocolBuffer) as Vector.<A3D2AmbientLight>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","ambientLights",value_ambientLights);
|
||||
var value_animationClips:Vector.<A3D2AnimationClip> = this.§_-Fa§.decode(protocolBuffer) as Vector.<A3D2AnimationClip>;
|
||||
var value_animationClips:Vector.<A3D2AnimationClip> = this.var_360.decode(protocolBuffer) as Vector.<A3D2AnimationClip>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationClips",value_animationClips);
|
||||
var value_animationTracks:Vector.<A3D2Track> = this.§_-Aj§.decode(protocolBuffer) as Vector.<A3D2Track>;
|
||||
var value_animationTracks:Vector.<A3D2Track> = this.var_357.decode(protocolBuffer) as Vector.<A3D2Track>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationTracks",value_animationTracks);
|
||||
var value_boxes:Vector.<A3D2Box> = this.§_-EA§.decode(protocolBuffer) as Vector.<A3D2Box>;
|
||||
var value_boxes:Vector.<A3D2Box> = this.var_359.decode(protocolBuffer) as Vector.<A3D2Box>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","boxes",value_boxes);
|
||||
var value_cubeMaps:Vector.<A3D2CubeMap> = this.§_-lJ§.decode(protocolBuffer) as Vector.<A3D2CubeMap>;
|
||||
var value_cubeMaps:Vector.<A3D2CubeMap> = this.var_367.decode(protocolBuffer) as Vector.<A3D2CubeMap>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","cubeMaps",value_cubeMaps);
|
||||
var value_decals:Vector.<A3D2Decal> = this.§_-9f§.decode(protocolBuffer) as Vector.<A3D2Decal>;
|
||||
var value_decals:Vector.<A3D2Decal> = this.var_356.decode(protocolBuffer) as Vector.<A3D2Decal>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","decals",value_decals);
|
||||
var value_directionalLights:Vector.<A3D2DirectionalLight> = this.§_-GC§.decode(protocolBuffer) as Vector.<A3D2DirectionalLight>;
|
||||
var value_directionalLights:Vector.<A3D2DirectionalLight> = this.var_361.decode(protocolBuffer) as Vector.<A3D2DirectionalLight>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","directionalLights",value_directionalLights);
|
||||
var value_images:Vector.<A3D2Image> = this.§_-Sd§.decode(protocolBuffer) as Vector.<A3D2Image>;
|
||||
var value_images:Vector.<A3D2Image> = this.var_363.decode(protocolBuffer) as Vector.<A3D2Image>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","images",value_images);
|
||||
var value_indexBuffers:Vector.<A3D2IndexBuffer> = this.§_-76§.decode(protocolBuffer) as Vector.<A3D2IndexBuffer>;
|
||||
var value_indexBuffers:Vector.<A3D2IndexBuffer> = this.var_353.decode(protocolBuffer) as Vector.<A3D2IndexBuffer>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","indexBuffers",value_indexBuffers);
|
||||
var value_joints:Vector.<A3D2Joint> = this.§_-3f§.decode(protocolBuffer) as Vector.<A3D2Joint>;
|
||||
var value_joints:Vector.<A3D2Joint> = this.var_244.decode(protocolBuffer) as Vector.<A3D2Joint>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","joints",value_joints);
|
||||
var value_maps:Vector.<A3D2Map> = this.§_-dB§.decode(protocolBuffer) as Vector.<A3D2Map>;
|
||||
var value_maps:Vector.<A3D2Map> = this.var_365.decode(protocolBuffer) as Vector.<A3D2Map>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","maps",value_maps);
|
||||
var value_materials:Vector.<A3D2Material> = this.§_-77§.decode(protocolBuffer) as Vector.<A3D2Material>;
|
||||
var value_materials:Vector.<A3D2Material> = this.var_354.decode(protocolBuffer) as Vector.<A3D2Material>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","materials",value_materials);
|
||||
var value_meshes:Vector.<A3D2Mesh> = this.§_-PJ§.decode(protocolBuffer) as Vector.<A3D2Mesh>;
|
||||
var value_meshes:Vector.<A3D2Mesh> = this.var_362.decode(protocolBuffer) as Vector.<A3D2Mesh>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","meshes",value_meshes);
|
||||
var value_objects:Vector.<A3D2Object> = this.§_-1x§.decode(protocolBuffer) as Vector.<A3D2Object>;
|
||||
var value_objects:Vector.<A3D2Object> = this.var_351.decode(protocolBuffer) as Vector.<A3D2Object>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","objects",value_objects);
|
||||
var value_omniLights:Vector.<A3D2OmniLight> = this.§_-aP§.decode(protocolBuffer) as Vector.<A3D2OmniLight>;
|
||||
var value_omniLights:Vector.<A3D2OmniLight> = this.var_364.decode(protocolBuffer) as Vector.<A3D2OmniLight>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","omniLights",value_omniLights);
|
||||
var value_skins:Vector.<A3D2Skin> = this.§_-e9§.decode(protocolBuffer) as Vector.<A3D2Skin>;
|
||||
var value_skins:Vector.<A3D2Skin> = this.var_366.decode(protocolBuffer) as Vector.<A3D2Skin>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","skins",value_skins);
|
||||
var value_spotLights:Vector.<A3D2SpotLight> = this.§_-3y§.decode(protocolBuffer) as Vector.<A3D2SpotLight>;
|
||||
var value_spotLights:Vector.<A3D2SpotLight> = this.var_352.decode(protocolBuffer) as Vector.<A3D2SpotLight>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","spotLights",value_spotLights);
|
||||
var value_sprites:Vector.<A3D2Sprite> = this.§_-E2§.decode(protocolBuffer) as Vector.<A3D2Sprite>;
|
||||
var value_sprites:Vector.<A3D2Sprite> = this.var_358.decode(protocolBuffer) as Vector.<A3D2Sprite>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","sprites",value_sprites);
|
||||
var value_vertexBuffers:Vector.<A3D2VertexBuffer> = this.§_-U9§.decode(protocolBuffer) as Vector.<A3D2VertexBuffer>;
|
||||
var value_vertexBuffers:Vector.<A3D2VertexBuffer> = this.var_250.decode(protocolBuffer) as Vector.<A3D2VertexBuffer>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","vertexBuffers",value_vertexBuffers);
|
||||
return new A3D2(value_ambientLights,value_animationClips,value_animationTracks,value_boxes,value_cubeMaps,value_decals,value_directionalLights,value_images,value_indexBuffers,value_joints,value_maps,value_materials,value_meshes,value_objects,value_omniLights,value_skins,value_spotLights,value_sprites,value_vertexBuffers);
|
||||
}
|
||||
@@ -149,25 +149,25 @@ package _codec.versions.version2.a3d
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2 = A3D2(object);
|
||||
this.§_-8X§.encode(protocolBuffer,struct.ambientLights);
|
||||
this.§_-Fa§.encode(protocolBuffer,struct.animationClips);
|
||||
this.§_-Aj§.encode(protocolBuffer,struct.animationTracks);
|
||||
this.§_-EA§.encode(protocolBuffer,struct.boxes);
|
||||
this.§_-lJ§.encode(protocolBuffer,struct.cubeMaps);
|
||||
this.§_-9f§.encode(protocolBuffer,struct.decals);
|
||||
this.§_-GC§.encode(protocolBuffer,struct.directionalLights);
|
||||
this.§_-Sd§.encode(protocolBuffer,struct.images);
|
||||
this.§_-76§.encode(protocolBuffer,struct.indexBuffers);
|
||||
this.§_-3f§.encode(protocolBuffer,struct.joints);
|
||||
this.§_-dB§.encode(protocolBuffer,struct.maps);
|
||||
this.§_-77§.encode(protocolBuffer,struct.materials);
|
||||
this.§_-PJ§.encode(protocolBuffer,struct.meshes);
|
||||
this.§_-1x§.encode(protocolBuffer,struct.objects);
|
||||
this.§_-aP§.encode(protocolBuffer,struct.omniLights);
|
||||
this.§_-e9§.encode(protocolBuffer,struct.skins);
|
||||
this.§_-3y§.encode(protocolBuffer,struct.spotLights);
|
||||
this.§_-E2§.encode(protocolBuffer,struct.sprites);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.var_355.encode(protocolBuffer,struct.ambientLights);
|
||||
this.var_360.encode(protocolBuffer,struct.animationClips);
|
||||
this.var_357.encode(protocolBuffer,struct.animationTracks);
|
||||
this.var_359.encode(protocolBuffer,struct.boxes);
|
||||
this.var_367.encode(protocolBuffer,struct.cubeMaps);
|
||||
this.var_356.encode(protocolBuffer,struct.decals);
|
||||
this.var_361.encode(protocolBuffer,struct.directionalLights);
|
||||
this.var_363.encode(protocolBuffer,struct.images);
|
||||
this.var_353.encode(protocolBuffer,struct.indexBuffers);
|
||||
this.var_244.encode(protocolBuffer,struct.joints);
|
||||
this.var_365.encode(protocolBuffer,struct.maps);
|
||||
this.var_354.encode(protocolBuffer,struct.materials);
|
||||
this.var_362.encode(protocolBuffer,struct.meshes);
|
||||
this.var_351.encode(protocolBuffer,struct.objects);
|
||||
this.var_364.encode(protocolBuffer,struct.omniLights);
|
||||
this.var_366.encode(protocolBuffer,struct.skins);
|
||||
this.var_352.encode(protocolBuffer,struct.spotLights);
|
||||
this.var_358.encode(protocolBuffer,struct.sprites);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,15 +14,15 @@ package _codec.versions.version2.a3d.animation
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-HX§:ICodec;
|
||||
private var var_304:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-Td§:ICodec;
|
||||
private var var_305:ICodec;
|
||||
|
||||
private var §_-Z-§:ICodec;
|
||||
private var var_306:ICodec;
|
||||
|
||||
public function CodecA3D2AnimationClip()
|
||||
{
|
||||
@@ -31,25 +31,25 @@ package _codec.versions.version2.a3d.animation
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-HX§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-Td§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1));
|
||||
this.§_-Z-§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_304 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_305 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1));
|
||||
this.var_306 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","id",value_id);
|
||||
var value_loop:Boolean = Boolean(this.§_-HX§.decode(protocolBuffer) as Boolean);
|
||||
var value_loop:Boolean = Boolean(this.var_304.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","loop",value_loop);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","name",value_name);
|
||||
var value_objectIDs:Vector.<Long> = this.§_-Td§.decode(protocolBuffer) as Vector.<Long>;
|
||||
var value_objectIDs:Vector.<Long> = this.var_305.decode(protocolBuffer) as Vector.<Long>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","objectIDs",value_objectIDs);
|
||||
var value_tracks:Vector.<int> = this.§_-Z-§.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_tracks:Vector.<int> = this.var_306.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","tracks",value_tracks);
|
||||
return new A3D2AnimationClip(value_id,value_loop,value_name,value_objectIDs,value_tracks);
|
||||
}
|
||||
@@ -61,11 +61,11 @@ package _codec.versions.version2.a3d.animation
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2AnimationClip = A3D2AnimationClip(object);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-HX§.encode(protocolBuffer,struct.loop);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-Td§.encode(protocolBuffer,struct.objectIDs);
|
||||
this.§_-Z-§.encode(protocolBuffer,struct.tracks);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_304.encode(protocolBuffer,struct.loop);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_305.encode(protocolBuffer,struct.objectIDs);
|
||||
this.var_306.encode(protocolBuffer,struct.tracks);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ package _codec.versions.version2.a3d.animation
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-dk§:ICodec;
|
||||
private var var_395:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
public function CodecA3D2Keyframe()
|
||||
{
|
||||
@@ -25,16 +25,16 @@ package _codec.versions.version2.a3d.animation
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-dk§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false));
|
||||
this.var_395 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_time:Number = Number(this.§_-dk§.decode(protocolBuffer) as Number);
|
||||
var value_time:Number = Number(this.var_395.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","time",value_time);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","transform",value_transform);
|
||||
return new A3D2Keyframe(value_time,value_transform);
|
||||
}
|
||||
@@ -46,8 +46,8 @@ package _codec.versions.version2.a3d.animation
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Keyframe = A3D2Keyframe(object);
|
||||
this.§_-dk§.encode(protocolBuffer,struct.time);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.var_395.encode(protocolBuffer,struct.time);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ package _codec.versions.version2.a3d.animation
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-Ja§:ICodec;
|
||||
private var var_394:ICodec;
|
||||
|
||||
private var §_-Fo§:ICodec;
|
||||
private var var_393:ICodec;
|
||||
|
||||
public function CodecA3D2Track()
|
||||
{
|
||||
@@ -27,19 +27,19 @@ package _codec.versions.version2.a3d.animation
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-Ja§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1));
|
||||
this.§_-Fo§ = protocol.getCodec(new TypeCodecInfo(String,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_394 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1));
|
||||
this.var_393 = protocol.getCodec(new TypeCodecInfo(String,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","id",value_id);
|
||||
var value_keyframes:Vector.<A3D2Keyframe> = this.§_-Ja§.decode(protocolBuffer) as Vector.<A3D2Keyframe>;
|
||||
var value_keyframes:Vector.<A3D2Keyframe> = this.var_394.decode(protocolBuffer) as Vector.<A3D2Keyframe>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","keyframes",value_keyframes);
|
||||
var value_objectName:String = this.§_-Fo§.decode(protocolBuffer) as String;
|
||||
var value_objectName:String = this.var_393.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","objectName",value_objectName);
|
||||
return new A3D2Track(value_id,value_keyframes,value_objectName);
|
||||
}
|
||||
@@ -51,9 +51,9 @@ package _codec.versions.version2.a3d.animation
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Track = A3D2Track(object);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-Ja§.encode(protocolBuffer,struct.keyframes);
|
||||
this.§_-Fo§.encode(protocolBuffer,struct.objectName);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_394.encode(protocolBuffer,struct.keyframes);
|
||||
this.var_393.encode(protocolBuffer,struct.objectName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,11 +13,11 @@ package _codec.versions.version2.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-GN§:ICodec;
|
||||
private var var_240:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-mz§:ICodec;
|
||||
private var var_308:ICodec;
|
||||
|
||||
public function CodecA3D2IndexBuffer()
|
||||
{
|
||||
@@ -26,19 +26,19 @@ package _codec.versions.version2.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-mz§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_308 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray;
|
||||
var value_byteBuffer:ByteArray = this.var_240.decode(protocolBuffer) as ByteArray;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","byteBuffer",value_byteBuffer);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","id",value_id);
|
||||
var value_indexCount:int = int(this.§_-mz§.decode(protocolBuffer) as int);
|
||||
var value_indexCount:int = int(this.var_308.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","indexCount",value_indexCount);
|
||||
return new A3D2IndexBuffer(value_byteBuffer,value_id,value_indexCount);
|
||||
}
|
||||
@@ -50,9 +50,9 @@ package _codec.versions.version2.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2IndexBuffer = A3D2IndexBuffer(object);
|
||||
this.§_-GN§.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-mz§.encode(protocolBuffer,struct.indexCount);
|
||||
this.var_240.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_308.encode(protocolBuffer,struct.indexCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,13 +17,13 @@ package _codec.versions.version2.a3d.geometry
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Lj§:ICodec;
|
||||
private var var_241:ICodec;
|
||||
|
||||
private var §_-GN§:ICodec;
|
||||
private var var_240:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-hc§:ICodec;
|
||||
private var var_242:ICodec;
|
||||
|
||||
public function CodecA3D2VertexBuffer()
|
||||
{
|
||||
@@ -32,22 +32,22 @@ package _codec.versions.version2.a3d.geometry
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Lj§ = protocol.getCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1));
|
||||
this.§_-GN§ = protocol.getCodec(new TypeCodecInfo(ByteArray,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-hc§ = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.var_241 = protocol.getCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1));
|
||||
this.var_240 = protocol.getCodec(new TypeCodecInfo(ByteArray,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_242 = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_attributes:Vector.<A3D2VertexAttributes> = this.§_-Lj§.decode(protocolBuffer) as Vector.<A3D2VertexAttributes>;
|
||||
var value_attributes:Vector.<A3D2VertexAttributes> = this.var_241.decode(protocolBuffer) as Vector.<A3D2VertexAttributes>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","attributes",value_attributes);
|
||||
var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray;
|
||||
var value_byteBuffer:ByteArray = this.var_240.decode(protocolBuffer) as ByteArray;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","byteBuffer",value_byteBuffer);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","id",value_id);
|
||||
var value_vertexCount:uint = uint(this.§_-hc§.decode(protocolBuffer) as uint);
|
||||
var value_vertexCount:uint = uint(this.var_242.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","vertexCount",value_vertexCount);
|
||||
return new A3D2VertexBuffer(value_attributes,value_byteBuffer,value_id,value_vertexCount);
|
||||
}
|
||||
@@ -59,10 +59,10 @@ package _codec.versions.version2.a3d.geometry
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2VertexBuffer = A3D2VertexBuffer(object);
|
||||
this.§_-Lj§.encode(protocolBuffer,struct.attributes);
|
||||
this.§_-GN§.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-hc§.encode(protocolBuffer,struct.vertexCount);
|
||||
this.var_241.encode(protocolBuffer,struct.attributes);
|
||||
this.var_240.encode(protocolBuffer,struct.byteBuffer);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_242.encode(protocolBuffer,struct.vertexCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,19 +12,19 @@ package _codec.versions.version2.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Yc§:ICodec;
|
||||
private var var_372:ICodec;
|
||||
|
||||
private var §_-SV§:ICodec;
|
||||
private var var_370:ICodec;
|
||||
|
||||
private var §_-Ni§:ICodec;
|
||||
private var var_369:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-nb§:ICodec;
|
||||
private var var_373:ICodec;
|
||||
|
||||
private var §_-23§:ICodec;
|
||||
private var var_368:ICodec;
|
||||
|
||||
private var §_-TW§:ICodec;
|
||||
private var var_371:ICodec;
|
||||
|
||||
public function CodecA3D2CubeMap()
|
||||
{
|
||||
@@ -33,31 +33,31 @@ package _codec.versions.version2.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Yc§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-SV§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Ni§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-nb§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-23§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-TW§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_372 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_370 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_369 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_373 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_368 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_371 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_backId:int = int(this.§_-Yc§.decode(protocolBuffer) as int);
|
||||
var value_backId:int = int(this.var_372.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","backId",value_backId);
|
||||
var value_bottomId:int = int(this.§_-SV§.decode(protocolBuffer) as int);
|
||||
var value_bottomId:int = int(this.var_370.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","bottomId",value_bottomId);
|
||||
var value_frontId:int = int(this.§_-Ni§.decode(protocolBuffer) as int);
|
||||
var value_frontId:int = int(this.var_369.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","frontId",value_frontId);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","id",value_id);
|
||||
var value_leftId:int = int(this.§_-nb§.decode(protocolBuffer) as int);
|
||||
var value_leftId:int = int(this.var_373.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","leftId",value_leftId);
|
||||
var value_rightId:int = int(this.§_-23§.decode(protocolBuffer) as int);
|
||||
var value_rightId:int = int(this.var_368.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","rightId",value_rightId);
|
||||
var value_topId:int = int(this.§_-TW§.decode(protocolBuffer) as int);
|
||||
var value_topId:int = int(this.var_371.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","topId",value_topId);
|
||||
return new A3D2CubeMap(value_backId,value_bottomId,value_frontId,value_id,value_leftId,value_rightId,value_topId);
|
||||
}
|
||||
@@ -69,13 +69,13 @@ package _codec.versions.version2.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2CubeMap = A3D2CubeMap(object);
|
||||
this.§_-Yc§.encode(protocolBuffer,struct.backId);
|
||||
this.§_-SV§.encode(protocolBuffer,struct.bottomId);
|
||||
this.§_-Ni§.encode(protocolBuffer,struct.frontId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-nb§.encode(protocolBuffer,struct.leftId);
|
||||
this.§_-23§.encode(protocolBuffer,struct.rightId);
|
||||
this.§_-TW§.encode(protocolBuffer,struct.topId);
|
||||
this.var_372.encode(protocolBuffer,struct.backId);
|
||||
this.var_370.encode(protocolBuffer,struct.bottomId);
|
||||
this.var_369.encode(protocolBuffer,struct.frontId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_373.encode(protocolBuffer,struct.leftId);
|
||||
this.var_368.encode(protocolBuffer,struct.rightId);
|
||||
this.var_371.encode(protocolBuffer,struct.topId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ package _codec.versions.version2.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-aV§:ICodec;
|
||||
private var var_307:ICodec;
|
||||
|
||||
public function CodecA3D2Image()
|
||||
{
|
||||
@@ -23,16 +23,16 @@ package _codec.versions.version2.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-aV§ = protocol.getCodec(new TypeCodecInfo(String,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_307 = protocol.getCodec(new TypeCodecInfo(String,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","id",value_id);
|
||||
var value_url:String = this.§_-aV§.decode(protocolBuffer) as String;
|
||||
var value_url:String = this.var_307.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","url",value_url);
|
||||
return new A3D2Image(value_id,value_url);
|
||||
}
|
||||
@@ -44,8 +44,8 @@ package _codec.versions.version2.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Image = A3D2Image(object);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-aV§.encode(protocolBuffer,struct.url);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_307.encode(protocolBuffer,struct.url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,11 +13,11 @@ package _codec.versions.version2.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-mC§:ICodec;
|
||||
private var var_322:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-2N§:ICodec;
|
||||
private var var_321:ICodec;
|
||||
|
||||
public function CodecA3D2Map()
|
||||
{
|
||||
@@ -26,19 +26,19 @@ package _codec.versions.version2.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-mC§ = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-2N§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_322 = protocol.getCodec(new TypeCodecInfo(UShort,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_321 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_channel:uint = uint(this.§_-mC§.decode(protocolBuffer) as uint);
|
||||
var value_channel:uint = uint(this.var_322.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","channel",value_channel);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","id",value_id);
|
||||
var value_imageId:int = int(this.§_-2N§.decode(protocolBuffer) as int);
|
||||
var value_imageId:int = int(this.var_321.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","imageId",value_imageId);
|
||||
return new A3D2Map(value_channel,value_id,value_imageId);
|
||||
}
|
||||
@@ -50,9 +50,9 @@ package _codec.versions.version2.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Map = A3D2Map(object);
|
||||
this.§_-mC§.encode(protocolBuffer,struct.channel);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-2N§.encode(protocolBuffer,struct.imageId);
|
||||
this.var_322.encode(protocolBuffer,struct.channel);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_321.encode(protocolBuffer,struct.imageId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,21 +12,21 @@ package _codec.versions.version2.a3d.materials
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-9A§:ICodec;
|
||||
private var var_381:ICodec;
|
||||
|
||||
private var §_-hw§:ICodec;
|
||||
private var var_386:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-Hu§:ICodec;
|
||||
private var var_384:ICodec;
|
||||
|
||||
private var §_-GK§:ICodec;
|
||||
private var var_383:ICodec;
|
||||
|
||||
private var §_-LZ§:ICodec;
|
||||
private var var_385:ICodec;
|
||||
|
||||
private var §_-bz§:ICodec;
|
||||
private var var_418:ICodec;
|
||||
|
||||
private var §_-FU§:ICodec;
|
||||
private var var_382:ICodec;
|
||||
|
||||
public function CodecA3D2Material()
|
||||
{
|
||||
@@ -35,34 +35,34 @@ package _codec.versions.version2.a3d.materials
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-9A§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-hw§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-Hu§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-GK§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-LZ§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-bz§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-FU§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_381 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_386 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_384 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_383 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_385 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_418 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_382 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_diffuseMapId:int = int(this.§_-9A§.decode(protocolBuffer) as int);
|
||||
var value_diffuseMapId:int = int(this.var_381.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","diffuseMapId",value_diffuseMapId);
|
||||
var value_glossinessMapId:int = int(this.§_-hw§.decode(protocolBuffer) as int);
|
||||
var value_glossinessMapId:int = int(this.var_386.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","glossinessMapId",value_glossinessMapId);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","id",value_id);
|
||||
var value_lightMapId:int = int(this.§_-Hu§.decode(protocolBuffer) as int);
|
||||
var value_lightMapId:int = int(this.var_384.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","lightMapId",value_lightMapId);
|
||||
var value_normalMapId:int = int(this.§_-GK§.decode(protocolBuffer) as int);
|
||||
var value_normalMapId:int = int(this.var_383.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","normalMapId",value_normalMapId);
|
||||
var value_opacityMapId:int = int(this.§_-LZ§.decode(protocolBuffer) as int);
|
||||
var value_opacityMapId:int = int(this.var_385.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","opacityMapId",value_opacityMapId);
|
||||
var value_reflectionCubeMapId:int = int(this.§_-bz§.decode(protocolBuffer) as int);
|
||||
var value_reflectionCubeMapId:int = int(this.var_418.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","reflectionCubeMapId",value_reflectionCubeMapId);
|
||||
var value_specularMapId:int = int(this.§_-FU§.decode(protocolBuffer) as int);
|
||||
var value_specularMapId:int = int(this.var_382.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","specularMapId",value_specularMapId);
|
||||
return new A3D2Material(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_reflectionCubeMapId,value_specularMapId);
|
||||
}
|
||||
@@ -74,14 +74,14 @@ package _codec.versions.version2.a3d.materials
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Material = A3D2Material(object);
|
||||
this.§_-9A§.encode(protocolBuffer,struct.diffuseMapId);
|
||||
this.§_-hw§.encode(protocolBuffer,struct.glossinessMapId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-Hu§.encode(protocolBuffer,struct.lightMapId);
|
||||
this.§_-GK§.encode(protocolBuffer,struct.normalMapId);
|
||||
this.§_-LZ§.encode(protocolBuffer,struct.opacityMapId);
|
||||
this.§_-bz§.encode(protocolBuffer,struct.reflectionCubeMapId);
|
||||
this.§_-FU§.encode(protocolBuffer,struct.specularMapId);
|
||||
this.var_381.encode(protocolBuffer,struct.diffuseMapId);
|
||||
this.var_386.encode(protocolBuffer,struct.glossinessMapId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_384.encode(protocolBuffer,struct.lightMapId);
|
||||
this.var_383.encode(protocolBuffer,struct.normalMapId);
|
||||
this.var_385.encode(protocolBuffer,struct.opacityMapId);
|
||||
this.var_418.encode(protocolBuffer,struct.reflectionCubeMapId);
|
||||
this.var_382.encode(protocolBuffer,struct.specularMapId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,21 +15,21 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-Po§:ICodec;
|
||||
private var var_260:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-JX§:ICodec;
|
||||
private var var_258:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3D2AmbientLight()
|
||||
{
|
||||
@@ -38,34 +38,34 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","boundBoxId",value_boundBoxId);
|
||||
var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint);
|
||||
var value_color:uint = uint(this.var_260.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","color",value_color);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","id",value_id);
|
||||
var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number);
|
||||
var value_intensity:Number = Number(this.var_258.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","intensity",value_intensity);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","name",value_name);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","visible",value_visible);
|
||||
return new A3D2AmbientLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -77,14 +77,14 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2AmbientLight = A3D2AmbientLight(object);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-Po§.encode(protocolBuffer,struct.color);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-JX§.encode(protocolBuffer,struct.intensity);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_260.encode(protocolBuffer,struct.color);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_258.encode(protocolBuffer,struct.intensity);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-pM§:ICodec;
|
||||
private var var_284:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
public function CodecA3D2Box()
|
||||
{
|
||||
@@ -25,16 +25,16 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-pM§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_284 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_box:Vector.<Number> = this.§_-pM§.decode(protocolBuffer) as Vector.<Number>;
|
||||
var value_box:Vector.<Number> = this.var_284.decode(protocolBuffer) as Vector.<Number>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","box",value_box);
|
||||
var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int);
|
||||
var value_id:int = int(this.var_243.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","id",value_id);
|
||||
return new A3D2Box(value_box,value_id);
|
||||
}
|
||||
@@ -46,8 +46,8 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Box = A3D2Box(object);
|
||||
this.§_-pM§.encode(protocolBuffer,struct.box);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.var_284.encode(protocolBuffer,struct.box);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,25 +17,25 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-PO§:ICodec;
|
||||
private var var_247:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-Zb§:ICodec;
|
||||
private var var_309:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-Qr§:ICodec;
|
||||
private var var_248:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-U9§:ICodec;
|
||||
private var var_250:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3D2Decal()
|
||||
{
|
||||
@@ -44,40 +44,40 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-PO§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-Zb§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_247 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_309 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","id",value_id);
|
||||
var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int);
|
||||
var value_indexBufferId:int = int(this.var_247.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","indexBufferId",value_indexBufferId);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","name",value_name);
|
||||
var value_offset:Number = Number(this.§_-Zb§.decode(protocolBuffer) as Number);
|
||||
var value_offset:Number = Number(this.var_309.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","offset",value_offset);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","parentId",value_parentId);
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.§_-Qr§.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.var_248.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","surfaces",value_surfaces);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","transform",value_transform);
|
||||
var value_vertexBuffers:Vector.<int> = this.§_-U9§.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_vertexBuffers:Vector.<int> = this.var_250.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","vertexBuffers",value_vertexBuffers);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","visible",value_visible);
|
||||
return new A3D2Decal(value_boundBoxId,value_id,value_indexBufferId,value_name,value_offset,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible);
|
||||
}
|
||||
@@ -89,16 +89,16 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Decal = A3D2Decal(object);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-PO§.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-Zb§.encode(protocolBuffer,struct.offset);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Qr§.encode(protocolBuffer,struct.surfaces);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_247.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_309.encode(protocolBuffer,struct.offset);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_248.encode(protocolBuffer,struct.surfaces);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,21 +15,21 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-Po§:ICodec;
|
||||
private var var_260:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-JX§:ICodec;
|
||||
private var var_258:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3D2DirectionalLight()
|
||||
{
|
||||
@@ -38,34 +38,34 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","boundBoxId",value_boundBoxId);
|
||||
var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint);
|
||||
var value_color:uint = uint(this.var_260.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","color",value_color);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","id",value_id);
|
||||
var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number);
|
||||
var value_intensity:Number = Number(this.var_258.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","intensity",value_intensity);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","name",value_name);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","visible",value_visible);
|
||||
return new A3D2DirectionalLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -77,14 +77,14 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2DirectionalLight = A3D2DirectionalLight(object);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-Po§.encode(protocolBuffer,struct.color);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-JX§.encode(protocolBuffer,struct.intensity);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_260.encode(protocolBuffer,struct.color);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_258.encode(protocolBuffer,struct.intensity);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,17 +14,17 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3D2Joint()
|
||||
{
|
||||
@@ -33,28 +33,28 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","id",value_id);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","name",value_name);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","visible",value_visible);
|
||||
return new A3D2Joint(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -66,12 +66,12 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Joint = A3D2Joint(object);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Ov§:ICodec;
|
||||
private var var_380:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
public function CodecA3D2JointBindTransform()
|
||||
{
|
||||
@@ -25,16 +25,16 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Ov§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_380 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_bindPoseTransform:A3D2Transform = this.§_-Ov§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_bindPoseTransform:A3D2Transform = this.var_380.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","bindPoseTransform",value_bindPoseTransform);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","id",value_id);
|
||||
return new A3D2JointBindTransform(value_bindPoseTransform,value_id);
|
||||
}
|
||||
@@ -46,8 +46,8 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2JointBindTransform = A3D2JointBindTransform(object);
|
||||
this.§_-Ov§.encode(protocolBuffer,struct.bindPoseTransform);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.var_380.encode(protocolBuffer,struct.bindPoseTransform);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,23 +16,23 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-PO§:ICodec;
|
||||
private var var_247:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-Qr§:ICodec;
|
||||
private var var_248:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-U9§:ICodec;
|
||||
private var var_250:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3D2Mesh()
|
||||
{
|
||||
@@ -41,37 +41,37 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-PO§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_247 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","id",value_id);
|
||||
var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int);
|
||||
var value_indexBufferId:int = int(this.var_247.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","indexBufferId",value_indexBufferId);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","name",value_name);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","parentId",value_parentId);
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.§_-Qr§.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.var_248.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","surfaces",value_surfaces);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","transform",value_transform);
|
||||
var value_vertexBuffers:Vector.<int> = this.§_-U9§.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_vertexBuffers:Vector.<int> = this.var_250.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","vertexBuffers",value_vertexBuffers);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","visible",value_visible);
|
||||
return new A3D2Mesh(value_boundBoxId,value_id,value_indexBufferId,value_name,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible);
|
||||
}
|
||||
@@ -83,15 +83,15 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Mesh = A3D2Mesh(object);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-PO§.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Qr§.encode(protocolBuffer,struct.surfaces);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_247.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_248.encode(protocolBuffer,struct.surfaces);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,17 +14,17 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3D2Object()
|
||||
{
|
||||
@@ -33,28 +33,28 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","id",value_id);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","name",value_name);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","visible",value_visible);
|
||||
return new A3D2Object(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -66,12 +66,12 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Object = A3D2Object(object);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,25 +15,25 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-KK§:ICodec;
|
||||
private var var_259:ICodec;
|
||||
|
||||
private var §_-H3§:ICodec;
|
||||
private var var_257:ICodec;
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-Po§:ICodec;
|
||||
private var var_260:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-JX§:ICodec;
|
||||
private var var_258:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3D2OmniLight()
|
||||
{
|
||||
@@ -42,40 +42,40 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-KK§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-H3§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_259 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_257 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_attenuationBegin:Number = Number(this.§_-KK§.decode(protocolBuffer) as Number);
|
||||
var value_attenuationBegin:Number = Number(this.var_259.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationBegin",value_attenuationBegin);
|
||||
var value_attenuationEnd:Number = Number(this.§_-H3§.decode(protocolBuffer) as Number);
|
||||
var value_attenuationEnd:Number = Number(this.var_257.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationEnd",value_attenuationEnd);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","boundBoxId",value_boundBoxId);
|
||||
var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint);
|
||||
var value_color:uint = uint(this.var_260.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","color",value_color);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","id",value_id);
|
||||
var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number);
|
||||
var value_intensity:Number = Number(this.var_258.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","intensity",value_intensity);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","name",value_name);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","visible",value_visible);
|
||||
return new A3D2OmniLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -87,16 +87,16 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2OmniLight = A3D2OmniLight(object);
|
||||
this.§_-KK§.encode(protocolBuffer,struct.attenuationBegin);
|
||||
this.§_-H3§.encode(protocolBuffer,struct.attenuationEnd);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-Po§.encode(protocolBuffer,struct.color);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-JX§.encode(protocolBuffer,struct.intensity);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_259.encode(protocolBuffer,struct.attenuationBegin);
|
||||
this.var_257.encode(protocolBuffer,struct.attenuationEnd);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_260.encode(protocolBuffer,struct.color);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_258.encode(protocolBuffer,struct.intensity);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,29 +18,29 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-PO§:ICodec;
|
||||
private var var_247:ICodec;
|
||||
|
||||
private var §_-dR§:ICodec;
|
||||
private var var_252:ICodec;
|
||||
|
||||
private var §_-3f§:ICodec;
|
||||
private var var_244:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-Mx§:ICodec;
|
||||
private var var_246:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-Qr§:ICodec;
|
||||
private var var_248:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-U9§:ICodec;
|
||||
private var var_250:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3D2Skin()
|
||||
{
|
||||
@@ -49,46 +49,46 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-PO§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-dR§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1));
|
||||
this.§_-3f§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-Mx§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-Qr§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-U9§ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_247 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_252 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1));
|
||||
this.var_244 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_246 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_248 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_250 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","boundBoxId",value_boundBoxId);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","id",value_id);
|
||||
var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int);
|
||||
var value_indexBufferId:int = int(this.var_247.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","indexBufferId",value_indexBufferId);
|
||||
var value_jointBindTransforms:Vector.<A3D2JointBindTransform> = this.§_-dR§.decode(protocolBuffer) as Vector.<A3D2JointBindTransform>;
|
||||
var value_jointBindTransforms:Vector.<A3D2JointBindTransform> = this.var_252.decode(protocolBuffer) as Vector.<A3D2JointBindTransform>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","jointBindTransforms",value_jointBindTransforms);
|
||||
var value_joints:Vector.<Long> = this.§_-3f§.decode(protocolBuffer) as Vector.<Long>;
|
||||
var value_joints:Vector.<Long> = this.var_244.decode(protocolBuffer) as Vector.<Long>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","joints",value_joints);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","name",value_name);
|
||||
var value_numJoints:Vector.<uint> = this.§_-Mx§.decode(protocolBuffer) as Vector.<uint>;
|
||||
var value_numJoints:Vector.<uint> = this.var_246.decode(protocolBuffer) as Vector.<uint>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","numJoints",value_numJoints);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","parentId",value_parentId);
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.§_-Qr§.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
var value_surfaces:Vector.<A3D2Surface> = this.var_248.decode(protocolBuffer) as Vector.<A3D2Surface>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","surfaces",value_surfaces);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","transform",value_transform);
|
||||
var value_vertexBuffers:Vector.<int> = this.§_-U9§.decode(protocolBuffer) as Vector.<int>;
|
||||
var value_vertexBuffers:Vector.<int> = this.var_250.decode(protocolBuffer) as Vector.<int>;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","vertexBuffers",value_vertexBuffers);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","visible",value_visible);
|
||||
return new A3D2Skin(value_boundBoxId,value_id,value_indexBufferId,value_jointBindTransforms,value_joints,value_name,value_numJoints,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible);
|
||||
}
|
||||
@@ -100,18 +100,18 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Skin = A3D2Skin(object);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-PO§.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.§_-dR§.encode(protocolBuffer,struct.jointBindTransforms);
|
||||
this.§_-3f§.encode(protocolBuffer,struct.joints);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-Mx§.encode(protocolBuffer,struct.numJoints);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Qr§.encode(protocolBuffer,struct.surfaces);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-U9§.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_247.encode(protocolBuffer,struct.indexBufferId);
|
||||
this.var_252.encode(protocolBuffer,struct.jointBindTransforms);
|
||||
this.var_244.encode(protocolBuffer,struct.joints);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_246.encode(protocolBuffer,struct.numJoints);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_248.encode(protocolBuffer,struct.surfaces);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_250.encode(protocolBuffer,struct.vertexBuffers);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,29 +15,29 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-KK§:ICodec;
|
||||
private var var_259:ICodec;
|
||||
|
||||
private var §_-H3§:ICodec;
|
||||
private var var_257:ICodec;
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-Po§:ICodec;
|
||||
private var var_260:ICodec;
|
||||
|
||||
private var §_-GX§:ICodec;
|
||||
private var var_286:ICodec;
|
||||
|
||||
private var §_-YW§:ICodec;
|
||||
private var var_287:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-JX§:ICodec;
|
||||
private var var_258:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
public function CodecA3D2SpotLight()
|
||||
{
|
||||
@@ -46,46 +46,46 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-KK§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-H3§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-Po§ = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.§_-GX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-YW§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-JX§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_259 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_257 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_260 = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.var_286 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_287 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_258 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_attenuationBegin:Number = Number(this.§_-KK§.decode(protocolBuffer) as Number);
|
||||
var value_attenuationBegin:Number = Number(this.var_259.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationBegin",value_attenuationBegin);
|
||||
var value_attenuationEnd:Number = Number(this.§_-H3§.decode(protocolBuffer) as Number);
|
||||
var value_attenuationEnd:Number = Number(this.var_257.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationEnd",value_attenuationEnd);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","boundBoxId",value_boundBoxId);
|
||||
var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint);
|
||||
var value_color:uint = uint(this.var_260.decode(protocolBuffer) as uint);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","color",value_color);
|
||||
var value_falloff:Number = Number(this.§_-GX§.decode(protocolBuffer) as Number);
|
||||
var value_falloff:Number = Number(this.var_286.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","falloff",value_falloff);
|
||||
var value_hotspot:Number = Number(this.§_-YW§.decode(protocolBuffer) as Number);
|
||||
var value_hotspot:Number = Number(this.var_287.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","hotspot",value_hotspot);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","id",value_id);
|
||||
var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number);
|
||||
var value_intensity:Number = Number(this.var_258.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","intensity",value_intensity);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","name",value_name);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","parentId",value_parentId);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","visible",value_visible);
|
||||
return new A3D2SpotLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_falloff,value_hotspot,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible);
|
||||
}
|
||||
@@ -97,18 +97,18 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2SpotLight = A3D2SpotLight(object);
|
||||
this.§_-KK§.encode(protocolBuffer,struct.attenuationBegin);
|
||||
this.§_-H3§.encode(protocolBuffer,struct.attenuationEnd);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-Po§.encode(protocolBuffer,struct.color);
|
||||
this.§_-GX§.encode(protocolBuffer,struct.falloff);
|
||||
this.§_-YW§.encode(protocolBuffer,struct.hotspot);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-JX§.encode(protocolBuffer,struct.intensity);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.var_259.encode(protocolBuffer,struct.attenuationBegin);
|
||||
this.var_257.encode(protocolBuffer,struct.attenuationEnd);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_260.encode(protocolBuffer,struct.color);
|
||||
this.var_286.encode(protocolBuffer,struct.falloff);
|
||||
this.var_287.encode(protocolBuffer,struct.hotspot);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_258.encode(protocolBuffer,struct.intensity);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,33 +16,33 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-XZ§:ICodec;
|
||||
private var var_295:ICodec;
|
||||
|
||||
private var §_-Dh§:ICodec;
|
||||
private var var_245:ICodec;
|
||||
|
||||
private var §_-X§:ICodec;
|
||||
private var var_294:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var var_243:ICodec;
|
||||
|
||||
private var §_-Av§:ICodec;
|
||||
private var var_291:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var var_251:ICodec;
|
||||
|
||||
private var §_-Pk§:ICodec;
|
||||
private var var_292:ICodec;
|
||||
|
||||
private var §_-j1§:ICodec;
|
||||
private var var_297:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var var_254:ICodec;
|
||||
|
||||
private var §_-Yz§:ICodec;
|
||||
private var var_296:ICodec;
|
||||
|
||||
private var §_-SJ§:ICodec;
|
||||
private var var_293:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var var_249:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var var_253:ICodec;
|
||||
|
||||
private var §_-pD§:ICodec;
|
||||
private var var_298:ICodec;
|
||||
|
||||
public function CodecA3D2Sprite()
|
||||
{
|
||||
@@ -51,52 +51,52 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-XZ§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-Dh§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-X§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.§_-Av§ = protocol.getCodec(new TypeCodecInfo(Id,false));
|
||||
this.§_-XW§ = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.§_-Pk§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-j1§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-jk§ = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.§_-Yz§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-SJ§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.§_-S2§ = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.§_-h9§ = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.§_-pD§ = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_295 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_245 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_294 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_243 = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.var_291 = protocol.getCodec(new TypeCodecInfo(Id,false));
|
||||
this.var_251 = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.var_292 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_297 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_254 = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.var_296 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_293 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.var_249 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.var_253 = protocol.getCodec(new TypeCodecInfo(Boolean,false));
|
||||
this.var_298 = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_alwaysOnTop:Boolean = Boolean(this.§_-XZ§.decode(protocolBuffer) as Boolean);
|
||||
var value_alwaysOnTop:Boolean = Boolean(this.var_295.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","alwaysOnTop",value_alwaysOnTop);
|
||||
var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int);
|
||||
var value_boundBoxId:int = int(this.var_245.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","boundBoxId",value_boundBoxId);
|
||||
var value_height:Number = Number(this.§_-X§.decode(protocolBuffer) as Number);
|
||||
var value_height:Number = Number(this.var_294.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","height",value_height);
|
||||
var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long;
|
||||
var value_id:Long = this.var_243.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","id",value_id);
|
||||
var value_materialId:Id = this.§_-Av§.decode(protocolBuffer) as Id;
|
||||
var value_materialId:Id = this.var_291.decode(protocolBuffer) as Id;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","materialId",value_materialId);
|
||||
var value_name:String = this.§_-XW§.decode(protocolBuffer) as String;
|
||||
var value_name:String = this.var_251.decode(protocolBuffer) as String;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","name",value_name);
|
||||
var value_originX:Number = Number(this.§_-Pk§.decode(protocolBuffer) as Number);
|
||||
var value_originX:Number = Number(this.var_292.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originX",value_originX);
|
||||
var value_originY:Number = Number(this.§_-j1§.decode(protocolBuffer) as Number);
|
||||
var value_originY:Number = Number(this.var_297.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originY",value_originY);
|
||||
var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long;
|
||||
var value_parentId:Long = this.var_254.decode(protocolBuffer) as Long;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","parentId",value_parentId);
|
||||
var value_perspectiveScale:Boolean = Boolean(this.§_-Yz§.decode(protocolBuffer) as Boolean);
|
||||
var value_perspectiveScale:Boolean = Boolean(this.var_296.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","perspectiveScale",value_perspectiveScale);
|
||||
var value_rotation:Number = Number(this.§_-SJ§.decode(protocolBuffer) as Number);
|
||||
var value_rotation:Number = Number(this.var_293.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","rotation",value_rotation);
|
||||
var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform;
|
||||
var value_transform:A3D2Transform = this.var_249.decode(protocolBuffer) as A3D2Transform;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","transform",value_transform);
|
||||
var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean);
|
||||
var value_visible:Boolean = Boolean(this.var_253.decode(protocolBuffer) as Boolean);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","visible",value_visible);
|
||||
var value_width:Number = Number(this.§_-pD§.decode(protocolBuffer) as Number);
|
||||
var value_width:Number = Number(this.var_298.decode(protocolBuffer) as Number);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","width",value_width);
|
||||
return new A3D2Sprite(value_alwaysOnTop,value_boundBoxId,value_height,value_id,value_materialId,value_name,value_originX,value_originY,value_parentId,value_perspectiveScale,value_rotation,value_transform,value_visible,value_width);
|
||||
}
|
||||
@@ -108,20 +108,20 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Sprite = A3D2Sprite(object);
|
||||
this.§_-XZ§.encode(protocolBuffer,struct.alwaysOnTop);
|
||||
this.§_-Dh§.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.§_-X§.encode(protocolBuffer,struct.height);
|
||||
this.§_-2o§.encode(protocolBuffer,struct.id);
|
||||
this.§_-Av§.encode(protocolBuffer,struct.materialId);
|
||||
this.§_-XW§.encode(protocolBuffer,struct.name);
|
||||
this.§_-Pk§.encode(protocolBuffer,struct.originX);
|
||||
this.§_-j1§.encode(protocolBuffer,struct.originY);
|
||||
this.§_-jk§.encode(protocolBuffer,struct.parentId);
|
||||
this.§_-Yz§.encode(protocolBuffer,struct.perspectiveScale);
|
||||
this.§_-SJ§.encode(protocolBuffer,struct.rotation);
|
||||
this.§_-S2§.encode(protocolBuffer,struct.transform);
|
||||
this.§_-h9§.encode(protocolBuffer,struct.visible);
|
||||
this.§_-pD§.encode(protocolBuffer,struct.width);
|
||||
this.var_295.encode(protocolBuffer,struct.alwaysOnTop);
|
||||
this.var_245.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.var_294.encode(protocolBuffer,struct.height);
|
||||
this.var_243.encode(protocolBuffer,struct.id);
|
||||
this.var_291.encode(protocolBuffer,struct.materialId);
|
||||
this.var_251.encode(protocolBuffer,struct.name);
|
||||
this.var_292.encode(protocolBuffer,struct.originX);
|
||||
this.var_297.encode(protocolBuffer,struct.originY);
|
||||
this.var_254.encode(protocolBuffer,struct.parentId);
|
||||
this.var_296.encode(protocolBuffer,struct.perspectiveScale);
|
||||
this.var_293.encode(protocolBuffer,struct.rotation);
|
||||
this.var_249.encode(protocolBuffer,struct.transform);
|
||||
this.var_253.encode(protocolBuffer,struct.visible);
|
||||
this.var_298.encode(protocolBuffer,struct.width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,11 +12,11 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-AL§:ICodec;
|
||||
private var var_302:ICodec;
|
||||
|
||||
private var §_-Av§:ICodec;
|
||||
private var var_291:ICodec;
|
||||
|
||||
private var §_-pJ§:ICodec;
|
||||
private var var_303:ICodec;
|
||||
|
||||
public function CodecA3D2Surface()
|
||||
{
|
||||
@@ -25,19 +25,19 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-AL§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.§_-Av§ = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.§_-pJ§ = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_302 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
this.var_291 = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.var_303 = protocol.getCodec(new TypeCodecInfo(int,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_indexBegin:int = int(this.§_-AL§.decode(protocolBuffer) as int);
|
||||
var value_indexBegin:int = int(this.var_302.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","indexBegin",value_indexBegin);
|
||||
var value_materialId:int = int(this.§_-Av§.decode(protocolBuffer) as int);
|
||||
var value_materialId:int = int(this.var_291.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","materialId",value_materialId);
|
||||
var value_numTriangles:int = int(this.§_-pJ§.decode(protocolBuffer) as int);
|
||||
var value_numTriangles:int = int(this.var_303.decode(protocolBuffer) as int);
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","numTriangles",value_numTriangles);
|
||||
return new A3D2Surface(value_indexBegin,value_materialId,value_numTriangles);
|
||||
}
|
||||
@@ -49,9 +49,9 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Surface = A3D2Surface(object);
|
||||
this.§_-AL§.encode(protocolBuffer,struct.indexBegin);
|
||||
this.§_-Av§.encode(protocolBuffer,struct.materialId);
|
||||
this.§_-pJ§.encode(protocolBuffer,struct.numTriangles);
|
||||
this.var_302.encode(protocolBuffer,struct.indexBegin);
|
||||
this.var_291.encode(protocolBuffer,struct.materialId);
|
||||
this.var_303.encode(protocolBuffer,struct.numTriangles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ package _codec.versions.version2.a3d.objects
|
||||
{
|
||||
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
|
||||
private var §_-dG§:ICodec;
|
||||
private var var_411:ICodec;
|
||||
|
||||
public function CodecA3D2Transform()
|
||||
{
|
||||
@@ -22,13 +22,13 @@ package _codec.versions.version2.a3d.objects
|
||||
|
||||
public function init(protocol:IProtocol) : void
|
||||
{
|
||||
this.§_-dG§ = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false));
|
||||
this.var_411 = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false));
|
||||
}
|
||||
|
||||
public function decode(protocolBuffer:ProtocolBuffer) : Object
|
||||
{
|
||||
log = IClientLog(OSGi.getInstance().getService(IClientLog));
|
||||
var value_matrix:A3DMatrix = this.§_-dG§.decode(protocolBuffer) as A3DMatrix;
|
||||
var value_matrix:A3DMatrix = this.var_411.decode(protocolBuffer) as A3DMatrix;
|
||||
log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Transform","matrix",value_matrix);
|
||||
return new A3D2Transform(value_matrix);
|
||||
}
|
||||
@@ -40,7 +40,7 @@ package _codec.versions.version2.a3d.objects
|
||||
throw new Error("Object is null. Use @ProtocolOptional annotation.");
|
||||
}
|
||||
var struct:A3D2Transform = A3D2Transform(object);
|
||||
this.§_-dG§.encode(protocolBuffer,struct.matrix);
|
||||
this.var_411.encode(protocolBuffer,struct.matrix);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,17 +10,17 @@ package alternativa.engine3d.animation
|
||||
|
||||
public class AnimationController
|
||||
{
|
||||
private var §_-cn§:AnimationNode;
|
||||
private var var_733:AnimationNode;
|
||||
|
||||
private var §_-Kq§:Vector.<Object>;
|
||||
private var var_348:Vector.<Object>;
|
||||
|
||||
private var §_-62§:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
private var var_732:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
|
||||
private var §_-oX§:Dictionary = new Dictionary();
|
||||
private var var_734:Dictionary = new Dictionary();
|
||||
|
||||
private var §_-eB§:Object = new Object();
|
||||
private var var_619:Object = new Object();
|
||||
|
||||
private var §_-Jl§:int = -1;
|
||||
private var var_210:int = -1;
|
||||
|
||||
alternativa3d var nearestNotifyers:AnimationNotify;
|
||||
|
||||
@@ -31,24 +31,24 @@ package alternativa.engine3d.animation
|
||||
|
||||
public function get root() : AnimationNode
|
||||
{
|
||||
return this.§_-cn§;
|
||||
return this.var_733;
|
||||
}
|
||||
|
||||
public function set root(value:AnimationNode) : void
|
||||
{
|
||||
if(this.§_-cn§ != value)
|
||||
if(this.var_733 != value)
|
||||
{
|
||||
if(this.§_-cn§ != null)
|
||||
if(this.var_733 != null)
|
||||
{
|
||||
this.§_-cn§.alternativa3d::setController(null);
|
||||
this.§_-cn§.alternativa3d::_-Eo = false;
|
||||
this.var_733.alternativa3d::setController(null);
|
||||
this.var_733.alternativa3d::var_694 = false;
|
||||
}
|
||||
if(value != null)
|
||||
{
|
||||
value.alternativa3d::setController(this);
|
||||
value.alternativa3d::_-Eo = true;
|
||||
value.alternativa3d::var_694 = true;
|
||||
}
|
||||
this.§_-cn§ = value;
|
||||
this.var_733 = value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,30 +60,30 @@ package alternativa.engine3d.animation
|
||||
var count:int = 0;
|
||||
var _loc6_:int = 0;
|
||||
var object:Object3D = null;
|
||||
if(this.§_-Jl§ < 0)
|
||||
if(this.var_210 < 0)
|
||||
{
|
||||
this.§_-Jl§ = getTimer();
|
||||
this.var_210 = getTimer();
|
||||
interval = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc6_ = int(getTimer());
|
||||
interval = 0.001 * (_loc6_ - this.§_-Jl§);
|
||||
this.§_-Jl§ = _loc6_;
|
||||
interval = 0.001 * (_loc6_ - this.var_210);
|
||||
this.var_210 = _loc6_;
|
||||
}
|
||||
if(this.§_-cn§ == null)
|
||||
if(this.var_733 == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
for each(data in this.§_-eB§)
|
||||
for each(data in this.var_619)
|
||||
{
|
||||
data.reset();
|
||||
}
|
||||
this.§_-cn§.alternativa3d::update(interval,1);
|
||||
for(i = 0,count = int(this.§_-62§.length); i < count; )
|
||||
this.var_733.alternativa3d::update(interval,1);
|
||||
for(i = 0,count = int(this.var_732.length); i < count; )
|
||||
{
|
||||
object = this.§_-62§[i];
|
||||
data = this.§_-eB§[object.name];
|
||||
object = this.var_732[i];
|
||||
data = this.var_619[object.name];
|
||||
if(data != null)
|
||||
{
|
||||
data.apply(object);
|
||||
@@ -96,28 +96,28 @@ package alternativa.engine3d.animation
|
||||
{
|
||||
notify.dispatchEvent(new NotifyEvent(notify));
|
||||
}
|
||||
notify = notify.alternativa3d::_-XY;
|
||||
notify = notify.alternativa3d::name_587;
|
||||
}
|
||||
this.alternativa3d::nearestNotifyers = null;
|
||||
}
|
||||
|
||||
alternativa3d function addObject(object:Object) : void
|
||||
{
|
||||
if(object in this.§_-oX§)
|
||||
if(object in this.var_734)
|
||||
{
|
||||
++this.§_-oX§[object];
|
||||
++this.var_734[object];
|
||||
}
|
||||
else
|
||||
{
|
||||
if(object is Object3D)
|
||||
{
|
||||
this.§_-62§.push(object);
|
||||
this.var_732.push(object);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-Kq§.push(object);
|
||||
this.var_348.push(object);
|
||||
}
|
||||
this.§_-oX§[object] = 1;
|
||||
this.var_734[object] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,56 +126,56 @@ package alternativa.engine3d.animation
|
||||
var index:int = 0;
|
||||
var j:int = 0;
|
||||
var count:int = 0;
|
||||
var used:int = int(this.§_-oX§[object]);
|
||||
var used:int = int(this.var_734[object]);
|
||||
used--;
|
||||
if(used <= 0)
|
||||
{
|
||||
if(object is Object3D)
|
||||
{
|
||||
index = int(this.§_-62§.indexOf(object));
|
||||
count = this.§_-62§.length - 1;
|
||||
index = int(this.var_732.indexOf(object));
|
||||
count = this.var_732.length - 1;
|
||||
for(j = index + 1; index < count; )
|
||||
{
|
||||
this.§_-62§[index] = this.§_-62§[j];
|
||||
this.var_732[index] = this.var_732[j];
|
||||
index++;
|
||||
j++;
|
||||
}
|
||||
this.§_-62§.length = count;
|
||||
this.var_732.length = count;
|
||||
}
|
||||
else
|
||||
{
|
||||
index = int(this.§_-Kq§.indexOf(object));
|
||||
count = this.§_-Kq§.length - 1;
|
||||
index = int(this.var_348.indexOf(object));
|
||||
count = this.var_348.length - 1;
|
||||
for(j = index + 1; index < count; )
|
||||
{
|
||||
this.§_-Kq§[index] = this.§_-Kq§[j];
|
||||
this.var_348[index] = this.var_348[j];
|
||||
index++;
|
||||
j++;
|
||||
}
|
||||
this.§_-Kq§.length = count;
|
||||
this.var_348.length = count;
|
||||
}
|
||||
delete this.§_-oX§[object];
|
||||
delete this.var_734[object];
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-oX§[object] = used;
|
||||
this.var_734[object] = used;
|
||||
}
|
||||
}
|
||||
|
||||
alternativa3d function getState(name:String) : AnimationState
|
||||
{
|
||||
var state:AnimationState = this.§_-eB§[name];
|
||||
var state:AnimationState = this.var_619[name];
|
||||
if(state == null)
|
||||
{
|
||||
state = new AnimationState();
|
||||
this.§_-eB§[name] = state;
|
||||
this.var_619[name] = state;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
public function freeze() : void
|
||||
{
|
||||
this.§_-Jl§ = -1;
|
||||
this.var_210 = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ package alternativa.engine3d.animation
|
||||
|
||||
public class AnimationNode
|
||||
{
|
||||
alternativa3d var §_-Eo§:Boolean = false;
|
||||
alternativa3d var var_694:Boolean = false;
|
||||
|
||||
alternativa3d var _parent:AnimationNode;
|
||||
|
||||
@@ -21,7 +21,7 @@ package alternativa.engine3d.animation
|
||||
|
||||
public function get isActive() : Boolean
|
||||
{
|
||||
return this.alternativa3d::_-Eo && this.alternativa3d::controller != null;
|
||||
return this.alternativa3d::var_694 && this.alternativa3d::controller != null;
|
||||
}
|
||||
|
||||
public function get parent() : AnimationNode
|
||||
@@ -51,7 +51,7 @@ package alternativa.engine3d.animation
|
||||
alternativa3d function removeNode(node:AnimationNode) : void
|
||||
{
|
||||
node.alternativa3d::setController(null);
|
||||
node.alternativa3d::_-Eo = false;
|
||||
node.alternativa3d::var_694 = false;
|
||||
node.alternativa3d::_parent = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,13 +9,13 @@ package alternativa.engine3d.animation
|
||||
{
|
||||
public var name:String;
|
||||
|
||||
alternativa3d var §_-qC§:Number = 0;
|
||||
alternativa3d var var_420:Number = 0;
|
||||
|
||||
alternativa3d var next:AnimationNotify;
|
||||
|
||||
alternativa3d var §_-1n§:Number;
|
||||
alternativa3d var var_735:Number;
|
||||
|
||||
alternativa3d var §_-XY§:AnimationNotify;
|
||||
alternativa3d var name_587:AnimationNotify;
|
||||
|
||||
public function AnimationNotify(name:String)
|
||||
{
|
||||
@@ -25,7 +25,7 @@ package alternativa.engine3d.animation
|
||||
|
||||
public function get time() : Number
|
||||
{
|
||||
return this.alternativa3d::_-qC;
|
||||
return this.alternativa3d::var_420;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,15 +9,15 @@ package alternativa.engine3d.animation
|
||||
|
||||
public class AnimationState
|
||||
{
|
||||
public var §_-6V§:int = 0;
|
||||
public var var_731:int = 0;
|
||||
|
||||
public var transform:TransformKey = new TransformKey();
|
||||
|
||||
public var §_-H1§:Number = 0;
|
||||
public var var_729:Number = 0;
|
||||
|
||||
public var numbers:Object = new Object();
|
||||
|
||||
public var §_-NT§:Object = new Object();
|
||||
public var var_730:Object = new Object();
|
||||
|
||||
public function AnimationState()
|
||||
{
|
||||
@@ -27,36 +27,36 @@ package alternativa.engine3d.animation
|
||||
public function reset() : void
|
||||
{
|
||||
var key:String = null;
|
||||
this.§_-H1§ = 0;
|
||||
this.var_729 = 0;
|
||||
for(key in this.numbers)
|
||||
{
|
||||
delete this.numbers[key];
|
||||
delete this.§_-NT§[key];
|
||||
delete this.var_730[key];
|
||||
}
|
||||
}
|
||||
|
||||
public function addWeightedTransform(key:TransformKey, weight:Number) : void
|
||||
{
|
||||
this.§_-H1§ += weight;
|
||||
this.transform.interpolate(this.transform,key,weight / this.§_-H1§);
|
||||
this.var_729 += weight;
|
||||
this.transform.interpolate(this.transform,key,weight / this.var_729);
|
||||
}
|
||||
|
||||
public function addWeightedNumber(property:String, value:Number, weight:Number) : void
|
||||
{
|
||||
var current:Number = NaN;
|
||||
var sum:Number = Number(this.§_-NT§[property]);
|
||||
var sum:Number = Number(this.var_730[property]);
|
||||
if(sum == sum)
|
||||
{
|
||||
sum += weight;
|
||||
weight /= sum;
|
||||
current = Number(this.numbers[property]);
|
||||
this.numbers[property] = (1 - weight) * current + weight * value;
|
||||
this.§_-NT§[property] = sum;
|
||||
this.var_730[property] = sum;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.numbers[property] = value;
|
||||
this.§_-NT§[property] = weight;
|
||||
this.var_730[property] = weight;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ package alternativa.engine3d.animation
|
||||
var sum:Number = NaN;
|
||||
var weight:Number = NaN;
|
||||
var key:String = null;
|
||||
if(this.§_-H1§ > 0)
|
||||
if(this.var_729 > 0)
|
||||
{
|
||||
object.x = this.transform.alternativa3d::x;
|
||||
object.y = this.transform.alternativa3d::y;
|
||||
@@ -80,48 +80,48 @@ package alternativa.engine3d.animation
|
||||
switch(key)
|
||||
{
|
||||
case "x":
|
||||
sum = Number(this.§_-NT§["x"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["x"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.x = (1 - weight) * object.x + weight * this.numbers["x"];
|
||||
break;
|
||||
case "y":
|
||||
sum = Number(this.§_-NT§["y"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["y"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.y = (1 - weight) * object.y + weight * this.numbers["y"];
|
||||
break;
|
||||
case "z":
|
||||
sum = Number(this.§_-NT§["z"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["z"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.z = (1 - weight) * object.z + weight * this.numbers["z"];
|
||||
break;
|
||||
case "rotationX":
|
||||
sum = Number(this.§_-NT§["rotationX"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["rotationX"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.rotationX = (1 - weight) * object.rotationX + weight * this.numbers["rotationX"];
|
||||
break;
|
||||
case "rotationY":
|
||||
sum = Number(this.§_-NT§["rotationY"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["rotationY"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.rotationY = (1 - weight) * object.rotationY + weight * this.numbers["rotationY"];
|
||||
break;
|
||||
case "rotationZ":
|
||||
sum = Number(this.§_-NT§["rotationZ"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["rotationZ"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.rotationZ = (1 - weight) * object.rotationZ + weight * this.numbers["rotationZ"];
|
||||
break;
|
||||
case "scaleX":
|
||||
sum = Number(this.§_-NT§["scaleX"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["scaleX"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.scaleX = (1 - weight) * object.scaleX + weight * this.numbers["scaleX"];
|
||||
break;
|
||||
case "scaleY":
|
||||
sum = Number(this.§_-NT§["scaleY"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["scaleY"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.scaleY = (1 - weight) * object.scaleY + weight * this.numbers["scaleY"];
|
||||
break;
|
||||
case "scaleZ":
|
||||
sum = Number(this.§_-NT§["scaleZ"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["scaleZ"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.scaleZ = (1 - weight) * object.scaleZ + weight * this.numbers["scaleZ"];
|
||||
break;
|
||||
default:
|
||||
@@ -136,7 +136,7 @@ package alternativa.engine3d.animation
|
||||
var sum:Number = NaN;
|
||||
var weight:Number = NaN;
|
||||
var key:String = null;
|
||||
if(this.§_-H1§ > 0)
|
||||
if(this.var_729 > 0)
|
||||
{
|
||||
object.x = this.transform.alternativa3d::x;
|
||||
object.y = this.transform.alternativa3d::y;
|
||||
@@ -151,48 +151,48 @@ package alternativa.engine3d.animation
|
||||
switch(key)
|
||||
{
|
||||
case "x":
|
||||
sum = Number(this.§_-NT§["x"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["x"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.x = (1 - weight) * object.x + weight * this.numbers["x"];
|
||||
break;
|
||||
case "y":
|
||||
sum = Number(this.§_-NT§["y"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["y"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.y = (1 - weight) * object.y + weight * this.numbers["y"];
|
||||
break;
|
||||
case "z":
|
||||
sum = Number(this.§_-NT§["z"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["z"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.z = (1 - weight) * object.z + weight * this.numbers["z"];
|
||||
break;
|
||||
case "rotationX":
|
||||
sum = Number(this.§_-NT§["rotationX"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["rotationX"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.rotationX = (1 - weight) * object.rotationX + weight * this.numbers["rotationX"];
|
||||
break;
|
||||
case "rotationY":
|
||||
sum = Number(this.§_-NT§["rotationY"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["rotationY"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.rotationY = (1 - weight) * object.rotationY + weight * this.numbers["rotationY"];
|
||||
break;
|
||||
case "rotationZ":
|
||||
sum = Number(this.§_-NT§["rotationZ"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["rotationZ"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.rotationZ = (1 - weight) * object.rotationZ + weight * this.numbers["rotationZ"];
|
||||
break;
|
||||
case "scaleX":
|
||||
sum = Number(this.§_-NT§["scaleX"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["scaleX"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.scaleX = (1 - weight) * object.scaleX + weight * this.numbers["scaleX"];
|
||||
break;
|
||||
case "scaleY":
|
||||
sum = Number(this.§_-NT§["scaleY"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["scaleY"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.scaleY = (1 - weight) * object.scaleY + weight * this.numbers["scaleY"];
|
||||
break;
|
||||
case "scaleZ":
|
||||
sum = Number(this.§_-NT§["scaleZ"]);
|
||||
weight = sum / (sum + this.§_-H1§);
|
||||
sum = Number(this.var_730["scaleZ"]);
|
||||
weight = sum / (sum + this.var_729);
|
||||
object.scaleZ = (1 - weight) * object.scaleZ + weight * this.numbers["scaleZ"];
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -6,7 +6,7 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public class Keyframe
|
||||
{
|
||||
alternativa3d var §_-qC§:Number = 0;
|
||||
alternativa3d var var_420:Number = 0;
|
||||
|
||||
public function Keyframe()
|
||||
{
|
||||
@@ -15,7 +15,7 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public function get time() : Number
|
||||
{
|
||||
return this.alternativa3d::_-qC;
|
||||
return this.alternativa3d::var_420;
|
||||
}
|
||||
|
||||
public function get value() : Object
|
||||
@@ -38,7 +38,7 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public function toString() : String
|
||||
{
|
||||
return "[Keyframe time = " + this.alternativa3d::_-qC.toFixed(2) + " value = " + this.value + "]";
|
||||
return "[Keyframe time = " + this.alternativa3d::var_420.toFixed(2) + " value = " + this.value + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public class NumberKey extends Keyframe
|
||||
{
|
||||
alternativa3d var §_-4O§:Number = 0;
|
||||
alternativa3d var name_598:Number = 0;
|
||||
|
||||
alternativa3d var next:NumberKey;
|
||||
|
||||
@@ -17,17 +17,17 @@ package alternativa.engine3d.animation.keys
|
||||
|
||||
public function interpolate(a:NumberKey, b:NumberKey, c:Number) : void
|
||||
{
|
||||
this.alternativa3d::_-4O = (1 - c) * a.alternativa3d::_-4O + c * b.alternativa3d::_-4O;
|
||||
this.alternativa3d::name_598 = (1 - c) * a.alternativa3d::name_598 + c * b.alternativa3d::name_598;
|
||||
}
|
||||
|
||||
override public function get value() : Object
|
||||
{
|
||||
return this.alternativa3d::_-4O;
|
||||
return this.alternativa3d::name_598;
|
||||
}
|
||||
|
||||
override public function set value(v:Object) : void
|
||||
{
|
||||
this.alternativa3d::_-4O = Number(v);
|
||||
this.alternativa3d::name_598 = Number(v);
|
||||
}
|
||||
|
||||
override alternativa3d function get nextKeyFrame() : Keyframe
|
||||
|
||||
@@ -21,15 +21,15 @@ package alternativa.engine3d.collisions
|
||||
|
||||
private var matrix:Transform3D = new Transform3D();
|
||||
|
||||
private var §_-jX§:Transform3D = new Transform3D();
|
||||
private var var_580:Transform3D = new Transform3D();
|
||||
|
||||
alternativa3d var geometries:Vector.<Geometry> = new Vector.<Geometry>();
|
||||
|
||||
alternativa3d var §_-QK§:Vector.<Transform3D> = new Vector.<Transform3D>();
|
||||
alternativa3d var name_315:Vector.<Transform3D> = new Vector.<Transform3D>();
|
||||
|
||||
private var vertices:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var §_-g0§:Vector.<Number> = new Vector.<Number>();
|
||||
private var var_581:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var indices:Vector.<int> = new Vector.<int>();
|
||||
|
||||
@@ -39,23 +39,23 @@ package alternativa.engine3d.collisions
|
||||
|
||||
private var src:Vector3D = new Vector3D();
|
||||
|
||||
private var §_-o5§:Vector3D = new Vector3D();
|
||||
private var var_574:Vector3D = new Vector3D();
|
||||
|
||||
private var dest:Vector3D = new Vector3D();
|
||||
|
||||
private var §_-SE§:Vector3D = new Vector3D();
|
||||
private var var_575:Vector3D = new Vector3D();
|
||||
|
||||
private var §_-pU§:Vector3D = new Vector3D();
|
||||
private var var_573:Vector3D = new Vector3D();
|
||||
|
||||
alternativa3d var sphere:Vector3D = new Vector3D();
|
||||
|
||||
private var §_-SZ§:Vector3D = new Vector3D();
|
||||
private var var_579:Vector3D = new Vector3D();
|
||||
|
||||
private var §_-1v§:Vector3D = new Vector3D();
|
||||
private var var_576:Vector3D = new Vector3D();
|
||||
|
||||
private var §_-L9§:Vector3D = new Vector3D();
|
||||
private var var_578:Vector3D = new Vector3D();
|
||||
|
||||
private var §_-8B§:Vector3D = new Vector3D();
|
||||
private var var_577:Vector3D = new Vector3D();
|
||||
|
||||
public function EllipsoidCollider(radiusX:Number, radiusY:Number, radiusZ:Number)
|
||||
{
|
||||
@@ -70,18 +70,18 @@ package alternativa.engine3d.collisions
|
||||
this.alternativa3d::sphere.x = transform.d;
|
||||
this.alternativa3d::sphere.y = transform.h;
|
||||
this.alternativa3d::sphere.z = transform.l;
|
||||
var sax:Number = transform.a * this.§_-SZ§.x + transform.b * this.§_-SZ§.y + transform.c * this.§_-SZ§.z + transform.d;
|
||||
var say:Number = transform.e * this.§_-SZ§.x + transform.f * this.§_-SZ§.y + transform.g * this.§_-SZ§.z + transform.h;
|
||||
var saz:Number = transform.i * this.§_-SZ§.x + transform.j * this.§_-SZ§.y + transform.k * this.§_-SZ§.z + transform.l;
|
||||
var sbx:Number = transform.a * this.§_-1v§.x + transform.b * this.§_-1v§.y + transform.c * this.§_-1v§.z + transform.d;
|
||||
var sby:Number = transform.e * this.§_-1v§.x + transform.f * this.§_-1v§.y + transform.g * this.§_-1v§.z + transform.h;
|
||||
var sbz:Number = transform.i * this.§_-1v§.x + transform.j * this.§_-1v§.y + transform.k * this.§_-1v§.z + transform.l;
|
||||
var scx:Number = transform.a * this.§_-L9§.x + transform.b * this.§_-L9§.y + transform.c * this.§_-L9§.z + transform.d;
|
||||
var scy:Number = transform.e * this.§_-L9§.x + transform.f * this.§_-L9§.y + transform.g * this.§_-L9§.z + transform.h;
|
||||
var scz:Number = transform.i * this.§_-L9§.x + transform.j * this.§_-L9§.y + transform.k * this.§_-L9§.z + transform.l;
|
||||
var sdx:Number = transform.a * this.§_-8B§.x + transform.b * this.§_-8B§.y + transform.c * this.§_-8B§.z + transform.d;
|
||||
var sdy:Number = transform.e * this.§_-8B§.x + transform.f * this.§_-8B§.y + transform.g * this.§_-8B§.z + transform.h;
|
||||
var sdz:Number = transform.i * this.§_-8B§.x + transform.j * this.§_-8B§.y + transform.k * this.§_-8B§.z + transform.l;
|
||||
var sax:Number = transform.a * this.var_579.x + transform.b * this.var_579.y + transform.c * this.var_579.z + transform.d;
|
||||
var say:Number = transform.e * this.var_579.x + transform.f * this.var_579.y + transform.g * this.var_579.z + transform.h;
|
||||
var saz:Number = transform.i * this.var_579.x + transform.j * this.var_579.y + transform.k * this.var_579.z + transform.l;
|
||||
var sbx:Number = transform.a * this.var_576.x + transform.b * this.var_576.y + transform.c * this.var_576.z + transform.d;
|
||||
var sby:Number = transform.e * this.var_576.x + transform.f * this.var_576.y + transform.g * this.var_576.z + transform.h;
|
||||
var sbz:Number = transform.i * this.var_576.x + transform.j * this.var_576.y + transform.k * this.var_576.z + transform.l;
|
||||
var scx:Number = transform.a * this.var_578.x + transform.b * this.var_578.y + transform.c * this.var_578.z + transform.d;
|
||||
var scy:Number = transform.e * this.var_578.x + transform.f * this.var_578.y + transform.g * this.var_578.z + transform.h;
|
||||
var scz:Number = transform.i * this.var_578.x + transform.j * this.var_578.y + transform.k * this.var_578.z + transform.l;
|
||||
var sdx:Number = transform.a * this.var_577.x + transform.b * this.var_577.y + transform.c * this.var_577.z + transform.d;
|
||||
var sdy:Number = transform.e * this.var_577.x + transform.f * this.var_577.y + transform.g * this.var_577.z + transform.h;
|
||||
var sdz:Number = transform.i * this.var_577.x + transform.j * this.var_577.y + transform.k * this.var_577.z + transform.l;
|
||||
var dx:Number = sax - this.alternativa3d::sphere.x;
|
||||
var dy:Number = say - this.alternativa3d::sphere.y;
|
||||
var dz:Number = saz - this.alternativa3d::sphere.z;
|
||||
@@ -162,30 +162,30 @@ package alternativa.engine3d.collisions
|
||||
this.radius = this.radiusZ;
|
||||
}
|
||||
this.matrix.compose(source.x,source.y,source.z,0,0,0,this.radiusX / this.radius,this.radiusY / this.radius,this.radiusZ / this.radius);
|
||||
this.§_-jX§.copy(this.matrix);
|
||||
this.§_-jX§.invert();
|
||||
this.var_580.copy(this.matrix);
|
||||
this.var_580.invert();
|
||||
this.src.x = 0;
|
||||
this.src.y = 0;
|
||||
this.src.z = 0;
|
||||
this.§_-o5§.x = this.§_-jX§.a * displacement.x + this.§_-jX§.b * displacement.y + this.§_-jX§.c * displacement.z;
|
||||
this.§_-o5§.y = this.§_-jX§.e * displacement.x + this.§_-jX§.f * displacement.y + this.§_-jX§.g * displacement.z;
|
||||
this.§_-o5§.z = this.§_-jX§.i * displacement.x + this.§_-jX§.j * displacement.y + this.§_-jX§.k * displacement.z;
|
||||
this.dest.x = this.src.x + this.§_-o5§.x;
|
||||
this.dest.y = this.src.y + this.§_-o5§.y;
|
||||
this.dest.z = this.src.z + this.§_-o5§.z;
|
||||
var rad:Number = this.radius + this.§_-o5§.length;
|
||||
this.§_-SZ§.x = -rad;
|
||||
this.§_-SZ§.y = -rad;
|
||||
this.§_-SZ§.z = -rad;
|
||||
this.§_-1v§.x = rad;
|
||||
this.§_-1v§.y = -rad;
|
||||
this.§_-1v§.z = -rad;
|
||||
this.§_-L9§.x = rad;
|
||||
this.§_-L9§.y = rad;
|
||||
this.§_-L9§.z = -rad;
|
||||
this.§_-8B§.x = -rad;
|
||||
this.§_-8B§.y = rad;
|
||||
this.§_-8B§.z = -rad;
|
||||
this.var_574.x = this.var_580.a * displacement.x + this.var_580.b * displacement.y + this.var_580.c * displacement.z;
|
||||
this.var_574.y = this.var_580.e * displacement.x + this.var_580.f * displacement.y + this.var_580.g * displacement.z;
|
||||
this.var_574.z = this.var_580.i * displacement.x + this.var_580.j * displacement.y + this.var_580.k * displacement.z;
|
||||
this.dest.x = this.src.x + this.var_574.x;
|
||||
this.dest.y = this.src.y + this.var_574.y;
|
||||
this.dest.z = this.src.z + this.var_574.z;
|
||||
var rad:Number = this.radius + this.var_574.length;
|
||||
this.var_579.x = -rad;
|
||||
this.var_579.y = -rad;
|
||||
this.var_579.z = -rad;
|
||||
this.var_576.x = rad;
|
||||
this.var_576.y = -rad;
|
||||
this.var_576.z = -rad;
|
||||
this.var_578.x = rad;
|
||||
this.var_578.y = rad;
|
||||
this.var_578.z = -rad;
|
||||
this.var_577.x = -rad;
|
||||
this.var_577.y = rad;
|
||||
this.var_577.z = -rad;
|
||||
if(excludedObjects == null || !excludedObjects[object])
|
||||
{
|
||||
if(object.alternativa3d::transformChanged)
|
||||
@@ -201,7 +201,7 @@ package alternativa.engine3d.collisions
|
||||
}
|
||||
if(intersects)
|
||||
{
|
||||
object.alternativa3d::localToGlobalTransform.combine(this.§_-jX§,object.alternativa3d::transform);
|
||||
object.alternativa3d::localToGlobalTransform.combine(this.var_580,object.alternativa3d::transform);
|
||||
object.alternativa3d::collectGeometry(this,excludedObjects);
|
||||
}
|
||||
if(object.alternativa3d::childrenList != null)
|
||||
@@ -218,11 +218,11 @@ package alternativa.engine3d.collisions
|
||||
for(var i:int = 0; i < geometriesLength; i++)
|
||||
{
|
||||
geometry = this.alternativa3d::geometries[i];
|
||||
transform = this.alternativa3d::_-QK[i];
|
||||
transform = this.alternativa3d::name_315[i];
|
||||
geometryIndicesLength = int(geometry.alternativa3d::_indices.length);
|
||||
if(!(geometry.alternativa3d::_numVertices == 0 || geometryIndicesLength == 0))
|
||||
{
|
||||
vBuffer = VertexAttributes.POSITION < geometry.alternativa3d::_-GM.length ? geometry.alternativa3d::_-GM[VertexAttributes.POSITION] : null;
|
||||
vBuffer = VertexAttributes.POSITION < geometry.alternativa3d::var_170.length ? geometry.alternativa3d::var_170[VertexAttributes.POSITION] : null;
|
||||
if(vBuffer != null)
|
||||
{
|
||||
attributesOffset = int(geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION]);
|
||||
@@ -300,13 +300,13 @@ package alternativa.engine3d.collisions
|
||||
indicesLength++;
|
||||
this.indices[indicesLength] = c;
|
||||
indicesLength++;
|
||||
this.§_-g0§[normalsLength] = normalX;
|
||||
this.var_581[normalsLength] = normalX;
|
||||
normalsLength++;
|
||||
this.§_-g0§[normalsLength] = normalY;
|
||||
this.var_581[normalsLength] = normalY;
|
||||
normalsLength++;
|
||||
this.§_-g0§[normalsLength] = normalZ;
|
||||
this.var_581[normalsLength] = normalZ;
|
||||
normalsLength++;
|
||||
this.§_-g0§[normalsLength] = offset;
|
||||
this.var_581[normalsLength] = offset;
|
||||
normalsLength++;
|
||||
++this.numTriangles;
|
||||
}
|
||||
@@ -319,7 +319,7 @@ package alternativa.engine3d.collisions
|
||||
}
|
||||
}
|
||||
this.alternativa3d::geometries.length = 0;
|
||||
this.alternativa3d::_-QK.length = 0;
|
||||
this.alternativa3d::name_315.length = 0;
|
||||
}
|
||||
|
||||
public function calculateDestination(source:Vector3D, displacement:Vector3D, object:Object3D, excludedObjects:Dictionary = null) : Vector3D
|
||||
@@ -341,17 +341,17 @@ package alternativa.engine3d.collisions
|
||||
{
|
||||
break;
|
||||
}
|
||||
offset = this.radius + this.threshold + this.§_-pU§.w - this.dest.x * this.§_-pU§.x - this.dest.y * this.§_-pU§.y - this.dest.z * this.§_-pU§.z;
|
||||
this.dest.x += this.§_-pU§.x * offset;
|
||||
this.dest.y += this.§_-pU§.y * offset;
|
||||
this.dest.z += this.§_-pU§.z * offset;
|
||||
this.src.x = this.§_-SE§.x + this.§_-pU§.x * (this.radius + this.threshold);
|
||||
this.src.y = this.§_-SE§.y + this.§_-pU§.y * (this.radius + this.threshold);
|
||||
this.src.z = this.§_-SE§.z + this.§_-pU§.z * (this.radius + this.threshold);
|
||||
this.§_-o5§.x = this.dest.x - this.src.x;
|
||||
this.§_-o5§.y = this.dest.y - this.src.y;
|
||||
this.§_-o5§.z = this.dest.z - this.src.z;
|
||||
if(this.§_-o5§.length < this.threshold)
|
||||
offset = this.radius + this.threshold + this.var_573.w - this.dest.x * this.var_573.x - this.dest.y * this.var_573.y - this.dest.z * this.var_573.z;
|
||||
this.dest.x += this.var_573.x * offset;
|
||||
this.dest.y += this.var_573.y * offset;
|
||||
this.dest.z += this.var_573.z * offset;
|
||||
this.src.x = this.var_575.x + this.var_573.x * (this.radius + this.threshold);
|
||||
this.src.y = this.var_575.y + this.var_573.y * (this.radius + this.threshold);
|
||||
this.src.z = this.var_575.z + this.var_573.z * (this.radius + this.threshold);
|
||||
this.var_574.x = this.dest.x - this.src.x;
|
||||
this.var_574.y = this.dest.y - this.src.y;
|
||||
this.var_574.z = this.dest.z - this.src.z;
|
||||
if(this.var_574.length < this.threshold)
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -385,39 +385,39 @@ package alternativa.engine3d.collisions
|
||||
{
|
||||
if(this.checkCollision())
|
||||
{
|
||||
resCollisionPoint.x = this.matrix.a * this.§_-SE§.x + this.matrix.b * this.§_-SE§.y + this.matrix.c * this.§_-SE§.z + this.matrix.d;
|
||||
resCollisionPoint.y = this.matrix.e * this.§_-SE§.x + this.matrix.f * this.§_-SE§.y + this.matrix.g * this.§_-SE§.z + this.matrix.h;
|
||||
resCollisionPoint.z = this.matrix.i * this.§_-SE§.x + this.matrix.j * this.§_-SE§.y + this.matrix.k * this.§_-SE§.z + this.matrix.l;
|
||||
if(this.§_-pU§.x < this.§_-pU§.y)
|
||||
resCollisionPoint.x = this.matrix.a * this.var_575.x + this.matrix.b * this.var_575.y + this.matrix.c * this.var_575.z + this.matrix.d;
|
||||
resCollisionPoint.y = this.matrix.e * this.var_575.x + this.matrix.f * this.var_575.y + this.matrix.g * this.var_575.z + this.matrix.h;
|
||||
resCollisionPoint.z = this.matrix.i * this.var_575.x + this.matrix.j * this.var_575.y + this.matrix.k * this.var_575.z + this.matrix.l;
|
||||
if(this.var_573.x < this.var_573.y)
|
||||
{
|
||||
if(this.§_-pU§.x < this.§_-pU§.z)
|
||||
if(this.var_573.x < this.var_573.z)
|
||||
{
|
||||
abx = 0;
|
||||
aby = -this.§_-pU§.z;
|
||||
abz = Number(this.§_-pU§.y);
|
||||
aby = -this.var_573.z;
|
||||
abz = Number(this.var_573.y);
|
||||
}
|
||||
else
|
||||
{
|
||||
abx = -this.§_-pU§.y;
|
||||
aby = Number(this.§_-pU§.x);
|
||||
abx = -this.var_573.y;
|
||||
aby = Number(this.var_573.x);
|
||||
abz = 0;
|
||||
}
|
||||
}
|
||||
else if(this.§_-pU§.y < this.§_-pU§.z)
|
||||
else if(this.var_573.y < this.var_573.z)
|
||||
{
|
||||
abx = Number(this.§_-pU§.z);
|
||||
abx = Number(this.var_573.z);
|
||||
aby = 0;
|
||||
abz = -this.§_-pU§.x;
|
||||
abz = -this.var_573.x;
|
||||
}
|
||||
else
|
||||
{
|
||||
abx = -this.§_-pU§.y;
|
||||
aby = Number(this.§_-pU§.x);
|
||||
abx = -this.var_573.y;
|
||||
aby = Number(this.var_573.x);
|
||||
abz = 0;
|
||||
}
|
||||
acx = this.§_-pU§.z * aby - this.§_-pU§.y * abz;
|
||||
acy = this.§_-pU§.x * abz - this.§_-pU§.z * abx;
|
||||
acz = this.§_-pU§.y * abx - this.§_-pU§.x * aby;
|
||||
acx = this.var_573.z * aby - this.var_573.y * abz;
|
||||
acy = this.var_573.x * abz - this.var_573.z * abx;
|
||||
acz = this.var_573.y * abx - this.var_573.x * aby;
|
||||
abx2 = this.matrix.a * abx + this.matrix.b * aby + this.matrix.c * abz;
|
||||
aby2 = this.matrix.e * abx + this.matrix.f * aby + this.matrix.g * abz;
|
||||
abz2 = this.matrix.i * abx + this.matrix.j * aby + this.matrix.k * abz;
|
||||
@@ -492,7 +492,7 @@ package alternativa.engine3d.collisions
|
||||
var projectionInsideLength:Number = NaN;
|
||||
var time:Number = NaN;
|
||||
var minTime:Number = 1;
|
||||
var displacementLength:Number = Number(this.§_-o5§.length);
|
||||
var displacementLength:Number = Number(this.var_574.length);
|
||||
var indicesLength:int = this.numTriangles * 3;
|
||||
for(var i:int = 0,var j:int = 0; i < indicesLength; )
|
||||
{
|
||||
@@ -517,13 +517,13 @@ package alternativa.engine3d.collisions
|
||||
cy = this.vertices[index];
|
||||
index++;
|
||||
cz = this.vertices[index];
|
||||
normalX = this.§_-g0§[j];
|
||||
normalX = this.var_581[j];
|
||||
j++;
|
||||
normalY = this.§_-g0§[j];
|
||||
normalY = this.var_581[j];
|
||||
j++;
|
||||
normalZ = this.§_-g0§[j];
|
||||
normalZ = this.var_581[j];
|
||||
j++;
|
||||
offset = this.§_-g0§[j];
|
||||
offset = this.var_581[j];
|
||||
j++;
|
||||
distance = this.src.x * normalX + this.src.y * normalY + this.src.z * normalZ - offset;
|
||||
if(distance < this.radius)
|
||||
@@ -535,9 +535,9 @@ package alternativa.engine3d.collisions
|
||||
else
|
||||
{
|
||||
_loc33_ = (distance - this.radius) / (distance - this.dest.x * normalX - this.dest.y * normalY - this.dest.z * normalZ + offset);
|
||||
pointX = this.src.x + this.§_-o5§.x * _loc33_ - normalX * this.radius;
|
||||
pointY = this.src.y + this.§_-o5§.y * _loc33_ - normalY * this.radius;
|
||||
pointZ = this.src.z + this.§_-o5§.z * _loc33_ - normalZ * this.radius;
|
||||
pointX = this.src.x + this.var_574.x * _loc33_ - normalX * this.radius;
|
||||
pointY = this.src.y + this.var_574.y * _loc33_ - normalY * this.radius;
|
||||
pointZ = this.src.z + this.var_574.z * _loc33_ - normalZ * this.radius;
|
||||
}
|
||||
min = 1e+22;
|
||||
inside = true;
|
||||
@@ -636,11 +636,11 @@ package alternativa.engine3d.collisions
|
||||
deltaX = this.src.x - faceX;
|
||||
deltaY = this.src.y - faceY;
|
||||
deltaZ = this.src.z - faceZ;
|
||||
if(deltaX * this.§_-o5§.x + deltaY * this.§_-o5§.y + deltaZ * this.§_-o5§.z <= 0)
|
||||
if(deltaX * this.var_574.x + deltaY * this.var_574.y + deltaZ * this.var_574.z <= 0)
|
||||
{
|
||||
backX = -this.§_-o5§.x / displacementLength;
|
||||
backY = -this.§_-o5§.y / displacementLength;
|
||||
backZ = -this.§_-o5§.z / displacementLength;
|
||||
backX = -this.var_574.x / displacementLength;
|
||||
backY = -this.var_574.y / displacementLength;
|
||||
backZ = -this.var_574.z / displacementLength;
|
||||
deltaLength = deltaX * deltaX + deltaY * deltaY + deltaZ * deltaZ;
|
||||
projectionLength = deltaX * backX + deltaY * backY + deltaZ * backZ;
|
||||
projectionInsideLength = this.radius * this.radius - deltaLength + projectionLength * projectionLength;
|
||||
@@ -650,23 +650,23 @@ package alternativa.engine3d.collisions
|
||||
if(time < minTime)
|
||||
{
|
||||
minTime = time;
|
||||
this.§_-SE§.x = faceX;
|
||||
this.§_-SE§.y = faceY;
|
||||
this.§_-SE§.z = faceZ;
|
||||
this.var_575.x = faceX;
|
||||
this.var_575.y = faceY;
|
||||
this.var_575.z = faceZ;
|
||||
if(inside)
|
||||
{
|
||||
this.§_-pU§.x = normalX;
|
||||
this.§_-pU§.y = normalY;
|
||||
this.§_-pU§.z = normalZ;
|
||||
this.§_-pU§.w = offset;
|
||||
this.var_573.x = normalX;
|
||||
this.var_573.y = normalY;
|
||||
this.var_573.z = normalZ;
|
||||
this.var_573.w = offset;
|
||||
}
|
||||
else
|
||||
{
|
||||
deltaLength = Number(Math.sqrt(deltaLength));
|
||||
this.§_-pU§.x = deltaX / deltaLength;
|
||||
this.§_-pU§.y = deltaY / deltaLength;
|
||||
this.§_-pU§.z = deltaZ / deltaLength;
|
||||
this.§_-pU§.w = this.§_-SE§.x * this.§_-pU§.x + this.§_-SE§.y * this.§_-pU§.y + this.§_-SE§.z * this.§_-pU§.z;
|
||||
this.var_573.x = deltaX / deltaLength;
|
||||
this.var_573.y = deltaY / deltaLength;
|
||||
this.var_573.z = deltaZ / deltaLength;
|
||||
this.var_573.w = this.var_575.x * this.var_573.x + this.var_575.y * this.var_573.y + this.var_575.z * this.var_573.z;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,27 +32,27 @@ package alternativa.engine3d.core
|
||||
|
||||
alternativa3d var textures:Vector.<TextureBase> = new Vector.<TextureBase>();
|
||||
|
||||
alternativa3d var §_-kR§:Vector.<int> = new Vector.<int>();
|
||||
alternativa3d var var_183:Vector.<int> = new Vector.<int>();
|
||||
|
||||
alternativa3d var §_-Oq§:int = 0;
|
||||
alternativa3d var var_182:int = 0;
|
||||
|
||||
alternativa3d var vertexBuffers:Vector.<VertexBuffer3D> = new Vector.<VertexBuffer3D>();
|
||||
|
||||
alternativa3d var §else §:Vector.<int> = new Vector.<int>();
|
||||
alternativa3d var name_318:Vector.<int> = new Vector.<int>();
|
||||
|
||||
alternativa3d var §_-nw§:Vector.<int> = new Vector.<int>();
|
||||
alternativa3d var name_324:Vector.<int> = new Vector.<int>();
|
||||
|
||||
alternativa3d var §_-EL§:Vector.<String> = new Vector.<String>();
|
||||
alternativa3d var name_322:Vector.<String> = new Vector.<String>();
|
||||
|
||||
alternativa3d var §_-3G§:int = 0;
|
||||
alternativa3d var name_316:int = 0;
|
||||
|
||||
alternativa3d var §_-Aq§:Vector.<Number> = new Vector.<Number>();
|
||||
alternativa3d var name_323:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
alternativa3d var §_-9X§:int = 0;
|
||||
alternativa3d var name_317:int = 0;
|
||||
|
||||
alternativa3d var §_-Cl§:Vector.<Number> = new Vector.<Number>(28 * 4,true);
|
||||
alternativa3d var name_321:Vector.<Number> = new Vector.<Number>(28 * 4,true);
|
||||
|
||||
alternativa3d var §_-Kv§:int = 0;
|
||||
alternativa3d var name_320:int = 0;
|
||||
|
||||
public function DrawUnit()
|
||||
{
|
||||
@@ -68,11 +68,11 @@ package alternativa.engine3d.core
|
||||
this.alternativa3d::blendDestination = Context3DBlendFactor.ZERO;
|
||||
this.alternativa3d::culling = Context3DTriangleFace.FRONT;
|
||||
this.alternativa3d::textures.length = 0;
|
||||
this.alternativa3d::_-Oq = 0;
|
||||
this.alternativa3d::var_182 = 0;
|
||||
this.alternativa3d::vertexBuffers.length = 0;
|
||||
this.alternativa3d::_-3G = 0;
|
||||
this.alternativa3d::_-9X = 0;
|
||||
this.alternativa3d::_-Kv = 0;
|
||||
this.alternativa3d::name_316 = 0;
|
||||
this.alternativa3d::name_317 = 0;
|
||||
this.alternativa3d::name_320 = 0;
|
||||
}
|
||||
|
||||
alternativa3d function setTextureAt(sampler:int, texture:TextureBase) : void
|
||||
@@ -85,9 +85,9 @@ package alternativa.engine3d.core
|
||||
{
|
||||
throw new Error("Texture is null");
|
||||
}
|
||||
this.alternativa3d::_-kR[this.alternativa3d::_-Oq] = sampler;
|
||||
this.alternativa3d::textures[this.alternativa3d::_-Oq] = texture;
|
||||
++this.alternativa3d::_-Oq;
|
||||
this.alternativa3d::var_183[this.alternativa3d::var_182] = sampler;
|
||||
this.alternativa3d::textures[this.alternativa3d::var_182] = texture;
|
||||
++this.alternativa3d::var_182;
|
||||
}
|
||||
|
||||
alternativa3d function setVertexBufferAt(index:int, buffer:VertexBuffer3D, bufferOffset:int, format:String) : void
|
||||
@@ -100,11 +100,11 @@ package alternativa.engine3d.core
|
||||
{
|
||||
throw new Error("Buffer is null");
|
||||
}
|
||||
this.alternativa3d::else [this.alternativa3d::_-3G] = index;
|
||||
this.alternativa3d::vertexBuffers[this.alternativa3d::_-3G] = buffer;
|
||||
this.alternativa3d::_-nw[this.alternativa3d::_-3G] = bufferOffset;
|
||||
this.alternativa3d::_-EL[this.alternativa3d::_-3G] = format;
|
||||
++this.alternativa3d::_-3G;
|
||||
this.alternativa3d::name_318[this.alternativa3d::name_316] = index;
|
||||
this.alternativa3d::vertexBuffers[this.alternativa3d::name_316] = buffer;
|
||||
this.alternativa3d::name_324[this.alternativa3d::name_316] = bufferOffset;
|
||||
this.alternativa3d::name_322[this.alternativa3d::name_316] = format;
|
||||
++this.alternativa3d::name_316;
|
||||
}
|
||||
|
||||
alternativa3d function setVertexConstantsFromVector(firstRegister:int, data:Vector.<Number>, numRegisters:int) : void
|
||||
@@ -114,14 +114,14 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + numRegisters > this.alternativa3d::_-9X)
|
||||
if(firstRegister + numRegisters > this.alternativa3d::name_317)
|
||||
{
|
||||
this.alternativa3d::_-9X = firstRegister + numRegisters;
|
||||
this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2;
|
||||
this.alternativa3d::name_317 = firstRegister + numRegisters;
|
||||
this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2;
|
||||
}
|
||||
for(var i:int = 0,var len:int = numRegisters << 2; i < len; )
|
||||
{
|
||||
this.alternativa3d::_-Aq[offset] = data[i];
|
||||
this.alternativa3d::name_323[offset] = data[i];
|
||||
offset++;
|
||||
i++;
|
||||
}
|
||||
@@ -134,18 +134,18 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 1 > this.alternativa3d::_-9X)
|
||||
if(firstRegister + 1 > this.alternativa3d::name_317)
|
||||
{
|
||||
this.alternativa3d::_-9X = firstRegister + 1;
|
||||
this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2;
|
||||
this.alternativa3d::name_317 = firstRegister + 1;
|
||||
this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2;
|
||||
}
|
||||
this.alternativa3d::_-Aq[offset] = x;
|
||||
this.alternativa3d::name_323[offset] = x;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = y;
|
||||
this.alternativa3d::name_323[offset] = y;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = z;
|
||||
this.alternativa3d::name_323[offset] = z;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = w;
|
||||
this.alternativa3d::name_323[offset] = w;
|
||||
}
|
||||
|
||||
alternativa3d function setVertexConstantsFromTransform(firstRegister:int, transform:Transform3D) : void
|
||||
@@ -155,34 +155,34 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 3 > this.alternativa3d::_-9X)
|
||||
if(firstRegister + 3 > this.alternativa3d::name_317)
|
||||
{
|
||||
this.alternativa3d::_-9X = firstRegister + 3;
|
||||
this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2;
|
||||
this.alternativa3d::name_317 = firstRegister + 3;
|
||||
this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2;
|
||||
}
|
||||
this.alternativa3d::_-Aq[offset] = transform.a;
|
||||
this.alternativa3d::name_323[offset] = transform.a;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.b;
|
||||
this.alternativa3d::name_323[offset] = transform.b;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.c;
|
||||
this.alternativa3d::name_323[offset] = transform.c;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.d;
|
||||
this.alternativa3d::name_323[offset] = transform.d;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.e;
|
||||
this.alternativa3d::name_323[offset] = transform.e;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.f;
|
||||
this.alternativa3d::name_323[offset] = transform.f;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.g;
|
||||
this.alternativa3d::name_323[offset] = transform.g;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.h;
|
||||
this.alternativa3d::name_323[offset] = transform.h;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.i;
|
||||
this.alternativa3d::name_323[offset] = transform.i;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.j;
|
||||
this.alternativa3d::name_323[offset] = transform.j;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.k;
|
||||
this.alternativa3d::name_323[offset] = transform.k;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.l;
|
||||
this.alternativa3d::name_323[offset] = transform.l;
|
||||
}
|
||||
|
||||
alternativa3d function setProjectionConstants(camera:Camera3D, firstRegister:int, transform:Transform3D = null) : void
|
||||
@@ -192,99 +192,99 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 4 > this.alternativa3d::_-9X)
|
||||
if(firstRegister + 4 > this.alternativa3d::name_317)
|
||||
{
|
||||
this.alternativa3d::_-9X = firstRegister + 4;
|
||||
this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2;
|
||||
this.alternativa3d::name_317 = firstRegister + 4;
|
||||
this.alternativa3d::name_323.length = this.alternativa3d::name_317 << 2;
|
||||
}
|
||||
if(transform != null)
|
||||
{
|
||||
this.alternativa3d::_-Aq[offset] = transform.a * camera.alternativa3d::m0;
|
||||
this.alternativa3d::name_323[offset] = transform.a * camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.b * camera.alternativa3d::m0;
|
||||
this.alternativa3d::name_323[offset] = transform.b * camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.c * camera.alternativa3d::m0;
|
||||
this.alternativa3d::name_323[offset] = transform.c * camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.d * camera.alternativa3d::m0;
|
||||
this.alternativa3d::name_323[offset] = transform.d * camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.e * camera.alternativa3d::m5;
|
||||
this.alternativa3d::name_323[offset] = transform.e * camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.f * camera.alternativa3d::m5;
|
||||
this.alternativa3d::name_323[offset] = transform.f * camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.g * camera.alternativa3d::m5;
|
||||
this.alternativa3d::name_323[offset] = transform.g * camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.h * camera.alternativa3d::m5;
|
||||
this.alternativa3d::name_323[offset] = transform.h * camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.i * camera.alternativa3d::m10;
|
||||
this.alternativa3d::name_323[offset] = transform.i * camera.alternativa3d::m10;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.j * camera.alternativa3d::m10;
|
||||
this.alternativa3d::name_323[offset] = transform.j * camera.alternativa3d::m10;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.k * camera.alternativa3d::m10;
|
||||
this.alternativa3d::name_323[offset] = transform.k * camera.alternativa3d::m10;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14;
|
||||
this.alternativa3d::name_323[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14;
|
||||
offset++;
|
||||
if(!camera.orthographic)
|
||||
{
|
||||
this.alternativa3d::_-Aq[offset] = transform.i;
|
||||
this.alternativa3d::name_323[offset] = transform.i;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.j;
|
||||
this.alternativa3d::name_323[offset] = transform.j;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.k;
|
||||
this.alternativa3d::name_323[offset] = transform.k;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = transform.l;
|
||||
this.alternativa3d::name_323[offset] = transform.l;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 1;
|
||||
this.alternativa3d::name_323[offset] = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m0;
|
||||
this.alternativa3d::name_323[offset] = camera.alternativa3d::m0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m5;
|
||||
this.alternativa3d::name_323[offset] = camera.alternativa3d::m5;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m10;
|
||||
this.alternativa3d::name_323[offset] = camera.alternativa3d::m10;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m14;
|
||||
this.alternativa3d::name_323[offset] = camera.alternativa3d::m14;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
if(!camera.orthographic)
|
||||
{
|
||||
this.alternativa3d::_-Aq[offset] = 1;
|
||||
this.alternativa3d::name_323[offset] = 1;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::_-Aq[offset] = 0;
|
||||
this.alternativa3d::name_323[offset] = 0;
|
||||
offset++;
|
||||
this.alternativa3d::_-Aq[offset] = 1;
|
||||
this.alternativa3d::name_323[offset] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -296,13 +296,13 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + numRegisters > this.alternativa3d::_-Kv)
|
||||
if(firstRegister + numRegisters > this.alternativa3d::name_320)
|
||||
{
|
||||
this.alternativa3d::_-Kv = firstRegister + numRegisters;
|
||||
this.alternativa3d::name_320 = firstRegister + numRegisters;
|
||||
}
|
||||
for(var i:int = 0,var len:int = numRegisters << 2; i < len; )
|
||||
{
|
||||
this.alternativa3d::_-Cl[offset] = data[i];
|
||||
this.alternativa3d::name_321[offset] = data[i];
|
||||
offset++;
|
||||
i++;
|
||||
}
|
||||
@@ -315,17 +315,17 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 1 > this.alternativa3d::_-Kv)
|
||||
if(firstRegister + 1 > this.alternativa3d::name_320)
|
||||
{
|
||||
this.alternativa3d::_-Kv = firstRegister + 1;
|
||||
this.alternativa3d::name_320 = firstRegister + 1;
|
||||
}
|
||||
this.alternativa3d::_-Cl[offset] = x;
|
||||
this.alternativa3d::name_321[offset] = x;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = y;
|
||||
this.alternativa3d::name_321[offset] = y;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = z;
|
||||
this.alternativa3d::name_321[offset] = z;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = w;
|
||||
this.alternativa3d::name_321[offset] = w;
|
||||
}
|
||||
|
||||
alternativa3d function setFragmentConstantsFromTransform(firstRegister:int, transform:Transform3D) : void
|
||||
@@ -335,33 +335,33 @@ package alternativa.engine3d.core
|
||||
throw new Error("Register index " + firstRegister + " is out of bounds.");
|
||||
}
|
||||
var offset:int = firstRegister << 2;
|
||||
if(firstRegister + 3 > this.alternativa3d::_-Kv)
|
||||
if(firstRegister + 3 > this.alternativa3d::name_320)
|
||||
{
|
||||
this.alternativa3d::_-Kv = firstRegister + 3;
|
||||
this.alternativa3d::name_320 = firstRegister + 3;
|
||||
}
|
||||
this.alternativa3d::_-Cl[offset] = transform.a;
|
||||
this.alternativa3d::name_321[offset] = transform.a;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.b;
|
||||
this.alternativa3d::name_321[offset] = transform.b;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.c;
|
||||
this.alternativa3d::name_321[offset] = transform.c;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.d;
|
||||
this.alternativa3d::name_321[offset] = transform.d;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.e;
|
||||
this.alternativa3d::name_321[offset] = transform.e;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.f;
|
||||
this.alternativa3d::name_321[offset] = transform.f;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.g;
|
||||
this.alternativa3d::name_321[offset] = transform.g;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.h;
|
||||
this.alternativa3d::name_321[offset] = transform.h;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.i;
|
||||
this.alternativa3d::name_321[offset] = transform.i;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.j;
|
||||
this.alternativa3d::name_321[offset] = transform.j;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.k;
|
||||
this.alternativa3d::name_321[offset] = transform.k;
|
||||
offset++;
|
||||
this.alternativa3d::_-Cl[offset] = transform.l;
|
||||
this.alternativa3d::name_321[offset] = transform.l;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ package alternativa.engine3d.core
|
||||
|
||||
public var intensity:Number = 1;
|
||||
|
||||
alternativa3d var §_-cl§:Transform3D = new Transform3D();
|
||||
alternativa3d var name_80:Transform3D = new Transform3D();
|
||||
|
||||
alternativa3d var §_-oG§:String;
|
||||
alternativa3d var name_79:String;
|
||||
|
||||
alternativa3d var red:Number;
|
||||
|
||||
@@ -25,7 +25,7 @@ package alternativa.engine3d.core
|
||||
public function Light3D()
|
||||
{
|
||||
super();
|
||||
this.alternativa3d::_-oG = "l" + lastLightNumber.toString(16);
|
||||
this.alternativa3d::name_79 = "l" + lastLightNumber.toString(16);
|
||||
name = "L" + (lastLightNumber++).toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -551,7 +551,7 @@ package alternativa.engine3d.core
|
||||
var event3D:Event3D = event as Event3D;
|
||||
if(event3D != null)
|
||||
{
|
||||
event3D.alternativa3d::_-5E = this;
|
||||
event3D.alternativa3d::name_314 = this;
|
||||
}
|
||||
var branch:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
var branchLength:int = 0;
|
||||
@@ -565,8 +565,8 @@ package alternativa.engine3d.core
|
||||
object = branch[i];
|
||||
if(event3D != null)
|
||||
{
|
||||
event3D.alternativa3d::_-Kh = object;
|
||||
event3D.alternativa3d::_-VE = EventPhase.CAPTURING_PHASE;
|
||||
event3D.alternativa3d::name_313 = object;
|
||||
event3D.alternativa3d::name_312 = EventPhase.CAPTURING_PHASE;
|
||||
}
|
||||
if(object.alternativa3d::captureListeners != null)
|
||||
{
|
||||
@@ -587,17 +587,17 @@ package alternativa.engine3d.core
|
||||
}
|
||||
if(event3D != null)
|
||||
{
|
||||
event3D.alternativa3d::_-VE = EventPhase.AT_TARGET;
|
||||
event3D.alternativa3d::name_312 = EventPhase.AT_TARGET;
|
||||
}
|
||||
for(i = 0; i < branchLength; )
|
||||
{
|
||||
object = branch[i];
|
||||
if(event3D != null)
|
||||
{
|
||||
event3D.alternativa3d::_-Kh = object;
|
||||
event3D.alternativa3d::name_313 = object;
|
||||
if(i > 0)
|
||||
{
|
||||
event3D.alternativa3d::_-VE = EventPhase.BUBBLING_PHASE;
|
||||
event3D.alternativa3d::name_312 = EventPhase.BUBBLING_PHASE;
|
||||
}
|
||||
}
|
||||
if(object.alternativa3d::bubbleListeners != null)
|
||||
@@ -1164,7 +1164,7 @@ package alternativa.engine3d.core
|
||||
for(i = 0; i < lightsLength; )
|
||||
{
|
||||
light = lights[i];
|
||||
light.alternativa3d::_-cl.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
light.alternativa3d::name_80.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
if(light.boundBox == null || light.alternativa3d::checkBound(child))
|
||||
{
|
||||
camera.alternativa3d::childLights[childLightsLength] = light;
|
||||
@@ -1179,7 +1179,7 @@ package alternativa.engine3d.core
|
||||
for(i = 0; i < lightsLength; )
|
||||
{
|
||||
light = lights[i];
|
||||
light.alternativa3d::_-cl.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
light.alternativa3d::name_80.combine(child.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform);
|
||||
i++;
|
||||
}
|
||||
child.alternativa3d::collectDraws(camera,lights,lightsLength);
|
||||
|
||||
@@ -20,7 +20,7 @@ package alternativa.engine3d.core
|
||||
|
||||
alternativa3d var camera:Camera3D;
|
||||
|
||||
alternativa3d var §_-T5§:Vector.<DrawUnit> = new Vector.<DrawUnit>();
|
||||
alternativa3d var var_585:Vector.<DrawUnit> = new Vector.<DrawUnit>();
|
||||
|
||||
public function Renderer()
|
||||
{
|
||||
@@ -31,10 +31,10 @@ package alternativa.engine3d.core
|
||||
{
|
||||
var list:DrawUnit = null;
|
||||
var next:DrawUnit = null;
|
||||
var drawUnitsLength:int = int(this.alternativa3d::_-T5.length);
|
||||
var drawUnitsLength:int = int(this.alternativa3d::var_585.length);
|
||||
for(var i:int = 0; i < drawUnitsLength; )
|
||||
{
|
||||
list = this.alternativa3d::_-T5[i];
|
||||
list = this.alternativa3d::var_585[i];
|
||||
if(list != null)
|
||||
{
|
||||
switch(i)
|
||||
@@ -90,7 +90,7 @@ package alternativa.engine3d.core
|
||||
}
|
||||
i++;
|
||||
}
|
||||
this.alternativa3d::_-T5.length = 0;
|
||||
this.alternativa3d::var_585.length = 0;
|
||||
}
|
||||
|
||||
alternativa3d function createDrawUnit(object:Object3D, program:Program3D, indexBuffer:IndexBuffer3D, firstIndex:int, numTriangles:int, debugShader:ShaderProgram = null) : DrawUnit
|
||||
@@ -116,12 +116,12 @@ package alternativa.engine3d.core
|
||||
|
||||
alternativa3d function addDrawUnit(drawUnit:DrawUnit, renderPriority:int) : void
|
||||
{
|
||||
if(renderPriority >= this.alternativa3d::_-T5.length)
|
||||
if(renderPriority >= this.alternativa3d::var_585.length)
|
||||
{
|
||||
this.alternativa3d::_-T5.length = renderPriority + 1;
|
||||
this.alternativa3d::var_585.length = renderPriority + 1;
|
||||
}
|
||||
drawUnit.alternativa3d::next = this.alternativa3d::_-T5[renderPriority];
|
||||
this.alternativa3d::_-T5[renderPriority] = drawUnit;
|
||||
drawUnit.alternativa3d::next = this.alternativa3d::var_585[renderPriority];
|
||||
this.alternativa3d::var_585[renderPriority] = drawUnit;
|
||||
}
|
||||
|
||||
protected function renderDrawUnit(drawUnit:DrawUnit, context:Context3D, camera:Camera3D) : void
|
||||
@@ -134,25 +134,25 @@ package alternativa.engine3d.core
|
||||
var currentTextures:int = 0;
|
||||
context.setBlendFactors(drawUnit.alternativa3d::blendSource,drawUnit.alternativa3d::blendDestination);
|
||||
context.setCulling(drawUnit.alternativa3d::culling);
|
||||
for(var i:int = 0; i < drawUnit.alternativa3d::_-3G; i++)
|
||||
for(var i:int = 0; i < drawUnit.alternativa3d::name_316; i++)
|
||||
{
|
||||
bufferIndex = int(drawUnit.alternativa3d::else [i]);
|
||||
bufferIndex = int(drawUnit.alternativa3d::name_318[i]);
|
||||
bufferBit = 1 << bufferIndex;
|
||||
currentBuffers |= bufferBit;
|
||||
_usedBuffers &= ~bufferBit;
|
||||
context.setVertexBufferAt(bufferIndex,drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::_-nw[i],drawUnit.alternativa3d::_-EL[i]);
|
||||
context.setVertexBufferAt(bufferIndex,drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::name_324[i],drawUnit.alternativa3d::name_322[i]);
|
||||
}
|
||||
if(drawUnit.alternativa3d::_-9X > 0)
|
||||
if(drawUnit.alternativa3d::name_317 > 0)
|
||||
{
|
||||
context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::_-Aq,drawUnit.alternativa3d::_-9X);
|
||||
context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::name_323,drawUnit.alternativa3d::name_317);
|
||||
}
|
||||
if(drawUnit.alternativa3d::_-Kv > 0)
|
||||
if(drawUnit.alternativa3d::name_320 > 0)
|
||||
{
|
||||
context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::_-Cl,drawUnit.alternativa3d::_-Kv);
|
||||
context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::name_321,drawUnit.alternativa3d::name_320);
|
||||
}
|
||||
for(i = 0; i < drawUnit.alternativa3d::_-Oq; )
|
||||
for(i = 0; i < drawUnit.alternativa3d::var_182; )
|
||||
{
|
||||
textureSampler = int(drawUnit.alternativa3d::_-kR[i]);
|
||||
textureSampler = int(drawUnit.alternativa3d::var_183[i]);
|
||||
textureBit = 1 << textureSampler;
|
||||
currentTextures |= textureBit;
|
||||
_usedTextures &= ~textureBit;
|
||||
|
||||
@@ -12,42 +12,42 @@ package alternativa.engine3d.core.events
|
||||
|
||||
public static const REMOVED:String = "removed3D";
|
||||
|
||||
alternativa3d var §_-5E§:Object3D;
|
||||
alternativa3d var name_314:Object3D;
|
||||
|
||||
alternativa3d var §_-Kh§:Object3D;
|
||||
alternativa3d var name_313:Object3D;
|
||||
|
||||
alternativa3d var §_-iJ§:Boolean;
|
||||
alternativa3d var var_107:Boolean;
|
||||
|
||||
alternativa3d var §_-VE§:uint = 3;
|
||||
alternativa3d var name_312:uint = 3;
|
||||
|
||||
alternativa3d var stop:Boolean = false;
|
||||
|
||||
alternativa3d var §_-XD§:Boolean = false;
|
||||
alternativa3d var var_108:Boolean = false;
|
||||
|
||||
public function Event3D(type:String, bubbles:Boolean = true)
|
||||
{
|
||||
super(type,bubbles);
|
||||
this.alternativa3d::_-iJ = bubbles;
|
||||
this.alternativa3d::var_107 = bubbles;
|
||||
}
|
||||
|
||||
override public function get bubbles() : Boolean
|
||||
{
|
||||
return this.alternativa3d::_-iJ;
|
||||
return this.alternativa3d::var_107;
|
||||
}
|
||||
|
||||
override public function get eventPhase() : uint
|
||||
{
|
||||
return this.alternativa3d::_-VE;
|
||||
return this.alternativa3d::name_312;
|
||||
}
|
||||
|
||||
override public function get target() : Object
|
||||
{
|
||||
return this.alternativa3d::_-5E;
|
||||
return this.alternativa3d::name_314;
|
||||
}
|
||||
|
||||
override public function get currentTarget() : Object
|
||||
{
|
||||
return this.alternativa3d::_-Kh;
|
||||
return this.alternativa3d::name_313;
|
||||
}
|
||||
|
||||
override public function stopPropagation() : void
|
||||
@@ -57,15 +57,15 @@ package alternativa.engine3d.core.events
|
||||
|
||||
override public function stopImmediatePropagation() : void
|
||||
{
|
||||
this.alternativa3d::_-XD = true;
|
||||
this.alternativa3d::var_108 = true;
|
||||
}
|
||||
|
||||
override public function clone() : Event
|
||||
{
|
||||
var result:Event3D = new Event3D(type,this.alternativa3d::_-iJ);
|
||||
result.alternativa3d::_-5E = this.alternativa3d::_-5E;
|
||||
result.alternativa3d::_-Kh = this.alternativa3d::_-Kh;
|
||||
result.alternativa3d::_-VE = this.alternativa3d::_-VE;
|
||||
var result:Event3D = new Event3D(type,this.alternativa3d::var_107);
|
||||
result.alternativa3d::name_314 = this.alternativa3d::name_314;
|
||||
result.alternativa3d::name_313 = this.alternativa3d::name_313;
|
||||
result.alternativa3d::name_312 = this.alternativa3d::name_312;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ package alternativa.engine3d.core.events
|
||||
|
||||
public var localZ:Number;
|
||||
|
||||
alternativa3d var §_-BX§:Surface;
|
||||
alternativa3d var var_109:Surface;
|
||||
|
||||
public function MouseEvent3D(type:String, bubbles:Boolean = true, localX:Number = NaN, localY:Number = NaN, localZ:Number = NaN, relatedObject:Object3D = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0)
|
||||
{
|
||||
@@ -65,12 +65,12 @@ package alternativa.engine3d.core.events
|
||||
|
||||
public function get surface() : Surface
|
||||
{
|
||||
return this.alternativa3d::_-BX;
|
||||
return this.alternativa3d::var_109;
|
||||
}
|
||||
|
||||
override public function clone() : Event
|
||||
{
|
||||
return new MouseEvent3D(type,alternativa3d::_-iJ,this.localX,this.localY,this.localZ,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta);
|
||||
return new MouseEvent3D(type,alternativa3d::var_107,this.localX,this.localY,this.localZ,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta);
|
||||
}
|
||||
|
||||
override public function toString() : String
|
||||
|
||||
@@ -30,13 +30,13 @@ package alternativa.engine3d.effects
|
||||
|
||||
public var originY:Number;
|
||||
|
||||
public var §_-q§:Number;
|
||||
public var name_333:Number;
|
||||
|
||||
public var §_-Ts§:Number;
|
||||
public var name_330:Number;
|
||||
|
||||
public var §_-ej§:Number;
|
||||
public var name_332:Number;
|
||||
|
||||
public var §_-W5§:Number;
|
||||
public var name_331:Number;
|
||||
|
||||
public var red:Number;
|
||||
|
||||
|
||||
@@ -21,23 +21,23 @@ package alternativa.engine3d.effects
|
||||
|
||||
private var height:Number;
|
||||
|
||||
private var §_-gV§:Vector.<Number> = new Vector.<Number>();
|
||||
private var var_151:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var §_-0r§:Vector.<Number> = new Vector.<Number>();
|
||||
private var var_657:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var §_-4e§:Vector.<Number> = new Vector.<Number>();
|
||||
private var var_659:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var §_-Oj§:Vector.<Number> = new Vector.<Number>();
|
||||
private var var_662:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var §_-07§:Vector.<Number> = new Vector.<Number>();
|
||||
private var var_656:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var §_-3l§:Vector.<Number> = new Vector.<Number>();
|
||||
private var var_658:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var §_-7S§:Vector.<Number> = new Vector.<Number>();
|
||||
private var var_660:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var §_-Ch§:Vector.<Number> = new Vector.<Number>();
|
||||
private var var_661:Vector.<Number> = new Vector.<Number>();
|
||||
|
||||
private var §_-kf§:int = 0;
|
||||
private var var_148:int = 0;
|
||||
|
||||
public function ParticlePrototype(width:Number, height:Number, atlas:TextureAtlas, animated:Boolean = false, blendSource:String = "sourceAlpha", blendDestination:String = "oneMinusSourceAlpha")
|
||||
{
|
||||
@@ -52,23 +52,23 @@ package alternativa.engine3d.effects
|
||||
|
||||
public function addKey(time:Number, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, red:Number = 1, green:Number = 1, blue:Number = 1, alpha:Number = 1) : void
|
||||
{
|
||||
var lastIndex:int = this.§_-kf§ - 1;
|
||||
if(this.§_-kf§ > 0 && time <= this.§_-gV§[lastIndex])
|
||||
var lastIndex:int = this.var_148 - 1;
|
||||
if(this.var_148 > 0 && time <= this.var_151[lastIndex])
|
||||
{
|
||||
throw new Error("Keys must be successively.");
|
||||
}
|
||||
this.§_-gV§[this.§_-kf§] = time;
|
||||
this.§_-0r§[this.§_-kf§] = rotation;
|
||||
this.§_-4e§[this.§_-kf§] = scaleX;
|
||||
this.§_-Oj§[this.§_-kf§] = scaleY;
|
||||
this.§_-07§[this.§_-kf§] = red;
|
||||
this.§_-3l§[this.§_-kf§] = green;
|
||||
this.§_-7S§[this.§_-kf§] = blue;
|
||||
this.§_-Ch§[this.§_-kf§] = alpha;
|
||||
++this.§_-kf§;
|
||||
this.var_151[this.var_148] = time;
|
||||
this.var_657[this.var_148] = rotation;
|
||||
this.var_659[this.var_148] = scaleX;
|
||||
this.var_662[this.var_148] = scaleY;
|
||||
this.var_656[this.var_148] = red;
|
||||
this.var_658[this.var_148] = green;
|
||||
this.var_660[this.var_148] = blue;
|
||||
this.var_661[this.var_148] = alpha;
|
||||
++this.var_148;
|
||||
}
|
||||
|
||||
public function createParticle(effect:§_-SG§, time:Number, position:Vector3D, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, alpha:Number = 1, firstFrame:int = 0) : void
|
||||
public function createParticle(effect:name_77, time:Number, position:Vector3D, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, alpha:Number = 1, firstFrame:int = 0) : void
|
||||
{
|
||||
var systemScale:Number = NaN;
|
||||
var effectScale:Number = NaN;
|
||||
@@ -85,12 +85,12 @@ package alternativa.engine3d.effects
|
||||
var cy:Number = NaN;
|
||||
var cz:Number = NaN;
|
||||
var rot:Number = NaN;
|
||||
var b:int = this.§_-kf§ - 1;
|
||||
if(this.atlas.diffuse.alternativa3d::_texture != null && this.§_-kf§ > 1 && time >= this.§_-gV§[0] && time < this.§_-gV§[b])
|
||||
var b:int = this.var_148 - 1;
|
||||
if(this.atlas.diffuse.alternativa3d::_texture != null && this.var_148 > 1 && time >= this.var_151[0] && time < this.var_151[b])
|
||||
{
|
||||
for(b = 1; b < this.§_-kf§; )
|
||||
for(b = 1; b < this.var_148; )
|
||||
{
|
||||
if(time < this.§_-gV§[b])
|
||||
if(time < this.var_151[b])
|
||||
{
|
||||
systemScale = Number(effect.alternativa3d::system.alternativa3d::scale);
|
||||
effectScale = Number(effect.scale);
|
||||
@@ -98,7 +98,7 @@ package alternativa.engine3d.effects
|
||||
wind = effect.alternativa3d::system.wind;
|
||||
gravity = effect.alternativa3d::system.gravity;
|
||||
a = b - 1;
|
||||
t = (time - this.§_-gV§[a]) / (this.§_-gV§[b] - this.§_-gV§[a]);
|
||||
t = (time - this.var_151[a]) / (this.var_151[b] - this.var_151[a]);
|
||||
pos = firstFrame + (this.animated ? time * this.atlas.fps : 0);
|
||||
if(this.atlas.loop)
|
||||
{
|
||||
@@ -127,26 +127,26 @@ package alternativa.engine3d.effects
|
||||
particle.opacity = this.atlas.opacity != null ? this.atlas.opacity.alternativa3d::_texture : null;
|
||||
particle.blendSource = this.blendSource;
|
||||
particle.blendDestination = this.blendDestination;
|
||||
cx = effect.alternativa3d::_-M7.x + position.x * effectScale;
|
||||
cy = effect.alternativa3d::_-M7.y + position.y * effectScale;
|
||||
cz = effect.alternativa3d::_-M7.z + position.z * effectScale;
|
||||
cx = effect.alternativa3d::var_157.x + position.x * effectScale;
|
||||
cy = effect.alternativa3d::var_157.y + position.y * effectScale;
|
||||
cz = effect.alternativa3d::var_157.z + position.z * effectScale;
|
||||
particle.x = cx * transform.a + cy * transform.b + cz * transform.c + transform.d;
|
||||
particle.y = cx * transform.e + cy * transform.f + cz * transform.g + transform.h;
|
||||
particle.z = cx * transform.i + cy * transform.j + cz * transform.k + transform.l;
|
||||
rot = this.§_-0r§[a] + (this.§_-0r§[b] - this.§_-0r§[a]) * t;
|
||||
rot = this.var_657[a] + (this.var_657[b] - this.var_657[a]) * t;
|
||||
particle.rotation = scaleX * scaleY > 0 ? rotation + rot : rotation - rot;
|
||||
particle.width = systemScale * effectScale * scaleX * this.width * (this.§_-4e§[a] + (this.§_-4e§[b] - this.§_-4e§[a]) * t);
|
||||
particle.height = systemScale * effectScale * scaleY * this.height * (this.§_-Oj§[a] + (this.§_-Oj§[b] - this.§_-Oj§[a]) * t);
|
||||
particle.width = systemScale * effectScale * scaleX * this.width * (this.var_659[a] + (this.var_659[b] - this.var_659[a]) * t);
|
||||
particle.height = systemScale * effectScale * scaleY * this.height * (this.var_662[a] + (this.var_662[b] - this.var_662[a]) * t);
|
||||
particle.originX = this.atlas.originX;
|
||||
particle.originY = this.atlas.originY;
|
||||
particle.§_-q§ = 1 / this.atlas.columnsCount;
|
||||
particle.§_-Ts§ = 1 / this.atlas.rowsCount;
|
||||
particle.§_-ej§ = col / this.atlas.columnsCount;
|
||||
particle.§_-W5§ = row / this.atlas.rowsCount;
|
||||
particle.red = this.§_-07§[a] + (this.§_-07§[b] - this.§_-07§[a]) * t;
|
||||
particle.green = this.§_-3l§[a] + (this.§_-3l§[b] - this.§_-3l§[a]) * t;
|
||||
particle.blue = this.§_-7S§[a] + (this.§_-7S§[b] - this.§_-7S§[a]) * t;
|
||||
particle.alpha = alpha * (this.§_-Ch§[a] + (this.§_-Ch§[b] - this.§_-Ch§[a]) * t);
|
||||
particle.name_333 = 1 / this.atlas.columnsCount;
|
||||
particle.name_330 = 1 / this.atlas.rowsCount;
|
||||
particle.name_332 = col / this.atlas.columnsCount;
|
||||
particle.name_331 = row / this.atlas.rowsCount;
|
||||
particle.red = this.var_656[a] + (this.var_656[b] - this.var_656[a]) * t;
|
||||
particle.green = this.var_658[a] + (this.var_658[b] - this.var_658[a]) * t;
|
||||
particle.blue = this.var_660[a] + (this.var_660[b] - this.var_660[a]) * t;
|
||||
particle.alpha = alpha * (this.var_661[a] + (this.var_661[b] - this.var_661[a]) * t);
|
||||
particle.next = effect.alternativa3d::particleList;
|
||||
effect.alternativa3d::particleList = particle;
|
||||
break;
|
||||
@@ -158,8 +158,8 @@ package alternativa.engine3d.effects
|
||||
|
||||
public function get lifeTime() : Number
|
||||
{
|
||||
var lastIndex:int = this.§_-kf§ - 1;
|
||||
return this.§_-gV§[lastIndex];
|
||||
var lastIndex:int = this.var_148 - 1;
|
||||
return this.var_151[lastIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,13 +38,13 @@ package alternativa.engine3d.effects
|
||||
|
||||
private static const limit:int = 31;
|
||||
|
||||
public var §_-jW§:Boolean = true;
|
||||
public var var_141:Boolean = true;
|
||||
|
||||
public var gravity:Vector3D = new Vector3D(0,0,-1);
|
||||
|
||||
public var wind:Vector3D = new Vector3D();
|
||||
|
||||
public var §_-IN§:int = 0;
|
||||
public var name_76:int = 0;
|
||||
|
||||
public var fogMaxDensity:Number = 0;
|
||||
|
||||
@@ -54,7 +54,7 @@ package alternativa.engine3d.effects
|
||||
|
||||
alternativa3d var scale:Number = 1;
|
||||
|
||||
alternativa3d var effectList:§_-SG§;
|
||||
alternativa3d var effectList:name_77;
|
||||
|
||||
private var drawUnit:DrawUnit = null;
|
||||
|
||||
@@ -68,19 +68,19 @@ package alternativa.engine3d.effects
|
||||
|
||||
private var counter:int;
|
||||
|
||||
private var §_-La§:Number;
|
||||
private var var_139:Number;
|
||||
|
||||
private var §_-p3§:Number;
|
||||
private var var_140:Number;
|
||||
|
||||
private var §_-ZN§:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
private var var_138:Vector.<Object3D> = new Vector.<Object3D>();
|
||||
|
||||
private var §_-hr§:int = 0;
|
||||
private var var_136:int = 0;
|
||||
|
||||
private var pause:Boolean = false;
|
||||
|
||||
private var §_-pK§:Number;
|
||||
private var var_135:Number;
|
||||
|
||||
private var §_-L5§:Number = 0;
|
||||
private var var_137:Number = 0;
|
||||
|
||||
public function ParticleSystem()
|
||||
{
|
||||
@@ -91,7 +91,7 @@ package alternativa.engine3d.effects
|
||||
{
|
||||
if(!this.pause)
|
||||
{
|
||||
this.§_-pK§ = getTimer() * 0.001;
|
||||
this.var_135 = getTimer() * 0.001;
|
||||
this.pause = true;
|
||||
}
|
||||
}
|
||||
@@ -100,22 +100,22 @@ package alternativa.engine3d.effects
|
||||
{
|
||||
if(this.pause)
|
||||
{
|
||||
this.§_-L5§ += getTimer() * 0.001 - this.§_-pK§;
|
||||
this.var_137 += getTimer() * 0.001 - this.var_135;
|
||||
this.pause = false;
|
||||
}
|
||||
}
|
||||
|
||||
public function prevFrame() : void
|
||||
{
|
||||
this.§_-pK§ -= 0.001;
|
||||
this.var_135 -= 0.001;
|
||||
}
|
||||
|
||||
public function nextFrame() : void
|
||||
{
|
||||
this.§_-pK§ += 0.001;
|
||||
this.var_135 += 0.001;
|
||||
}
|
||||
|
||||
public function each(effect:§_-SG§) : §_-SG§
|
||||
public function method_21(effect:name_77) : name_77
|
||||
{
|
||||
if(effect.alternativa3d::system != null)
|
||||
{
|
||||
@@ -123,34 +123,34 @@ package alternativa.engine3d.effects
|
||||
}
|
||||
effect.alternativa3d::startTime = this.alternativa3d::getTime();
|
||||
effect.alternativa3d::system = this;
|
||||
effect.alternativa3d::_-is(0);
|
||||
effect.alternativa3d::_-Af(0);
|
||||
effect.alternativa3d::implements = this.alternativa3d::effectList;
|
||||
effect.alternativa3d::name_329(0);
|
||||
effect.alternativa3d::name_327(0);
|
||||
effect.alternativa3d::name_326 = this.alternativa3d::effectList;
|
||||
this.alternativa3d::effectList = effect;
|
||||
return effect;
|
||||
}
|
||||
|
||||
public function getEffectByName(name:String) : §_-SG§
|
||||
public function getEffectByName(name:String) : name_77
|
||||
{
|
||||
for(var effect:§_-SG§ = this.alternativa3d::effectList; effect != null; )
|
||||
for(var effect:name_77 = this.alternativa3d::effectList; effect != null; )
|
||||
{
|
||||
if(effect.name == name)
|
||||
{
|
||||
return effect;
|
||||
}
|
||||
effect = effect.alternativa3d::implements;
|
||||
effect = effect.alternativa3d::name_326;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
alternativa3d function getTime() : Number
|
||||
{
|
||||
return this.pause ? this.§_-pK§ - this.§_-L5§ : getTimer() * 0.001 - this.§_-L5§;
|
||||
return this.pause ? this.var_135 - this.var_137 : getTimer() * 0.001 - this.var_137;
|
||||
}
|
||||
|
||||
override alternativa3d function collectDraws(camera:Camera3D, lights:Vector.<Light3D>, lightsLength:int) : void
|
||||
{
|
||||
var visibleEffectList:§_-SG§ = null;
|
||||
var visibleEffectList:name_77 = null;
|
||||
var effectTime:Number = NaN;
|
||||
var culling:int = 0;
|
||||
var debug:int = 0;
|
||||
@@ -165,7 +165,7 @@ package alternativa.engine3d.effects
|
||||
camera.alternativa3d::calculateFrustum(alternativa3d::cameraToLocalTransform);
|
||||
var conflictAnyway:Boolean = false;
|
||||
var time:Number = this.alternativa3d::getTime();
|
||||
for(var effect:§_-SG§ = this.alternativa3d::effectList,var prev:§_-SG§ = null; effect != null; )
|
||||
for(var effect:name_77 = this.alternativa3d::effectList,var prev:name_77 = null; effect != null; )
|
||||
{
|
||||
effectTime = time - effect.alternativa3d::startTime;
|
||||
if(effectTime <= effect.alternativa3d::lifeTime)
|
||||
@@ -178,7 +178,7 @@ package alternativa.engine3d.effects
|
||||
}
|
||||
if(culling >= 0)
|
||||
{
|
||||
if(effect.alternativa3d::_-Xj(effectTime))
|
||||
if(effect.alternativa3d::name_328(effectTime))
|
||||
{
|
||||
if(effect.alternativa3d::particleList != null)
|
||||
{
|
||||
@@ -187,33 +187,33 @@ package alternativa.engine3d.effects
|
||||
conflictAnyway ||= effect.boundBox == null;
|
||||
}
|
||||
prev = effect;
|
||||
effect = effect.alternativa3d::implements;
|
||||
effect = effect.alternativa3d::name_326;
|
||||
}
|
||||
else if(prev != null)
|
||||
{
|
||||
prev.alternativa3d::implements = effect.alternativa3d::implements;
|
||||
effect = prev.alternativa3d::implements;
|
||||
prev.alternativa3d::name_326 = effect.alternativa3d::name_326;
|
||||
effect = prev.alternativa3d::name_326;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::effectList = effect.alternativa3d::implements;
|
||||
this.alternativa3d::effectList = effect.alternativa3d::name_326;
|
||||
effect = this.alternativa3d::effectList;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
prev = effect;
|
||||
effect = effect.alternativa3d::implements;
|
||||
effect = effect.alternativa3d::name_326;
|
||||
}
|
||||
}
|
||||
else if(prev != null)
|
||||
{
|
||||
prev.alternativa3d::implements = effect.alternativa3d::implements;
|
||||
effect = prev.alternativa3d::implements;
|
||||
prev.alternativa3d::name_326 = effect.alternativa3d::name_326;
|
||||
effect = prev.alternativa3d::name_326;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.alternativa3d::effectList = effect.alternativa3d::implements;
|
||||
this.alternativa3d::effectList = effect.alternativa3d::name_326;
|
||||
effect = this.alternativa3d::effectList;
|
||||
}
|
||||
}
|
||||
@@ -238,7 +238,7 @@ package alternativa.engine3d.effects
|
||||
this.opacity = null;
|
||||
this.blendSource = null;
|
||||
this.blendDestination = null;
|
||||
this.§_-hr§ = 0;
|
||||
this.var_136 = 0;
|
||||
}
|
||||
if(camera.debug)
|
||||
{
|
||||
@@ -294,13 +294,13 @@ package alternativa.engine3d.effects
|
||||
|
||||
private function flush(camera:Camera3D) : void
|
||||
{
|
||||
if(this.§_-hr§ == this.§_-ZN§.length)
|
||||
if(this.var_136 == this.var_138.length)
|
||||
{
|
||||
this.§_-ZN§[this.§_-hr§] = new Object3D();
|
||||
this.var_138[this.var_136] = new Object3D();
|
||||
}
|
||||
var object:Object3D = this.§_-ZN§[this.§_-hr§];
|
||||
++this.§_-hr§;
|
||||
object.alternativa3d::localToCameraTransform.l = (this.§_-La§ + this.§_-p3§) / 2;
|
||||
var object:Object3D = this.var_138[this.var_136];
|
||||
++this.var_136;
|
||||
object.alternativa3d::localToCameraTransform.l = (this.var_139 + this.var_140) / 2;
|
||||
this.drawUnit.alternativa3d::object = object;
|
||||
this.drawUnit.alternativa3d::numTriangles = this.counter << 1;
|
||||
if(this.blendDestination == Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA)
|
||||
@@ -314,7 +314,7 @@ package alternativa.engine3d.effects
|
||||
this.drawUnit.alternativa3d::setVertexBufferAt(0,vertexBuffer,0,Context3DVertexBufferFormat.FLOAT_3);
|
||||
this.drawUnit.alternativa3d::setVertexBufferAt(1,vertexBuffer,3,Context3DVertexBufferFormat.FLOAT_3);
|
||||
this.drawUnit.alternativa3d::setProjectionConstants(camera,124);
|
||||
this.drawUnit.alternativa3d::setFragmentConstantsFromNumbers(0,(this.§_-IN§ >> 16 & 0xFF) / 255,(this.§_-IN§ >> 8 & 0xFF) / 255,(this.§_-IN§ & 0xFF) / 255,this.fogMaxDensity);
|
||||
this.drawUnit.alternativa3d::setFragmentConstantsFromNumbers(0,(this.name_76 >> 16 & 0xFF) / 255,(this.name_76 >> 8 & 0xFF) / 255,(this.name_76 & 0xFF) / 255,this.fogMaxDensity);
|
||||
this.drawUnit.alternativa3d::setFragmentConstantsFromNumbers(1,this.fogNear,this.fogFar - this.fogNear,0,1);
|
||||
this.drawUnit.alternativa3d::setTextureAt(0,this.diffuse);
|
||||
if(this.opacity != null)
|
||||
@@ -349,15 +349,15 @@ package alternativa.engine3d.effects
|
||||
this.blendSource = particle.blendSource;
|
||||
this.blendDestination = particle.blendDestination;
|
||||
this.counter = 0;
|
||||
this.§_-La§ = particle.z;
|
||||
this.var_139 = particle.z;
|
||||
}
|
||||
offset = this.counter << 2;
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.originX,particle.originY,particle.width,particle.height);
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.x,particle.y,particle.z,particle.rotation);
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.§_-q§,particle.§_-Ts§,particle.§_-ej§,particle.§_-W5§);
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.name_333,particle.name_330,particle.name_332,particle.name_331);
|
||||
this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.red,particle.green,particle.blue,particle.alpha);
|
||||
++this.counter;
|
||||
this.§_-p3§ = particle.z;
|
||||
this.var_140 = particle.z;
|
||||
last = particle;
|
||||
particle = particle.next;
|
||||
}
|
||||
@@ -435,12 +435,12 @@ package alternativa.engine3d.effects
|
||||
return list;
|
||||
}
|
||||
|
||||
private function drawConflictEffects(camera:Camera3D, effectList:§_-SG§) : void
|
||||
private function drawConflictEffects(camera:Camera3D, effectList:name_77) : void
|
||||
{
|
||||
var particleList:Particle = null;
|
||||
var next:§_-SG§ = null;
|
||||
var next:name_77 = null;
|
||||
var last:Particle = null;
|
||||
for(var effect:§_-SG§ = effectList; effect != null; )
|
||||
for(var effect:name_77 = effectList; effect != null; )
|
||||
{
|
||||
next = effect.alternativa3d::next;
|
||||
effect.alternativa3d::next = null;
|
||||
|
||||
@@ -72,9 +72,9 @@ package alternativa.engine3d.lights
|
||||
|
||||
override alternativa3d function checkBound(targetObject:Object3D) : Boolean
|
||||
{
|
||||
var rScale:Number = Number(Math.sqrt(alternativa3d::_-cl.a * alternativa3d::_-cl.a + alternativa3d::_-cl.e * alternativa3d::_-cl.e + alternativa3d::_-cl.i * alternativa3d::_-cl.i));
|
||||
rScale += Math.sqrt(alternativa3d::_-cl.b * alternativa3d::_-cl.b + alternativa3d::_-cl.f * alternativa3d::_-cl.f + alternativa3d::_-cl.j * alternativa3d::_-cl.j);
|
||||
rScale += Math.sqrt(alternativa3d::_-cl.c * alternativa3d::_-cl.c + alternativa3d::_-cl.g * alternativa3d::_-cl.g + alternativa3d::_-cl.k * alternativa3d::_-cl.k);
|
||||
var rScale:Number = Number(Math.sqrt(alternativa3d::name_80.a * alternativa3d::name_80.a + alternativa3d::name_80.e * alternativa3d::name_80.e + alternativa3d::name_80.i * alternativa3d::name_80.i));
|
||||
rScale += Math.sqrt(alternativa3d::name_80.b * alternativa3d::name_80.b + alternativa3d::name_80.f * alternativa3d::name_80.f + alternativa3d::name_80.j * alternativa3d::name_80.j);
|
||||
rScale += Math.sqrt(alternativa3d::name_80.c * alternativa3d::name_80.c + alternativa3d::name_80.g * alternativa3d::name_80.g + alternativa3d::name_80.k * alternativa3d::name_80.k);
|
||||
rScale /= 3;
|
||||
rScale *= this.attenuationEnd;
|
||||
rScale *= rScale;
|
||||
@@ -84,9 +84,9 @@ package alternativa.engine3d.lights
|
||||
var minY:Number = bb.minY;
|
||||
var minZ:Number = bb.minZ;
|
||||
var maxX:Number = bb.maxX;
|
||||
var px:Number = Number(alternativa3d::_-cl.d);
|
||||
var py:Number = Number(alternativa3d::_-cl.h);
|
||||
var pz:Number = Number(alternativa3d::_-cl.l);
|
||||
var px:Number = Number(alternativa3d::name_80.d);
|
||||
var py:Number = Number(alternativa3d::name_80.h);
|
||||
var pz:Number = Number(alternativa3d::name_80.l);
|
||||
var maxY:Number = bb.maxY;
|
||||
var maxZ:Number = bb.maxZ;
|
||||
if(px < minX)
|
||||
|
||||
@@ -80,22 +80,22 @@ package alternativa.engine3d.lights
|
||||
var w:Number = (maxX - minX) * 0.5;
|
||||
var l:Number = (maxY - minY) * 0.5;
|
||||
var h:Number = (maxZ - minZ) * 0.5;
|
||||
var ax:Number = alternativa3d::_-cl.a * w;
|
||||
var ay:Number = alternativa3d::_-cl.e * w;
|
||||
var az:Number = alternativa3d::_-cl.i * w;
|
||||
var bx:Number = alternativa3d::_-cl.b * l;
|
||||
var by:Number = alternativa3d::_-cl.f * l;
|
||||
var bz:Number = alternativa3d::_-cl.j * l;
|
||||
var cx:Number = alternativa3d::_-cl.c * h;
|
||||
var cy:Number = alternativa3d::_-cl.g * h;
|
||||
var cz:Number = alternativa3d::_-cl.k * h;
|
||||
var ax:Number = alternativa3d::name_80.a * w;
|
||||
var ay:Number = alternativa3d::name_80.e * w;
|
||||
var az:Number = alternativa3d::name_80.i * w;
|
||||
var bx:Number = alternativa3d::name_80.b * l;
|
||||
var by:Number = alternativa3d::name_80.f * l;
|
||||
var bz:Number = alternativa3d::name_80.j * l;
|
||||
var cx:Number = alternativa3d::name_80.c * h;
|
||||
var cy:Number = alternativa3d::name_80.g * h;
|
||||
var cz:Number = alternativa3d::name_80.k * h;
|
||||
var objectBB:BoundBox = targetObject.boundBox;
|
||||
var hw:Number = (objectBB.maxX - objectBB.minX) * 0.5;
|
||||
var hl:Number = (objectBB.maxY - objectBB.minY) * 0.5;
|
||||
var hh:Number = (objectBB.maxZ - objectBB.minZ) * 0.5;
|
||||
var dx:Number = alternativa3d::_-cl.a * (minX + w) + alternativa3d::_-cl.b * (minY + l) + alternativa3d::_-cl.c * (minZ + h) + alternativa3d::_-cl.d - objectBB.minX - hw;
|
||||
var dy:Number = alternativa3d::_-cl.e * (minX + w) + alternativa3d::_-cl.f * (minY + l) + alternativa3d::_-cl.g * (minZ + h) + alternativa3d::_-cl.h - objectBB.minY - hl;
|
||||
var dz:Number = alternativa3d::_-cl.i * (minX + w) + alternativa3d::_-cl.j * (minY + l) + alternativa3d::_-cl.k * (minZ + h) + alternativa3d::_-cl.l - objectBB.minZ - hh;
|
||||
var dx:Number = alternativa3d::name_80.a * (minX + w) + alternativa3d::name_80.b * (minY + l) + alternativa3d::name_80.c * (minZ + h) + alternativa3d::name_80.d - objectBB.minX - hw;
|
||||
var dy:Number = alternativa3d::name_80.e * (minX + w) + alternativa3d::name_80.f * (minY + l) + alternativa3d::name_80.g * (minZ + h) + alternativa3d::name_80.h - objectBB.minY - hl;
|
||||
var dz:Number = alternativa3d::name_80.i * (minX + w) + alternativa3d::name_80.j * (minY + l) + alternativa3d::name_80.k * (minZ + h) + alternativa3d::name_80.l - objectBB.minZ - hh;
|
||||
sum = 0;
|
||||
if(ax >= 0)
|
||||
{
|
||||
@@ -208,7 +208,7 @@ package alternativa.engine3d.lights
|
||||
return false;
|
||||
}
|
||||
sum = 0;
|
||||
pro = alternativa3d::_-cl.a * ax + alternativa3d::_-cl.e * ay + alternativa3d::_-cl.i * az;
|
||||
pro = alternativa3d::name_80.a * ax + alternativa3d::name_80.e * ay + alternativa3d::name_80.i * az;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -217,7 +217,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::_-cl.a * bx + alternativa3d::_-cl.e * by + alternativa3d::_-cl.i * bz;
|
||||
pro = alternativa3d::name_80.a * bx + alternativa3d::name_80.e * by + alternativa3d::name_80.i * bz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -226,7 +226,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::_-cl.a * cx + alternativa3d::_-cl.e * cy + alternativa3d::_-cl.i * cz;
|
||||
pro = alternativa3d::name_80.a * cx + alternativa3d::name_80.e * cy + alternativa3d::name_80.i * cz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -235,31 +235,31 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
if(alternativa3d::_-cl.a >= 0)
|
||||
if(alternativa3d::name_80.a >= 0)
|
||||
{
|
||||
sum += alternativa3d::_-cl.a * hw;
|
||||
sum += alternativa3d::name_80.a * hw;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::_-cl.a * hw;
|
||||
sum -= alternativa3d::name_80.a * hw;
|
||||
}
|
||||
if(alternativa3d::_-cl.e >= 0)
|
||||
if(alternativa3d::name_80.e >= 0)
|
||||
{
|
||||
sum += alternativa3d::_-cl.e * hl;
|
||||
sum += alternativa3d::name_80.e * hl;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::_-cl.e * hl;
|
||||
sum -= alternativa3d::name_80.e * hl;
|
||||
}
|
||||
if(alternativa3d::_-cl.i >= 0)
|
||||
if(alternativa3d::name_80.i >= 0)
|
||||
{
|
||||
sum += alternativa3d::_-cl.i * hh;
|
||||
sum += alternativa3d::name_80.i * hh;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::_-cl.i * hh;
|
||||
sum -= alternativa3d::name_80.i * hh;
|
||||
}
|
||||
pro = alternativa3d::_-cl.a * dx + alternativa3d::_-cl.e * dy + alternativa3d::_-cl.i * dz;
|
||||
pro = alternativa3d::name_80.a * dx + alternativa3d::name_80.e * dy + alternativa3d::name_80.i * dz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum -= pro;
|
||||
@@ -273,7 +273,7 @@ package alternativa.engine3d.lights
|
||||
return false;
|
||||
}
|
||||
sum = 0;
|
||||
pro = alternativa3d::_-cl.b * ax + alternativa3d::_-cl.f * ay + alternativa3d::_-cl.j * az;
|
||||
pro = alternativa3d::name_80.b * ax + alternativa3d::name_80.f * ay + alternativa3d::name_80.j * az;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -282,7 +282,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::_-cl.b * bx + alternativa3d::_-cl.f * by + alternativa3d::_-cl.j * bz;
|
||||
pro = alternativa3d::name_80.b * bx + alternativa3d::name_80.f * by + alternativa3d::name_80.j * bz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -291,7 +291,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::_-cl.b * cx + alternativa3d::_-cl.f * cy + alternativa3d::_-cl.j * cz;
|
||||
pro = alternativa3d::name_80.b * cx + alternativa3d::name_80.f * cy + alternativa3d::name_80.j * cz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -300,31 +300,31 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
if(alternativa3d::_-cl.b >= 0)
|
||||
if(alternativa3d::name_80.b >= 0)
|
||||
{
|
||||
sum += alternativa3d::_-cl.b * hw;
|
||||
sum += alternativa3d::name_80.b * hw;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::_-cl.b * hw;
|
||||
sum -= alternativa3d::name_80.b * hw;
|
||||
}
|
||||
if(alternativa3d::_-cl.f >= 0)
|
||||
if(alternativa3d::name_80.f >= 0)
|
||||
{
|
||||
sum += alternativa3d::_-cl.f * hl;
|
||||
sum += alternativa3d::name_80.f * hl;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::_-cl.f * hl;
|
||||
sum -= alternativa3d::name_80.f * hl;
|
||||
}
|
||||
if(alternativa3d::_-cl.j >= 0)
|
||||
if(alternativa3d::name_80.j >= 0)
|
||||
{
|
||||
sum += alternativa3d::_-cl.j * hh;
|
||||
sum += alternativa3d::name_80.j * hh;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::_-cl.j * hh;
|
||||
sum -= alternativa3d::name_80.j * hh;
|
||||
}
|
||||
pro = alternativa3d::_-cl.b * dx + alternativa3d::_-cl.f * dy + alternativa3d::_-cl.j * dz;
|
||||
pro = alternativa3d::name_80.b * dx + alternativa3d::name_80.f * dy + alternativa3d::name_80.j * dz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum -= pro;
|
||||
@@ -335,7 +335,7 @@ package alternativa.engine3d.lights
|
||||
return false;
|
||||
}
|
||||
sum = 0;
|
||||
pro = alternativa3d::_-cl.c * ax + alternativa3d::_-cl.g * ay + alternativa3d::_-cl.k * az;
|
||||
pro = alternativa3d::name_80.c * ax + alternativa3d::name_80.g * ay + alternativa3d::name_80.k * az;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -344,7 +344,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::_-cl.c * bx + alternativa3d::_-cl.g * by + alternativa3d::_-cl.k * bz;
|
||||
pro = alternativa3d::name_80.c * bx + alternativa3d::name_80.g * by + alternativa3d::name_80.k * bz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -353,7 +353,7 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
pro = alternativa3d::_-cl.c * cx + alternativa3d::_-cl.g * cy + alternativa3d::_-cl.k * cz;
|
||||
pro = alternativa3d::name_80.c * cx + alternativa3d::name_80.g * cy + alternativa3d::name_80.k * cz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum += pro;
|
||||
@@ -362,31 +362,31 @@ package alternativa.engine3d.lights
|
||||
{
|
||||
sum -= pro;
|
||||
}
|
||||
if(alternativa3d::_-cl.c >= 0)
|
||||
if(alternativa3d::name_80.c >= 0)
|
||||
{
|
||||
sum += alternativa3d::_-cl.c * hw;
|
||||
sum += alternativa3d::name_80.c * hw;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::_-cl.c * hw;
|
||||
sum -= alternativa3d::name_80.c * hw;
|
||||
}
|
||||
if(alternativa3d::_-cl.g >= 0)
|
||||
if(alternativa3d::name_80.g >= 0)
|
||||
{
|
||||
sum += alternativa3d::_-cl.g * hl;
|
||||
sum += alternativa3d::name_80.g * hl;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::_-cl.g * hl;
|
||||
sum -= alternativa3d::name_80.g * hl;
|
||||
}
|
||||
if(alternativa3d::_-cl.k >= 0)
|
||||
if(alternativa3d::name_80.k >= 0)
|
||||
{
|
||||
sum += alternativa3d::_-cl.k * hh;
|
||||
sum += alternativa3d::name_80.k * hh;
|
||||
}
|
||||
else
|
||||
{
|
||||
sum -= alternativa3d::_-cl.k * hh;
|
||||
sum -= alternativa3d::name_80.k * hh;
|
||||
}
|
||||
pro = alternativa3d::_-cl.c * dx + alternativa3d::_-cl.g * dy + alternativa3d::_-cl.k * dz;
|
||||
pro = alternativa3d::name_80.c * dx + alternativa3d::name_80.g * dy + alternativa3d::name_80.k * dz;
|
||||
if(pro >= 0)
|
||||
{
|
||||
sum -= pro;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package alternativa.engine3d.loaders
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.animation.§_-FA§;
|
||||
import alternativa.engine3d.animation.keys.§_-Np§;
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
import alternativa.engine3d.core.Light3D;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
import alternativa.engine3d.loaders.collada.DaeDocument;
|
||||
@@ -24,30 +24,30 @@ package alternativa.engine3d.loaders
|
||||
|
||||
public var materials:Vector.<ParserMaterial>;
|
||||
|
||||
public var §_-eL§:Vector.<§_-FA§>;
|
||||
public var var_635:Vector.<name_550>;
|
||||
|
||||
private var §_-W6§:Dictionary;
|
||||
private var var_634:Dictionary;
|
||||
|
||||
public function ParserCollada()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function parseAnimation(data:XML) : §_-FA§
|
||||
public static function parseAnimation(data:XML) : name_550
|
||||
{
|
||||
var document:DaeDocument = new DaeDocument(data,0);
|
||||
var clip:§_-FA§ = new §_-FA§();
|
||||
var clip:name_550 = new name_550();
|
||||
collectAnimation(clip,document.scene.nodes);
|
||||
return clip.numTracks > 0 ? clip : null;
|
||||
}
|
||||
|
||||
private static function collectAnimation(clip:§_-FA§, nodes:Vector.<DaeNode>) : void
|
||||
private static function collectAnimation(clip:name_550, nodes:Vector.<DaeNode>) : void
|
||||
{
|
||||
var node:DaeNode = null;
|
||||
var animation:§_-FA§ = null;
|
||||
var animation:name_550 = null;
|
||||
var t:int = 0;
|
||||
var numTracks:int = 0;
|
||||
var track:§_-Np§ = null;
|
||||
var track:name_552 = null;
|
||||
for(var i:int = 0,var count:int = int(nodes.length); i < count; i++)
|
||||
{
|
||||
node = nodes[i];
|
||||
@@ -56,13 +56,13 @@ package alternativa.engine3d.loaders
|
||||
{
|
||||
for(t = 0,numTracks = int(animation.numTracks); t < numTracks; t++)
|
||||
{
|
||||
track = animation.§_-QA§(t);
|
||||
clip.§_-nn§(track);
|
||||
track = animation.name_553(t);
|
||||
clip.name_551(track);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(node.createStaticTransformTrack());
|
||||
clip.name_551(node.createStaticTransformTrack());
|
||||
}
|
||||
collectAnimation(clip,node.nodes);
|
||||
}
|
||||
@@ -73,14 +73,14 @@ package alternativa.engine3d.loaders
|
||||
this.objects = null;
|
||||
this.hierarchy = null;
|
||||
this.lights = null;
|
||||
this.§_-eL§ = null;
|
||||
this.var_635 = null;
|
||||
this.materials = null;
|
||||
this.§_-W6§ = null;
|
||||
this.var_634 = null;
|
||||
}
|
||||
|
||||
public function getObjectLayer(object:Object3D) : String
|
||||
{
|
||||
return this.§_-W6§[object];
|
||||
return this.var_634[object];
|
||||
}
|
||||
|
||||
private function init(data:XML, units:Number) : DaeDocument
|
||||
@@ -89,9 +89,9 @@ package alternativa.engine3d.loaders
|
||||
this.objects = new Vector.<Object3D>();
|
||||
this.hierarchy = new Vector.<Object3D>();
|
||||
this.lights = new Vector.<Light3D>();
|
||||
this.§_-eL§ = new Vector.<§_-FA§>();
|
||||
this.var_635 = new Vector.<name_550>();
|
||||
this.materials = new Vector.<ParserMaterial>();
|
||||
this.§_-W6§ = new Dictionary(true);
|
||||
this.var_634 = new Dictionary(true);
|
||||
return new DaeDocument(data,units);
|
||||
}
|
||||
|
||||
@@ -129,11 +129,11 @@ package alternativa.engine3d.loaders
|
||||
}
|
||||
if(animatedObject.animation != null)
|
||||
{
|
||||
this.§_-eL§.push(animatedObject.animation);
|
||||
this.var_635.push(animatedObject.animation);
|
||||
}
|
||||
if(Boolean(layer))
|
||||
{
|
||||
this.§_-W6§[object] = layer;
|
||||
this.var_634[object] = layer;
|
||||
}
|
||||
return object;
|
||||
}
|
||||
@@ -421,13 +421,13 @@ package alternativa.engine3d.loaders
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getAnimationByObject(object:Object) : §_-FA§
|
||||
public function getAnimationByObject(object:Object) : name_550
|
||||
{
|
||||
var animation:§_-FA§ = null;
|
||||
var animation:name_550 = null;
|
||||
var objects:Array = null;
|
||||
for each(animation in this.§_-eL§)
|
||||
for each(animation in this.var_635)
|
||||
{
|
||||
objects = animation.alternativa3d::_-Kq;
|
||||
objects = animation.alternativa3d::var_348;
|
||||
if(objects.indexOf(object) >= 0)
|
||||
{
|
||||
return animation;
|
||||
|
||||
@@ -22,11 +22,11 @@ package alternativa.engine3d.loaders
|
||||
|
||||
public var transparency:Number = 0;
|
||||
|
||||
public var §_-3m§:String = "diffuse";
|
||||
public var var_670:String = "diffuse";
|
||||
|
||||
private var textureMaterial:TextureMaterial;
|
||||
|
||||
private var §_-h7§:FillMaterial;
|
||||
private var var_669:FillMaterial;
|
||||
|
||||
public function ParserMaterial()
|
||||
{
|
||||
@@ -51,22 +51,22 @@ package alternativa.engine3d.loaders
|
||||
override alternativa3d function collectDraws(camera:Camera3D, surface:Surface, geometry:Geometry, lights:Vector.<Light3D>, lightsLength:int, objectRenderPriority:int = -1) : void
|
||||
{
|
||||
var map:ExternalTextureResource = null;
|
||||
var colorO:Object = this.colors[this.§_-3m§];
|
||||
var colorO:Object = this.colors[this.var_670];
|
||||
if(colorO != null)
|
||||
{
|
||||
if(this.§_-h7§ == null)
|
||||
if(this.var_669 == null)
|
||||
{
|
||||
this.§_-h7§ = new FillMaterial(int(colorO));
|
||||
this.var_669 = new FillMaterial(int(colorO));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.§_-h7§.color = int(colorO);
|
||||
this.var_669.color = int(colorO);
|
||||
}
|
||||
this.§_-h7§.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority);
|
||||
this.var_669.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority);
|
||||
}
|
||||
else
|
||||
{
|
||||
map = this.textures[this.§_-3m§];
|
||||
map = this.textures[this.var_670];
|
||||
if(map != null)
|
||||
{
|
||||
if(this.textureMaterial == null)
|
||||
|
||||
@@ -2,8 +2,8 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.alternativa3d;
|
||||
import alternativa.engine3d.animation.keys.NumberKey;
|
||||
import alternativa.engine3d.animation.keys.§_-Np§;
|
||||
import alternativa.engine3d.animation.keys.§_-kB§;
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.keys.name_591;
|
||||
|
||||
use namespace alternativa3d;
|
||||
|
||||
@@ -35,9 +35,9 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public static const PARAM_MATRIX:String = "matrix";
|
||||
|
||||
public var tracks:Vector.<§_-Np§>;
|
||||
public var tracks:Vector.<name_552>;
|
||||
|
||||
public var §_-dS§:String = "undefined";
|
||||
public var name_589:String = "undefined";
|
||||
|
||||
public var animName:String;
|
||||
|
||||
@@ -129,13 +129,13 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(componentName)
|
||||
{
|
||||
case "X":
|
||||
this.§_-dS§ = PARAM_TRANSLATE_X;
|
||||
this.name_589 = PARAM_TRANSLATE_X;
|
||||
break loop1;
|
||||
case "Y":
|
||||
this.§_-dS§ = PARAM_TRANSLATE_Y;
|
||||
this.name_589 = PARAM_TRANSLATE_Y;
|
||||
break loop1;
|
||||
case "Z":
|
||||
this.§_-dS§ = PARAM_TRANSLATE_Z;
|
||||
this.name_589 = PARAM_TRANSLATE_Z;
|
||||
}
|
||||
break;
|
||||
case "rotate":
|
||||
@@ -143,26 +143,26 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(axis.indexOf(1))
|
||||
{
|
||||
case 0:
|
||||
this.§_-dS§ = PARAM_ROTATION_X;
|
||||
this.name_589 = PARAM_ROTATION_X;
|
||||
break loop1;
|
||||
case 1:
|
||||
this.§_-dS§ = PARAM_ROTATION_Y;
|
||||
this.name_589 = PARAM_ROTATION_Y;
|
||||
break loop1;
|
||||
case 2:
|
||||
this.§_-dS§ = PARAM_ROTATION_Z;
|
||||
this.name_589 = PARAM_ROTATION_Z;
|
||||
}
|
||||
break;
|
||||
case "scale":
|
||||
switch(componentName)
|
||||
{
|
||||
case "X":
|
||||
this.§_-dS§ = PARAM_SCALE_X;
|
||||
this.name_589 = PARAM_SCALE_X;
|
||||
break loop1;
|
||||
case "Y":
|
||||
this.§_-dS§ = PARAM_SCALE_Y;
|
||||
this.name_589 = PARAM_SCALE_Y;
|
||||
break loop1;
|
||||
case "Z":
|
||||
this.§_-dS§ = PARAM_SCALE_Z;
|
||||
this.name_589 = PARAM_SCALE_Z;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -171,55 +171,55 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(transformationName)
|
||||
{
|
||||
case "translate":
|
||||
this.§_-dS§ = PARAM_TRANSLATE;
|
||||
this.name_589 = PARAM_TRANSLATE;
|
||||
break;
|
||||
case "scale":
|
||||
this.§_-dS§ = PARAM_SCALE;
|
||||
this.name_589 = PARAM_SCALE;
|
||||
break;
|
||||
case "matrix":
|
||||
this.§_-dS§ = PARAM_MATRIX;
|
||||
this.name_589 = PARAM_MATRIX;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function parseSampler() : void
|
||||
{
|
||||
var track:§_-kB§ = null;
|
||||
var track:name_591 = null;
|
||||
var toRad:Number = NaN;
|
||||
var key:NumberKey = null;
|
||||
var sampler:DaeSampler = document.findSampler(data.@source[0]);
|
||||
if(sampler != null)
|
||||
{
|
||||
sampler.parse();
|
||||
if(this.§_-dS§ == PARAM_MATRIX)
|
||||
if(this.name_589 == PARAM_MATRIX)
|
||||
{
|
||||
this.tracks = Vector.<§_-Np§>([sampler.parseTransformationTrack(this.animName)]);
|
||||
this.tracks = Vector.<name_552>([sampler.parseTransformationTrack(this.animName)]);
|
||||
return;
|
||||
}
|
||||
if(this.§_-dS§ == PARAM_TRANSLATE)
|
||||
if(this.name_589 == PARAM_TRANSLATE)
|
||||
{
|
||||
this.tracks = sampler.parsePointsTracks(this.animName,"x","y","z");
|
||||
return;
|
||||
}
|
||||
if(this.§_-dS§ == PARAM_SCALE)
|
||||
if(this.name_589 == PARAM_SCALE)
|
||||
{
|
||||
this.tracks = sampler.parsePointsTracks(this.animName,"scaleX","scaleY","scaleZ");
|
||||
return;
|
||||
}
|
||||
if(this.§_-dS§ == PARAM_ROTATION_X || this.§_-dS§ == PARAM_ROTATION_Y || this.§_-dS§ == PARAM_ROTATION_Z)
|
||||
if(this.name_589 == PARAM_ROTATION_X || this.name_589 == PARAM_ROTATION_Y || this.name_589 == PARAM_ROTATION_Z)
|
||||
{
|
||||
track = sampler.parseNumbersTrack(this.animName,this.§_-dS§);
|
||||
track = sampler.parseNumbersTrack(this.animName,this.name_589);
|
||||
toRad = Math.PI / 180;
|
||||
for(key = track.alternativa3d::_-ku; key != null; key = key.alternativa3d::next)
|
||||
for(key = track.alternativa3d::name_599; key != null; key = key.alternativa3d::next)
|
||||
{
|
||||
key.alternativa3d::_-4O *= toRad;
|
||||
key.alternativa3d::name_598 *= toRad;
|
||||
}
|
||||
this.tracks = Vector.<§_-Np§>([track]);
|
||||
this.tracks = Vector.<name_552>([track]);
|
||||
return;
|
||||
}
|
||||
if(this.§_-dS§ == PARAM_TRANSLATE_X || this.§_-dS§ == PARAM_TRANSLATE_Y || this.§_-dS§ == PARAM_TRANSLATE_Z || this.§_-dS§ == PARAM_SCALE_X || this.§_-dS§ == PARAM_SCALE_Y || this.§_-dS§ == PARAM_SCALE_Z)
|
||||
if(this.name_589 == PARAM_TRANSLATE_X || this.name_589 == PARAM_TRANSLATE_Y || this.name_589 == PARAM_TRANSLATE_Z || this.name_589 == PARAM_SCALE_X || this.name_589 == PARAM_SCALE_Y || this.name_589 == PARAM_SCALE_Z)
|
||||
{
|
||||
this.tracks = Vector.<§_-Np§>([sampler.parseNumbersTrack(this.animName,this.§_-dS§)]);
|
||||
this.tracks = Vector.<name_552>([sampler.parseNumbersTrack(this.animName,this.name_589)]);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.*;
|
||||
import alternativa.engine3d.animation.§_-FA§;
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
import alternativa.engine3d.core.VertexAttributes;
|
||||
import alternativa.engine3d.loaders.ParserMaterial;
|
||||
@@ -17,25 +17,25 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeController extends DaeElement
|
||||
{
|
||||
private var §_-A6§:Vector.<Vector.<Number>>;
|
||||
private var var_725:Vector.<Vector.<Number>>;
|
||||
|
||||
private var §_-2j§:Array;
|
||||
private var var_724:Array;
|
||||
|
||||
private var indices:Array;
|
||||
|
||||
private var §_-4h§:DaeInput;
|
||||
private var var_727:DaeInput;
|
||||
|
||||
private var §_-NK§:DaeInput;
|
||||
private var var_726:DaeInput;
|
||||
|
||||
private var §_-5O§:int;
|
||||
private var var_728:int;
|
||||
|
||||
private var geometry:Geometry;
|
||||
|
||||
private var primitives:Vector.<DaePrimitive>;
|
||||
|
||||
private var §_-1U§:int = 0;
|
||||
private var var_723:int = 0;
|
||||
|
||||
private var §_-I§:Vector.<Number>;
|
||||
private var var_722:Vector.<Number>;
|
||||
|
||||
public function DaeController(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -78,7 +78,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this.§_-2j§ = parseIntsArray(vcountsXML);
|
||||
this.var_724 = parseIntsArray(vcountsXML);
|
||||
var indicesXML:XML = vertexWeightsXML.v[0];
|
||||
if(indicesXML == null)
|
||||
{
|
||||
@@ -87,23 +87,23 @@ package alternativa.engine3d.loaders.collada
|
||||
this.indices = parseIntsArray(indicesXML);
|
||||
this.parseInputs();
|
||||
this.parseJointsBindMatrices();
|
||||
for(i = 0; i < this.§_-2j§.length; )
|
||||
for(i = 0; i < this.var_724.length; )
|
||||
{
|
||||
count = int(this.§_-2j§[i]);
|
||||
if(this.§_-1U§ < count)
|
||||
count = int(this.var_724[i]);
|
||||
if(this.var_723 < count)
|
||||
{
|
||||
this.§_-1U§ = count;
|
||||
this.var_723 = count;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
var geom:DaeGeometry = this.daeGeometry;
|
||||
this.§_-I§ = this.getBindShapeMatrix();
|
||||
this.var_722 = this.getBindShapeMatrix();
|
||||
if(geom != null)
|
||||
{
|
||||
geom.parse();
|
||||
vertices = geom.§_-FV§;
|
||||
vertices = geom.var_715;
|
||||
source = geom.geometry;
|
||||
localMaxJointsPerVertex = this.§_-1U§ % 2 != 0 ? this.§_-1U§ + 1 : this.§_-1U§;
|
||||
localMaxJointsPerVertex = this.var_723 % 2 != 0 ? this.var_723 + 1 : this.var_723;
|
||||
this.geometry = new Geometry();
|
||||
this.geometry.alternativa3d::_indices = source.alternativa3d::_indices.slice();
|
||||
attributes = source.getVertexStreamAttributes(0);
|
||||
@@ -165,9 +165,9 @@ package alternativa.engine3d.loaders.collada
|
||||
y = Number(data.readFloat());
|
||||
z = Number(data.readFloat());
|
||||
data.position -= 12;
|
||||
data.writeFloat(x * this.§_-I§[0] + y * this.§_-I§[1] + z * this.§_-I§[2] + this.§_-I§[3]);
|
||||
data.writeFloat(x * this.§_-I§[4] + y * this.§_-I§[5] + z * this.§_-I§[6] + this.§_-I§[7]);
|
||||
data.writeFloat(x * this.§_-I§[8] + y * this.§_-I§[9] + z * this.§_-I§[10] + this.§_-I§[11]);
|
||||
data.writeFloat(x * this.var_722[0] + y * this.var_722[1] + z * this.var_722[2] + this.var_722[3]);
|
||||
data.writeFloat(x * this.var_722[4] + y * this.var_722[5] + z * this.var_722[6] + this.var_722[7]);
|
||||
data.writeFloat(x * this.var_722[8] + y * this.var_722[9] + z * this.var_722[10] + this.var_722[11]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,9 +184,9 @@ package alternativa.engine3d.loaders.collada
|
||||
var index:int = 0;
|
||||
var jointIndex:int = 0;
|
||||
var weightIndex:int = 0;
|
||||
var jointsOffset:int = this.§_-4h§.offset;
|
||||
var weightsOffset:int = this.§_-NK§.offset;
|
||||
var weightsSource:DaeSource = this.§_-NK§.prepareSource(1);
|
||||
var jointsOffset:int = this.var_727.offset;
|
||||
var weightsOffset:int = this.var_726.offset;
|
||||
var weightsSource:DaeSource = this.var_726.prepareSource(1);
|
||||
var weights:Vector.<Number> = weightsSource.numbers;
|
||||
var weightsStride:int = weightsSource.stride;
|
||||
var verticesDict:Dictionary = new Dictionary();
|
||||
@@ -198,25 +198,25 @@ package alternativa.engine3d.loaders.collada
|
||||
vertex = vertices[i];
|
||||
if(vertex != null)
|
||||
{
|
||||
vec = verticesDict[vertex.§_-Eq§];
|
||||
vec = verticesDict[vertex.name_600];
|
||||
if(vec == null)
|
||||
{
|
||||
vec = verticesDict[vertex.§_-Eq§] = new Vector.<uint>();
|
||||
vec = verticesDict[vertex.name_600] = new Vector.<uint>();
|
||||
}
|
||||
vec.push(vertex.§_-AR§);
|
||||
vec.push(vertex.name_601);
|
||||
}
|
||||
}
|
||||
var vertexIndex:int = 0;
|
||||
for(i = 0,count = int(this.§_-2j§.length); i < count; i++)
|
||||
for(i = 0,count = int(this.var_724.length); i < count; i++)
|
||||
{
|
||||
jointsPerVertex = int(this.§_-2j§[i]);
|
||||
jointsPerVertex = int(this.var_724[i]);
|
||||
vertexOutIndices = verticesDict[i];
|
||||
for(j = 0; j < vertexOutIndices.length; j++)
|
||||
{
|
||||
byteArray.position = vertexOutIndices[j] * localMaxJointsPerVertex * 8;
|
||||
for(k = 0; k < jointsPerVertex; k++)
|
||||
{
|
||||
index = this.§_-5O§ * (vertexIndex + k);
|
||||
index = this.var_728 * (vertexIndex + k);
|
||||
jointIndex = int(this.indices[int(index + jointsOffset)]);
|
||||
if(jointIndex >= 0)
|
||||
{
|
||||
@@ -254,20 +254,20 @@ package alternativa.engine3d.loaders.collada
|
||||
switch(semantic)
|
||||
{
|
||||
case "JOINT":
|
||||
if(this.§_-4h§ == null)
|
||||
if(this.var_727 == null)
|
||||
{
|
||||
this.§_-4h§ = input;
|
||||
this.var_727 = input;
|
||||
}
|
||||
break;
|
||||
case "WEIGHT":
|
||||
if(this.§_-NK§ == null)
|
||||
if(this.var_726 == null)
|
||||
{
|
||||
this.§_-NK§ = input;
|
||||
this.var_726 = input;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.§_-5O§ = maxInputOffset + 1;
|
||||
this.var_728 = maxInputOffset + 1;
|
||||
}
|
||||
|
||||
private function parseJointsBindMatrices() : void
|
||||
@@ -290,12 +290,12 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
stride = jointsSource.stride;
|
||||
count = jointsSource.numbers.length / stride;
|
||||
this.§_-A6§ = new Vector.<Vector.<Number>>(count);
|
||||
this.var_725 = new Vector.<Vector.<Number>>(count);
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
index = stride * i;
|
||||
matrix = new Vector.<Number>(16);
|
||||
this.§_-A6§[i] = matrix;
|
||||
this.var_725[i] = matrix;
|
||||
for(j = 0; j < 16; j++)
|
||||
{
|
||||
matrix[j] = jointsSource.numbers[int(index + j)];
|
||||
@@ -323,13 +323,13 @@ package alternativa.engine3d.loaders.collada
|
||||
var skinXML:XML = data.skin[0];
|
||||
if(skinXML != null)
|
||||
{
|
||||
this.§_-I§ = this.getBindShapeMatrix();
|
||||
numJoints = int(this.§_-A6§.length);
|
||||
skin = new Skin(this.§_-1U§,numJoints);
|
||||
this.var_722 = this.getBindShapeMatrix();
|
||||
numJoints = int(this.var_725.length);
|
||||
skin = new Skin(this.var_723,numJoints);
|
||||
skin.geometry = this.geometry;
|
||||
joints = this.addJointsToSkin(skin,topmostJoints,this.findNodes(skeletons));
|
||||
this.setJointsBindMatrices(joints);
|
||||
skin.§_-WA§ = this.collectRenderedJoints(joints,numJoints);
|
||||
skin.var_633 = this.collectRenderedJoints(joints,numJoints);
|
||||
if(this.primitives != null)
|
||||
{
|
||||
for(i = 0; i < this.primitives.length; i++)
|
||||
@@ -364,17 +364,17 @@ package alternativa.engine3d.loaders.collada
|
||||
return result;
|
||||
}
|
||||
|
||||
private function mergeJointsClips(skin:Skin, joints:Vector.<DaeObject>) : §_-FA§
|
||||
private function mergeJointsClips(skin:Skin, joints:Vector.<DaeObject>) : name_550
|
||||
{
|
||||
var animatedObject:DaeObject = null;
|
||||
var clip:§_-FA§ = null;
|
||||
var clip:name_550 = null;
|
||||
var object:Object3D = null;
|
||||
var t:int = 0;
|
||||
if(!this.hasJointsAnimation(joints))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var result:§_-FA§ = new §_-FA§();
|
||||
var result:name_550 = new name_550();
|
||||
var resultObjects:Array = [skin];
|
||||
for(var i:int = 0,var count:int = int(joints.length); i < count; i++)
|
||||
{
|
||||
@@ -384,18 +384,18 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
for(t = 0; t < clip.numTracks; t++)
|
||||
{
|
||||
result.§_-nn§(clip.§_-QA§(t));
|
||||
result.name_551(clip.name_553(t));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result.§_-nn§(animatedObject.jointNode.createStaticTransformTrack());
|
||||
result.name_551(animatedObject.jointNode.createStaticTransformTrack());
|
||||
}
|
||||
object = animatedObject.object;
|
||||
object.name = animatedObject.jointNode.animName;
|
||||
resultObjects.push(object);
|
||||
}
|
||||
result.alternativa3d::_-Kq = resultObjects;
|
||||
result.alternativa3d::var_348 = resultObjects;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -418,10 +418,10 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
var animatedJoint:DaeObject = null;
|
||||
var bindMatrix:Vector.<Number> = null;
|
||||
for(var i:int = 0,var count:int = int(this.§_-A6§.length); i < count; i++)
|
||||
for(var i:int = 0,var count:int = int(this.var_725.length); i < count; i++)
|
||||
{
|
||||
animatedJoint = animatedJoints[i];
|
||||
bindMatrix = this.§_-A6§[i];
|
||||
bindMatrix = this.var_725[i];
|
||||
Joint(animatedJoint.object).alternativa3d::setBindPoseMatrix(bindMatrix);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
private var data:XML;
|
||||
|
||||
internal var §_-DR§:Object;
|
||||
internal var var_690:Object;
|
||||
|
||||
internal var arrays:Object;
|
||||
|
||||
@@ -24,9 +24,9 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
internal var effects:Object;
|
||||
|
||||
internal var §_-DW§:Object;
|
||||
internal var var_691:Object;
|
||||
|
||||
internal var §_-GB§:Object;
|
||||
internal var var_692:Object;
|
||||
|
||||
public var materials:Object;
|
||||
|
||||
@@ -83,14 +83,14 @@ package alternativa.engine3d.loaders.collada
|
||||
var geom:DaeGeometry = null;
|
||||
var controller:DaeController = null;
|
||||
var node:DaeNode = null;
|
||||
this.§_-DR§ = new Object();
|
||||
this.var_690 = new Object();
|
||||
this.arrays = new Object();
|
||||
for each(element in this.data..source)
|
||||
{
|
||||
source = new DaeSource(element,this);
|
||||
if(source.id != null)
|
||||
{
|
||||
this.§_-DR§[source.id] = source;
|
||||
this.var_690[source.id] = source;
|
||||
}
|
||||
}
|
||||
this.lights = new Object();
|
||||
@@ -139,13 +139,13 @@ package alternativa.engine3d.loaders.collada
|
||||
this.geometries[geom.id] = geom;
|
||||
}
|
||||
}
|
||||
this.§_-DW§ = new Object();
|
||||
this.var_691 = new Object();
|
||||
for each(element in this.data.library_controllers.controller)
|
||||
{
|
||||
controller = new DaeController(element,this);
|
||||
if(controller.id != null)
|
||||
{
|
||||
this.§_-DW§[controller.id] = controller;
|
||||
this.var_691[controller.id] = controller;
|
||||
}
|
||||
}
|
||||
this.nodes = new Object();
|
||||
@@ -198,13 +198,13 @@ package alternativa.engine3d.loaders.collada
|
||||
var sampler:DaeSampler = null;
|
||||
var channel:DaeChannel = null;
|
||||
var node:DaeNode = null;
|
||||
this.§_-GB§ = new Object();
|
||||
this.var_692 = new Object();
|
||||
for each(element in this.data.library_animations..sampler)
|
||||
{
|
||||
sampler = new DaeSampler(element,this);
|
||||
if(sampler.id != null)
|
||||
{
|
||||
this.§_-GB§[sampler.id] = sampler;
|
||||
this.var_692[sampler.id] = sampler;
|
||||
}
|
||||
}
|
||||
for each(element in this.data.library_animations..channel)
|
||||
@@ -225,7 +225,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function findSource(url:XML) : DaeSource
|
||||
{
|
||||
return this.§_-DR§[this.getLocalID(url)];
|
||||
return this.var_690[this.getLocalID(url)];
|
||||
}
|
||||
|
||||
public function findLight(url:XML) : DaeLight
|
||||
@@ -275,12 +275,12 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function findController(url:XML) : DaeController
|
||||
{
|
||||
return this.§_-DW§[this.getLocalID(url)];
|
||||
return this.var_691[this.getLocalID(url)];
|
||||
}
|
||||
|
||||
public function findSampler(url:XML) : DaeSampler
|
||||
{
|
||||
return this.§_-GB§[this.getLocalID(url)];
|
||||
return this.var_692[this.getLocalID(url)];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
public static var commonAlways:Boolean = false;
|
||||
|
||||
private var §_-3x§:Object;
|
||||
private var var_717:Object;
|
||||
|
||||
private var §_-El§:Object;
|
||||
private var var_718:Object;
|
||||
|
||||
private var §_-3H§:Object;
|
||||
private var var_716:Object;
|
||||
|
||||
private var diffuse:DaeEffectParam;
|
||||
|
||||
@@ -66,26 +66,26 @@ package alternativa.engine3d.loaders.collada
|
||||
var reflectiveXML:XML = null;
|
||||
var emissionXML:XML = null;
|
||||
var specularXML:XML = null;
|
||||
this.§_-3x§ = new Object();
|
||||
this.var_717 = new Object();
|
||||
for each(element in data.newparam)
|
||||
{
|
||||
param = new DaeParam(element,document);
|
||||
this.§_-3x§[param.sid] = param;
|
||||
this.var_717[param.sid] = param;
|
||||
}
|
||||
this.§_-El§ = new Object();
|
||||
this.var_718 = new Object();
|
||||
for each(element in data.profile_COMMON.newparam)
|
||||
{
|
||||
param = new DaeParam(element,document);
|
||||
this.§_-El§[param.sid] = param;
|
||||
this.var_718[param.sid] = param;
|
||||
}
|
||||
this.§_-3H§ = new Object();
|
||||
this.var_716 = new Object();
|
||||
technique = data.profile_COMMON.technique[0];
|
||||
if(technique != null)
|
||||
{
|
||||
for each(element in technique.newparam)
|
||||
{
|
||||
param = new DaeParam(element,document);
|
||||
this.§_-3H§[param.sid] = param;
|
||||
this.var_716[param.sid] = param;
|
||||
}
|
||||
}
|
||||
shader = data.profile_COMMON.technique.*.(localName() == "constant" || localName() == "lambert" || localName() == "phong" || localName() == "blinn")[0];
|
||||
@@ -153,17 +153,17 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
return param;
|
||||
}
|
||||
param = this.§_-3H§[name];
|
||||
param = this.var_716[name];
|
||||
if(param != null)
|
||||
{
|
||||
return param;
|
||||
}
|
||||
param = this.§_-El§[name];
|
||||
param = this.var_718[name];
|
||||
if(param != null)
|
||||
{
|
||||
return param;
|
||||
}
|
||||
return this.§_-3x§[name];
|
||||
return this.var_717[name];
|
||||
}
|
||||
|
||||
private function float4ToUint(value:Array, alpha:Boolean = true) : uint
|
||||
|
||||
@@ -12,7 +12,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public var data:XML;
|
||||
|
||||
private var §_-Ba§:int = -1;
|
||||
private var var_697:int = -1;
|
||||
|
||||
public function DaeElement(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -35,12 +35,12 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function parse() : Boolean
|
||||
{
|
||||
if(this.§_-Ba§ < 0)
|
||||
if(this.var_697 < 0)
|
||||
{
|
||||
this.§_-Ba§ = this.parseImplementation() ? 1 : 0;
|
||||
return this.§_-Ba§ != 0;
|
||||
this.var_697 = this.parseImplementation() ? 1 : 0;
|
||||
return this.var_697 != 0;
|
||||
}
|
||||
return this.§_-Ba§ != 0;
|
||||
return this.var_697 != 0;
|
||||
}
|
||||
|
||||
protected function parseImplementation() : Boolean
|
||||
|
||||
@@ -13,7 +13,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeGeometry extends DaeElement
|
||||
{
|
||||
internal var §_-FV§:Vector.<DaeVertex>;
|
||||
internal var var_715:Vector.<DaeVertex>;
|
||||
|
||||
internal var primitives:Vector.<DaePrimitive>;
|
||||
|
||||
@@ -53,9 +53,9 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
this.parsePrimitives();
|
||||
this.vertices.parse();
|
||||
numVertices = this.vertices.§_-E6§.numbers.length / this.vertices.§_-E6§.stride;
|
||||
numVertices = this.vertices.name_597.numbers.length / this.vertices.name_597.stride;
|
||||
this.geometry = new Geometry();
|
||||
this.§_-FV§ = new Vector.<DaeVertex>(numVertices);
|
||||
this.var_715 = new Vector.<DaeVertex>(numVertices);
|
||||
channels = 0;
|
||||
for(i = 0; i < this.primitives.length; )
|
||||
{
|
||||
@@ -63,8 +63,8 @@ package alternativa.engine3d.loaders.collada
|
||||
p.parse();
|
||||
if(p.verticesEquals(this.vertices))
|
||||
{
|
||||
numVertices = int(this.§_-FV§.length);
|
||||
channels |= p.fillGeometry(this.geometry,this.§_-FV§);
|
||||
numVertices = int(this.var_715.length);
|
||||
channels |= p.fillGeometry(this.geometry,this.var_715);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
@@ -105,14 +105,14 @@ package alternativa.engine3d.loaders.collada
|
||||
i++;
|
||||
}
|
||||
this.geometry.addVertexStream(attributes);
|
||||
numVertices = int(this.§_-FV§.length);
|
||||
numVertices = int(this.var_715.length);
|
||||
data = new ByteArray();
|
||||
data.endian = Endian.LITTLE_ENDIAN;
|
||||
numMappings = int(attributes.length);
|
||||
data.length = 4 * numMappings * numVertices;
|
||||
for(i = 0; i < numVertices; )
|
||||
{
|
||||
vertex = this.§_-FV§[i];
|
||||
vertex = this.var_715[i];
|
||||
if(vertex != null)
|
||||
{
|
||||
data.position = 4 * numMappings * i;
|
||||
@@ -125,12 +125,12 @@ package alternativa.engine3d.loaders.collada
|
||||
data.writeFloat(vertex.normal.y);
|
||||
data.writeFloat(vertex.normal.z);
|
||||
}
|
||||
if(vertex.§_-hC§ != null)
|
||||
if(vertex.name_596 != null)
|
||||
{
|
||||
data.writeFloat(vertex.§_-hC§.x);
|
||||
data.writeFloat(vertex.§_-hC§.y);
|
||||
data.writeFloat(vertex.§_-hC§.z);
|
||||
data.writeFloat(vertex.§_-hC§.w);
|
||||
data.writeFloat(vertex.name_596.x);
|
||||
data.writeFloat(vertex.name_596.y);
|
||||
data.writeFloat(vertex.name_596.z);
|
||||
data.writeFloat(vertex.name_596.w);
|
||||
}
|
||||
for(j = 0; j < vertex.uvs.length; )
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function get setNum() : int
|
||||
{
|
||||
var attr:XML = data.@set[0];
|
||||
var attr:XML = data.@name_616[0];
|
||||
return attr == null ? 0 : int(parseInt(attr.toString(),10));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.animation.§_-FA§;
|
||||
import alternativa.engine3d.animation.keys.§_-Np§;
|
||||
import alternativa.engine3d.animation.keys.§_-ew§;
|
||||
import alternativa.engine3d.animation.keys.§_-kB§;
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.keys.name_590;
|
||||
import alternativa.engine3d.animation.keys.name_591;
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
import alternativa.engine3d.core.Light3D;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
import alternativa.engine3d.objects.Mesh;
|
||||
@@ -23,7 +23,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
private var channels:Vector.<DaeChannel>;
|
||||
|
||||
private var §_-DE§:Vector.<DaeInstanceController>;
|
||||
private var var_698:Vector.<DaeInstanceController>;
|
||||
|
||||
public var nodes:Vector.<DaeNode>;
|
||||
|
||||
@@ -112,11 +112,11 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function addInstanceController(controller:DaeInstanceController) : void
|
||||
{
|
||||
if(this.§_-DE§ == null)
|
||||
if(this.var_698 == null)
|
||||
{
|
||||
this.§_-DE§ = new Vector.<DaeInstanceController>();
|
||||
this.var_698 = new Vector.<DaeInstanceController>();
|
||||
}
|
||||
this.§_-DE§.push(controller);
|
||||
this.var_698.push(controller);
|
||||
}
|
||||
|
||||
override protected function parseImplementation() : Boolean
|
||||
@@ -188,14 +188,14 @@ package alternativa.engine3d.loaders.collada
|
||||
var instanceController:DaeInstanceController = null;
|
||||
var skinAndAnimatedJoints:DaeObject = null;
|
||||
var skin:Skin = null;
|
||||
if(this.§_-DE§ == null)
|
||||
if(this.var_698 == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var skins:Vector.<DaeObject> = new Vector.<DaeObject>();
|
||||
for(var i:int = 0,var count:int = int(this.§_-DE§.length); i < count; )
|
||||
for(var i:int = 0,var count:int = int(this.var_698.length); i < count; )
|
||||
{
|
||||
instanceController = this.§_-DE§[i];
|
||||
instanceController = this.var_698[i];
|
||||
instanceController.parse();
|
||||
skinAndAnimatedJoints = instanceController.parseSkin(this.parseInstanceMaterials(instanceController.data));
|
||||
if(skinAndAnimatedJoints != null)
|
||||
@@ -345,17 +345,17 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public function applyAnimation(object:Object3D) : DaeObject
|
||||
{
|
||||
var animation:§_-FA§ = this.parseAnimation(object);
|
||||
var animation:name_550 = this.parseAnimation(object);
|
||||
if(animation == null)
|
||||
{
|
||||
return new DaeObject(object);
|
||||
}
|
||||
object.name = this.animName;
|
||||
animation.§_-L6§(object,false);
|
||||
animation.method_360(object,false);
|
||||
return new DaeObject(object,animation);
|
||||
}
|
||||
|
||||
public function parseAnimation(object:Object3D = null) : §_-FA§
|
||||
public function parseAnimation(object:Object3D = null) : name_550
|
||||
{
|
||||
if(this.channels == null || !this.hasTransformationAnimation())
|
||||
{
|
||||
@@ -366,7 +366,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
return this.createClip(channel.tracks);
|
||||
}
|
||||
var clip:§_-FA§ = new §_-FA§();
|
||||
var clip:name_550 = new name_550();
|
||||
var components:Vector.<Vector3D> = object != null ? null : this.getMatrix().decompose();
|
||||
channel = this.getChannel(DaeChannel.PARAM_TRANSLATE);
|
||||
if(channel != null)
|
||||
@@ -382,7 +382,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(this.createValueStaticTrack("x",object == null ? Number(components[0].x) : object.x));
|
||||
clip.name_551(this.createValueStaticTrack("x",object == null ? Number(components[0].x) : object.x));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_TRANSLATE_Y);
|
||||
if(channel != null)
|
||||
@@ -391,7 +391,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(this.createValueStaticTrack("y",object == null ? Number(components[0].y) : object.y));
|
||||
clip.name_551(this.createValueStaticTrack("y",object == null ? Number(components[0].y) : object.y));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_TRANSLATE_Z);
|
||||
if(channel != null)
|
||||
@@ -400,7 +400,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(this.createValueStaticTrack("z",object == null ? Number(components[0].z) : object.z));
|
||||
clip.name_551(this.createValueStaticTrack("z",object == null ? Number(components[0].z) : object.z));
|
||||
}
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_ROTATION_X);
|
||||
@@ -410,7 +410,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(this.createValueStaticTrack("rotationX",object == null ? Number(components[1].x) : object.rotationX));
|
||||
clip.name_551(this.createValueStaticTrack("rotationX",object == null ? Number(components[1].x) : object.rotationX));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_ROTATION_Y);
|
||||
if(channel != null)
|
||||
@@ -419,7 +419,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(this.createValueStaticTrack("rotationY",object == null ? Number(components[1].y) : object.rotationY));
|
||||
clip.name_551(this.createValueStaticTrack("rotationY",object == null ? Number(components[1].y) : object.rotationY));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_ROTATION_Z);
|
||||
if(channel != null)
|
||||
@@ -428,7 +428,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(this.createValueStaticTrack("rotationZ",object == null ? Number(components[1].z) : object.rotationZ));
|
||||
clip.name_551(this.createValueStaticTrack("rotationZ",object == null ? Number(components[1].z) : object.rotationZ));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_SCALE);
|
||||
if(channel != null)
|
||||
@@ -444,7 +444,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(this.createValueStaticTrack("scaleX",object == null ? Number(components[2].x) : object.scaleX));
|
||||
clip.name_551(this.createValueStaticTrack("scaleX",object == null ? Number(components[2].x) : object.scaleX));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_SCALE_Y);
|
||||
if(channel != null)
|
||||
@@ -453,7 +453,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(this.createValueStaticTrack("scaleY",object == null ? Number(components[2].y) : object.scaleY));
|
||||
clip.name_551(this.createValueStaticTrack("scaleY",object == null ? Number(components[2].y) : object.scaleY));
|
||||
}
|
||||
channel = this.getChannel(DaeChannel.PARAM_SCALE_Z);
|
||||
if(channel != null)
|
||||
@@ -462,7 +462,7 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
else
|
||||
{
|
||||
clip.§_-nn§(this.createValueStaticTrack("scaleZ",object == null ? Number(components[2].z) : object.scaleZ));
|
||||
clip.name_551(this.createValueStaticTrack("scaleZ",object == null ? Number(components[2].z) : object.scaleZ));
|
||||
}
|
||||
}
|
||||
if(clip.numTracks > 0)
|
||||
@@ -472,21 +472,21 @@ package alternativa.engine3d.loaders.collada
|
||||
return null;
|
||||
}
|
||||
|
||||
private function createClip(tracks:Vector.<§_-Np§>) : §_-FA§
|
||||
private function createClip(tracks:Vector.<name_552>) : name_550
|
||||
{
|
||||
var clip:§_-FA§ = new §_-FA§();
|
||||
var clip:name_550 = new name_550();
|
||||
for(var i:int = 0,var count:int = int(tracks.length); i < count; i++)
|
||||
{
|
||||
clip.§_-nn§(tracks[i]);
|
||||
clip.name_551(tracks[i]);
|
||||
}
|
||||
return clip;
|
||||
}
|
||||
|
||||
private function addTracksToClip(clip:§_-FA§, tracks:Vector.<§_-Np§>) : void
|
||||
private function addTracksToClip(clip:name_550, tracks:Vector.<name_552>) : void
|
||||
{
|
||||
for(var i:int = 0,var count:int = int(tracks.length); i < count; i++)
|
||||
{
|
||||
clip.§_-nn§(tracks[i]);
|
||||
clip.name_551(tracks[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -498,18 +498,18 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
channel = this.channels[i];
|
||||
channel.parse();
|
||||
result = channel.§_-dS§ == DaeChannel.PARAM_MATRIX;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_X;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_Y;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_Z;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_X;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_Y;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_Z;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_X;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_Y;
|
||||
result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_Z;
|
||||
result = channel.name_589 == DaeChannel.PARAM_MATRIX;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE_X;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE_Y;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_TRANSLATE_Z;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_ROTATION_X;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_ROTATION_Y;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_ROTATION_Z;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_SCALE;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_SCALE_X;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_SCALE_Y;
|
||||
result ||= channel.name_589 == DaeChannel.PARAM_SCALE_Z;
|
||||
if(result)
|
||||
{
|
||||
return true;
|
||||
@@ -526,7 +526,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
channel = this.channels[i];
|
||||
channel.parse();
|
||||
if(channel.§_-dS§ == param)
|
||||
if(channel.name_589 == param)
|
||||
{
|
||||
return channel;
|
||||
}
|
||||
@@ -535,7 +535,7 @@ package alternativa.engine3d.loaders.collada
|
||||
return null;
|
||||
}
|
||||
|
||||
private function concatTracks(source:Vector.<§_-Np§>, dest:Vector.<§_-Np§>) : void
|
||||
private function concatTracks(source:Vector.<name_552>, dest:Vector.<name_552>) : void
|
||||
{
|
||||
for(var i:int = 0,var count:int = int(source.length); i < count; i++)
|
||||
{
|
||||
@@ -543,16 +543,16 @@ package alternativa.engine3d.loaders.collada
|
||||
}
|
||||
}
|
||||
|
||||
private function createValueStaticTrack(property:String, value:Number) : §_-Np§
|
||||
private function createValueStaticTrack(property:String, value:Number) : name_552
|
||||
{
|
||||
var track:§_-kB§ = new §_-kB§(this.animName,property);
|
||||
var track:name_591 = new name_591(this.animName,property);
|
||||
track.addKey(0,value);
|
||||
return track;
|
||||
}
|
||||
|
||||
public function createStaticTransformTrack() : §_-ew§
|
||||
public function createStaticTransformTrack() : name_590
|
||||
{
|
||||
var track:§_-ew§ = new §_-ew§(this.animName);
|
||||
var track:name_590 = new name_590(this.animName);
|
||||
track.addKey(0,this.getMatrix());
|
||||
return track;
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.animation.§_-FA§;
|
||||
import alternativa.engine3d.animation.name_550;
|
||||
import alternativa.engine3d.core.Object3D;
|
||||
|
||||
public class DaeObject
|
||||
{
|
||||
public var object:Object3D;
|
||||
|
||||
public var animation:§_-FA§;
|
||||
public var animation:name_550;
|
||||
|
||||
public var jointNode:DaeNode;
|
||||
|
||||
public function DaeObject(object:Object3D, animation:§_-FA§ = null)
|
||||
public function DaeObject(object:Object3D, animation:name_550 = null)
|
||||
{
|
||||
super();
|
||||
this.object = object;
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
import alternativa.engine3d.animation.keys.§_-Np§;
|
||||
import alternativa.engine3d.animation.keys.§_-ew§;
|
||||
import alternativa.engine3d.animation.keys.§_-kB§;
|
||||
import alternativa.engine3d.animation.keys.name_552;
|
||||
import alternativa.engine3d.animation.keys.name_590;
|
||||
import alternativa.engine3d.animation.keys.name_591;
|
||||
import flash.geom.Matrix3D;
|
||||
|
||||
use namespace collada;
|
||||
|
||||
public class DaeSampler extends DaeElement
|
||||
{
|
||||
private var §_-G6§:Vector.<Number>;
|
||||
private var var_719:Vector.<Number>;
|
||||
|
||||
private var values:Vector.<Number>;
|
||||
|
||||
private var §_-JC§:int;
|
||||
private var var_720:int;
|
||||
|
||||
private var §_-7i§:int;
|
||||
private var var_721:int;
|
||||
|
||||
public function DaeSampler(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -43,8 +43,8 @@ package alternativa.engine3d.loaders.collada
|
||||
inputSource = input.prepareSource(1);
|
||||
if(inputSource != null)
|
||||
{
|
||||
this.§_-G6§ = inputSource.numbers;
|
||||
this.§_-JC§ = inputSource.stride;
|
||||
this.var_719 = inputSource.numbers;
|
||||
this.var_720 = inputSource.stride;
|
||||
}
|
||||
break;
|
||||
case "OUTPUT":
|
||||
@@ -52,7 +52,7 @@ package alternativa.engine3d.loaders.collada
|
||||
if(outputSource != null)
|
||||
{
|
||||
this.values = outputSource.numbers;
|
||||
this.§_-7i§ = outputSource.stride;
|
||||
this.var_721 = outputSource.stride;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -60,73 +60,73 @@ package alternativa.engine3d.loaders.collada
|
||||
return true;
|
||||
}
|
||||
|
||||
public function parseNumbersTrack(objectName:String, property:String) : §_-kB§
|
||||
public function parseNumbersTrack(objectName:String, property:String) : name_591
|
||||
{
|
||||
var track:§_-kB§ = null;
|
||||
var track:name_591 = null;
|
||||
var count:int = 0;
|
||||
var i:int = 0;
|
||||
if(this.§_-G6§ != null && this.values != null && this.§_-JC§ > 0)
|
||||
if(this.var_719 != null && this.values != null && this.var_720 > 0)
|
||||
{
|
||||
track = new §_-kB§(objectName,property);
|
||||
count = this.§_-G6§.length / this.§_-JC§;
|
||||
track = new name_591(objectName,property);
|
||||
count = this.var_719.length / this.var_720;
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
track.addKey(this.§_-G6§[int(this.§_-JC§ * i)],this.values[int(this.§_-7i§ * i)]);
|
||||
track.addKey(this.var_719[int(this.var_720 * i)],this.values[int(this.var_721 * i)]);
|
||||
}
|
||||
return track;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function parseTransformationTrack(objectName:String) : §_-Np§
|
||||
public function parseTransformationTrack(objectName:String) : name_552
|
||||
{
|
||||
var track:§_-ew§ = null;
|
||||
var track:name_590 = null;
|
||||
var count:int = 0;
|
||||
var i:int = 0;
|
||||
var index:int = 0;
|
||||
var matrix:Matrix3D = null;
|
||||
if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0)
|
||||
if(this.var_719 != null && this.values != null && this.var_720 != 0)
|
||||
{
|
||||
track = new §_-ew§(objectName);
|
||||
count = this.§_-G6§.length / this.§_-JC§;
|
||||
track = new name_590(objectName);
|
||||
count = this.var_719.length / this.var_720;
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
index = this.§_-7i§ * i;
|
||||
index = this.var_721 * i;
|
||||
matrix = new Matrix3D(Vector.<Number>([this.values[index],this.values[index + 4],this.values[index + 8],this.values[index + 12],this.values[index + 1],this.values[index + 5],this.values[index + 9],this.values[index + 13],this.values[index + 2],this.values[index + 6],this.values[index + 10],this.values[index + 14],this.values[index + 3],this.values[index + 7],this.values[index + 11],this.values[index + 15]]));
|
||||
track.addKey(this.§_-G6§[i * this.§_-JC§],matrix);
|
||||
track.addKey(this.var_719[i * this.var_720],matrix);
|
||||
}
|
||||
return track;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function parsePointsTracks(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector.<§_-Np§>
|
||||
public function parsePointsTracks(objectName:String, xProperty:String, yProperty:String, zProperty:String) : Vector.<name_552>
|
||||
{
|
||||
var xTrack:§_-kB§ = null;
|
||||
var yTrack:§_-kB§ = null;
|
||||
var zTrack:§_-kB§ = null;
|
||||
var xTrack:name_591 = null;
|
||||
var yTrack:name_591 = null;
|
||||
var zTrack:name_591 = null;
|
||||
var count:int = 0;
|
||||
var i:int = 0;
|
||||
var index:int = 0;
|
||||
var time:Number = NaN;
|
||||
if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0)
|
||||
if(this.var_719 != null && this.values != null && this.var_720 != 0)
|
||||
{
|
||||
xTrack = new §_-kB§(objectName,xProperty);
|
||||
xTrack = new name_591(objectName,xProperty);
|
||||
xTrack.object = objectName;
|
||||
yTrack = new §_-kB§(objectName,yProperty);
|
||||
yTrack = new name_591(objectName,yProperty);
|
||||
yTrack.object = objectName;
|
||||
zTrack = new §_-kB§(objectName,zProperty);
|
||||
zTrack = new name_591(objectName,zProperty);
|
||||
zTrack.object = objectName;
|
||||
count = this.§_-G6§.length / this.§_-JC§;
|
||||
count = this.var_719.length / this.var_720;
|
||||
for(i = 0; i < count; i++)
|
||||
{
|
||||
index = i * this.§_-7i§;
|
||||
time = this.§_-G6§[i * this.§_-JC§];
|
||||
index = i * this.var_721;
|
||||
time = this.var_719[i * this.var_720];
|
||||
xTrack.addKey(time,this.values[index]);
|
||||
yTrack.addKey(time,this.values[index + 1]);
|
||||
zTrack.addKey(time,this.values[index + 2]);
|
||||
}
|
||||
return Vector.<§_-Np§>([xTrack,yTrack,zTrack]);
|
||||
return Vector.<name_552>([xTrack,yTrack,zTrack]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -4,15 +4,15 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeSource extends DaeElement
|
||||
{
|
||||
private const §_-XM§:String = "float_array";
|
||||
private const const_7:String = "float_array";
|
||||
|
||||
private const §_-g6§:String = "int_array";
|
||||
private const const_9:String = "int_array";
|
||||
|
||||
private const §_-ZJ§:String = "Name_array";
|
||||
private const const_8:String = "Name_array";
|
||||
|
||||
public var numbers:Vector.<Number>;
|
||||
|
||||
public var §_-op§:Vector.<int>;
|
||||
public var var_550:Vector.<int>;
|
||||
|
||||
public var names:Vector.<String>;
|
||||
|
||||
@@ -34,9 +34,9 @@ package alternativa.engine3d.loaders.collada
|
||||
child = children[i];
|
||||
switch(child.localName())
|
||||
{
|
||||
case this.§_-XM§:
|
||||
case this.§_-g6§:
|
||||
case this.§_-ZJ§:
|
||||
case this.const_7:
|
||||
case this.const_9:
|
||||
case this.const_8:
|
||||
_loc5_ = new DaeArray(child,document);
|
||||
if(_loc5_.id != null)
|
||||
{
|
||||
@@ -119,13 +119,13 @@ package alternativa.engine3d.loaders.collada
|
||||
var arrStride:int = int(Math.max(this.numValidParams(params),stride));
|
||||
switch(type)
|
||||
{
|
||||
case this.§_-XM§:
|
||||
case this.const_7:
|
||||
this.numbers = new Vector.<Number>(int(arrStride * count));
|
||||
break;
|
||||
case this.§_-g6§:
|
||||
this.§_-op§ = new Vector.<int>(int(arrStride * count));
|
||||
case this.const_9:
|
||||
this.var_550 = new Vector.<int>(int(arrStride * count));
|
||||
break;
|
||||
case this.§_-ZJ§:
|
||||
case this.const_8:
|
||||
this.names = new Vector.<String>(int(arrStride * count));
|
||||
}
|
||||
var curr:int = 0;
|
||||
@@ -136,7 +136,7 @@ package alternativa.engine3d.loaders.collada
|
||||
{
|
||||
switch(type)
|
||||
{
|
||||
case this.§_-XM§:
|
||||
case this.const_7:
|
||||
for(j = 0; j < count; j++)
|
||||
{
|
||||
value = array[int(offset + stride * j + i)];
|
||||
@@ -147,13 +147,13 @@ package alternativa.engine3d.loaders.collada
|
||||
this.numbers[int(arrStride * j + curr)] = parseFloat(value);
|
||||
}
|
||||
break;
|
||||
case this.§_-g6§:
|
||||
case this.const_9:
|
||||
for(j = 0; j < count; j++)
|
||||
{
|
||||
this.§_-op§[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10);
|
||||
this.var_550[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10);
|
||||
}
|
||||
break;
|
||||
case this.§_-ZJ§:
|
||||
case this.const_8:
|
||||
for(j = 0; j < count; j++)
|
||||
{
|
||||
this.names[int(arrStride * j + curr)] = array[int(offset + stride * j + i)];
|
||||
|
||||
@@ -4,9 +4,9 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeVertex
|
||||
{
|
||||
public var §_-Eq§:int;
|
||||
public var name_600:int;
|
||||
|
||||
public var §_-AR§:int;
|
||||
public var name_601:int;
|
||||
|
||||
public var indices:Vector.<int> = new Vector.<int>();
|
||||
|
||||
@@ -20,7 +20,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public var normal:Vector3D;
|
||||
|
||||
public var §_-hC§:Vector3D;
|
||||
public var name_596:Vector3D;
|
||||
|
||||
public function DaeVertex()
|
||||
{
|
||||
@@ -55,12 +55,12 @@ package alternativa.engine3d.loaders.collada
|
||||
var biNormalX:Number = biNormalData[int(biNormalOffset++)];
|
||||
var biNormalY:Number = biNormalData[int(biNormalOffset++)];
|
||||
var biNormalZ:Number = biNormalData[biNormalOffset];
|
||||
this.§_-hC§ = new Vector3D(tangentData[int(tangentOffset++)],tangentData[int(tangentOffset++)],tangentData[tangentOffset]);
|
||||
var crossX:Number = this.normal.y * this.§_-hC§.z - this.normal.z * this.§_-hC§.y;
|
||||
var crossY:Number = this.normal.z * this.§_-hC§.x - this.normal.x * this.§_-hC§.z;
|
||||
var crossZ:Number = this.normal.x * this.§_-hC§.y - this.normal.y * this.§_-hC§.x;
|
||||
this.name_596 = new Vector3D(tangentData[int(tangentOffset++)],tangentData[int(tangentOffset++)],tangentData[tangentOffset]);
|
||||
var crossX:Number = this.normal.y * this.name_596.z - this.normal.z * this.name_596.y;
|
||||
var crossY:Number = this.normal.z * this.name_596.x - this.normal.x * this.name_596.z;
|
||||
var crossZ:Number = this.normal.x * this.name_596.y - this.normal.y * this.name_596.x;
|
||||
var dot:Number = crossX * biNormalX + crossY * biNormalY + crossZ * biNormalZ;
|
||||
this.§_-hC§.w = dot < 0 ? -1 : 1;
|
||||
this.name_596.w = dot < 0 ? -1 : 1;
|
||||
}
|
||||
|
||||
public function appendUV(data:Vector.<Number>, dataIndex:int, stride:int) : void
|
||||
|
||||
@@ -7,7 +7,7 @@ package alternativa.engine3d.loaders.collada
|
||||
|
||||
public class DaeVertices extends DaeElement
|
||||
{
|
||||
public var §_-E6§:DaeSource;
|
||||
public var name_597:DaeSource;
|
||||
|
||||
public function DaeVertices(data:XML, document:DaeDocument)
|
||||
{
|
||||
@@ -20,8 +20,8 @@ package alternativa.engine3d.loaders.collada
|
||||
inputXML = data.input.(@semantic == "POSITION")[0];
|
||||
if(inputXML != null)
|
||||
{
|
||||
this.§_-E6§ = new DaeInput(inputXML,document).prepareSource(3);
|
||||
if(this.§_-E6§ != null)
|
||||
this.name_597 = new DaeInput(inputXML,document).prepareSource(3);
|
||||
if(this.name_597 != null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user