mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 01:49:11 -07:00
Fix errors that were immediatley obvious
This commit is contained in:
@@ -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 name_Dh:ICodec;
|
||||
|
||||
private var §_-Po§:ICodec;
|
||||
private var name_Po:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var name_2o:ICodec;
|
||||
|
||||
private var §_-JX§:ICodec;
|
||||
private var name_JX:ICodec;
|
||||
|
||||
private var §_-XW§:ICodec;
|
||||
private var name_XW:ICodec;
|
||||
|
||||
private var §_-jk§:ICodec;
|
||||
private var name_jk:ICodec;
|
||||
|
||||
private var §_-S2§:ICodec;
|
||||
private var name_S2:ICodec;
|
||||
|
||||
private var §_-h9§:ICodec;
|
||||
private var name_h9: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.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true));
|
||||
this.name_Po = protocol.getCodec(new TypeCodecInfo(uint,false));
|
||||
this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false));
|
||||
this.name_JX = protocol.getCodec(new TypeCodecInfo(Float,false));
|
||||
this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true));
|
||||
this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true));
|
||||
this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true));
|
||||
this.name_h9 = 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.name_Dh.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.name_Po.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.name_2o.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.name_JX.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.name_XW.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.name_jk.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.name_S2.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.name_h9.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.name_Dh.encode(protocolBuffer,struct.boundBoxId);
|
||||
this.name_Po.encode(protocolBuffer,struct.color);
|
||||
this.name_2o.encode(protocolBuffer,struct.id);
|
||||
this.name_JX.encode(protocolBuffer,struct.intensity);
|
||||
this.name_XW.encode(protocolBuffer,struct.name);
|
||||
this.name_jk.encode(protocolBuffer,struct.parentId);
|
||||
this.name_S2.encode(protocolBuffer,struct.transform);
|
||||
this.name_h9.encode(protocolBuffer,struct.visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user