mirror of
				https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
				synced 2025-10-27 02:19:07 -07:00 
			
		
		
		
	Fix errors that were immediatley obvious
This commit is contained in:
		| @@ -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 name_2o:ICodec; | ||||
|        | ||||
|       private var §_-aV§:ICodec; | ||||
|       private var name_aV: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.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.name_aV = 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.name_2o.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.name_aV.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.name_2o.encode(protocolBuffer,struct.id); | ||||
|          this.name_aV.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 name_mC:ICodec; | ||||
|        | ||||
|       private var §_-2o§:ICodec; | ||||
|       private var name_2o:ICodec; | ||||
|        | ||||
|       private var §_-2N§:ICodec; | ||||
|       private var name_2N:ICodec; | ||||
|        | ||||
|       private var §_-K5§:ICodec; | ||||
|       private var name_K5:ICodec; | ||||
|        | ||||
|       private var §_-Q5§:ICodec; | ||||
|       private var name_Q5:ICodec; | ||||
|        | ||||
|       private var §_-WH§:ICodec; | ||||
|       private var name_WH:ICodec; | ||||
|        | ||||
|       private var §_-kh§:ICodec; | ||||
|       private var name_kh: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.name_mC = protocol.getCodec(new TypeCodecInfo(UShort,false)); | ||||
|          this.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.name_2N = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.name_K5 = protocol.getCodec(new TypeCodecInfo(Float,true)); | ||||
|          this.name_Q5 = protocol.getCodec(new TypeCodecInfo(Float,true)); | ||||
|          this.name_WH = protocol.getCodec(new TypeCodecInfo(Float,true)); | ||||
|          this.name_kh = 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.name_mC.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.name_2o.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.name_2N.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.name_K5.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.name_Q5.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.name_WH.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.name_kh.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.name_mC.encode(protocolBuffer,struct.channel); | ||||
|          this.name_2o.encode(protocolBuffer,struct.id); | ||||
|          this.name_2N.encode(protocolBuffer,struct.imageId); | ||||
|          this.name_K5.encode(protocolBuffer,struct.uOffset); | ||||
|          this.name_Q5.encode(protocolBuffer,struct.uScale); | ||||
|          this.name_WH.encode(protocolBuffer,struct.vOffset); | ||||
|          this.name_kh.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 name_9A:ICodec; | ||||
|        | ||||
|       private var §_-hw§:ICodec; | ||||
|       private var name_hw:ICodec; | ||||
|        | ||||
|       private var §_-2o§:ICodec; | ||||
|       private var name_2o:ICodec; | ||||
|        | ||||
|       private var §_-Hu§:ICodec; | ||||
|       private var name_Hu:ICodec; | ||||
|        | ||||
|       private var §_-GK§:ICodec; | ||||
|       private var name_GK:ICodec; | ||||
|        | ||||
|       private var §_-LZ§:ICodec; | ||||
|       private var name_LZ:ICodec; | ||||
|        | ||||
|       private var §_-FU§:ICodec; | ||||
|       private var name_FU: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.name_9A = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.name_hw = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.name_Hu = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.name_GK = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.name_LZ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.name_FU = 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.name_9A.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.name_hw.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.name_2o.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.name_Hu.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.name_GK.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.name_LZ.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.name_FU.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.name_9A.encode(protocolBuffer,struct.diffuseMapId); | ||||
|          this.name_hw.encode(protocolBuffer,struct.glossinessMapId); | ||||
|          this.name_2o.encode(protocolBuffer,struct.id); | ||||
|          this.name_Hu.encode(protocolBuffer,struct.lightMapId); | ||||
|          this.name_GK.encode(protocolBuffer,struct.normalMapId); | ||||
|          this.name_LZ.encode(protocolBuffer,struct.opacityMapId); | ||||
|          this.name_FU.encode(protocolBuffer,struct.specularMapId); | ||||
|       } | ||||
|    } | ||||
| } | ||||
|   | ||||
| @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.materials | ||||
|          var result:Vector.<Vector.<A3DImage>> = new Vector.<Vector.<A3DImage>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             if(!protocolBuffer.optionalMap.get()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<A3DImage>(length2,true); | ||||
|   | ||||
| @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.materials | ||||
|          var result:Vector.<Vector.<Vector.<A3DImage>>> = new Vector.<Vector.<Vector.<A3DImage>>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             if(!protocolBuffer.optionalMap.get()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<Vector.<A3DImage>>(length2,true); | ||||
|                result[i1] = items2; | ||||
|                for(i2 = 0; i2 < length2; ) | ||||
|                { | ||||
|                   if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|                   if(!protocolBuffer.optionalMap.get()) | ||||
|                   { | ||||
|                      length3 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                      items3 = new Vector.<A3DImage>(length3,true); | ||||
|   | ||||
| @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.materials | ||||
|          var result:Vector.<Vector.<A3DMap>> = new Vector.<Vector.<A3DMap>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             if(!protocolBuffer.optionalMap.get()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<A3DMap>(length2,true); | ||||
|   | ||||
| @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.materials | ||||
|          var result:Vector.<Vector.<Vector.<A3DMap>>> = new Vector.<Vector.<Vector.<A3DMap>>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             if(!protocolBuffer.optionalMap.get()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<Vector.<A3DMap>>(length2,true); | ||||
|                result[i1] = items2; | ||||
|                for(i2 = 0; i2 < length2; ) | ||||
|                { | ||||
|                   if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|                   if(!protocolBuffer.optionalMap.get()) | ||||
|                   { | ||||
|                      length3 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                      items3 = new Vector.<A3DMap>(length3,true); | ||||
|   | ||||
| @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.materials | ||||
|          var result:Vector.<Vector.<A3DMaterial>> = new Vector.<Vector.<A3DMaterial>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             if(!protocolBuffer.optionalMap.get()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<A3DMaterial>(length2,true); | ||||
|   | ||||
| @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.materials | ||||
|          var result:Vector.<Vector.<Vector.<A3DMaterial>>> = new Vector.<Vector.<Vector.<A3DMaterial>>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             if(!protocolBuffer.optionalMap.get()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<Vector.<A3DMaterial>>(length2,true); | ||||
|                result[i1] = items2; | ||||
|                for(i2 = 0; i2 < length2; ) | ||||
|                { | ||||
|                   if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|                   if(!protocolBuffer.optionalMap.get()) | ||||
|                   { | ||||
|                      length3 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                      items3 = new Vector.<A3DMaterial>(length3,true); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pyogenics
					Pyogenics