mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 09:59:07 -07:00
Fix errors that were immediatley obvious
This commit is contained in:
@@ -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 name_pM:ICodec;
|
||||
|
||||
private var §_-2o§:ICodec;
|
||||
private var name_2o: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.name_pM = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1));
|
||||
this.name_2o = 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.name_pM.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.name_2o.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.name_pM.encode(protocolBuffer,struct.box);
|
||||
this.name_2o.encode(protocolBuffer,struct.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user