From e2f159fe56848ccf02471456ef0100f28407d4c9 Mon Sep 17 00:00:00 2001 From: Pyogenics Date: Tue, 13 May 2025 21:27:03 +0100 Subject: [PATCH] Add Alternativa3D 8.32 and use its libraries --- .gitmodules | 3 + asconfig.json | 3 + asconfig.mobile.json | 3 + external/Alternativa3D | 1 + src/TanksTestingTool.as | 4 +- src/_codec/VectorCodecStringLevel1.as | 58 - src/_codec/VectorCodecStringLevel2.as | 88 -- src/_codec/VectorCodecStringLevel3.as | 118 -- src/_codec/VectorCodecbyteLevel1.as | 59 - src/_codec/VectorCodecbyteLevel2.as | 89 -- src/_codec/VectorCodecbyteLevel3.as | 119 -- src/_codec/VectorCodecfloatLevel1.as | 60 - src/_codec/VectorCodecfloatLevel2.as | 89 -- src/_codec/VectorCodecfloatLevel3.as | 119 -- src/_codec/VectorCodecintLevel1.as | 58 - src/_codec/VectorCodecintLevel2.as | 88 -- src/_codec/VectorCodecintLevel3.as | 118 -- src/_codec/VectorCodeclongLevel1.as | 59 - src/_codec/VectorCodeclongLevel2.as | 89 -- src/_codec/VectorCodeclongLevel3.as | 119 -- src/_codec/VectorCodecshortLevel1.as | 59 - src/_codec/VectorCodecshortLevel2.as | 89 -- src/_codec/VectorCodecshortLevel3.as | 119 -- src/_codec/commons/CodecA3DMatrix.as | 113 -- src/_codec/commons/CodecId.as | 46 - .../commons/VectorCodecA3DMatrixLevel1.as | 59 - .../commons/VectorCodecA3DMatrixLevel2.as | 89 -- .../commons/VectorCodecA3DMatrixLevel3.as | 119 -- src/_codec/commons/VectorCodecIdLevel1.as | 59 - src/_codec/commons/VectorCodecIdLevel2.as | 89 -- src/_codec/commons/VectorCodecIdLevel3.as | 119 -- src/_codec/unsigned/VectorCodecintLevel1.as | 59 - src/_codec/unsigned/VectorCodecintLevel2.as | 89 -- src/_codec/unsigned/VectorCodecintLevel3.as | 119 -- src/_codec/unsigned/VectorCodeclongLevel1.as | 58 - src/_codec/unsigned/VectorCodeclongLevel2.as | 88 -- src/_codec/unsigned/VectorCodeclongLevel3.as | 118 -- src/_codec/unsigned/VectorCodecshortLevel1.as | 59 - src/_codec/unsigned/VectorCodecshortLevel2.as | 89 -- src/_codec/unsigned/VectorCodecshortLevel3.as | 119 -- src/_codec/versions/version1/a3d/CodecA3D.as | 83 -- .../version1/a3d/VectorCodecA3DLevel1.as | 59 - .../version1/a3d/VectorCodecA3DLevel2.as | 89 -- .../version1/a3d/VectorCodecA3DLevel3.as | 119 -- .../version1/a3d/geometry/CodecA3DGeometry.as | 62 - .../a3d/geometry/CodecA3DIndexBuffer.as | 53 - .../a3d/geometry/CodecA3DVertexBuffer.as | 62 - .../geometry/VectorCodecA3DGeometryLevel1.as | 59 - .../geometry/VectorCodecA3DGeometryLevel2.as | 89 -- .../geometry/VectorCodecA3DGeometryLevel3.as | 119 -- .../VectorCodecA3DIndexBufferLevel1.as | 59 - .../VectorCodecA3DIndexBufferLevel2.as | 89 -- .../VectorCodecA3DIndexBufferLevel3.as | 119 -- .../VectorCodecA3DVertexBufferLevel1.as | 59 - .../VectorCodecA3DVertexBufferLevel2.as | 89 -- .../VectorCodecA3DVertexBufferLevel3.as | 119 -- .../versions/version1/a3d/id/CodecParentId.as | 46 - .../a3d/id/VectorCodecParentIdLevel1.as | 59 - .../a3d/id/VectorCodecParentIdLevel2.as | 89 -- .../a3d/id/VectorCodecParentIdLevel3.as | 119 -- .../version1/a3d/materials/CodecA3DImage.as | 53 - .../version1/a3d/materials/CodecA3DMap.as | 85 -- .../a3d/materials/CodecA3DMaterial.as | 83 -- .../materials/VectorCodecA3DImageLevel1.as | 59 - .../materials/VectorCodecA3DImageLevel2.as | 89 -- .../materials/VectorCodecA3DImageLevel3.as | 119 -- .../a3d/materials/VectorCodecA3DMapLevel1.as | 59 - .../a3d/materials/VectorCodecA3DMapLevel2.as | 89 -- .../a3d/materials/VectorCodecA3DMapLevel3.as | 119 -- .../materials/VectorCodecA3DMaterialLevel1.as | 59 - .../materials/VectorCodecA3DMaterialLevel2.as | 89 -- .../materials/VectorCodecA3DMaterialLevel3.as | 119 -- .../version1/a3d/objects/CodecA3DBox.as | 55 - .../version1/a3d/objects/CodecA3DObject.as | 93 -- .../version1/a3d/objects/CodecA3DSurface.as | 59 - .../a3d/objects/CodecA3DTransformation.as | 47 - .../a3d/objects/VectorCodecA3DBoxLevel1.as | 59 - .../a3d/objects/VectorCodecA3DBoxLevel2.as | 89 -- .../a3d/objects/VectorCodecA3DBoxLevel3.as | 119 -- .../a3d/objects/VectorCodecA3DObjectLevel1.as | 59 - .../a3d/objects/VectorCodecA3DObjectLevel2.as | 89 -- .../a3d/objects/VectorCodecA3DObjectLevel3.as | 119 -- .../objects/VectorCodecA3DSurfaceLevel1.as | 59 - .../objects/VectorCodecA3DSurfaceLevel2.as | 89 -- .../objects/VectorCodecA3DSurfaceLevel3.as | 119 -- .../VectorCodecA3DTransformationLevel1.as | 59 - .../VectorCodecA3DTransformationLevel2.as | 89 -- .../VectorCodecA3DTransformationLevel3.as | 119 -- src/_codec/versions/version2/a3d/CodecA3D2.as | 174 --- .../version2/a3d/VectorCodecA3D2Level1.as | 59 - .../version2/a3d/VectorCodecA3D2Level2.as | 89 -- .../version2/a3d/VectorCodecA3D2Level3.as | 119 -- .../a3d/animation/CodecA3D2AnimationClip.as | 72 -- .../a3d/animation/CodecA3D2Keyframe.as | 54 - .../version2/a3d/animation/CodecA3D2Track.as | 60 - .../VectorCodecA3D2AnimationClipLevel1.as | 59 - .../VectorCodecA3D2AnimationClipLevel2.as | 89 -- .../VectorCodecA3D2AnimationClipLevel3.as | 119 -- .../VectorCodecA3D2KeyframeLevel1.as | 59 - .../VectorCodecA3D2KeyframeLevel2.as | 89 -- .../VectorCodecA3D2KeyframeLevel3.as | 119 -- .../animation/VectorCodecA3D2TrackLevel1.as | 59 - .../animation/VectorCodecA3D2TrackLevel2.as | 89 -- .../animation/VectorCodecA3D2TrackLevel3.as | 119 -- .../a3d/geometry/CodecA3D2IndexBuffer.as | 59 - .../a3d/geometry/CodecA3D2VertexAttributes.as | 54 - .../a3d/geometry/CodecA3D2VertexBuffer.as | 69 -- .../VectorCodecA3D2IndexBufferLevel1.as | 59 - .../VectorCodecA3D2IndexBufferLevel2.as | 89 -- .../VectorCodecA3D2IndexBufferLevel3.as | 119 -- .../VectorCodecA3D2VertexAttributesLevel1.as | 59 - .../VectorCodecA3D2VertexAttributesLevel2.as | 89 -- .../VectorCodecA3D2VertexAttributesLevel3.as | 119 -- .../VectorCodecA3D2VertexBufferLevel1.as | 59 - .../VectorCodecA3D2VertexBufferLevel2.as | 89 -- .../VectorCodecA3D2VertexBufferLevel3.as | 119 -- .../a3d/materials/CodecA3D2CubeMap.as | 82 -- .../version2/a3d/materials/CodecA3D2Image.as | 52 - .../version2/a3d/materials/CodecA3D2Map.as | 59 - .../a3d/materials/CodecA3D2Material.as | 88 -- .../materials/VectorCodecA3D2CubeMapLevel1.as | 59 - .../materials/VectorCodecA3D2CubeMapLevel2.as | 89 -- .../materials/VectorCodecA3D2CubeMapLevel3.as | 119 -- .../materials/VectorCodecA3D2ImageLevel1.as | 59 - .../materials/VectorCodecA3D2ImageLevel2.as | 89 -- .../materials/VectorCodecA3D2ImageLevel3.as | 119 -- .../a3d/materials/VectorCodecA3D2MapLevel1.as | 59 - .../a3d/materials/VectorCodecA3D2MapLevel2.as | 89 -- .../a3d/materials/VectorCodecA3D2MapLevel3.as | 119 -- .../VectorCodecA3D2MaterialLevel1.as | 59 - .../VectorCodecA3D2MaterialLevel2.as | 89 -- .../VectorCodecA3D2MaterialLevel3.as | 119 -- .../a3d/objects/CodecA3D2AmbientLight.as | 91 -- .../version2/a3d/objects/CodecA3D2Box.as | 54 - .../version2/a3d/objects/CodecA3D2Decal.as | 105 -- .../a3d/objects/CodecA3D2DirectionalLight.as | 91 -- .../version2/a3d/objects/CodecA3D2Joint.as | 78 -- .../objects/CodecA3D2JointBindTransform.as | 54 - .../version2/a3d/objects/CodecA3D2Mesh.as | 98 -- .../version2/a3d/objects/CodecA3D2Object.as | 78 -- .../a3d/objects/CodecA3D2OmniLight.as | 103 -- .../version2/a3d/objects/CodecA3D2Skin.as | 118 -- .../a3d/objects/CodecA3D2SpotLight.as | 115 -- .../version2/a3d/objects/CodecA3D2Sprite.as | 128 -- .../version2/a3d/objects/CodecA3D2Surface.as | 58 - .../a3d/objects/CodecA3D2Transform.as | 47 - .../VectorCodecA3D2AmbientLightLevel1.as | 59 - .../VectorCodecA3D2AmbientLightLevel2.as | 89 -- .../VectorCodecA3D2AmbientLightLevel3.as | 119 -- .../a3d/objects/VectorCodecA3D2BoxLevel1.as | 59 - .../a3d/objects/VectorCodecA3D2BoxLevel2.as | 89 -- .../a3d/objects/VectorCodecA3D2BoxLevel3.as | 119 -- .../a3d/objects/VectorCodecA3D2DecalLevel1.as | 59 - .../a3d/objects/VectorCodecA3D2DecalLevel2.as | 89 -- .../a3d/objects/VectorCodecA3D2DecalLevel3.as | 119 -- .../VectorCodecA3D2DirectionalLightLevel1.as | 59 - .../VectorCodecA3D2DirectionalLightLevel2.as | 89 -- .../VectorCodecA3D2DirectionalLightLevel3.as | 119 -- ...VectorCodecA3D2JointBindTransformLevel1.as | 59 - ...VectorCodecA3D2JointBindTransformLevel2.as | 89 -- ...VectorCodecA3D2JointBindTransformLevel3.as | 119 -- .../a3d/objects/VectorCodecA3D2JointLevel1.as | 59 - .../a3d/objects/VectorCodecA3D2JointLevel2.as | 89 -- .../a3d/objects/VectorCodecA3D2JointLevel3.as | 119 -- .../a3d/objects/VectorCodecA3D2MeshLevel1.as | 59 - .../a3d/objects/VectorCodecA3D2MeshLevel2.as | 89 -- .../a3d/objects/VectorCodecA3D2MeshLevel3.as | 119 -- .../objects/VectorCodecA3D2ObjectLevel1.as | 59 - .../objects/VectorCodecA3D2ObjectLevel2.as | 89 -- .../objects/VectorCodecA3D2ObjectLevel3.as | 119 -- .../objects/VectorCodecA3D2OmniLightLevel1.as | 59 - .../objects/VectorCodecA3D2OmniLightLevel2.as | 89 -- .../objects/VectorCodecA3D2OmniLightLevel3.as | 119 -- .../a3d/objects/VectorCodecA3D2SkinLevel1.as | 59 - .../a3d/objects/VectorCodecA3D2SkinLevel2.as | 89 -- .../a3d/objects/VectorCodecA3D2SkinLevel3.as | 119 -- .../objects/VectorCodecA3D2SpotLightLevel1.as | 59 - .../objects/VectorCodecA3D2SpotLightLevel2.as | 89 -- .../objects/VectorCodecA3D2SpotLightLevel3.as | 119 -- .../objects/VectorCodecA3D2SpriteLevel1.as | 59 - .../objects/VectorCodecA3D2SpriteLevel2.as | 89 -- .../objects/VectorCodecA3D2SpriteLevel3.as | 119 -- .../objects/VectorCodecA3D2SurfaceLevel1.as | 59 - .../objects/VectorCodecA3D2SurfaceLevel2.as | 89 -- .../objects/VectorCodecA3D2SurfaceLevel3.as | 119 -- .../objects/VectorCodecA3D2TransformLevel1.as | 59 - .../objects/VectorCodecA3D2TransformLevel2.as | 89 -- .../objects/VectorCodecA3D2TransformLevel3.as | 119 -- src/alternativa/engine3d/loaders/ParserA3D.as | 4 +- src/alternativa/osgi/OSGi.as | 185 --- .../osgi/bundle/IBundleActivator.as | 12 - .../osgi/bundle/IBundleDescriptor.as | 14 - .../osgi/service/clientlog/IClientLogBase.as | 8 - src/alternativa/protocol/CompressionType.as | 17 - src/alternativa/protocol/ICodec.as | 12 - src/alternativa/protocol/ICodecInfo.as | 10 - src/alternativa/protocol/IProtocol.as | 21 - src/alternativa/protocol/OptionalMap.as | 128 -- src/alternativa/protocol/ProtocolBuffer.as | 109 -- .../protocol/codec/OptionalCodecDecorator.as | 48 - .../protocol/codec/complex/ByteArrayCodec.as | 36 - .../protocol/codec/complex/StringCodec.as | 36 - .../protocol/codec/primitive/BooleanCodec.as | 29 - .../protocol/codec/primitive/ByteCodec.as | 33 - .../protocol/codec/primitive/DoubleCodec.as | 33 - .../protocol/codec/primitive/FloatCodec.as | 33 - .../codec/primitive/IPrimitiveCodec.as | 10 - .../protocol/codec/primitive/IntCodec.as | 33 - .../protocol/codec/primitive/LongCodec.as | 31 - .../protocol/codec/primitive/ShortCodec.as | 33 - .../protocol/codec/primitive/UByteCodec.as | 29 - .../protocol/codec/primitive/UIntCodec.as | 29 - .../protocol/codec/primitive/UShortCodec.as | 29 - .../protocol/impl/LengthCodecHelper.as | 64 - .../protocol/impl/OptionalMapCodecHelper.as | 152 --- src/alternativa/protocol/impl/PacketHelper.as | 205 ---- src/alternativa/protocol/impl/Protocol.as | 110 -- src/alternativa/protocol/info/CodecInfo.as | 26 - .../protocol/info/CollectionCodecInfo.as | 34 - .../protocol/info/EnumCodecInfo.as | 16 - .../protocol/info/TypeCodecInfo.as | 26 - .../protocol/osgi/ProtocolActivator.as | 50 - .../startup/ConnectionParameters.as | 20 - .../startup/IClientConfigurator.as | 11 - src/alternativa/startup/LibraryInfo.as | 36 - src/alternativa/types/Byte.as | 11 - src/alternativa/types/Float.as | 11 - src/alternativa/types/Long.as | 111 -- src/alternativa/types/Short.as | 11 - src/alternativa/types/UByte.as | 11 - src/alternativa/types/UShort.as | 11 - src/commons/A3DMatrix.as | 185 --- src/commons/Id.as | 31 - src/platform/client/a3d/osgi/Activator.as | 1047 ----------------- .../alternativaprotocol/Activator.as | 232 ---- src/versions/version1/a3d/A3D.as | 108 -- .../version1/a3d/geometry/A3DGeometry.as | 61 - .../version1/a3d/geometry/A3DIndexBuffer.as | 47 - .../version1/a3d/geometry/A3DVertexBuffer.as | 61 - src/versions/version1/a3d/id/ParentId.as | 31 - .../version1/a3d/materials/A3DImage.as | 47 - src/versions/version1/a3d/materials/A3DMap.as | 117 -- .../version1/a3d/materials/A3DMaterial.as | 117 -- src/versions/version1/a3d/objects/A3DBox.as | 47 - .../version1/a3d/objects/A3DObject.as | 132 --- .../version1/a3d/objects/A3DSurface.as | 61 - .../version1/a3d/objects/A3DTransformation.as | 33 - src/versions/version2/a3d/A3D2.as | 303 ----- .../a3d/animation/A3D2AnimationClip.as | 89 -- .../version2/a3d/animation/A3D2Keyframe.as | 47 - .../version2/a3d/animation/A3D2Track.as | 59 - .../version2/a3d/geometry/A3D2IndexBuffer.as | 61 - .../a3d/geometry/A3D2VertexAttributes.as | 50 - .../version2/a3d/geometry/A3D2VertexBuffer.as | 75 -- .../version2/a3d/materials/A3D2CubeMap.as | 115 -- .../version2/a3d/materials/A3D2Image.as | 45 - .../version2/a3d/materials/A3D2Map.as | 59 - .../version2/a3d/materials/A3D2Material.as | 129 -- .../version2/a3d/objects/A3D2AmbientLight.as | 131 --- src/versions/version2/a3d/objects/A3D2Box.as | 45 - .../version2/a3d/objects/A3D2Decal.as | 159 --- .../a3d/objects/A3D2DirectionalLight.as | 131 --- .../version2/a3d/objects/A3D2Joint.as | 103 -- .../a3d/objects/A3D2JointBindTransform.as | 47 - src/versions/version2/a3d/objects/A3D2Mesh.as | 145 --- .../version2/a3d/objects/A3D2Object.as | 103 -- .../version2/a3d/objects/A3D2OmniLight.as | 159 --- src/versions/version2/a3d/objects/A3D2Skin.as | 187 --- .../version2/a3d/objects/A3D2SpotLight.as | 187 --- .../version2/a3d/objects/A3D2Sprite.as | 216 ---- .../version2/a3d/objects/A3D2Surface.as | 59 - .../version2/a3d/objects/A3D2Transform.as | 33 - 272 files changed, 14 insertions(+), 22761 deletions(-) create mode 100644 .gitmodules create mode 160000 external/Alternativa3D delete mode 100644 src/_codec/VectorCodecStringLevel1.as delete mode 100644 src/_codec/VectorCodecStringLevel2.as delete mode 100644 src/_codec/VectorCodecStringLevel3.as delete mode 100644 src/_codec/VectorCodecbyteLevel1.as delete mode 100644 src/_codec/VectorCodecbyteLevel2.as delete mode 100644 src/_codec/VectorCodecbyteLevel3.as delete mode 100644 src/_codec/VectorCodecfloatLevel1.as delete mode 100644 src/_codec/VectorCodecfloatLevel2.as delete mode 100644 src/_codec/VectorCodecfloatLevel3.as delete mode 100644 src/_codec/VectorCodecintLevel1.as delete mode 100644 src/_codec/VectorCodecintLevel2.as delete mode 100644 src/_codec/VectorCodecintLevel3.as delete mode 100644 src/_codec/VectorCodeclongLevel1.as delete mode 100644 src/_codec/VectorCodeclongLevel2.as delete mode 100644 src/_codec/VectorCodeclongLevel3.as delete mode 100644 src/_codec/VectorCodecshortLevel1.as delete mode 100644 src/_codec/VectorCodecshortLevel2.as delete mode 100644 src/_codec/VectorCodecshortLevel3.as delete mode 100644 src/_codec/commons/CodecA3DMatrix.as delete mode 100644 src/_codec/commons/CodecId.as delete mode 100644 src/_codec/commons/VectorCodecA3DMatrixLevel1.as delete mode 100644 src/_codec/commons/VectorCodecA3DMatrixLevel2.as delete mode 100644 src/_codec/commons/VectorCodecA3DMatrixLevel3.as delete mode 100644 src/_codec/commons/VectorCodecIdLevel1.as delete mode 100644 src/_codec/commons/VectorCodecIdLevel2.as delete mode 100644 src/_codec/commons/VectorCodecIdLevel3.as delete mode 100644 src/_codec/unsigned/VectorCodecintLevel1.as delete mode 100644 src/_codec/unsigned/VectorCodecintLevel2.as delete mode 100644 src/_codec/unsigned/VectorCodecintLevel3.as delete mode 100644 src/_codec/unsigned/VectorCodeclongLevel1.as delete mode 100644 src/_codec/unsigned/VectorCodeclongLevel2.as delete mode 100644 src/_codec/unsigned/VectorCodeclongLevel3.as delete mode 100644 src/_codec/unsigned/VectorCodecshortLevel1.as delete mode 100644 src/_codec/unsigned/VectorCodecshortLevel2.as delete mode 100644 src/_codec/unsigned/VectorCodecshortLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/CodecA3D.as delete mode 100644 src/_codec/versions/version1/a3d/VectorCodecA3DLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/id/CodecParentId.as delete mode 100644 src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/materials/CodecA3DImage.as delete mode 100644 src/_codec/versions/version1/a3d/materials/CodecA3DMap.as delete mode 100644 src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as delete mode 100644 src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/objects/CodecA3DBox.as delete mode 100644 src/_codec/versions/version1/a3d/objects/CodecA3DObject.as delete mode 100644 src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as delete mode 100644 src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel1.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as delete mode 100644 src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/CodecA3D2.as delete mode 100644 src/_codec/versions/version2/a3d/VectorCodecA3D2Level1.as delete mode 100644 src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as delete mode 100644 src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as delete mode 100644 src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as delete mode 100644 src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as delete mode 100644 src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as delete mode 100644 src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexAttributes.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as delete mode 100644 src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as delete mode 100644 src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as delete mode 100644 src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as delete mode 100644 src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel1.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as delete mode 100644 src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as delete mode 100644 src/alternativa/osgi/OSGi.as delete mode 100644 src/alternativa/osgi/bundle/IBundleActivator.as delete mode 100644 src/alternativa/osgi/bundle/IBundleDescriptor.as delete mode 100644 src/alternativa/osgi/service/clientlog/IClientLogBase.as delete mode 100644 src/alternativa/protocol/CompressionType.as delete mode 100644 src/alternativa/protocol/ICodec.as delete mode 100644 src/alternativa/protocol/ICodecInfo.as delete mode 100644 src/alternativa/protocol/IProtocol.as delete mode 100644 src/alternativa/protocol/OptionalMap.as delete mode 100644 src/alternativa/protocol/ProtocolBuffer.as delete mode 100644 src/alternativa/protocol/codec/OptionalCodecDecorator.as delete mode 100644 src/alternativa/protocol/codec/complex/ByteArrayCodec.as delete mode 100644 src/alternativa/protocol/codec/complex/StringCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/BooleanCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/ByteCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/DoubleCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/FloatCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/IPrimitiveCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/IntCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/LongCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/ShortCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/UByteCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/UIntCodec.as delete mode 100644 src/alternativa/protocol/codec/primitive/UShortCodec.as delete mode 100644 src/alternativa/protocol/impl/LengthCodecHelper.as delete mode 100644 src/alternativa/protocol/impl/OptionalMapCodecHelper.as delete mode 100644 src/alternativa/protocol/impl/PacketHelper.as delete mode 100644 src/alternativa/protocol/impl/Protocol.as delete mode 100644 src/alternativa/protocol/info/CodecInfo.as delete mode 100644 src/alternativa/protocol/info/CollectionCodecInfo.as delete mode 100644 src/alternativa/protocol/info/EnumCodecInfo.as delete mode 100644 src/alternativa/protocol/info/TypeCodecInfo.as delete mode 100644 src/alternativa/protocol/osgi/ProtocolActivator.as delete mode 100644 src/alternativa/startup/ConnectionParameters.as delete mode 100644 src/alternativa/startup/IClientConfigurator.as delete mode 100644 src/alternativa/startup/LibraryInfo.as delete mode 100644 src/alternativa/types/Byte.as delete mode 100644 src/alternativa/types/Float.as delete mode 100644 src/alternativa/types/Long.as delete mode 100644 src/alternativa/types/Short.as delete mode 100644 src/alternativa/types/UByte.as delete mode 100644 src/alternativa/types/UShort.as delete mode 100644 src/commons/A3DMatrix.as delete mode 100644 src/commons/Id.as delete mode 100644 src/platform/client/a3d/osgi/Activator.as delete mode 100644 src/platform/clients/fp10/libraries/alternativaprotocol/Activator.as delete mode 100644 src/versions/version1/a3d/A3D.as delete mode 100644 src/versions/version1/a3d/geometry/A3DGeometry.as delete mode 100644 src/versions/version1/a3d/geometry/A3DIndexBuffer.as delete mode 100644 src/versions/version1/a3d/geometry/A3DVertexBuffer.as delete mode 100644 src/versions/version1/a3d/id/ParentId.as delete mode 100644 src/versions/version1/a3d/materials/A3DImage.as delete mode 100644 src/versions/version1/a3d/materials/A3DMap.as delete mode 100644 src/versions/version1/a3d/materials/A3DMaterial.as delete mode 100644 src/versions/version1/a3d/objects/A3DBox.as delete mode 100644 src/versions/version1/a3d/objects/A3DObject.as delete mode 100644 src/versions/version1/a3d/objects/A3DSurface.as delete mode 100644 src/versions/version1/a3d/objects/A3DTransformation.as delete mode 100644 src/versions/version2/a3d/A3D2.as delete mode 100644 src/versions/version2/a3d/animation/A3D2AnimationClip.as delete mode 100644 src/versions/version2/a3d/animation/A3D2Keyframe.as delete mode 100644 src/versions/version2/a3d/animation/A3D2Track.as delete mode 100644 src/versions/version2/a3d/geometry/A3D2IndexBuffer.as delete mode 100644 src/versions/version2/a3d/geometry/A3D2VertexAttributes.as delete mode 100644 src/versions/version2/a3d/geometry/A3D2VertexBuffer.as delete mode 100644 src/versions/version2/a3d/materials/A3D2CubeMap.as delete mode 100644 src/versions/version2/a3d/materials/A3D2Image.as delete mode 100644 src/versions/version2/a3d/materials/A3D2Map.as delete mode 100644 src/versions/version2/a3d/materials/A3D2Material.as delete mode 100644 src/versions/version2/a3d/objects/A3D2AmbientLight.as delete mode 100644 src/versions/version2/a3d/objects/A3D2Box.as delete mode 100644 src/versions/version2/a3d/objects/A3D2Decal.as delete mode 100644 src/versions/version2/a3d/objects/A3D2DirectionalLight.as delete mode 100644 src/versions/version2/a3d/objects/A3D2Joint.as delete mode 100644 src/versions/version2/a3d/objects/A3D2JointBindTransform.as delete mode 100644 src/versions/version2/a3d/objects/A3D2Mesh.as delete mode 100644 src/versions/version2/a3d/objects/A3D2Object.as delete mode 100644 src/versions/version2/a3d/objects/A3D2OmniLight.as delete mode 100644 src/versions/version2/a3d/objects/A3D2Skin.as delete mode 100644 src/versions/version2/a3d/objects/A3D2SpotLight.as delete mode 100644 src/versions/version2/a3d/objects/A3D2Sprite.as delete mode 100644 src/versions/version2/a3d/objects/A3D2Surface.as delete mode 100644 src/versions/version2/a3d/objects/A3D2Transform.as diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7a0a6fb --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "external/Alternativa3D"] + path = external/Alternativa3D + url = https://github.com/AlternativaPlatform/Alternativa3D diff --git a/asconfig.json b/asconfig.json index dccb58d..1ff58f3 100644 --- a/asconfig.json +++ b/asconfig.json @@ -4,6 +4,9 @@ "source-path": [ "src" ], + "library-path": [ + "external/Alternativa3D/libs" + ], "output": "bin/tanki2.swf", "default-background-color": "#333333", "default-frame-rate": 100, diff --git a/asconfig.mobile.json b/asconfig.mobile.json index 083623a..7e1dca8 100644 --- a/asconfig.mobile.json +++ b/asconfig.mobile.json @@ -4,6 +4,9 @@ "source-path": [ "src" ], + "library-path": [ + "external/Alternativa3D/libs" + ], "output": "bin/tanki2.swf", "default-background-color": "#333333", "default-frame-rate": 60, diff --git a/external/Alternativa3D b/external/Alternativa3D new file mode 160000 index 0000000..91927df --- /dev/null +++ b/external/Alternativa3D @@ -0,0 +1 @@ +Subproject commit 91927dff32ef131c30a0b48fc44187bc91a639fd diff --git a/src/TanksTestingTool.as b/src/TanksTestingTool.as index 069074e..f32e5ef 100644 --- a/src/TanksTestingTool.as +++ b/src/TanksTestingTool.as @@ -39,7 +39,7 @@ package import flash.events.FullScreenEvent; import flash.events.KeyboardEvent; import flash.ui.Keyboard; - import platform.client.a3d.osgi.Activator; + import platform.client.formats.a3d.osgi.Activator; import platform.clients.fp10.libraries.alternativaprotocol.Activator; import tankshudDemo.TanksHudDemo; @@ -186,7 +186,7 @@ package this.name_nZ.start(this,new Properties(loaderInfo.parameters),new Vector.(),new ConnectionParameters(null,null,null),new Vector.()); new ProtocolActivator().start(OSGi.getInstance()); new platform.clients.fp10.libraries.alternativaprotocol.Activator().start(OSGi.getInstance()); - new platform.client.a3d.osgi.Activator().start(OSGi.getInstance()); + new platform.client.formats.a3d.osgi.Activator().start(OSGi.getInstance()); } private function initConsole() : void diff --git a/src/_codec/VectorCodecStringLevel1.as b/src/_codec/VectorCodecStringLevel1.as deleted file mode 100644 index fefb15f..0000000 --- a/src/_codec/VectorCodecStringLevel1.as +++ /dev/null @@ -1,58 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - - public class VectorCodecStringLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecStringLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(String,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = String(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/VectorCodecStringLevel2.as b/src/_codec/VectorCodecStringLevel2.as deleted file mode 100644 index b551dbf..0000000 --- a/src/_codec/VectorCodecStringLevel2.as +++ /dev/null @@ -1,88 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - - public class VectorCodecStringLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecStringLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(String,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = String(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodecStringLevel3.as b/src/_codec/VectorCodecStringLevel3.as deleted file mode 100644 index df3b490..0000000 --- a/src/_codec/VectorCodecStringLevel3.as +++ /dev/null @@ -1,118 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - - public class VectorCodecStringLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecStringLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(String,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = String(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodecbyteLevel1.as b/src/_codec/VectorCodecbyteLevel1.as deleted file mode 100644 index 089d739..0000000 --- a/src/_codec/VectorCodecbyteLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Byte; - - public class VectorCodecbyteLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecbyteLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Byte,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = int(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/VectorCodecbyteLevel2.as b/src/_codec/VectorCodecbyteLevel2.as deleted file mode 100644 index 1fe8a46..0000000 --- a/src/_codec/VectorCodecbyteLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Byte; - - public class VectorCodecbyteLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecbyteLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Byte,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = int(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodecbyteLevel3.as b/src/_codec/VectorCodecbyteLevel3.as deleted file mode 100644 index fe90383..0000000 --- a/src/_codec/VectorCodecbyteLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Byte; - - public class VectorCodecbyteLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecbyteLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Byte,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = int(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodecfloatLevel1.as b/src/_codec/VectorCodecfloatLevel1.as deleted file mode 100644 index 6ed5804..0000000 --- a/src/_codec/VectorCodecfloatLevel1.as +++ /dev/null @@ -1,60 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - - public class VectorCodecfloatLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecfloatLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Float,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = Number(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var value:Number = NaN; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/VectorCodecfloatLevel2.as b/src/_codec/VectorCodecfloatLevel2.as deleted file mode 100644 index a01501a..0000000 --- a/src/_codec/VectorCodecfloatLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - - public class VectorCodecfloatLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecfloatLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Float,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = Number(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodecfloatLevel3.as b/src/_codec/VectorCodecfloatLevel3.as deleted file mode 100644 index ae6fb24..0000000 --- a/src/_codec/VectorCodecfloatLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - - public class VectorCodecfloatLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecfloatLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Float,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = Number(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodecintLevel1.as b/src/_codec/VectorCodecintLevel1.as deleted file mode 100644 index 164373e..0000000 --- a/src/_codec/VectorCodecintLevel1.as +++ /dev/null @@ -1,58 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - - public class VectorCodecintLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecintLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(int,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = int(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/VectorCodecintLevel2.as b/src/_codec/VectorCodecintLevel2.as deleted file mode 100644 index b565120..0000000 --- a/src/_codec/VectorCodecintLevel2.as +++ /dev/null @@ -1,88 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - - public class VectorCodecintLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecintLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(int,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = int(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodecintLevel3.as b/src/_codec/VectorCodecintLevel3.as deleted file mode 100644 index 6ea28a7..0000000 --- a/src/_codec/VectorCodecintLevel3.as +++ /dev/null @@ -1,118 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - - public class VectorCodecintLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecintLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(int,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = int(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodeclongLevel1.as b/src/_codec/VectorCodeclongLevel1.as deleted file mode 100644 index df67138..0000000 --- a/src/_codec/VectorCodeclongLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Long; - - public class VectorCodeclongLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Long,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = Long(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/VectorCodeclongLevel2.as b/src/_codec/VectorCodeclongLevel2.as deleted file mode 100644 index f2aa676..0000000 --- a/src/_codec/VectorCodeclongLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Long; - - public class VectorCodeclongLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Long,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = Long(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodeclongLevel3.as b/src/_codec/VectorCodeclongLevel3.as deleted file mode 100644 index 09a0f04..0000000 --- a/src/_codec/VectorCodeclongLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Long; - - public class VectorCodeclongLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Long,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = Long(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodecshortLevel1.as b/src/_codec/VectorCodecshortLevel1.as deleted file mode 100644 index 68f5839..0000000 --- a/src/_codec/VectorCodecshortLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Short; - - public class VectorCodecshortLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecshortLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Short,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = int(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/VectorCodecshortLevel2.as b/src/_codec/VectorCodecshortLevel2.as deleted file mode 100644 index 5c005f4..0000000 --- a/src/_codec/VectorCodecshortLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Short; - - public class VectorCodecshortLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecshortLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Short,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = int(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/VectorCodecshortLevel3.as b/src/_codec/VectorCodecshortLevel3.as deleted file mode 100644 index 76712b9..0000000 --- a/src/_codec/VectorCodecshortLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Short; - - public class VectorCodecshortLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecshortLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Short,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = int(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/commons/CodecA3DMatrix.as b/src/_codec/commons/CodecA3DMatrix.as deleted file mode 100644 index 2ea5fa4..0000000 --- a/src/_codec/commons/CodecA3DMatrix.as +++ /dev/null @@ -1,113 +0,0 @@ -package _codec.commons -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import commons.A3DMatrix; - - public class CodecA3DMatrix implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Bx:ICodec; - - private var name_Qh:ICodec; - - private var name_ir:ICodec; - - private var name_p:ICodec; - - private var name_Kw:ICodec; - - private var name_PP:ICodec; - - private var name_e7:ICodec; - - private var name_QE:ICodec; - - private var name_SL:ICodec; - - private var name_for:ICodec; - - private var name_Hb:ICodec; - - private var name_3B:ICodec; - - public function CodecA3DMatrix() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Bx = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_Qh = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_ir = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_p = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_Kw = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_PP = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_e7 = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_QE = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_SL = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_for = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_Hb = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_3B = protocol.getCodec(new TypeCodecInfo(Float,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_a:Number = Number(this.name_Bx.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","a",value_a); - var value_b:Number = Number(this.name_Qh.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","b",value_b); - var value_c:Number = Number(this.name_ir.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","c",value_c); - var value_d:Number = Number(this.name_p.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","d",value_d); - var value_e:Number = Number(this.name_Kw.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","e",value_e); - var value_f:Number = Number(this.name_PP.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","f",value_f); - var value_g:Number = Number(this.name_e7.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","g",value_g); - var value_h:Number = Number(this.name_QE.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","h",value_h); - var value_i:Number = Number(this.name_SL.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","i",value_i); - var value_j:Number = Number(this.name_for.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","j",value_j); - var value_k:Number = Number(this.name_Hb.decode(protocolBuffer) as Number); - log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","k",value_k); - var value_l:Number = Number(this.name_3B.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DMatrix = A3DMatrix(object); - this.name_Bx.encode(protocolBuffer,struct.a); - this.name_Qh.encode(protocolBuffer,struct.b); - this.name_ir.encode(protocolBuffer,struct.c); - this.name_p.encode(protocolBuffer,struct.d); - this.name_Kw.encode(protocolBuffer,struct.e); - this.name_PP.encode(protocolBuffer,struct.f); - this.name_e7.encode(protocolBuffer,struct.g); - this.name_QE.encode(protocolBuffer,struct.h); - this.name_SL.encode(protocolBuffer,struct.i); - this.name_for.encode(protocolBuffer,struct.j); - this.name_Hb.encode(protocolBuffer,struct.k); - this.name_3B.encode(protocolBuffer,struct.l); - } - } -} - diff --git a/src/_codec/commons/CodecId.as b/src/_codec/commons/CodecId.as deleted file mode 100644 index b3ecd35..0000000 --- a/src/_codec/commons/CodecId.as +++ /dev/null @@ -1,46 +0,0 @@ -package _codec.commons -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import commons.Id; - - public class CodecId implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_2o:ICodec; - - public function CodecId() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_2o = protocol.getCodec(new TypeCodecInfo(uint,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:uint = uint(this.name_2o.decode(protocolBuffer) as uint); - log.log("codec","struct %1 field %2 value %3","commons.Id","id",value_id); - return new Id(value_id); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:Id = Id(object); - this.name_2o.encode(protocolBuffer,struct.id); - } - } -} - diff --git a/src/_codec/commons/VectorCodecA3DMatrixLevel1.as b/src/_codec/commons/VectorCodecA3DMatrixLevel1.as deleted file mode 100644 index 11b7f49..0000000 --- a/src/_codec/commons/VectorCodecA3DMatrixLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.commons -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import commons.A3DMatrix; - - public class VectorCodecA3DMatrixLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMatrixLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DMatrix(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/commons/VectorCodecA3DMatrixLevel2.as b/src/_codec/commons/VectorCodecA3DMatrixLevel2.as deleted file mode 100644 index 6b2cd10..0000000 --- a/src/_codec/commons/VectorCodecA3DMatrixLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.commons -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import commons.A3DMatrix; - - public class VectorCodecA3DMatrixLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMatrixLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DMatrix(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/commons/VectorCodecA3DMatrixLevel3.as b/src/_codec/commons/VectorCodecA3DMatrixLevel3.as deleted file mode 100644 index 857dafa..0000000 --- a/src/_codec/commons/VectorCodecA3DMatrixLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.commons -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import commons.A3DMatrix; - - public class VectorCodecA3DMatrixLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMatrixLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DMatrix(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/commons/VectorCodecIdLevel1.as b/src/_codec/commons/VectorCodecIdLevel1.as deleted file mode 100644 index c98389a..0000000 --- a/src/_codec/commons/VectorCodecIdLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.commons -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import commons.Id; - - public class VectorCodecIdLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecIdLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Id,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = Id(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/commons/VectorCodecIdLevel2.as b/src/_codec/commons/VectorCodecIdLevel2.as deleted file mode 100644 index 6061bc6..0000000 --- a/src/_codec/commons/VectorCodecIdLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.commons -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import commons.Id; - - public class VectorCodecIdLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecIdLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Id,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = Id(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/commons/VectorCodecIdLevel3.as b/src/_codec/commons/VectorCodecIdLevel3.as deleted file mode 100644 index 5818f97..0000000 --- a/src/_codec/commons/VectorCodecIdLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.commons -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import commons.Id; - - public class VectorCodecIdLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecIdLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(Id,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = Id(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/unsigned/VectorCodecintLevel1.as b/src/_codec/unsigned/VectorCodecintLevel1.as deleted file mode 100644 index a5af3e7..0000000 --- a/src/_codec/unsigned/VectorCodecintLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.unsigned -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.UShort; - - public class VectorCodecintLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecintLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(UShort,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = uint(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/unsigned/VectorCodecintLevel2.as b/src/_codec/unsigned/VectorCodecintLevel2.as deleted file mode 100644 index a11c1fd..0000000 --- a/src/_codec/unsigned/VectorCodecintLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.unsigned -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.UShort; - - public class VectorCodecintLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecintLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(UShort,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = uint(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/unsigned/VectorCodecintLevel3.as b/src/_codec/unsigned/VectorCodecintLevel3.as deleted file mode 100644 index 4c513c7..0000000 --- a/src/_codec/unsigned/VectorCodecintLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.unsigned -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.UShort; - - public class VectorCodecintLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecintLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(UShort,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = uint(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/unsigned/VectorCodeclongLevel1.as b/src/_codec/unsigned/VectorCodeclongLevel1.as deleted file mode 100644 index 694a3be..0000000 --- a/src/_codec/unsigned/VectorCodeclongLevel1.as +++ /dev/null @@ -1,58 +0,0 @@ -package _codec.unsigned -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - - public class VectorCodeclongLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(uint,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = uint(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/unsigned/VectorCodeclongLevel2.as b/src/_codec/unsigned/VectorCodeclongLevel2.as deleted file mode 100644 index 813b6d5..0000000 --- a/src/_codec/unsigned/VectorCodeclongLevel2.as +++ /dev/null @@ -1,88 +0,0 @@ -package _codec.unsigned -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - - public class VectorCodeclongLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(uint,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = uint(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/unsigned/VectorCodeclongLevel3.as b/src/_codec/unsigned/VectorCodeclongLevel3.as deleted file mode 100644 index 8d84b14..0000000 --- a/src/_codec/unsigned/VectorCodeclongLevel3.as +++ /dev/null @@ -1,118 +0,0 @@ -package _codec.unsigned -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - - public class VectorCodeclongLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodeclongLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(uint,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = uint(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/unsigned/VectorCodecshortLevel1.as b/src/_codec/unsigned/VectorCodecshortLevel1.as deleted file mode 100644 index 54e2907..0000000 --- a/src/_codec/unsigned/VectorCodecshortLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.unsigned -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.UByte; - - public class VectorCodecshortLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecshortLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(UByte,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = uint(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/unsigned/VectorCodecshortLevel2.as b/src/_codec/unsigned/VectorCodecshortLevel2.as deleted file mode 100644 index 0028219..0000000 --- a/src/_codec/unsigned/VectorCodecshortLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.unsigned -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.UByte; - - public class VectorCodecshortLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecshortLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(UByte,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = uint(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/unsigned/VectorCodecshortLevel3.as b/src/_codec/unsigned/VectorCodecshortLevel3.as deleted file mode 100644 index 3f13710..0000000 --- a/src/_codec/unsigned/VectorCodecshortLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.unsigned -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.UByte; - - public class VectorCodecshortLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecshortLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(UByte,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = uint(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/CodecA3D.as b/src/_codec/versions/version1/a3d/CodecA3D.as deleted file mode 100644 index a5cc469..0000000 --- a/src/_codec/versions/version1/a3d/CodecA3D.as +++ /dev/null @@ -1,83 +0,0 @@ -package _codec.versions.version1.a3d -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.A3D; - import versions.version1.a3d.geometry.A3DGeometry; - import versions.version1.a3d.materials.A3DImage; - import versions.version1.a3d.materials.A3DMap; - import versions.version1.a3d.materials.A3DMaterial; - import versions.version1.a3d.objects.A3DBox; - import versions.version1.a3d.objects.A3DObject; - - public class CodecA3D implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_EA:ICodec; - - private var name_PA:ICodec; - - private var name_Sd:ICodec; - - private var name_dB:ICodec; - - private var name_77:ICodec; - - private var name_1x:ICodec; - - public function CodecA3D() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_EA = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1)); - this.name_PA = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1)); - this.name_Sd = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1)); - this.name_dB = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1)); - this.name_77 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1)); - this.name_1x = 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. = this.name_EA.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","boxes",value_boxes); - var value_geometries:Vector. = this.name_PA.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","geometries",value_geometries); - var value_images:Vector. = this.name_Sd.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","images",value_images); - var value_maps:Vector. = this.name_dB.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","maps",value_maps); - var value_materials:Vector. = this.name_77.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","materials",value_materials); - var value_objects:Vector. = this.name_1x.decode(protocolBuffer) as Vector.; - 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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D = A3D(object); - this.name_EA.encode(protocolBuffer,struct.boxes); - this.name_PA.encode(protocolBuffer,struct.geometries); - this.name_Sd.encode(protocolBuffer,struct.images); - this.name_dB.encode(protocolBuffer,struct.maps); - this.name_77.encode(protocolBuffer,struct.materials); - this.name_1x.encode(protocolBuffer,struct.objects); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel1.as b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel1.as deleted file mode 100644 index 22781cf..0000000 --- a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.A3D; - - public class VectorCodecA3DLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as deleted file mode 100644 index 10d9175..0000000 --- a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.A3D; - - public class VectorCodecA3DLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as deleted file mode 100644 index 3a60bee..0000000 --- a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.A3D; - - public class VectorCodecA3DLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as deleted file mode 100644 index 9ab734c..0000000 --- a/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as +++ /dev/null @@ -1,62 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import commons.Id; - import versions.version1.a3d.geometry.A3DGeometry; - import versions.version1.a3d.geometry.A3DIndexBuffer; - import versions.version1.a3d.geometry.A3DVertexBuffer; - - public class CodecA3DGeometry implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_2o:ICodec; - - private var name_XF:ICodec; - - private var name_U9:ICodec; - - public function CodecA3DGeometry() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); - this.name_XF = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,true)); - this.name_U9 = 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.name_2o.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.name_XF.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. = this.name_U9.decode(protocolBuffer) as Vector.; - 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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DGeometry = A3DGeometry(object); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_XF.encode(protocolBuffer,struct.indexBuffer); - this.name_U9.encode(protocolBuffer,struct.vertexBuffers); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as deleted file mode 100644 index 10506c8..0000000 --- a/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as +++ /dev/null @@ -1,53 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import flash.utils.ByteArray; - import versions.version1.a3d.geometry.A3DIndexBuffer; - - public class CodecA3DIndexBuffer implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_GN:ICodec; - - private var name_mz:ICodec; - - public function CodecA3DIndexBuffer() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_GN = protocol.getCodec(new TypeCodecInfo(ByteArray,true)); - this.name_mz = protocol.getCodec(new TypeCodecInfo(int,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_byteBuffer:ByteArray = this.name_GN.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.name_mz.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DIndexBuffer = A3DIndexBuffer(object); - this.name_GN.encode(protocolBuffer,struct.byteBuffer); - this.name_mz.encode(protocolBuffer,struct.indexCount); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as deleted file mode 100644 index eb2116f..0000000 --- a/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as +++ /dev/null @@ -1,62 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Byte; - import alternativa.types.UShort; - import flash.utils.ByteArray; - import versions.version1.a3d.geometry.A3DVertexBuffer; - - public class CodecA3DVertexBuffer implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Lj:ICodec; - - private var name_GN:ICodec; - - private var name_hc:ICodec; - - public function CodecA3DVertexBuffer() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Lj = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1)); - this.name_GN = protocol.getCodec(new TypeCodecInfo(ByteArray,true)); - this.name_hc = protocol.getCodec(new TypeCodecInfo(UShort,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_attributes:Vector. = this.name_Lj.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","attributes",value_attributes); - var value_byteBuffer:ByteArray = this.name_GN.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.name_hc.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DVertexBuffer = A3DVertexBuffer(object); - this.name_Lj.encode(protocolBuffer,struct.attributes); - this.name_GN.encode(protocolBuffer,struct.byteBuffer); - this.name_hc.encode(protocolBuffer,struct.vertexCount); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel1.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel1.as deleted file mode 100644 index f83b135..0000000 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.geometry.A3DGeometry; - - public class VectorCodecA3DGeometryLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DGeometryLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DGeometry,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DGeometry(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as deleted file mode 100644 index ed0a0a9..0000000 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.geometry.A3DGeometry; - - public class VectorCodecA3DGeometryLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DGeometryLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DGeometry,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DGeometry(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as deleted file mode 100644 index e64e2d3..0000000 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.geometry.A3DGeometry; - - public class VectorCodecA3DGeometryLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DGeometryLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DGeometry,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DGeometry(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel1.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel1.as deleted file mode 100644 index 506c591..0000000 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.geometry.A3DIndexBuffer; - - public class VectorCodecA3DIndexBufferLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DIndexBufferLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DIndexBuffer(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as deleted file mode 100644 index 13f8fcf..0000000 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.geometry.A3DIndexBuffer; - - public class VectorCodecA3DIndexBufferLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DIndexBufferLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DIndexBuffer(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as deleted file mode 100644 index 9174964..0000000 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.geometry.A3DIndexBuffer; - - public class VectorCodecA3DIndexBufferLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DIndexBufferLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DIndexBuffer(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel1.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel1.as deleted file mode 100644 index 30461aa..0000000 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.geometry.A3DVertexBuffer; - - public class VectorCodecA3DVertexBufferLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DVertexBufferLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DVertexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DVertexBuffer(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as deleted file mode 100644 index d2da6f8..0000000 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.geometry.A3DVertexBuffer; - - public class VectorCodecA3DVertexBufferLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DVertexBufferLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DVertexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DVertexBuffer(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as deleted file mode 100644 index 68aa047..0000000 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.geometry.A3DVertexBuffer; - - public class VectorCodecA3DVertexBufferLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DVertexBufferLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DVertexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DVertexBuffer(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/id/CodecParentId.as b/src/_codec/versions/version1/a3d/id/CodecParentId.as deleted file mode 100644 index 38cf626..0000000 --- a/src/_codec/versions/version1/a3d/id/CodecParentId.as +++ /dev/null @@ -1,46 +0,0 @@ -package _codec.versions.version1.a3d.id -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.id.ParentId; - - public class CodecParentId implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_2o:ICodec; - - public function CodecParentId() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_2o = protocol.getCodec(new TypeCodecInfo(uint,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:uint = uint(this.name_2o.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:ParentId = ParentId(object); - this.name_2o.encode(protocolBuffer,struct.id); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel1.as b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel1.as deleted file mode 100644 index d38c018..0000000 --- a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.id -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.id.ParentId; - - public class VectorCodecParentIdLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecParentIdLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(ParentId,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = ParentId(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as deleted file mode 100644 index 794a485..0000000 --- a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.id -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.id.ParentId; - - public class VectorCodecParentIdLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecParentIdLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(ParentId,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = ParentId(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as deleted file mode 100644 index 6128583..0000000 --- a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.id -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.id.ParentId; - - public class VectorCodecParentIdLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecParentIdLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(ParentId,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = ParentId(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as b/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as deleted file mode 100644 index a2e6ecd..0000000 --- a/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as +++ /dev/null @@ -1,53 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import commons.Id; - import versions.version1.a3d.materials.A3DImage; - - public class CodecA3DImage implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_2o:ICodec; - - private var name_aV:ICodec; - - public function CodecA3DImage() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - 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.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.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DImage = A3DImage(object); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_aV.encode(protocolBuffer,struct.url); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as b/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as deleted file mode 100644 index 09ae04f..0000000 --- a/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as +++ /dev/null @@ -1,85 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import alternativa.types.UShort; - import commons.Id; - import versions.version1.a3d.materials.A3DMap; - - public class CodecA3DMap implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_mC:ICodec; - - private var name_2o:ICodec; - - private var name_2N:ICodec; - - private var name_K5:ICodec; - - private var name_Q5:ICodec; - - private var name_WH:ICodec; - - private var name_kh:ICodec; - - public function CodecA3DMap() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - 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.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.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.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.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.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.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.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DMap = A3DMap(object); - 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); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as b/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as deleted file mode 100644 index f1088a0..0000000 --- a/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as +++ /dev/null @@ -1,83 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import commons.Id; - import versions.version1.a3d.materials.A3DMaterial; - - public class CodecA3DMaterial implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_9A:ICodec; - - private var name_hw:ICodec; - - private var name_2o:ICodec; - - private var name_Hu:ICodec; - - private var name_GK:ICodec; - - private var name_LZ:ICodec; - - private var name_FU:ICodec; - - public function CodecA3DMaterial() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - 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.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.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.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.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.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.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.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DMaterial = A3DMaterial(object); - 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); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel1.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel1.as deleted file mode 100644 index db15e6f..0000000 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.materials.A3DImage; - - public class VectorCodecA3DImageLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DImageLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DImage,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DImage(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as deleted file mode 100644 index 7346c97..0000000 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.materials.A3DImage; - - public class VectorCodecA3DImageLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DImageLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DImage,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DImage(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as deleted file mode 100644 index cf08496..0000000 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.materials.A3DImage; - - public class VectorCodecA3DImageLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DImageLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DImage,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DImage(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel1.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel1.as deleted file mode 100644 index eca0122..0000000 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.materials.A3DMap; - - public class VectorCodecA3DMapLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMapLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMap,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DMap(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as deleted file mode 100644 index dc513cb..0000000 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.materials.A3DMap; - - public class VectorCodecA3DMapLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMapLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMap,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DMap(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as deleted file mode 100644 index 3c0f9d2..0000000 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.materials.A3DMap; - - public class VectorCodecA3DMapLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMapLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMap,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DMap(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel1.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel1.as deleted file mode 100644 index db0b7de..0000000 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.materials.A3DMaterial; - - public class VectorCodecA3DMaterialLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMaterialLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMaterial,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DMaterial(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as deleted file mode 100644 index 957b471..0000000 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.materials.A3DMaterial; - - public class VectorCodecA3DMaterialLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMaterialLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMaterial,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DMaterial(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as deleted file mode 100644 index 3918a09..0000000 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.materials.A3DMaterial; - - public class VectorCodecA3DMaterialLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DMaterialLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMaterial,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DMaterial(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as b/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as deleted file mode 100644 index 4509a9d..0000000 --- a/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as +++ /dev/null @@ -1,55 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import commons.Id; - import versions.version1.a3d.objects.A3DBox; - - public class CodecA3DBox implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_pM:ICodec; - - private var name_2o:ICodec; - - public function CodecA3DBox() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - 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. = this.name_pM.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","box",value_box); - 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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DBox = A3DBox(object); - this.name_pM.encode(protocolBuffer,struct.box); - this.name_2o.encode(protocolBuffer,struct.id); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as b/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as deleted file mode 100644 index 5f0a154..0000000 --- a/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as +++ /dev/null @@ -1,93 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import commons.Id; - import versions.version1.a3d.id.ParentId; - import versions.version1.a3d.objects.A3DObject; - import versions.version1.a3d.objects.A3DSurface; - import versions.version1.a3d.objects.A3DTransformation; - - public class CodecA3DObject implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Dh:ICodec; - - private var name_e:ICodec; - - private var name_2o:ICodec; - - private var name_XW:ICodec; - - private var name_jk:ICodec; - - private var name_Qr:ICodec; - - private var name_9u:ICodec; - - private var name_h9:ICodec; - - public function CodecA3DObject() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Dh = protocol.getCodec(new TypeCodecInfo(Id,true)); - this.name_e = protocol.getCodec(new TypeCodecInfo(Id,true)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); - this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); - this.name_jk = protocol.getCodec(new TypeCodecInfo(ParentId,true)); - this.name_Qr = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1)); - this.name_9u = protocol.getCodec(new TypeCodecInfo(A3DTransformation,true)); - this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,true)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boundBoxId:Id = this.name_Dh.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.name_e.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.name_2o.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.name_XW.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.name_jk.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. = this.name_Qr.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","surfaces",value_surfaces); - var value_transformation:A3DTransformation = this.name_9u.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.name_h9.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DObject = A3DObject(object); - this.name_Dh.encode(protocolBuffer,struct.boundBoxId); - this.name_e.encode(protocolBuffer,struct.geometryId); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_XW.encode(protocolBuffer,struct.name); - this.name_jk.encode(protocolBuffer,struct.parentId); - this.name_Qr.encode(protocolBuffer,struct.surfaces); - this.name_9u.encode(protocolBuffer,struct.transformation); - this.name_h9.encode(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as b/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as deleted file mode 100644 index 3315299..0000000 --- a/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import commons.Id; - import versions.version1.a3d.objects.A3DSurface; - - public class CodecA3DSurface implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_AL:ICodec; - - private var name_Av:ICodec; - - private var name_pJ:ICodec; - - public function CodecA3DSurface() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_AL = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_Av = protocol.getCodec(new TypeCodecInfo(Id,true)); - this.name_pJ = protocol.getCodec(new TypeCodecInfo(int,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_indexBegin:int = int(this.name_AL.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.name_Av.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.name_pJ.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DSurface = A3DSurface(object); - this.name_AL.encode(protocolBuffer,struct.indexBegin); - this.name_Av.encode(protocolBuffer,struct.materialId); - this.name_pJ.encode(protocolBuffer,struct.numTriangles); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as b/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as deleted file mode 100644 index 362c3b1..0000000 --- a/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as +++ /dev/null @@ -1,47 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import commons.A3DMatrix; - import versions.version1.a3d.objects.A3DTransformation; - - public class CodecA3DTransformation implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_dG:ICodec; - - public function CodecA3DTransformation() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_dG = protocol.getCodec(new TypeCodecInfo(A3DMatrix,true)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_matrix:A3DMatrix = this.name_dG.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3DTransformation = A3DTransformation(object); - this.name_dG.encode(protocolBuffer,struct.matrix); - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel1.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel1.as deleted file mode 100644 index 1b6d3fa..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DBox; - - public class VectorCodecA3DBoxLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DBoxLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DBox,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DBox(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as deleted file mode 100644 index c7ac597..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DBox; - - public class VectorCodecA3DBoxLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DBoxLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DBox,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DBox(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as deleted file mode 100644 index deed591..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DBox; - - public class VectorCodecA3DBoxLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DBoxLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DBox,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DBox(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel1.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel1.as deleted file mode 100644 index 56f70a4..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DObject; - - public class VectorCodecA3DObjectLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DObjectLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DObject,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DObject(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as deleted file mode 100644 index aa06983..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DObject; - - public class VectorCodecA3DObjectLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DObjectLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DObject,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DObject(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as deleted file mode 100644 index 5a4391c..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DObject; - - public class VectorCodecA3DObjectLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DObjectLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DObject,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DObject(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel1.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel1.as deleted file mode 100644 index ebe93f9..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DSurface; - - public class VectorCodecA3DSurfaceLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DSurfaceLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DSurface,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DSurface(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as deleted file mode 100644 index eacc9d3..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DSurface; - - public class VectorCodecA3DSurfaceLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DSurfaceLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DSurface,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DSurface(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as deleted file mode 100644 index 187deeb..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DSurface; - - public class VectorCodecA3DSurfaceLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DSurfaceLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DSurface,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DSurface(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel1.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel1.as deleted file mode 100644 index 0a3c065..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DTransformation; - - public class VectorCodecA3DTransformationLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DTransformationLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DTransformation,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3DTransformation(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as deleted file mode 100644 index 5f5cee8..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DTransformation; - - public class VectorCodecA3DTransformationLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DTransformationLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DTransformation,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3DTransformation(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as deleted file mode 100644 index 824a99a..0000000 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version1.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version1.a3d.objects.A3DTransformation; - - public class VectorCodecA3DTransformationLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3DTransformationLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DTransformation,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3DTransformation(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/CodecA3D2.as b/src/_codec/versions/version2/a3d/CodecA3D2.as deleted file mode 100644 index 2605c79..0000000 --- a/src/_codec/versions/version2/a3d/CodecA3D2.as +++ /dev/null @@ -1,174 +0,0 @@ -package _codec.versions.version2.a3d -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.A3D2; - import versions.version2.a3d.animation.A3D2AnimationClip; - import versions.version2.a3d.animation.A3D2Track; - import versions.version2.a3d.geometry.A3D2IndexBuffer; - import versions.version2.a3d.geometry.A3D2VertexBuffer; - import versions.version2.a3d.materials.A3D2CubeMap; - import versions.version2.a3d.materials.A3D2Image; - import versions.version2.a3d.materials.A3D2Map; - import versions.version2.a3d.materials.A3D2Material; - import versions.version2.a3d.objects.A3D2AmbientLight; - import versions.version2.a3d.objects.A3D2Box; - import versions.version2.a3d.objects.A3D2Decal; - import versions.version2.a3d.objects.A3D2DirectionalLight; - import versions.version2.a3d.objects.A3D2Joint; - import versions.version2.a3d.objects.A3D2Mesh; - import versions.version2.a3d.objects.A3D2Object; - import versions.version2.a3d.objects.A3D2OmniLight; - import versions.version2.a3d.objects.A3D2Skin; - import versions.version2.a3d.objects.A3D2SpotLight; - import versions.version2.a3d.objects.A3D2Sprite; - - public class CodecA3D2 implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_8X:ICodec; - - private var name_Fa:ICodec; - - private var name_Aj:ICodec; - - private var name_EA:ICodec; - - private var name_lJ:ICodec; - - private var name_9f:ICodec; - - private var name_GC:ICodec; - - private var name_Sd:ICodec; - - private var name_76:ICodec; - - private var name_3f:ICodec; - - private var name_dB:ICodec; - - private var name_77:ICodec; - - private var name_PJ:ICodec; - - private var name_1x:ICodec; - - private var name_aP:ICodec; - - private var name_e9:ICodec; - - private var name_3y:ICodec; - - private var name_E2:ICodec; - - private var name_U9:ICodec; - - public function CodecA3D2() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_8X = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1)); - this.name_Fa = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1)); - this.name_Aj = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1)); - this.name_EA = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1)); - this.name_lJ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1)); - this.name_9f = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1)); - this.name_GC = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1)); - this.name_Sd = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1)); - this.name_76 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1)); - this.name_3f = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1)); - this.name_dB = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1)); - this.name_77 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1)); - this.name_PJ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1)); - this.name_1x = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1)); - this.name_aP = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1)); - this.name_e9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1)); - this.name_3y = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1)); - this.name_E2 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1)); - this.name_U9 = 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. = this.name_8X.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","ambientLights",value_ambientLights); - var value_animationClips:Vector. = this.name_Fa.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationClips",value_animationClips); - var value_animationTracks:Vector. = this.name_Aj.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationTracks",value_animationTracks); - var value_boxes:Vector. = this.name_EA.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","boxes",value_boxes); - var value_cubeMaps:Vector. = this.name_lJ.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","cubeMaps",value_cubeMaps); - var value_decals:Vector. = this.name_9f.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","decals",value_decals); - var value_directionalLights:Vector. = this.name_GC.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","directionalLights",value_directionalLights); - var value_images:Vector. = this.name_Sd.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","images",value_images); - var value_indexBuffers:Vector. = this.name_76.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","indexBuffers",value_indexBuffers); - var value_joints:Vector. = this.name_3f.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","joints",value_joints); - var value_maps:Vector. = this.name_dB.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","maps",value_maps); - var value_materials:Vector. = this.name_77.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","materials",value_materials); - var value_meshes:Vector. = this.name_PJ.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","meshes",value_meshes); - var value_objects:Vector. = this.name_1x.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","objects",value_objects); - var value_omniLights:Vector. = this.name_aP.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","omniLights",value_omniLights); - var value_skins:Vector. = this.name_e9.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","skins",value_skins); - var value_spotLights:Vector. = this.name_3y.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","spotLights",value_spotLights); - var value_sprites:Vector. = this.name_E2.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","sprites",value_sprites); - var value_vertexBuffers:Vector. = this.name_U9.decode(protocolBuffer) as Vector.; - 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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2 = A3D2(object); - this.name_8X.encode(protocolBuffer,struct.ambientLights); - this.name_Fa.encode(protocolBuffer,struct.animationClips); - this.name_Aj.encode(protocolBuffer,struct.animationTracks); - this.name_EA.encode(protocolBuffer,struct.boxes); - this.name_lJ.encode(protocolBuffer,struct.cubeMaps); - this.name_9f.encode(protocolBuffer,struct.decals); - this.name_GC.encode(protocolBuffer,struct.directionalLights); - this.name_Sd.encode(protocolBuffer,struct.images); - this.name_76.encode(protocolBuffer,struct.indexBuffers); - this.name_3f.encode(protocolBuffer,struct.joints); - this.name_dB.encode(protocolBuffer,struct.maps); - this.name_77.encode(protocolBuffer,struct.materials); - this.name_PJ.encode(protocolBuffer,struct.meshes); - this.name_1x.encode(protocolBuffer,struct.objects); - this.name_aP.encode(protocolBuffer,struct.omniLights); - this.name_e9.encode(protocolBuffer,struct.skins); - this.name_3y.encode(protocolBuffer,struct.spotLights); - this.name_E2.encode(protocolBuffer,struct.sprites); - this.name_U9.encode(protocolBuffer,struct.vertexBuffers); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level1.as b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level1.as deleted file mode 100644 index aa75112..0000000 --- a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.A3D2; - - public class VectorCodecA3D2Level1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2Level1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as deleted file mode 100644 index 26adce6..0000000 --- a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.A3D2; - - public class VectorCodecA3D2Level2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2Level2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as deleted file mode 100644 index 2266d27..0000000 --- a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.A3D2; - - public class VectorCodecA3D2Level3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2Level3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as deleted file mode 100644 index 09804c5..0000000 --- a/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as +++ /dev/null @@ -1,72 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Long; - import versions.version2.a3d.animation.A3D2AnimationClip; - - public class CodecA3D2AnimationClip implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_2o:ICodec; - - private var name_HX:ICodec; - - private var name_XW:ICodec; - - private var name_Td:ICodec; - - private var name_Z:ICodec; - - public function CodecA3D2AnimationClip() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_HX = protocol.getCodec(new TypeCodecInfo(Boolean,false)); - this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); - this.name_Td = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1)); - this.name_Z = 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.name_2o.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.name_HX.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.name_XW.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. = this.name_Td.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","objectIDs",value_objectIDs); - var value_tracks:Vector. = this.name_Z.decode(protocolBuffer) as Vector.; - 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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2AnimationClip = A3D2AnimationClip(object); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_HX.encode(protocolBuffer,struct.loop); - this.name_XW.encode(protocolBuffer,struct.name); - this.name_Td.encode(protocolBuffer,struct.objectIDs); - this.name_Z.encode(protocolBuffer,struct.tracks); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as deleted file mode 100644 index ffa1ce3..0000000 --- a/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as +++ /dev/null @@ -1,54 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import versions.version2.a3d.animation.A3D2Keyframe; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2Keyframe implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_dk:ICodec; - - private var name_S2:ICodec; - - public function CodecA3D2Keyframe() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_dk = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_time:Number = Number(this.name_dk.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.name_S2.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Keyframe = A3D2Keyframe(object); - this.name_dk.encode(protocolBuffer,struct.time); - this.name_S2.encode(protocolBuffer,struct.transform); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as deleted file mode 100644 index c645bdb..0000000 --- a/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as +++ /dev/null @@ -1,60 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2Keyframe; - import versions.version2.a3d.animation.A3D2Track; - - public class CodecA3D2Track implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_2o:ICodec; - - private var name_Ja:ICodec; - - private var name_Fo:ICodec; - - public function CodecA3D2Track() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_Ja = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1)); - this.name_Fo = protocol.getCodec(new TypeCodecInfo(String,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:int = int(this.name_2o.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. = this.name_Ja.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","keyframes",value_keyframes); - var value_objectName:String = this.name_Fo.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Track = A3D2Track(object); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_Ja.encode(protocolBuffer,struct.keyframes); - this.name_Fo.encode(protocolBuffer,struct.objectName); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel1.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel1.as deleted file mode 100644 index 1113741..0000000 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2AnimationClip; - - public class VectorCodecA3D2AnimationClipLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2AnimationClipLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AnimationClip,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2AnimationClip(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as deleted file mode 100644 index 0d49810..0000000 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2AnimationClip; - - public class VectorCodecA3D2AnimationClipLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2AnimationClipLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AnimationClip,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2AnimationClip(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as deleted file mode 100644 index e706a19..0000000 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2AnimationClip; - - public class VectorCodecA3D2AnimationClipLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2AnimationClipLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AnimationClip,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2AnimationClip(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel1.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel1.as deleted file mode 100644 index bf77f80..0000000 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2Keyframe; - - public class VectorCodecA3D2KeyframeLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2KeyframeLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Keyframe,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Keyframe(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as deleted file mode 100644 index 6861b67..0000000 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2Keyframe; - - public class VectorCodecA3D2KeyframeLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2KeyframeLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Keyframe,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Keyframe(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as deleted file mode 100644 index 44fc052..0000000 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2Keyframe; - - public class VectorCodecA3D2KeyframeLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2KeyframeLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Keyframe,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Keyframe(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel1.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel1.as deleted file mode 100644 index fc0737d..0000000 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2Track; - - public class VectorCodecA3D2TrackLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2TrackLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Track,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Track(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as deleted file mode 100644 index 2a0b7ca..0000000 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2Track; - - public class VectorCodecA3D2TrackLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2TrackLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Track,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Track(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as deleted file mode 100644 index 79bbbe3..0000000 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.animation -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.animation.A3D2Track; - - public class VectorCodecA3D2TrackLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2TrackLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Track,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Track(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as b/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as deleted file mode 100644 index f0a4b59..0000000 --- a/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import flash.utils.ByteArray; - import versions.version2.a3d.geometry.A3D2IndexBuffer; - - public class CodecA3D2IndexBuffer implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_GN:ICodec; - - private var name_2o:ICodec; - - private var name_mz:ICodec; - - public function CodecA3D2IndexBuffer() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_GN = protocol.getCodec(new TypeCodecInfo(ByteArray,false)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_mz = protocol.getCodec(new TypeCodecInfo(int,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_byteBuffer:ByteArray = this.name_GN.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.name_2o.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.name_mz.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2IndexBuffer = A3D2IndexBuffer(object); - this.name_GN.encode(protocolBuffer,struct.byteBuffer); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_mz.encode(protocolBuffer,struct.indexCount); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexAttributes.as b/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexAttributes.as deleted file mode 100644 index 4b4073d..0000000 --- a/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexAttributes.as +++ /dev/null @@ -1,54 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import versions.version2.a3d.geometry.A3D2VertexAttributes; - - public class CodecA3D2VertexAttributes implements ICodec - { - public function CodecA3D2VertexAttributes() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var result:A3D2VertexAttributes = null; - var value:int = int(protocolBuffer.reader.readInt()); - switch(value) - { - case 0: - result = A3D2VertexAttributes.POSITION; - break; - case 1: - result = A3D2VertexAttributes.NORMAL; - break; - case 2: - result = A3D2VertexAttributes.TANGENT4; - break; - case 3: - result = A3D2VertexAttributes.JOINT; - break; - case 4: - result = A3D2VertexAttributes.TEXCOORD; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var value:int = int(object.value); - protocolBuffer.writer.writeInt(value); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as b/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as deleted file mode 100644 index b4aeb59..0000000 --- a/src/_codec/versions/version2/a3d/geometry/CodecA3D2VertexBuffer.as +++ /dev/null @@ -1,69 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.EnumCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.UShort; - import flash.utils.ByteArray; - import versions.version2.a3d.geometry.A3D2VertexAttributes; - import versions.version2.a3d.geometry.A3D2VertexBuffer; - - public class CodecA3D2VertexBuffer implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Lj:ICodec; - - private var name_GN:ICodec; - - private var name_2o:ICodec; - - private var name_hc:ICodec; - - public function CodecA3D2VertexBuffer() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Lj = protocol.getCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1)); - this.name_GN = protocol.getCodec(new TypeCodecInfo(ByteArray,false)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_hc = protocol.getCodec(new TypeCodecInfo(UShort,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_attributes:Vector. = this.name_Lj.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","attributes",value_attributes); - var value_byteBuffer:ByteArray = this.name_GN.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.name_2o.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.name_hc.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2VertexBuffer = A3D2VertexBuffer(object); - this.name_Lj.encode(protocolBuffer,struct.attributes); - this.name_GN.encode(protocolBuffer,struct.byteBuffer); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_hc.encode(protocolBuffer,struct.vertexCount); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel1.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel1.as deleted file mode 100644 index 190dc90..0000000 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.geometry.A3D2IndexBuffer; - - public class VectorCodecA3D2IndexBufferLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2IndexBufferLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2IndexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2IndexBuffer(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as deleted file mode 100644 index 4e98f18..0000000 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.geometry.A3D2IndexBuffer; - - public class VectorCodecA3D2IndexBufferLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2IndexBufferLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2IndexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2IndexBuffer(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as deleted file mode 100644 index 9cf55eb..0000000 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.geometry.A3D2IndexBuffer; - - public class VectorCodecA3D2IndexBufferLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2IndexBufferLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2IndexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2IndexBuffer(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel1.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel1.as deleted file mode 100644 index 85feae5..0000000 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.EnumCodecInfo; - import versions.version2.a3d.geometry.A3D2VertexAttributes; - - public class VectorCodecA3D2VertexAttributesLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2VertexAttributesLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new EnumCodecInfo(A3D2VertexAttributes,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2VertexAttributes(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as deleted file mode 100644 index ba33285..0000000 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.EnumCodecInfo; - import versions.version2.a3d.geometry.A3D2VertexAttributes; - - public class VectorCodecA3D2VertexAttributesLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2VertexAttributesLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new EnumCodecInfo(A3D2VertexAttributes,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2VertexAttributes(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as deleted file mode 100644 index 20d37b7..0000000 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.EnumCodecInfo; - import versions.version2.a3d.geometry.A3D2VertexAttributes; - - public class VectorCodecA3D2VertexAttributesLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2VertexAttributesLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new EnumCodecInfo(A3D2VertexAttributes,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2VertexAttributes(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel1.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel1.as deleted file mode 100644 index 64025e2..0000000 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.geometry.A3D2VertexBuffer; - - public class VectorCodecA3D2VertexBufferLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2VertexBufferLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2VertexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2VertexBuffer(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as deleted file mode 100644 index 7a2aaf2..0000000 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.geometry.A3D2VertexBuffer; - - public class VectorCodecA3D2VertexBufferLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2VertexBufferLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2VertexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2VertexBuffer(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as deleted file mode 100644 index c166091..0000000 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.geometry -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.geometry.A3D2VertexBuffer; - - public class VectorCodecA3D2VertexBufferLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2VertexBufferLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2VertexBuffer,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2VertexBuffer(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as deleted file mode 100644 index 9a9dde4..0000000 --- a/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as +++ /dev/null @@ -1,82 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2CubeMap; - - public class CodecA3D2CubeMap implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Yc:ICodec; - - private var name_SV:ICodec; - - private var name_Ni:ICodec; - - private var name_2o:ICodec; - - private var name_nb:ICodec; - - private var name_23:ICodec; - - private var name_TW:ICodec; - - public function CodecA3D2CubeMap() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Yc = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_SV = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_Ni = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_nb = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_23 = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_TW = protocol.getCodec(new TypeCodecInfo(int,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_backId:int = int(this.name_Yc.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.name_SV.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.name_Ni.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.name_2o.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.name_nb.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.name_23.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.name_TW.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2CubeMap = A3D2CubeMap(object); - this.name_Yc.encode(protocolBuffer,struct.backId); - this.name_SV.encode(protocolBuffer,struct.bottomId); - this.name_Ni.encode(protocolBuffer,struct.frontId); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_nb.encode(protocolBuffer,struct.leftId); - this.name_23.encode(protocolBuffer,struct.rightId); - this.name_TW.encode(protocolBuffer,struct.topId); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as deleted file mode 100644 index 386ec2f..0000000 --- a/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as +++ /dev/null @@ -1,52 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Image; - - public class CodecA3D2Image implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_2o:ICodec; - - private var name_aV:ICodec; - - public function CodecA3D2Image() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_aV = protocol.getCodec(new TypeCodecInfo(String,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:int = int(this.name_2o.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.name_aV.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Image = A3D2Image(object); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_aV.encode(protocolBuffer,struct.url); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as deleted file mode 100644 index 947aa7c..0000000 --- a/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.UShort; - import versions.version2.a3d.materials.A3D2Map; - - public class CodecA3D2Map implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_mC:ICodec; - - private var name_2o:ICodec; - - private var name_2N:ICodec; - - public function CodecA3D2Map() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_mC = protocol.getCodec(new TypeCodecInfo(UShort,false)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_2N = protocol.getCodec(new TypeCodecInfo(int,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_channel:uint = uint(this.name_mC.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.name_2o.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.name_2N.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Map = A3D2Map(object); - this.name_mC.encode(protocolBuffer,struct.channel); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_2N.encode(protocolBuffer,struct.imageId); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as deleted file mode 100644 index 990eb81..0000000 --- a/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as +++ /dev/null @@ -1,88 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Material; - - public class CodecA3D2Material implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_9A:ICodec; - - private var name_hw:ICodec; - - private var name_2o:ICodec; - - private var name_Hu:ICodec; - - private var name_GK:ICodec; - - private var name_LZ:ICodec; - - private var name_bz:ICodec; - - private var name_FU:ICodec; - - public function CodecA3D2Material() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_9A = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_hw = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_Hu = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_GK = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_LZ = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_bz = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_FU = protocol.getCodec(new TypeCodecInfo(int,true)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_diffuseMapId:int = int(this.name_9A.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.name_hw.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.name_2o.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.name_Hu.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.name_GK.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.name_LZ.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.name_bz.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.name_FU.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Material = A3D2Material(object); - 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_bz.encode(protocolBuffer,struct.reflectionCubeMapId); - this.name_FU.encode(protocolBuffer,struct.specularMapId); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel1.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel1.as deleted file mode 100644 index 16bcc97..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2CubeMap; - - public class VectorCodecA3D2CubeMapLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2CubeMapLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2CubeMap,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2CubeMap(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as deleted file mode 100644 index 885cc9a..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2CubeMap; - - public class VectorCodecA3D2CubeMapLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2CubeMapLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2CubeMap,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2CubeMap(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as deleted file mode 100644 index ae5ecaa..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2CubeMap; - - public class VectorCodecA3D2CubeMapLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2CubeMapLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2CubeMap,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2CubeMap(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel1.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel1.as deleted file mode 100644 index 1ca0fca..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Image; - - public class VectorCodecA3D2ImageLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2ImageLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Image,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Image(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as deleted file mode 100644 index dac3560..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Image; - - public class VectorCodecA3D2ImageLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2ImageLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Image,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Image(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as deleted file mode 100644 index b14e521..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Image; - - public class VectorCodecA3D2ImageLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2ImageLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Image,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Image(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel1.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel1.as deleted file mode 100644 index 998f95a..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Map; - - public class VectorCodecA3D2MapLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MapLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Map,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Map(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as deleted file mode 100644 index 2e95810..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Map; - - public class VectorCodecA3D2MapLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MapLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Map,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Map(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as deleted file mode 100644 index 40a486f..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Map; - - public class VectorCodecA3D2MapLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MapLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Map,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Map(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel1.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel1.as deleted file mode 100644 index b05c3c1..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Material; - - public class VectorCodecA3D2MaterialLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MaterialLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Material,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Material(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as deleted file mode 100644 index dca0f29..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Material; - - public class VectorCodecA3D2MaterialLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MaterialLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Material,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Material(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as deleted file mode 100644 index 2adb01b..0000000 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.materials -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.materials.A3D2Material; - - public class VectorCodecA3D2MaterialLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MaterialLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Material,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Material(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as deleted file mode 100644 index bb10c85..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as +++ /dev/null @@ -1,91 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import alternativa.types.Long; - import versions.version2.a3d.objects.A3D2AmbientLight; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2AmbientLight implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Dh:ICodec; - - private var name_Po:ICodec; - - private var name_2o:ICodec; - - private var name_JX:ICodec; - - private var name_XW:ICodec; - - private var name_jk:ICodec; - - private var name_S2:ICodec; - - private var name_h9:ICodec; - - public function CodecA3D2AmbientLight() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - 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.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.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.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.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.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.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.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.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2AmbientLight = A3D2AmbientLight(object); - 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); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as deleted file mode 100644 index 0d250bd..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as +++ /dev/null @@ -1,54 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import versions.version2.a3d.objects.A3D2Box; - - public class CodecA3D2Box implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_pM:ICodec; - - private var name_2o:ICodec; - - public function CodecA3D2Box() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_pM = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_box:Vector. = this.name_pM.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","box",value_box); - var value_id:int = int(this.name_2o.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Box = A3D2Box(object); - this.name_pM.encode(protocolBuffer,struct.box); - this.name_2o.encode(protocolBuffer,struct.id); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as deleted file mode 100644 index 4105ecd..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as +++ /dev/null @@ -1,105 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import alternativa.types.Long; - import versions.version2.a3d.objects.A3D2Decal; - import versions.version2.a3d.objects.A3D2Surface; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2Decal implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Dh:ICodec; - - private var name_2o:ICodec; - - private var name_PO:ICodec; - - private var name_XW:ICodec; - - private var name_Zb:ICodec; - - private var name_jk:ICodec; - - private var name_Qr:ICodec; - - private var name_S2:ICodec; - - private var name_U9:ICodec; - - private var name_h9:ICodec; - - public function CodecA3D2Decal() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); - this.name_PO = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); - this.name_Zb = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); - this.name_Qr = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); - this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); - this.name_U9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); - 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.name_Dh.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.name_2o.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.name_PO.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.name_XW.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.name_Zb.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.name_jk.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. = this.name_Qr.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","surfaces",value_surfaces); - var value_transform:A3D2Transform = this.name_S2.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. = this.name_U9.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","vertexBuffers",value_vertexBuffers); - 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.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Decal = A3D2Decal(object); - this.name_Dh.encode(protocolBuffer,struct.boundBoxId); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_PO.encode(protocolBuffer,struct.indexBufferId); - this.name_XW.encode(protocolBuffer,struct.name); - this.name_Zb.encode(protocolBuffer,struct.offset); - this.name_jk.encode(protocolBuffer,struct.parentId); - this.name_Qr.encode(protocolBuffer,struct.surfaces); - this.name_S2.encode(protocolBuffer,struct.transform); - this.name_U9.encode(protocolBuffer,struct.vertexBuffers); - this.name_h9.encode(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as deleted file mode 100644 index ab10b21..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as +++ /dev/null @@ -1,91 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import alternativa.types.Long; - import versions.version2.a3d.objects.A3D2DirectionalLight; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2DirectionalLight implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Dh:ICodec; - - private var name_Po:ICodec; - - private var name_2o:ICodec; - - private var name_JX:ICodec; - - private var name_XW:ICodec; - - private var name_jk:ICodec; - - private var name_S2:ICodec; - - private var name_h9:ICodec; - - public function CodecA3D2DirectionalLight() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - 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.name_Dh.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.name_Po.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.name_2o.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.name_JX.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.name_XW.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.name_jk.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.name_S2.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.name_h9.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2DirectionalLight = A3D2DirectionalLight(object); - 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); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as deleted file mode 100644 index 82daf7c..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as +++ /dev/null @@ -1,78 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Long; - import versions.version2.a3d.objects.A3D2Joint; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2Joint implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Dh:ICodec; - - private var name_2o:ICodec; - - private var name_XW:ICodec; - - private var name_jk:ICodec; - - private var name_S2:ICodec; - - private var name_h9:ICodec; - - public function CodecA3D2Joint() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,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.name_Dh.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.name_2o.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.name_XW.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.name_jk.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.name_S2.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.name_h9.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Joint = A3D2Joint(object); - this.name_Dh.encode(protocolBuffer,struct.boundBoxId); - this.name_2o.encode(protocolBuffer,struct.id); - 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); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as deleted file mode 100644 index 7483114..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as +++ /dev/null @@ -1,54 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Long; - import versions.version2.a3d.objects.A3D2JointBindTransform; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2JointBindTransform implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Ov:ICodec; - - private var name_2o:ICodec; - - public function CodecA3D2JointBindTransform() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Ov = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_bindPoseTransform:A3D2Transform = this.name_Ov.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.name_2o.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2JointBindTransform = A3D2JointBindTransform(object); - this.name_Ov.encode(protocolBuffer,struct.bindPoseTransform); - this.name_2o.encode(protocolBuffer,struct.id); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as deleted file mode 100644 index 940740a..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as +++ /dev/null @@ -1,98 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Long; - import versions.version2.a3d.objects.A3D2Mesh; - import versions.version2.a3d.objects.A3D2Surface; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2Mesh implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Dh:ICodec; - - private var name_2o:ICodec; - - private var name_PO:ICodec; - - private var name_XW:ICodec; - - private var name_jk:ICodec; - - private var name_Qr:ICodec; - - private var name_S2:ICodec; - - private var name_U9:ICodec; - - private var name_h9:ICodec; - - public function CodecA3D2Mesh() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); - this.name_PO = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); - this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); - this.name_Qr = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); - this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); - this.name_U9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); - 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.name_Dh.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.name_2o.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.name_PO.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.name_XW.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.name_jk.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. = this.name_Qr.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","surfaces",value_surfaces); - var value_transform:A3D2Transform = this.name_S2.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. = this.name_U9.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","vertexBuffers",value_vertexBuffers); - 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.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Mesh = A3D2Mesh(object); - this.name_Dh.encode(protocolBuffer,struct.boundBoxId); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_PO.encode(protocolBuffer,struct.indexBufferId); - this.name_XW.encode(protocolBuffer,struct.name); - this.name_jk.encode(protocolBuffer,struct.parentId); - this.name_Qr.encode(protocolBuffer,struct.surfaces); - this.name_S2.encode(protocolBuffer,struct.transform); - this.name_U9.encode(protocolBuffer,struct.vertexBuffers); - this.name_h9.encode(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as deleted file mode 100644 index 2202771..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as +++ /dev/null @@ -1,78 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Long; - import versions.version2.a3d.objects.A3D2Object; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2Object implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Dh:ICodec; - - private var name_2o:ICodec; - - private var name_XW:ICodec; - - private var name_jk:ICodec; - - private var name_S2:ICodec; - - private var name_h9:ICodec; - - public function CodecA3D2Object() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,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.name_Dh.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.name_2o.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.name_XW.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.name_jk.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.name_S2.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.name_h9.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Object = A3D2Object(object); - this.name_Dh.encode(protocolBuffer,struct.boundBoxId); - this.name_2o.encode(protocolBuffer,struct.id); - 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); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as deleted file mode 100644 index 54fc1f8..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as +++ /dev/null @@ -1,103 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import alternativa.types.Long; - import versions.version2.a3d.objects.A3D2OmniLight; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2OmniLight implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_KK:ICodec; - - private var name_H3:ICodec; - - private var name_Dh:ICodec; - - private var name_Po:ICodec; - - private var name_2o:ICodec; - - private var name_JX:ICodec; - - private var name_XW:ICodec; - - private var name_jk:ICodec; - - private var name_S2:ICodec; - - private var name_h9:ICodec; - - public function CodecA3D2OmniLight() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_KK = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_H3 = protocol.getCodec(new TypeCodecInfo(Float,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_attenuationBegin:Number = Number(this.name_KK.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.name_H3.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.name_Dh.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.name_Po.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.name_2o.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.name_JX.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.name_XW.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.name_jk.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.name_S2.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.name_h9.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2OmniLight = A3D2OmniLight(object); - this.name_KK.encode(protocolBuffer,struct.attenuationBegin); - this.name_H3.encode(protocolBuffer,struct.attenuationEnd); - 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); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as deleted file mode 100644 index 47eb9f9..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as +++ /dev/null @@ -1,118 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Long; - import alternativa.types.UShort; - import versions.version2.a3d.objects.A3D2JointBindTransform; - import versions.version2.a3d.objects.A3D2Skin; - import versions.version2.a3d.objects.A3D2Surface; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2Skin implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_Dh:ICodec; - - private var name_2o:ICodec; - - private var name_PO:ICodec; - - private var name_dR:ICodec; - - private var name_3f:ICodec; - - private var name_XW:ICodec; - - private var name_Mx:ICodec; - - private var name_jk:ICodec; - - private var name_Qr:ICodec; - - private var name_S2:ICodec; - - private var name_U9:ICodec; - - private var name_h9:ICodec; - - public function CodecA3D2Skin() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); - this.name_PO = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_dR = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1)); - this.name_3f = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1)); - this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); - this.name_Mx = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1)); - this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); - this.name_Qr = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); - this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); - this.name_U9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); - 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.name_Dh.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.name_2o.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.name_PO.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. = this.name_dR.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","jointBindTransforms",value_jointBindTransforms); - var value_joints:Vector. = this.name_3f.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","joints",value_joints); - var value_name:String = this.name_XW.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. = this.name_Mx.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","numJoints",value_numJoints); - var value_parentId:Long = this.name_jk.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. = this.name_Qr.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","surfaces",value_surfaces); - var value_transform:A3D2Transform = this.name_S2.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. = this.name_U9.decode(protocolBuffer) as Vector.; - log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","vertexBuffers",value_vertexBuffers); - 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.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Skin = A3D2Skin(object); - this.name_Dh.encode(protocolBuffer,struct.boundBoxId); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_PO.encode(protocolBuffer,struct.indexBufferId); - this.name_dR.encode(protocolBuffer,struct.jointBindTransforms); - this.name_3f.encode(protocolBuffer,struct.joints); - this.name_XW.encode(protocolBuffer,struct.name); - this.name_Mx.encode(protocolBuffer,struct.numJoints); - this.name_jk.encode(protocolBuffer,struct.parentId); - this.name_Qr.encode(protocolBuffer,struct.surfaces); - this.name_S2.encode(protocolBuffer,struct.transform); - this.name_U9.encode(protocolBuffer,struct.vertexBuffers); - this.name_h9.encode(protocolBuffer,struct.visible); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as deleted file mode 100644 index 6c29b9c..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as +++ /dev/null @@ -1,115 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import alternativa.types.Long; - import versions.version2.a3d.objects.A3D2SpotLight; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2SpotLight implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_KK:ICodec; - - private var name_H3:ICodec; - - private var name_Dh:ICodec; - - private var name_Po:ICodec; - - private var name_GX:ICodec; - - private var name_YW:ICodec; - - private var name_2o:ICodec; - - private var name_JX:ICodec; - - private var name_XW:ICodec; - - private var name_jk:ICodec; - - private var name_S2:ICodec; - - private var name_h9:ICodec; - - public function CodecA3D2SpotLight() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_KK = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_H3 = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_Po = protocol.getCodec(new TypeCodecInfo(uint,false)); - this.name_GX = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_YW = protocol.getCodec(new TypeCodecInfo(Float,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_attenuationBegin:Number = Number(this.name_KK.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.name_H3.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.name_Dh.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.name_Po.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.name_GX.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.name_YW.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.name_2o.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.name_JX.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.name_XW.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.name_jk.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.name_S2.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.name_h9.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2SpotLight = A3D2SpotLight(object); - this.name_KK.encode(protocolBuffer,struct.attenuationBegin); - this.name_H3.encode(protocolBuffer,struct.attenuationEnd); - this.name_Dh.encode(protocolBuffer,struct.boundBoxId); - this.name_Po.encode(protocolBuffer,struct.color); - this.name_GX.encode(protocolBuffer,struct.falloff); - this.name_YW.encode(protocolBuffer,struct.hotspot); - 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); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as deleted file mode 100644 index cec9bd3..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as +++ /dev/null @@ -1,128 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Float; - import alternativa.types.Long; - import commons.Id; - import versions.version2.a3d.objects.A3D2Sprite; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2Sprite implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_XZ:ICodec; - - private var name_Dh:ICodec; - - private var name_X:ICodec; - - private var name_2o:ICodec; - - private var name_Av:ICodec; - - private var name_XW:ICodec; - - private var name_Pk:ICodec; - - private var name_j1:ICodec; - - private var name_jk:ICodec; - - private var name_Yz:ICodec; - - private var name_SJ:ICodec; - - private var name_S2:ICodec; - - private var name_h9:ICodec; - - private var name_pD:ICodec; - - public function CodecA3D2Sprite() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_XZ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); - this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_X = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); - this.name_Av = protocol.getCodec(new TypeCodecInfo(Id,false)); - this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); - this.name_Pk = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_j1 = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); - this.name_Yz = protocol.getCodec(new TypeCodecInfo(Boolean,false)); - this.name_SJ = protocol.getCodec(new TypeCodecInfo(Float,false)); - this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); - this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); - this.name_pD = protocol.getCodec(new TypeCodecInfo(Float,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_alwaysOnTop:Boolean = Boolean(this.name_XZ.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.name_Dh.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.name_X.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.name_2o.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.name_Av.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.name_XW.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.name_Pk.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.name_j1.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.name_jk.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.name_Yz.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.name_SJ.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.name_S2.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.name_h9.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.name_pD.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Sprite = A3D2Sprite(object); - this.name_XZ.encode(protocolBuffer,struct.alwaysOnTop); - this.name_Dh.encode(protocolBuffer,struct.boundBoxId); - this.name_X.encode(protocolBuffer,struct.height); - this.name_2o.encode(protocolBuffer,struct.id); - this.name_Av.encode(protocolBuffer,struct.materialId); - this.name_XW.encode(protocolBuffer,struct.name); - this.name_Pk.encode(protocolBuffer,struct.originX); - this.name_j1.encode(protocolBuffer,struct.originY); - this.name_jk.encode(protocolBuffer,struct.parentId); - this.name_Yz.encode(protocolBuffer,struct.perspectiveScale); - this.name_SJ.encode(protocolBuffer,struct.rotation); - this.name_S2.encode(protocolBuffer,struct.transform); - this.name_h9.encode(protocolBuffer,struct.visible); - this.name_pD.encode(protocolBuffer,struct.width); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as deleted file mode 100644 index 09ae619..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as +++ /dev/null @@ -1,58 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Surface; - - public class CodecA3D2Surface implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_AL:ICodec; - - private var name_Av:ICodec; - - private var name_pJ:ICodec; - - public function CodecA3D2Surface() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_AL = protocol.getCodec(new TypeCodecInfo(int,false)); - this.name_Av = protocol.getCodec(new TypeCodecInfo(int,true)); - this.name_pJ = protocol.getCodec(new TypeCodecInfo(int,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_indexBegin:int = int(this.name_AL.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.name_Av.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.name_pJ.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Surface = A3D2Surface(object); - this.name_AL.encode(protocolBuffer,struct.indexBegin); - this.name_Av.encode(protocolBuffer,struct.materialId); - this.name_pJ.encode(protocolBuffer,struct.numTriangles); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as deleted file mode 100644 index 42ec1e7..0000000 --- a/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as +++ /dev/null @@ -1,47 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.info.TypeCodecInfo; - import commons.A3DMatrix; - import versions.version2.a3d.objects.A3D2Transform; - - public class CodecA3D2Transform implements ICodec - { - public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - - private var name_dG:ICodec; - - public function CodecA3D2Transform() - { - super(); - } - - public function init(protocol:IProtocol) : void - { - this.name_dG = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_matrix:A3DMatrix = this.name_dG.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); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var struct:A3D2Transform = A3D2Transform(object); - this.name_dG.encode(protocolBuffer,struct.matrix); - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel1.as deleted file mode 100644 index a830f36..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2AmbientLight; - - public class VectorCodecA3D2AmbientLightLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2AmbientLightLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AmbientLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2AmbientLight(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as deleted file mode 100644 index 7345042..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2AmbientLight; - - public class VectorCodecA3D2AmbientLightLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2AmbientLightLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AmbientLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2AmbientLight(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as deleted file mode 100644 index 4b25323..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2AmbientLight; - - public class VectorCodecA3D2AmbientLightLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2AmbientLightLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2AmbientLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2AmbientLight(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel1.as deleted file mode 100644 index 984781b..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Box; - - public class VectorCodecA3D2BoxLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2BoxLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Box,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Box(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as deleted file mode 100644 index d82f7b8..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Box; - - public class VectorCodecA3D2BoxLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2BoxLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Box,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Box(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as deleted file mode 100644 index 017eea8..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Box; - - public class VectorCodecA3D2BoxLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2BoxLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Box,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Box(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel1.as deleted file mode 100644 index ea26c02..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Decal; - - public class VectorCodecA3D2DecalLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2DecalLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Decal,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Decal(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as deleted file mode 100644 index da356f8..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Decal; - - public class VectorCodecA3D2DecalLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2DecalLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Decal,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Decal(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as deleted file mode 100644 index 390f006..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Decal; - - public class VectorCodecA3D2DecalLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2DecalLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Decal,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Decal(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel1.as deleted file mode 100644 index 47f7d00..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2DirectionalLight; - - public class VectorCodecA3D2DirectionalLightLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2DirectionalLightLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2DirectionalLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2DirectionalLight(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as deleted file mode 100644 index a04f1a9..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2DirectionalLight; - - public class VectorCodecA3D2DirectionalLightLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2DirectionalLightLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2DirectionalLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2DirectionalLight(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as deleted file mode 100644 index 529fdd3..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2DirectionalLight; - - public class VectorCodecA3D2DirectionalLightLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2DirectionalLightLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2DirectionalLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2DirectionalLight(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel1.as deleted file mode 100644 index 5dbd870..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2JointBindTransform; - - public class VectorCodecA3D2JointBindTransformLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2JointBindTransformLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2JointBindTransform,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2JointBindTransform(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as deleted file mode 100644 index d50c9f8..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2JointBindTransform; - - public class VectorCodecA3D2JointBindTransformLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2JointBindTransformLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2JointBindTransform,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2JointBindTransform(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as deleted file mode 100644 index b19a527..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2JointBindTransform; - - public class VectorCodecA3D2JointBindTransformLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2JointBindTransformLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2JointBindTransform,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2JointBindTransform(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel1.as deleted file mode 100644 index 93acac6..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Joint; - - public class VectorCodecA3D2JointLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2JointLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Joint,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Joint(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as deleted file mode 100644 index d11c9d0..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Joint; - - public class VectorCodecA3D2JointLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2JointLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Joint,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Joint(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as deleted file mode 100644 index 1f07b2b..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Joint; - - public class VectorCodecA3D2JointLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2JointLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Joint,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Joint(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel1.as deleted file mode 100644 index 296855d..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Mesh; - - public class VectorCodecA3D2MeshLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MeshLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Mesh,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Mesh(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as deleted file mode 100644 index 8486213..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Mesh; - - public class VectorCodecA3D2MeshLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MeshLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Mesh,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Mesh(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as deleted file mode 100644 index 4f039a6..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Mesh; - - public class VectorCodecA3D2MeshLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2MeshLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Mesh,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Mesh(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel1.as deleted file mode 100644 index 67ff780..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Object; - - public class VectorCodecA3D2ObjectLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2ObjectLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Object,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Object(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as deleted file mode 100644 index c4865a9..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Object; - - public class VectorCodecA3D2ObjectLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2ObjectLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Object,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Object(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as deleted file mode 100644 index 9a7ed6a..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Object; - - public class VectorCodecA3D2ObjectLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2ObjectLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Object,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Object(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel1.as deleted file mode 100644 index 3b48de0..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2OmniLight; - - public class VectorCodecA3D2OmniLightLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2OmniLightLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2OmniLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2OmniLight(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as deleted file mode 100644 index 65ed0c8..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2OmniLight; - - public class VectorCodecA3D2OmniLightLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2OmniLightLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2OmniLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2OmniLight(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as deleted file mode 100644 index 5614c69..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2OmniLight; - - public class VectorCodecA3D2OmniLightLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2OmniLightLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2OmniLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2OmniLight(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel1.as deleted file mode 100644 index b144c4a..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Skin; - - public class VectorCodecA3D2SkinLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SkinLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Skin,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Skin(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as deleted file mode 100644 index b56a91a..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Skin; - - public class VectorCodecA3D2SkinLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SkinLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Skin,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Skin(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as deleted file mode 100644 index 01eb5e9..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Skin; - - public class VectorCodecA3D2SkinLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SkinLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Skin,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Skin(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel1.as deleted file mode 100644 index e036438..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2SpotLight; - - public class VectorCodecA3D2SpotLightLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SpotLightLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2SpotLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2SpotLight(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as deleted file mode 100644 index 8b2b7af..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2SpotLight; - - public class VectorCodecA3D2SpotLightLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SpotLightLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2SpotLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2SpotLight(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as deleted file mode 100644 index 5f121a0..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2SpotLight; - - public class VectorCodecA3D2SpotLightLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SpotLightLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2SpotLight,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2SpotLight(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel1.as deleted file mode 100644 index 6bd77d5..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Sprite; - - public class VectorCodecA3D2SpriteLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SpriteLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Sprite,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Sprite(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as deleted file mode 100644 index 8113983..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Sprite; - - public class VectorCodecA3D2SpriteLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SpriteLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Sprite,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Sprite(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as deleted file mode 100644 index dbacd00..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Sprite; - - public class VectorCodecA3D2SpriteLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SpriteLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Sprite,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Sprite(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel1.as deleted file mode 100644 index 21383e3..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Surface; - - public class VectorCodecA3D2SurfaceLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SurfaceLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Surface,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Surface(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as deleted file mode 100644 index 821207f..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Surface; - - public class VectorCodecA3D2SurfaceLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SurfaceLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Surface,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Surface(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as deleted file mode 100644 index c5e77fd..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Surface; - - public class VectorCodecA3D2SurfaceLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2SurfaceLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Surface,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Surface(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel1.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel1.as deleted file mode 100644 index 23fe8e5..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel1.as +++ /dev/null @@ -1,59 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Transform; - - public class VectorCodecA3D2TransformLevel1 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2TransformLevel1(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector. = new Vector.(length,true); - for(var i:int = 0; i < length; i++) - { - result[i] = A3D2Transform(this.elementCodec.decode(protocolBuffer)); - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector. = Vector.(object); - var length:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - for(var i:int = 0; i < length; i++) - { - this.elementCodec.encode(protocolBuffer,data[i]); - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as deleted file mode 100644 index 73ff7c8..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as +++ /dev/null @@ -1,89 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Transform; - - public class VectorCodecA3D2TransformLevel2 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2TransformLevel2(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector. = null; - var i2:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.> = new Vector.>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; i2++) - { - items2[i2] = A3D2Transform(this.elementCodec.decode(protocolBuffer)); - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector. = null; - var length2:int = 0; - var i2:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.> = Vector.>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - this.elementCodec.encode(protocolBuffer,items2[i2]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as deleted file mode 100644 index 5ed6ee2..0000000 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as +++ /dev/null @@ -1,119 +0,0 @@ -package _codec.versions.version2.a3d.objects -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.LengthCodecHelper; - import alternativa.protocol.info.TypeCodecInfo; - import versions.version2.a3d.objects.A3D2Transform; - - public class VectorCodecA3D2TransformLevel3 implements ICodec - { - private var elementCodec:ICodec; - - private var optionalElement:Boolean; - - public function VectorCodecA3D2TransformLevel3(optionalElement:Boolean) - { - super(); - this.optionalElement = optionalElement; - } - - public function init(protocol:IProtocol) : void - { - this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); - if(this.optionalElement) - { - this.elementCodec = new OptionalCodecDecorator(this.elementCodec); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length2:int = 0; - var items2:Vector.> = null; - var i2:int = 0; - var length3:int = 0; - var items3:Vector. = null; - var i3:int = 0; - var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); - var result:Vector.>> = new Vector.>>(length1,true); - for(var i1:int = 0; i1 < length1; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length2 = LengthCodecHelper.decodeLength(protocolBuffer); - items2 = new Vector.>(length2,true); - result[i1] = items2; - for(i2 = 0; i2 < length2; ) - { - if(!protocolBuffer.optionalMap.get()) - { - length3 = LengthCodecHelper.decodeLength(protocolBuffer); - items3 = new Vector.(length3,true); - items2[i2] = items3; - for(i3 = 0; i3 < length3; i3++) - { - items3[i3] = A3D2Transform(this.elementCodec.decode(protocolBuffer)); - } - } - i2++; - } - } - i1++; - } - return result; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var items2:Vector.> = null; - var length2:int = 0; - var i2:int = 0; - var items3:Vector. = null; - var length3:int = 0; - var i3:int = 0; - if(object == null) - { - throw new Error("Object is null. Use @ProtocolOptional annotation."); - } - var data:Vector.>> = Vector.>>(object); - var length1:int = int(data.length); - LengthCodecHelper.encodeLength(protocolBuffer,length1); - for(var i1:int = 0; i1 < length1; i1++) - { - items2 = data[i1]; - if(items2 != null) - { - protocolBuffer.optionalMap.addBit(false); - length2 = int(items2.length); - LengthCodecHelper.encodeLength(protocolBuffer,length2); - for(i2 = 0; i2 < length2; i2++) - { - items3 = items2[i1]; - if(items3 != null) - { - protocolBuffer.optionalMap.addBit(false); - length3 = int(items3.length); - LengthCodecHelper.encodeLength(protocolBuffer,length3); - for(i3 = 0; i3 < length3; i3++) - { - this.elementCodec.encode(protocolBuffer,items3[i3]); - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - else - { - protocolBuffer.optionalMap.addBit(true); - } - } - } - } -} - diff --git a/src/alternativa/engine3d/loaders/ParserA3D.as b/src/alternativa/engine3d/loaders/ParserA3D.as index d0fc502..acff63f 100644 --- a/src/alternativa/engine3d/loaders/ParserA3D.as +++ b/src/alternativa/engine3d/loaders/ParserA3D.as @@ -34,7 +34,7 @@ package alternativa.engine3d.loaders import flash.utils.ByteArray; import flash.utils.Dictionary; import flash.utils.Endian; - import platform.client.a3d.osgi.Activator; + import platform.client.formats.a3d.osgi.Activator; import platform.clients.fp10.libraries.alternativaprotocol.Activator; import versions.version1.a3d.A3D; import versions.version1.a3d.geometry.A3DGeometry; @@ -338,7 +338,7 @@ package alternativa.engine3d.loaders var osgi:OSGi = new OSGi(); osgi.registerService(IClientLog,new DummyClientLog()); new ProtocolActivator().start(osgi); - new platform.client.a3d.osgi.Activator().start(osgi); + new platform.client.formats.a3d.osgi.Activator().start(osgi); new platform.clients.fp10.libraries.alternativaprotocol.Activator().start(osgi); this.protocol = Protocol(osgi.getService(IProtocol)); this.name_Y8 = true; diff --git a/src/alternativa/osgi/OSGi.as b/src/alternativa/osgi/OSGi.as deleted file mode 100644 index 1c3fef2..0000000 --- a/src/alternativa/osgi/OSGi.as +++ /dev/null @@ -1,185 +0,0 @@ -package alternativa.osgi -{ - import alternativa.osgi.bundle.IBundleActivator; - import alternativa.osgi.bundle.IBundleDescriptor; - import alternativa.osgi.service.clientlog.IClientLogBase; - import flash.utils.Dictionary; - import flash.utils.getQualifiedClassName; - - public class OSGi - { - public static var clientLog:IClientLogBase; - - private static var instance:OSGi; - - private static const LOG_CHANNEL:String = "osgi"; - - private var name_2M:Object = {}; - - private var services:Dictionary = new Dictionary(); - - private var name_dp:Dictionary = new Dictionary(); - - public function OSGi() - { - super(); - if(instance == null) - { - instance = this; - return; - } - throw new Error("Only one instance of OSGi class is allowed"); - } - - public static function getInstance() : OSGi - { - return instance; - } - - public function installBundle(bundleDescriptor:IBundleDescriptor) : void - { - var activators:Vector. = null; - var i:int = 0; - var activator:IBundleActivator = null; - if(this.name_2M[bundleDescriptor.name] == null) - { - clientLog.log(LOG_CHANNEL,"Installing bundle %1",bundleDescriptor.name); - clientLog.log(LOG_CHANNEL,"Bundle activators: %1",bundleDescriptor.activators); - this.name_2M[bundleDescriptor.name] = bundleDescriptor; - activators = bundleDescriptor.activators; - if(activators != null) - { - for(i = 0; i < activators.length; i++) - { - activator = activators[i]; - clientLog.log(LOG_CHANNEL,"Invoking start() on activator " + getQualifiedClassName(activator)); - activator.start(this); - } - } - clientLog.log(LOG_CHANNEL,"Bundle " + bundleDescriptor.name + " has been installed"); - return; - } - throw new Error("Bundle " + bundleDescriptor.name + " is already installed"); - } - - public function uninstallBundle(bundleName:String) : void - { - var i:int = 0; - var activator:IBundleActivator = null; - if(bundleName == null) - { - throw new ArgumentError("Bundle name is null"); - } - var bundleDescriptor:IBundleDescriptor = this.name_2M[bundleName]; - if(bundleDescriptor == null) - { - throw new Error("Bundle " + bundleName + " not found"); - } - var activators:Vector. = bundleDescriptor.activators; - if(activators != null) - { - for(i = 0; i < activators.length; i++) - { - activator = activators[i]; - clientLog.log(LOG_CHANNEL,"Invoking stop() on activator " + getQualifiedClassName(activator)); - activator.stop(this); - } - } - delete this.name_2M[bundleName]; - clientLog.log(LOG_CHANNEL,"Bundle " + bundleName + " has been uninstalled"); - } - - public function registerService(serviceInterface:Class, serviceImplementation:Object) : void - { - var injectPoints:Vector. = null; - var ip:InjectPoint = null; - if(this.services[serviceInterface] == null) - { - this.services[serviceInterface] = serviceImplementation; - if(this.name_dp[serviceInterface] != null) - { - injectPoints = this.name_dp[serviceInterface]; - for each(ip in injectPoints) - { - ip.injectOwner[ip.injectFieldName] = serviceImplementation; - clientLog.log(LOG_CHANNEL,"Service %1 has been injected at %2",serviceInterface,ip.injectOwner + "." + ip.injectFieldName); - } - } - clientLog.log(LOG_CHANNEL,"Service has been registered: " + serviceInterface); - return; - } - throw new Error("Service " + serviceInterface + " is already registered"); - } - - public function registerServiceMulty(serviceInterfaces:Array, serviceImplementation:Object) : void - { - var serviceInterface:Class = null; - for each(serviceInterface in serviceInterfaces) - { - this.registerService(serviceInterface,serviceImplementation); - } - } - - public function unregisterService(serviceInterface:Class) : void - { - if(this.services[serviceInterface] != null) - { - delete this.services[serviceInterface]; - delete this.name_dp[serviceInterface]; - clientLog.log(LOG_CHANNEL,"Service has been unregistered: " + serviceInterface); - } - } - - public function getService(serviceInterface:Class) : Object - { - return this.services[serviceInterface]; - } - - public function injectService(serviceInterface:Class, injectFieldOwner:Class, injectFieldName:String) : void - { - if(!this.name_dp[serviceInterface]) - { - this.name_dp[serviceInterface] = new Vector.(); - } - this.name_dp[serviceInterface].push(new InjectPoint(injectFieldOwner,injectFieldName)); - injectFieldOwner[injectFieldName] = this.services[serviceInterface]; - clientLog.log(LOG_CHANNEL,"Inject %1 have been processed. Current value is %2",injectFieldOwner + "." + injectFieldName,this.services[serviceInterface]); - } - - public function get bundleList() : Vector. - { - var bundleDescriptor:IBundleDescriptor = null; - var list:Vector. = new Vector.(); - for each(bundleDescriptor in this.name_2M) - { - list.push(bundleDescriptor); - } - return list; - } - - public function get serviceList() : Vector. - { - var service:Object = null; - var list:Vector. = new Vector.(); - for each(service in this.services) - { - list.push(service); - } - return list; - } - } -} - -class InjectPoint -{ - public var injectOwner:Class; - - public var injectFieldName:String; - - public function InjectPoint(injectOwner:Class, injectFieldName:String) - { - super(); - this.injectOwner = injectOwner; - this.injectFieldName = injectFieldName; - } -} diff --git a/src/alternativa/osgi/bundle/IBundleActivator.as b/src/alternativa/osgi/bundle/IBundleActivator.as deleted file mode 100644 index db57967..0000000 --- a/src/alternativa/osgi/bundle/IBundleActivator.as +++ /dev/null @@ -1,12 +0,0 @@ -package alternativa.osgi.bundle -{ - import alternativa.osgi.OSGi; - - public interface IBundleActivator - { - function start(param1:OSGi) : void; - - function stop(param1:OSGi) : void; - } -} - diff --git a/src/alternativa/osgi/bundle/IBundleDescriptor.as b/src/alternativa/osgi/bundle/IBundleDescriptor.as deleted file mode 100644 index 9ee9505..0000000 --- a/src/alternativa/osgi/bundle/IBundleDescriptor.as +++ /dev/null @@ -1,14 +0,0 @@ -package alternativa.osgi.bundle -{ - import alternativa.utils.Properties; - - public interface IBundleDescriptor - { - function get name() : String; - - function get activators() : Vector.; - - function get properties() : Properties; - } -} - diff --git a/src/alternativa/osgi/service/clientlog/IClientLogBase.as b/src/alternativa/osgi/service/clientlog/IClientLogBase.as deleted file mode 100644 index 64c2ba8..0000000 --- a/src/alternativa/osgi/service/clientlog/IClientLogBase.as +++ /dev/null @@ -1,8 +0,0 @@ -package alternativa.osgi.service.clientlog -{ - public interface IClientLogBase - { - function log(param1:String, param2:String, ... rest) : void; - } -} - diff --git a/src/alternativa/protocol/CompressionType.as b/src/alternativa/protocol/CompressionType.as deleted file mode 100644 index 36a4aae..0000000 --- a/src/alternativa/protocol/CompressionType.as +++ /dev/null @@ -1,17 +0,0 @@ -package alternativa.protocol -{ - public class CompressionType - { - public static var NONE:CompressionType = new CompressionType(); - - public static var DEFLATE:CompressionType = new CompressionType(); - - public static var DEFLATE_AUTO:CompressionType = new CompressionType(); - - public function CompressionType() - { - super(); - } - } -} - diff --git a/src/alternativa/protocol/ICodec.as b/src/alternativa/protocol/ICodec.as deleted file mode 100644 index f7e81c4..0000000 --- a/src/alternativa/protocol/ICodec.as +++ /dev/null @@ -1,12 +0,0 @@ -package alternativa.protocol -{ - public interface ICodec - { - function init(param1:IProtocol) : void; - - function encode(param1:ProtocolBuffer, param2:Object) : void; - - function decode(param1:ProtocolBuffer) : Object; - } -} - diff --git a/src/alternativa/protocol/ICodecInfo.as b/src/alternativa/protocol/ICodecInfo.as deleted file mode 100644 index eab60c5..0000000 --- a/src/alternativa/protocol/ICodecInfo.as +++ /dev/null @@ -1,10 +0,0 @@ -package alternativa.protocol -{ - public interface ICodecInfo - { - function isOptional() : Boolean; - - function toString() : String; - } -} - diff --git a/src/alternativa/protocol/IProtocol.as b/src/alternativa/protocol/IProtocol.as deleted file mode 100644 index c7c64a8..0000000 --- a/src/alternativa/protocol/IProtocol.as +++ /dev/null @@ -1,21 +0,0 @@ -package alternativa.protocol -{ - import flash.utils.IDataInput; - import flash.utils.IDataOutput; - - public interface IProtocol - { - function registerCodec(param1:ICodecInfo, param2:ICodec) : void; - - function registerCodecForType(param1:Class, param2:ICodec) : void; - - function getCodec(param1:ICodecInfo) : ICodec; - - function makeCodecInfo(param1:Class) : ICodecInfo; - - function wrapPacket(param1:IDataOutput, param2:ProtocolBuffer, param3:CompressionType) : void; - - function unwrapPacket(param1:IDataInput, param2:ProtocolBuffer) : Boolean; - } -} - diff --git a/src/alternativa/protocol/OptionalMap.as b/src/alternativa/protocol/OptionalMap.as deleted file mode 100644 index 2aab7ba..0000000 --- a/src/alternativa/protocol/OptionalMap.as +++ /dev/null @@ -1,128 +0,0 @@ -package alternativa.protocol -{ - import flash.utils.ByteArray; - - public class OptionalMap - { - private var name_bU:int; - - private var size:int; - - private var map:ByteArray; - - public function OptionalMap(size:int = 0, source:ByteArray = null) - { - super(); - this.map = new ByteArray(); - if(source != null) - { - this.map.writeBytes(source,0,this.convertSize(size)); - } - this.size = size; - this.name_bU = 0; - } - - public function getReadPosition() : int - { - return this.name_bU; - } - - public function setReadPosition(value:int) : void - { - this.name_bU = value; - } - - public function reset() : void - { - this.name_bU = 0; - } - - public function clear() : void - { - this.size = 0; - this.name_bU = 0; - } - - public function addBit(isNull:Boolean) : void - { - this.setBit(this.size,isNull); - ++this.size; - } - - public function hasNextBit() : Boolean - { - return this.name_bU < this.size; - } - - public function get() : Boolean - { - if(this.name_bU >= this.size) - { - throw new Error("Index out of bounds: " + this.name_bU); - } - var res:Boolean = this.getBit(this.name_bU); - ++this.name_bU; - return res; - } - - public function getMap() : ByteArray - { - return this.map; - } - - public function getSize() : int - { - return this.size; - } - - private function getBit(position:int) : Boolean - { - var targetByte:int = position >> 3; - var targetBit:int = 7 ^ position & 7; - this.map.position = targetByte; - return (this.map.readByte() & 1 << targetBit) != 0; - } - - private function setBit(position:int, value:Boolean) : void - { - var targetByte:int = position >> 3; - var targetBit:int = 7 ^ position & 7; - this.map.position = targetByte; - if(value) - { - this.map.writeByte(int(this.map[targetByte] | 1 << targetBit)); - } - else - { - this.map.writeByte(int(this.map[targetByte] & (0xFF ^ 1 << targetBit))); - } - } - - private function convertSize(sizeInBits:int) : int - { - var i:int = sizeInBits >> 3; - var add:int = (sizeInBits & 7) == 0 ? 0 : 1; - return i + add; - } - - public function toString() : String - { - var result:String = "readPosition: " + this.name_bU + " size:" + this.getSize() + " mask:"; - var _readPosition:int = this.name_bU; - for(var i:int = this.name_bU; i < this.getSize(); i++) - { - result += this.get() ? "1" : "0"; - } - this.name_bU = _readPosition; - return result; - } - - public function clone() : alternativa.protocol.OptionalMap - { - var map:alternativa.protocol.OptionalMap = new alternativa.protocol.OptionalMap(this.size,this.map); - map.name_bU = this.name_bU; - return map; - } - } -} - diff --git a/src/alternativa/protocol/ProtocolBuffer.as b/src/alternativa/protocol/ProtocolBuffer.as deleted file mode 100644 index 41a1994..0000000 --- a/src/alternativa/protocol/ProtocolBuffer.as +++ /dev/null @@ -1,109 +0,0 @@ -package alternativa.protocol -{ - import flash.utils.ByteArray; - import flash.utils.IDataInput; - import flash.utils.IDataOutput; - - public class ProtocolBuffer - { - private var name_R:IDataOutput; - - private var name_ch:IDataInput; - - private var name_7s:OptionalMap; - - public function ProtocolBuffer(output:IDataOutput, input:IDataInput, optionalMap:OptionalMap) - { - super(); - this.name_R = output; - this.name_ch = input; - this.name_7s = optionalMap; - } - - public function get writer() : IDataOutput - { - return this.name_R; - } - - public function set writer(value:IDataOutput) : void - { - this.name_R = value; - } - - public function get reader() : IDataInput - { - return this.name_ch; - } - - public function set reader(value:IDataInput) : void - { - this.name_ch = value; - } - - public function get optionalMap() : OptionalMap - { - return this.name_7s; - } - - public function set optionalMap(value:OptionalMap) : void - { - this.name_7s = value; - } - - public function toString() : String - { - var b:int = 0; - var c:String = null; - var result:String = ""; - var position:int = int(ByteArray(this.reader).position); - result += "\n=== Dump data ===\n"; - var pos:int = 0; - for(var chars:String = ""; Boolean(ByteArray(this.reader).bytesAvailable); ) - { - b = int(this.reader.readByte()); - c = String.fromCharCode(b); - if(b >= 0 && b < 16) - { - result += "0"; - } - if(b < 0) - { - b = 256 + b; - } - result += b.toString(16); - result += " "; - if(b < 12 && b > 128) - { - chars += "."; - } - else - { - chars += c; - } - pos++; - if(pos > 16) - { - result += "\t"; - result += chars; - result += "\n"; - pos = 0; - chars = ""; - } - } - if(pos != 0) - { - while(pos < 18) - { - pos++; - result += " "; - } - result += "\t"; - result += chars; - result += "\n"; - } - ByteArray(this.reader).position = position; - return result; - } - } -} - diff --git a/src/alternativa/protocol/codec/OptionalCodecDecorator.as b/src/alternativa/protocol/codec/OptionalCodecDecorator.as deleted file mode 100644 index cb8e7bf..0000000 --- a/src/alternativa/protocol/codec/OptionalCodecDecorator.as +++ /dev/null @@ -1,48 +0,0 @@ -package alternativa.protocol.codec -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.codec.primitive.IPrimitiveCodec; - - public class OptionalCodecDecorator implements ICodec - { - private var codec:ICodec; - - private var name_In:Object; - - public function OptionalCodecDecorator(codec:ICodec) - { - super(); - this.codec = codec; - if(codec is IPrimitiveCodec) - { - this.name_In = IPrimitiveCodec(codec).nullValue(); - } - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - if(object == this.name_In) - { - protocolBuffer.optionalMap.addBit(true); - } - else - { - protocolBuffer.optionalMap.addBit(false); - this.codec.encode(protocolBuffer,object); - } - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.optionalMap.get() ? this.name_In : this.codec.decode(protocolBuffer); - } - - public function init(protocol:IProtocol) : void - { - this.codec.init(protocol); - } - } -} - diff --git a/src/alternativa/protocol/codec/complex/ByteArrayCodec.as b/src/alternativa/protocol/codec/complex/ByteArrayCodec.as deleted file mode 100644 index fb15745..0000000 --- a/src/alternativa/protocol/codec/complex/ByteArrayCodec.as +++ /dev/null @@ -1,36 +0,0 @@ -package alternativa.protocol.codec.complex -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.impl.LengthCodecHelper; - import flash.utils.ByteArray; - - public class ByteArrayCodec implements ICodec - { - public function ByteArrayCodec() - { - super(); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var bytes:ByteArray = ByteArray(object); - LengthCodecHelper.encodeLength(protocolBuffer,bytes.length); - protocolBuffer.writer.writeBytes(bytes); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var size:int = LengthCodecHelper.decodeLength(protocolBuffer); - var bytes:ByteArray = new ByteArray(); - protocolBuffer.reader.readBytes(bytes,0,size); - return bytes; - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/complex/StringCodec.as b/src/alternativa/protocol/codec/complex/StringCodec.as deleted file mode 100644 index 924a180..0000000 --- a/src/alternativa/protocol/codec/complex/StringCodec.as +++ /dev/null @@ -1,36 +0,0 @@ -package alternativa.protocol.codec.complex -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.protocol.impl.LengthCodecHelper; - import flash.utils.ByteArray; - - public class StringCodec implements ICodec - { - public function StringCodec() - { - super(); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - var bytes:ByteArray = new ByteArray(); - bytes.writeUTFBytes(String(object)); - var length:int = int(bytes.length); - LengthCodecHelper.encodeLength(protocolBuffer,length); - protocolBuffer.writer.writeBytes(bytes,0,length); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - var length:int = LengthCodecHelper.decodeLength(protocolBuffer); - return protocolBuffer.reader.readUTFBytes(length); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/BooleanCodec.as b/src/alternativa/protocol/codec/primitive/BooleanCodec.as deleted file mode 100644 index 843ebdd..0000000 --- a/src/alternativa/protocol/codec/primitive/BooleanCodec.as +++ /dev/null @@ -1,29 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - - public class BooleanCodec implements ICodec - { - public function BooleanCodec() - { - super(); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - protocolBuffer.writer.writeByte(!!Boolean(object) ? int(int(1)) : int(int(0))); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.reader.readByte() != 0; - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/ByteCodec.as b/src/alternativa/protocol/codec/primitive/ByteCodec.as deleted file mode 100644 index 75fef74..0000000 --- a/src/alternativa/protocol/codec/primitive/ByteCodec.as +++ /dev/null @@ -1,33 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - - public class ByteCodec implements IPrimitiveCodec - { - public function ByteCodec() - { - super(); - } - - public function nullValue() : Object - { - return int.MAX_VALUE; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - protocolBuffer.writer.writeByte(int(object)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.reader.readByte(); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/DoubleCodec.as b/src/alternativa/protocol/codec/primitive/DoubleCodec.as deleted file mode 100644 index 16e16dc..0000000 --- a/src/alternativa/protocol/codec/primitive/DoubleCodec.as +++ /dev/null @@ -1,33 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - - public class DoubleCodec implements IPrimitiveCodec - { - public function DoubleCodec() - { - super(); - } - - public function nullValue() : Object - { - return Number.NEGATIVE_INFINITY; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - protocolBuffer.writer.writeDouble(Number(object)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.reader.readDouble(); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/FloatCodec.as b/src/alternativa/protocol/codec/primitive/FloatCodec.as deleted file mode 100644 index 6c91e84..0000000 --- a/src/alternativa/protocol/codec/primitive/FloatCodec.as +++ /dev/null @@ -1,33 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - - public class FloatCodec implements IPrimitiveCodec - { - public function FloatCodec() - { - super(); - } - - public function nullValue() : Object - { - return Number.NEGATIVE_INFINITY; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - protocolBuffer.writer.writeFloat(Number(object)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.reader.readFloat(); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/IPrimitiveCodec.as b/src/alternativa/protocol/codec/primitive/IPrimitiveCodec.as deleted file mode 100644 index 018d56c..0000000 --- a/src/alternativa/protocol/codec/primitive/IPrimitiveCodec.as +++ /dev/null @@ -1,10 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.ICodec; - - public interface IPrimitiveCodec extends ICodec - { - function nullValue() : Object; - } -} - diff --git a/src/alternativa/protocol/codec/primitive/IntCodec.as b/src/alternativa/protocol/codec/primitive/IntCodec.as deleted file mode 100644 index 7e807ed..0000000 --- a/src/alternativa/protocol/codec/primitive/IntCodec.as +++ /dev/null @@ -1,33 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - - public class IntCodec implements IPrimitiveCodec - { - public function IntCodec() - { - super(); - } - - public function nullValue() : Object - { - return int.MIN_VALUE; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - protocolBuffer.writer.writeInt(int(object)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.reader.readInt(); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/LongCodec.as b/src/alternativa/protocol/codec/primitive/LongCodec.as deleted file mode 100644 index 615652c..0000000 --- a/src/alternativa/protocol/codec/primitive/LongCodec.as +++ /dev/null @@ -1,31 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - import alternativa.types.Long; - - public class LongCodec implements ICodec - { - public function LongCodec() - { - super(); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - protocolBuffer.writer.writeInt(Long(object).high); - protocolBuffer.writer.writeInt(Long(object).low); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return Long.getLong(protocolBuffer.reader.readInt(),protocolBuffer.reader.readInt()); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/ShortCodec.as b/src/alternativa/protocol/codec/primitive/ShortCodec.as deleted file mode 100644 index affe592..0000000 --- a/src/alternativa/protocol/codec/primitive/ShortCodec.as +++ /dev/null @@ -1,33 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - - public class ShortCodec implements IPrimitiveCodec - { - public function ShortCodec() - { - super(); - } - - public function nullValue() : Object - { - return int.MIN_VALUE; - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - protocolBuffer.writer.writeShort(int(object)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.reader.readShort(); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/UByteCodec.as b/src/alternativa/protocol/codec/primitive/UByteCodec.as deleted file mode 100644 index 30c2792..0000000 --- a/src/alternativa/protocol/codec/primitive/UByteCodec.as +++ /dev/null @@ -1,29 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - - public class UByteCodec implements ICodec - { - public function UByteCodec() - { - super(); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - protocolBuffer.writer.writeUnsignedInt(uint(object)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.reader.readUnsignedByte(); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/UIntCodec.as b/src/alternativa/protocol/codec/primitive/UIntCodec.as deleted file mode 100644 index fb57d29..0000000 --- a/src/alternativa/protocol/codec/primitive/UIntCodec.as +++ /dev/null @@ -1,29 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - - public class UIntCodec implements ICodec - { - public function UIntCodec() - { - super(); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - protocolBuffer.writer.writeUnsignedInt(uint(object)); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.reader.readUnsignedInt(); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/codec/primitive/UShortCodec.as b/src/alternativa/protocol/codec/primitive/UShortCodec.as deleted file mode 100644 index 5954b3a..0000000 --- a/src/alternativa/protocol/codec/primitive/UShortCodec.as +++ /dev/null @@ -1,29 +0,0 @@ -package alternativa.protocol.codec.primitive -{ - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.ProtocolBuffer; - - public class UShortCodec implements ICodec - { - public function UShortCodec() - { - super(); - } - - public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void - { - throw new Error("Not implemented"); - } - - public function decode(protocolBuffer:ProtocolBuffer) : Object - { - return protocolBuffer.reader.readUnsignedShort(); - } - - public function init(protocol:IProtocol) : void - { - } - } -} - diff --git a/src/alternativa/protocol/impl/LengthCodecHelper.as b/src/alternativa/protocol/impl/LengthCodecHelper.as deleted file mode 100644 index 9c0fe51..0000000 --- a/src/alternativa/protocol/impl/LengthCodecHelper.as +++ /dev/null @@ -1,64 +0,0 @@ -package alternativa.protocol.impl -{ - import alternativa.protocol.ProtocolBuffer; - - public class LengthCodecHelper - { - public function LengthCodecHelper() - { - super(); - } - - public static function encodeLength(protocolBuffer:ProtocolBuffer, length:int) : void - { - var tmp:Number = NaN; - if(length < 0) - { - throw new Error("Length is incorrect (" + length + ")"); - } - if(length < 128) - { - protocolBuffer.writer.writeByte(int(length & 0x7F)); - } - else if(length < 16384) - { - tmp = (length & 0x3FFF) + 32768; - protocolBuffer.writer.writeByte(int((tmp & 0xFF00) >> 8)); - protocolBuffer.writer.writeByte(int(tmp & 0xFF)); - } - else - { - if(length >= 4194304) - { - throw new Error("Length is incorrect (" + length + ")"); - } - tmp = (length & 0x3FFFFF) + 12582912; - protocolBuffer.writer.writeByte(int((tmp & 0xFF0000) >> 16)); - protocolBuffer.writer.writeByte(int((tmp & 0xFF00) >> 8)); - protocolBuffer.writer.writeByte(int(tmp & 0xFF)); - } - } - - public static function decodeLength(protocolBuffer:ProtocolBuffer) : int - { - var _loc4_:int = 0; - var _loc5_:Boolean = false; - var _loc6_:int = 0; - var firstByte:int = int(protocolBuffer.reader.readByte()); - var singleByte:Boolean = (firstByte & 0x80) == 0; - if(singleByte) - { - return firstByte; - } - _loc4_ = int(protocolBuffer.reader.readByte()); - _loc5_ = (firstByte & 0x40) == 0; - if(_loc5_) - { - return ((firstByte & 0x3F) << 8) + (_loc4_ & 0xFF); - } - _loc6_ = int(protocolBuffer.reader.readByte()); - return ((firstByte & 0x3F) << 16) + ((_loc4_ & 0xFF) << 8) + (_loc6_ & 0xFF); - } - } -} - diff --git a/src/alternativa/protocol/impl/OptionalMapCodecHelper.as b/src/alternativa/protocol/impl/OptionalMapCodecHelper.as deleted file mode 100644 index fd0fb5f..0000000 --- a/src/alternativa/protocol/impl/OptionalMapCodecHelper.as +++ /dev/null @@ -1,152 +0,0 @@ -package alternativa.protocol.impl -{ - import alternativa.protocol.OptionalMap; - import flash.utils.ByteArray; - import flash.utils.IDataInput; - - public class OptionalMapCodecHelper - { - private static const INPLACE_MASK_FLAG:int = 128; - - private static const MASK_LENGTH_2_BYTES_FLAG:int = 64; - - private static const INPLACE_MASK_1_BYTES:int = 32; - - private static const INPLACE_MASK_3_BYTES:int = 96; - - private static const INPLACE_MASK_2_BYTES:int = 64; - - private static const MASK_LENGTH_1_BYTE:int = 128; - - private static const MASK_LEGTH_3_BYTE:int = 12582912; - - public function OptionalMapCodecHelper() - { - super(); - } - - public static function encodeNullMap(nullMap:OptionalMap) : ByteArray - { - var sizeInBytes:int = 0; - var firstByte:int = 0; - var sizeEncoded:int = 0; - var secondByte:int = 0; - var thirdByte:int = 0; - var nullMapSize:int = nullMap.getSize(); - var map:ByteArray = nullMap.getMap(); - var res:ByteArray = new ByteArray(); - if(nullMapSize <= 5) - { - res.writeByte(int((map[0] & 0xFF) >>> 3)); - return res; - } - if(nullMapSize <= 13) - { - res.writeByte(int(((map[0] & 0xFF) >>> 3) + INPLACE_MASK_1_BYTES)); - res.writeByte(((map[1] & 0xFF) >>> 3) + (map[0] << 5)); - return res; - } - if(nullMapSize <= 21) - { - res.writeByte(int(((map[0] & 0xFF) >>> 3) + INPLACE_MASK_2_BYTES)); - res.writeByte(int(((map[1] & 0xFF) >>> 3) + (map[0] << 5))); - res.writeByte(int(((map[2] & 0xFF) >>> 3) + (map[1] << 5))); - return res; - } - if(nullMapSize <= 29) - { - res.writeByte(int(((map[0] & 0xFF) >>> 3) + INPLACE_MASK_3_BYTES)); - res.writeByte(int(((map[1] & 0xFF) >>> 3) + (map[0] << 5))); - res.writeByte(int(((map[2] & 0xFF) >>> 3) + (map[1] << 5))); - res.writeByte(int(((map[3] & 0xFF) >>> 3) + (map[2] << 5))); - return res; - } - if(nullMapSize <= 504) - { - sizeInBytes = (nullMapSize >>> 3) + ((nullMapSize & 7) == 0 ? 0 : 1); - firstByte = int(int((sizeInBytes & 0xFF) + MASK_LENGTH_1_BYTE)); - res.writeByte(firstByte); - res.writeBytes(map,0,sizeInBytes); - return res; - } - if(nullMapSize <= 33554432) - { - sizeInBytes = (nullMapSize >>> 3) + ((nullMapSize & 7) == 0 ? 0 : 1); - sizeEncoded = sizeInBytes + MASK_LEGTH_3_BYTE; - firstByte = int(int((sizeEncoded & 0xFF0000) >>> 16)); - secondByte = int(int((sizeEncoded & 0xFF00) >>> 8)); - thirdByte = int(int(sizeEncoded & 0xFF)); - res.writeByte(firstByte); - res.writeByte(secondByte); - res.writeByte(thirdByte); - res.writeBytes(map,0,sizeInBytes); - return res; - } - throw new Error("NullMap overflow"); - } - - public static function decodeNullMap(reader:IDataInput) : OptionalMap - { - var maskLength:int = 0; - var firstByteValue:int = 0; - var isLength22bit:Boolean = false; - var sizeInBits:int = 0; - var secondByte:int = 0; - var thirdByte:int = 0; - var _loc11_:int = 0; - var mask:ByteArray = new ByteArray(); - var firstByte:int = int(reader.readByte()); - var isLongNullMap:Boolean = (firstByte & INPLACE_MASK_FLAG) != 0; - if(isLongNullMap) - { - firstByteValue = firstByte & 0x3F; - isLength22bit = (firstByte & MASK_LENGTH_2_BYTES_FLAG) != 0; - if(isLength22bit) - { - secondByte = int(reader.readByte()); - thirdByte = int(reader.readByte()); - maskLength = (firstByteValue << 16) + ((secondByte & 0xFF) << 8) + (thirdByte & 0xFF); - } - else - { - maskLength = firstByteValue; - } - reader.readBytes(mask,0,maskLength); - sizeInBits = maskLength << 3; - return new OptionalMap(sizeInBits,mask); - } - firstByteValue = int(int(firstByte << 3)); - maskLength = int(int((firstByte & 0x60) >> 5)); - switch(maskLength) - { - case 0: - mask.writeByte(firstByteValue); - return new OptionalMap(5,mask); - case 1: - secondByte = int(reader.readByte()); - mask.writeByte(int(firstByteValue + ((secondByte & 0xFF) >>> 5))); - mask.writeByte(int(secondByte << 3)); - return new OptionalMap(13,mask); - case 2: - secondByte = int(reader.readByte()); - thirdByte = int(reader.readByte()); - mask.writeByte(int(firstByteValue + ((secondByte & 0xFF) >>> 5))); - mask.writeByte(int((secondByte << 3) + ((thirdByte & 0xFF) >>> 5))); - mask.writeByte(int(thirdByte << 3)); - return new OptionalMap(21,mask); - case 3: - secondByte = int(reader.readByte()); - thirdByte = int(reader.readByte()); - _loc11_ = int(reader.readByte()); - mask.writeByte(int(firstByteValue + ((secondByte & 0xFF) >>> 5))); - mask.writeByte(int((secondByte << 3) + ((thirdByte & 0xFF) >>> 5))); - mask.writeByte(int((thirdByte << 3) + ((_loc11_ & 0xFF) >>> 5))); - mask.writeByte(int(_loc11_ << 3)); - return new OptionalMap(29,mask); - default: - return null; - } - } - } -} - diff --git a/src/alternativa/protocol/impl/PacketHelper.as b/src/alternativa/protocol/impl/PacketHelper.as deleted file mode 100644 index d351646..0000000 --- a/src/alternativa/protocol/impl/PacketHelper.as +++ /dev/null @@ -1,205 +0,0 @@ -package alternativa.protocol.impl -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.CompressionType; - import alternativa.protocol.ProtocolBuffer; - import flash.utils.ByteArray; - import flash.utils.IDataInput; - import flash.utils.IDataOutput; - - public class PacketHelper - { - [Inject] - public static var clientLog:IClientLog; - - private static const LOG_CHANNEL:String = "protocol"; - - private static const ZIP_PACKET_SIZE_DELIMITER:int = 2000; - - private static const MAXIMUM_DATA_LENGTH:int = 2147483647; - - private static const LONG_SIZE_DELIMITER:int = 16384; - - private static const ZIPPED_FLAG:int = 64; - - private static const BIG_LENGTH_FLAG:int = 128; - - public function PacketHelper() - { - super(); - } - - public static function unwrapPacket(source:IDataInput, dest:ProtocolBuffer) : Boolean - { - var isZipped:Boolean = false; - var packetSize:int = 0; - var hiByte:int = 0; - var middleByte:int = 0; - var loByte:int = 0; - var loByte2:int = 0; - if(source.bytesAvailable < 2) - { - return false; - } - var flagByte:int = int(source.readByte()); - var longSize:Boolean = (flagByte & BIG_LENGTH_FLAG) != 0; - if(longSize) - { - if(source.bytesAvailable < 3) - { - return false; - } - isZipped = true; - hiByte = (flagByte ^ BIG_LENGTH_FLAG) << 24; - middleByte = (source.readByte() & 0xFF) << 16; - loByte = (source.readByte() & 0xFF) << 8; - loByte2 = source.readByte() & 0xFF; - packetSize = hiByte + middleByte + loByte + loByte2; - } - else - { - isZipped = (flagByte & ZIPPED_FLAG) != 0; - hiByte = (flagByte & 0x3F) << 8; - loByte = source.readByte() & 0xFF; - packetSize = hiByte + loByte; - } - if(source.bytesAvailable < packetSize) - { - return false; - } - var data:ByteArray = new ByteArray(); - if(packetSize != 0) - { - source.readBytes(data,0,packetSize); - } - if(isZipped) - { - data.uncompress(); - } - clientLog.log(LOG_CHANNEL,"Packet::unwrapPacket() source (size=%1, compressed=%2)\n%3\n",packetSize,isZipped,bytesToString(data,0,data.length,6)); - data.position = 0; - dest.optionalMap = OptionalMapCodecHelper.decodeNullMap(data); - var destByteArray:ByteArray = new ByteArray(); - dest.reader = destByteArray; - destByteArray.writeBytes(data,data.position,data.length - data.position); - destByteArray.position = 0; - clientLog.log(LOG_CHANNEL,"Packet::unwrapPacket() unwrapped \n%1\n",bytesToString(destByteArray,0,data.length,6)); - return true; - } - - public static function wrapPacket(dst:IDataOutput, source:ProtocolBuffer, compressionType:CompressionType) : void - { - var sizeToWrite:int = 0; - var _loc10_:int = 0; - var _loc11_:int = 0; - var zipped:Boolean = false; - switch(compressionType) - { - case CompressionType.NONE: - break; - case CompressionType.DEFLATE: - zipped = true; - break; - case CompressionType.DEFLATE_AUTO: - zipped = determineZipped(source.reader); - } - var toWrap:ByteArray = new ByteArray(); - var encodedNullmap:ByteArray = OptionalMapCodecHelper.encodeNullMap(source.optionalMap); - encodedNullmap.position = 0; - toWrap.writeBytes(encodedNullmap); - source.reader.readBytes(toWrap,toWrap.position,source.reader.bytesAvailable); - toWrap.position = 0; - var longSize:Boolean = isLongSize(toWrap); - if(zipped) - { - toWrap.compress(); - } - var length:int = int(toWrap.length); - if(length > MAXIMUM_DATA_LENGTH) - { - throw new Error("Packet size too big (" + length + ")"); - } - if(longSize) - { - sizeToWrite = length + (BIG_LENGTH_FLAG << 24); - dst.writeInt(sizeToWrite); - } - else - { - _loc10_ = int(int(((length & 0xFF00) >> 8) + (zipped ? ZIPPED_FLAG : 0))); - _loc11_ = int(int(length & 0xFF)); - dst.writeByte(_loc10_); - dst.writeByte(_loc11_); - } - dst.writeBytes(toWrap,0,length); - clientLog.log("protocol","packet length " + length); - } - - private static function isLongSize(reader:IDataInput) : Boolean - { - return reader.bytesAvailable >= LONG_SIZE_DELIMITER || reader.bytesAvailable == -1; - } - - private static function determineZipped(reader:IDataInput) : Boolean - { - return reader.bytesAvailable == -1 || reader.bytesAvailable > ZIP_PACKET_SIZE_DELIMITER; - } - - private static function getClientLog() : IClientLog - { - if(clientLog == null) - { - clientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); - } - return clientLog; - } - - private static function bytesToString(bytes:ByteArray, startPosition:int, count:int, numColumns:int) : String - { - var columnIndex:int = 0; - var longIndex:int = 0; - var bytesRead:int = 0; - var s:String = null; - var result:String = ""; - var position:int = int(bytes.position); - bytes.position = startPosition; - while(bytes.bytesAvailable > 0 && bytesRead < count) - { - bytesRead++; - s = bytes.readUnsignedByte().toString(16); - if(s.length == 1) - { - s = "0" + s; - } - result += s; - longIndex++; - if(longIndex == 4) - { - longIndex = 0; - columnIndex++; - if(columnIndex == numColumns) - { - columnIndex = 0; - result += "\n"; - } - else - { - result += " "; - } - } - else - { - result += " "; - } - } - if(bytesRead < count) - { - result += "\nOnly " + bytesRead + " of " + count + " bytes have been read"; - } - bytes.position = position; - return result; - } - } -} - diff --git a/src/alternativa/protocol/impl/Protocol.as b/src/alternativa/protocol/impl/Protocol.as deleted file mode 100644 index 87a3a54..0000000 --- a/src/alternativa/protocol/impl/Protocol.as +++ /dev/null @@ -1,110 +0,0 @@ -package alternativa.protocol.impl -{ - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.*; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.codec.complex.ByteArrayCodec; - import alternativa.protocol.codec.complex.StringCodec; - import alternativa.protocol.codec.primitive.BooleanCodec; - import alternativa.protocol.codec.primitive.ByteCodec; - import alternativa.protocol.codec.primitive.DoubleCodec; - import alternativa.protocol.codec.primitive.FloatCodec; - import alternativa.protocol.codec.primitive.IntCodec; - import alternativa.protocol.codec.primitive.LongCodec; - import alternativa.protocol.codec.primitive.ShortCodec; - import alternativa.protocol.codec.primitive.UIntCodec; - import alternativa.protocol.codec.primitive.UShortCodec; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Byte; - import alternativa.types.Float; - import alternativa.types.Long; - import alternativa.types.Short; - import alternativa.types.UShort; - import flash.utils.ByteArray; - import flash.utils.Dictionary; - import flash.utils.IDataInput; - import flash.utils.IDataOutput; - - public class Protocol implements IProtocol - { - [Inject] - public static var clientLog:IClientLog; - - private static const LOG_CHANNEL:String = "protocol"; - - public static var defaultInstance:IProtocol = new Protocol(); - - private var name_5c:Object = new Object(); - - private var name_RY:Dictionary = new Dictionary(false); - - public function Protocol() - { - super(); - this.registerCodec(new TypeCodecInfo(int,false),new IntCodec()); - this.registerCodec(new TypeCodecInfo(Short,false),new ShortCodec()); - this.registerCodec(new TypeCodecInfo(Byte,false),new ByteCodec()); - this.registerCodec(new TypeCodecInfo(UShort,false),new UShortCodec()); - this.registerCodec(new TypeCodecInfo(uint,false),new UIntCodec()); - this.registerCodec(new TypeCodecInfo(Number,false),new DoubleCodec()); - this.registerCodec(new TypeCodecInfo(Float,false),new FloatCodec()); - this.registerCodec(new TypeCodecInfo(Boolean,false),new BooleanCodec()); - this.registerCodec(new TypeCodecInfo(Long,false),new LongCodec()); - this.registerCodec(new TypeCodecInfo(String,false),new StringCodec()); - this.registerCodec(new TypeCodecInfo(ByteArray,false),new ByteArrayCodec()); - this.registerCodec(new TypeCodecInfo(int,true),new OptionalCodecDecorator(new IntCodec())); - this.registerCodec(new TypeCodecInfo(Short,true),new OptionalCodecDecorator(new ShortCodec())); - this.registerCodec(new TypeCodecInfo(Byte,true),new OptionalCodecDecorator(new ByteCodec())); - this.registerCodec(new TypeCodecInfo(UShort,true),new OptionalCodecDecorator(new UShortCodec())); - this.registerCodec(new TypeCodecInfo(uint,true),new OptionalCodecDecorator(new UIntCodec())); - this.registerCodec(new TypeCodecInfo(Number,true),new OptionalCodecDecorator(new DoubleCodec())); - this.registerCodec(new TypeCodecInfo(Float,true),new OptionalCodecDecorator(new FloatCodec())); - this.registerCodec(new TypeCodecInfo(Boolean,true),new OptionalCodecDecorator(new BooleanCodec())); - this.registerCodec(new TypeCodecInfo(Long,true),new OptionalCodecDecorator(new LongCodec())); - this.registerCodec(new TypeCodecInfo(String,true),new OptionalCodecDecorator(new StringCodec())); - this.registerCodec(new TypeCodecInfo(ByteArray,true),new OptionalCodecDecorator(new ByteArrayCodec())); - } - - public function registerCodec(codecInfo:ICodecInfo, codec:ICodec) : void - { - this.name_5c[codecInfo] = codec; - } - - public function registerCodecForType(type:Class, codec:ICodec) : void - { - this.name_5c[new TypeCodecInfo(type,false)] = codec; - this.name_5c[new TypeCodecInfo(type,true)] = new OptionalCodecDecorator(codec); - } - - public function getCodec(codecInfo:ICodecInfo) : ICodec - { - var result:ICodec = this.name_5c[codecInfo]; - if(result == null) - { - throw Error("Codec not found for " + codecInfo); - } - if(this.name_RY[result] == null) - { - result.init(this); - this.name_RY[result] = result; - } - return result; - } - - public function makeCodecInfo(type:Class) : ICodecInfo - { - return new TypeCodecInfo(type,false); - } - - public function wrapPacket(dest:IDataOutput, source:ProtocolBuffer, compressionType:CompressionType) : void - { - PacketHelper.wrapPacket(dest,source,compressionType); - } - - public function unwrapPacket(source:IDataInput, dest:ProtocolBuffer) : Boolean - { - return PacketHelper.unwrapPacket(source,dest); - } - } -} - diff --git a/src/alternativa/protocol/info/CodecInfo.as b/src/alternativa/protocol/info/CodecInfo.as deleted file mode 100644 index c915612..0000000 --- a/src/alternativa/protocol/info/CodecInfo.as +++ /dev/null @@ -1,26 +0,0 @@ -package alternativa.protocol.info -{ - import alternativa.protocol.ICodecInfo; - - public class CodecInfo implements ICodecInfo - { - private var optional:Boolean; - - public function CodecInfo(optional:Boolean) - { - super(); - this.optional = optional; - } - - public function isOptional() : Boolean - { - return this.optional; - } - - public function toString() : String - { - return "[CodecInfo optional = " + this.optional + "]"; - } - } -} - diff --git a/src/alternativa/protocol/info/CollectionCodecInfo.as b/src/alternativa/protocol/info/CollectionCodecInfo.as deleted file mode 100644 index c43c528..0000000 --- a/src/alternativa/protocol/info/CollectionCodecInfo.as +++ /dev/null @@ -1,34 +0,0 @@ -package alternativa.protocol.info -{ - import alternativa.protocol.ICodecInfo; - - public class CollectionCodecInfo extends CodecInfo - { - private var name_jo:ICodecInfo; - - private var name_fp:int; - - public function CollectionCodecInfo(elementCodec:ICodecInfo, optional:Boolean, level:int) - { - super(optional); - this.name_jo = elementCodec; - this.name_fp = level; - } - - public function get level() : int - { - return this.name_fp; - } - - public function get elementCodec() : ICodecInfo - { - return this.name_jo; - } - - override public function toString() : String - { - return "[CollectionCodecInfo " + super.toString() + " element=" + this.elementCodec.toString() + " level=" + this.level + "]"; - } - } -} - diff --git a/src/alternativa/protocol/info/EnumCodecInfo.as b/src/alternativa/protocol/info/EnumCodecInfo.as deleted file mode 100644 index b07e6f8..0000000 --- a/src/alternativa/protocol/info/EnumCodecInfo.as +++ /dev/null @@ -1,16 +0,0 @@ -package alternativa.protocol.info -{ - public class EnumCodecInfo extends TypeCodecInfo - { - public function EnumCodecInfo(type:Class, optional:Boolean) - { - super(type,optional); - } - - override public function toString() : String - { - return "[EnumCodec " + super.toString() + " type=" + type.toString(); - } - } -} - diff --git a/src/alternativa/protocol/info/TypeCodecInfo.as b/src/alternativa/protocol/info/TypeCodecInfo.as deleted file mode 100644 index f2217e8..0000000 --- a/src/alternativa/protocol/info/TypeCodecInfo.as +++ /dev/null @@ -1,26 +0,0 @@ -package alternativa.protocol.info -{ - import flash.utils.getQualifiedClassName; - - public class TypeCodecInfo extends CodecInfo - { - private var name_hx:Class; - - public function TypeCodecInfo(type:Class, optional:Boolean) - { - super(optional); - this.name_hx = type; - } - - public function get type() : Class - { - return this.name_hx; - } - - override public function toString() : String - { - return "[TypeCodecInfo " + super.toString() + " type=" + getQualifiedClassName(this.type); - } - } -} - diff --git a/src/alternativa/protocol/osgi/ProtocolActivator.as b/src/alternativa/protocol/osgi/ProtocolActivator.as deleted file mode 100644 index 8f2a9ac..0000000 --- a/src/alternativa/protocol/osgi/ProtocolActivator.as +++ /dev/null @@ -1,50 +0,0 @@ -package alternativa.protocol.osgi -{ - import alternativa.osgi.OSGi; - import alternativa.osgi.bundle.IBundleActivator; - import alternativa.protocol.IProtocol; - import alternativa.protocol.codec.primitive.ByteCodec; - import alternativa.protocol.codec.primitive.DoubleCodec; - import alternativa.protocol.codec.primitive.FloatCodec; - import alternativa.protocol.codec.primitive.IntCodec; - import alternativa.protocol.codec.primitive.LongCodec; - import alternativa.protocol.codec.primitive.ShortCodec; - import alternativa.protocol.codec.primitive.UByteCodec; - import alternativa.protocol.codec.primitive.UIntCodec; - import alternativa.protocol.codec.primitive.UShortCodec; - import alternativa.protocol.impl.Protocol; - import alternativa.types.Byte; - import alternativa.types.Float; - import alternativa.types.Long; - import alternativa.types.Short; - import alternativa.types.UByte; - import alternativa.types.UShort; - - public class ProtocolActivator implements IBundleActivator - { - public function ProtocolActivator() - { - super(); - } - - public function start(osgi:OSGi) : void - { - var protocol:IProtocol = Protocol.defaultInstance; - osgi.registerService(IProtocol,protocol); - protocol.registerCodecForType(Byte,new ByteCodec()); - protocol.registerCodecForType(Float,new FloatCodec()); - protocol.registerCodecForType(Long,new LongCodec()); - protocol.registerCodecForType(Short,new ShortCodec()); - protocol.registerCodecForType(UByte,new UByteCodec()); - protocol.registerCodecForType(UShort,new UShortCodec()); - protocol.registerCodecForType(uint,new UIntCodec()); - protocol.registerCodecForType(int,new IntCodec()); - protocol.registerCodecForType(Number,new DoubleCodec()); - } - - public function stop(osgi:OSGi) : void - { - } - } -} - diff --git a/src/alternativa/startup/ConnectionParameters.as b/src/alternativa/startup/ConnectionParameters.as deleted file mode 100644 index 3ca09a5..0000000 --- a/src/alternativa/startup/ConnectionParameters.as +++ /dev/null @@ -1,20 +0,0 @@ -package alternativa.startup -{ - public class ConnectionParameters - { - public var serverAddress:String; - - public var serverPorts:Vector.; - - public var resourcesRootURL:String; - - public function ConnectionParameters(serverAddress:String, serverPorts:Vector., resourcesRootURL:String) - { - super(); - this.serverAddress = serverAddress; - this.serverPorts = serverPorts; - this.resourcesRootURL = resourcesRootURL; - } - } -} - diff --git a/src/alternativa/startup/IClientConfigurator.as b/src/alternativa/startup/IClientConfigurator.as deleted file mode 100644 index 7d587b8..0000000 --- a/src/alternativa/startup/IClientConfigurator.as +++ /dev/null @@ -1,11 +0,0 @@ -package alternativa.startup -{ - import alternativa.utils.Properties; - import flash.display.DisplayObjectContainer; - - public interface IClientConfigurator - { - function start(param1:DisplayObjectContainer, param2:Properties, param3:Vector., param4:ConnectionParameters, param5:Vector.) : void; - } -} - diff --git a/src/alternativa/startup/LibraryInfo.as b/src/alternativa/startup/LibraryInfo.as deleted file mode 100644 index 05dacf0..0000000 --- a/src/alternativa/startup/LibraryInfo.as +++ /dev/null @@ -1,36 +0,0 @@ -package alternativa.startup -{ - import alternativa.utils.Properties; - import flash.display.Loader; - - public class LibraryInfo - { - public var name:String; - - public var resourceId:String; - - public var resourceVersion:String; - - public var manifestProperties:Properties; - - public var loader:Loader; - - public var size:int; - - public function LibraryInfo(name:String, resourceId:String, resourceVersion:String, manifestProperties:Properties, size:int) - { - super(); - this.name = name; - this.resourceId = resourceId; - this.resourceVersion = resourceVersion; - this.manifestProperties = manifestProperties; - this.size = size; - } - - public function toString() : String - { - return "[BundleInfo name=" + this.name + ", id=" + this.resourceId + ", version=" + this.resourceVersion + ", manifestProperties=" + this.manifestProperties + ", size=" + this.size; - } - } -} - diff --git a/src/alternativa/types/Byte.as b/src/alternativa/types/Byte.as deleted file mode 100644 index 5168caf..0000000 --- a/src/alternativa/types/Byte.as +++ /dev/null @@ -1,11 +0,0 @@ -package alternativa.types -{ - public class Byte - { - public function Byte() - { - super(); - } - } -} - diff --git a/src/alternativa/types/Float.as b/src/alternativa/types/Float.as deleted file mode 100644 index 9e70772..0000000 --- a/src/alternativa/types/Float.as +++ /dev/null @@ -1,11 +0,0 @@ -package alternativa.types -{ - public class Float - { - public function Float() - { - super(); - } - } -} - diff --git a/src/alternativa/types/Long.as b/src/alternativa/types/Long.as deleted file mode 100644 index 3529762..0000000 --- a/src/alternativa/types/Long.as +++ /dev/null @@ -1,111 +0,0 @@ -package alternativa.types -{ - import flash.utils.ByteArray; - import flash.utils.Dictionary; - - public final class Long - { - private static var longMap:Dictionary = new Dictionary(); - - private var name_Ec:int; - - private var name_Ti:int; - - public function Long(high:int, low:int) - { - super(); - this.name_Ti = high; - this.name_Ec = low; - } - - public static function getLong(high:int, low:int) : Long - { - var value:Long = null; - var highToLong:Dictionary = longMap[low]; - if(highToLong != null) - { - value = highToLong[high]; - if(value == null) - { - value = new Long(high,low); - highToLong[high] = value; - } - } - else - { - longMap[low] = new Dictionary(); - value = new Long(high,low); - longMap[low][high] = value; - } - return value; - } - - public static function fromHexString(s:String) : Long - { - var len:int = int(s.length); - if(len <= 8) - { - return getLong(0,int("0x" + s)); - } - return getLong(int("0x" + s.substr(0,len - 8)),int("0x" + s.substr(len - 8))); - } - - public static function fromInt(value:int) : Long - { - if(value < 0) - { - return getLong(4294967295,value); - } - return getLong(0,value); - } - - public function get low() : int - { - return this.name_Ec; - } - - public function get high() : int - { - return this.name_Ti; - } - - public function toString() : String - { - return this.intToUhex(this.name_Ti) + this.intToUhex(this.name_Ec); - } - - public function toByteArray(result:ByteArray = null) : ByteArray - { - if(result == null) - { - result = new ByteArray(); - } - result.position = 0; - result.writeInt(this.name_Ti); - result.writeInt(this.name_Ec); - result.position = 0; - return result; - } - - private function intToUhex(value:int) : String - { - var result:String = null; - var numZeros:int = 0; - if(value >= 0) - { - result = value.toString(16); - for(numZeros = 8 - result.length; numZeros > 0; ) - { - result = "0" + result; - numZeros--; - } - } - else - { - result = uint(value).toString(16); - } - return result; - } - } -} - diff --git a/src/alternativa/types/Short.as b/src/alternativa/types/Short.as deleted file mode 100644 index f0cd423..0000000 --- a/src/alternativa/types/Short.as +++ /dev/null @@ -1,11 +0,0 @@ -package alternativa.types -{ - public class Short - { - public function Short() - { - super(); - } - } -} - diff --git a/src/alternativa/types/UByte.as b/src/alternativa/types/UByte.as deleted file mode 100644 index 66276ba..0000000 --- a/src/alternativa/types/UByte.as +++ /dev/null @@ -1,11 +0,0 @@ -package alternativa.types -{ - public class UByte - { - public function UByte() - { - super(); - } - } -} - diff --git a/src/alternativa/types/UShort.as b/src/alternativa/types/UShort.as deleted file mode 100644 index 92b249a..0000000 --- a/src/alternativa/types/UShort.as +++ /dev/null @@ -1,11 +0,0 @@ -package alternativa.types -{ - public class UShort - { - public function UShort() - { - super(); - } - } -} - diff --git a/src/commons/A3DMatrix.as b/src/commons/A3DMatrix.as deleted file mode 100644 index 7786e17..0000000 --- a/src/commons/A3DMatrix.as +++ /dev/null @@ -1,185 +0,0 @@ -package commons -{ - public class A3DMatrix - { - private var name_Cw:Number; - - private var name_gS:Number; - - private var name_ne:Number; - - private var name_72:Number; - - private var name_mV:Number; - - private var _f:Number; - - private var name_eD:Number; - - private var name_ih:Number; - - private var name_Lu:Number; - - private var name_cJ:Number; - - private var name_SO:Number; - - private var name_UI:Number; - - public function A3DMatrix(a:Number, b:Number, c:Number, d:Number, e:Number, f:Number, g:Number, h:Number, i:Number, j:Number, k:Number, l:Number) - { - super(); - this.name_Cw = a; - this.name_gS = b; - this.name_ne = c; - this.name_72 = d; - this.name_mV = e; - this._f = f; - this.name_eD = g; - this.name_ih = h; - this.name_Lu = i; - this.name_cJ = j; - this.name_SO = k; - this.name_UI = l; - } - - public function get a() : Number - { - return this.name_Cw; - } - - public function set a(value:Number) : void - { - this.name_Cw = value; - } - - public function get b() : Number - { - return this.name_gS; - } - - public function set b(value:Number) : void - { - this.name_gS = value; - } - - public function get c() : Number - { - return this.name_ne; - } - - public function set c(value:Number) : void - { - this.name_ne = value; - } - - public function get d() : Number - { - return this.name_72; - } - - public function set d(value:Number) : void - { - this.name_72 = value; - } - - public function get e() : Number - { - return this.name_mV; - } - - public function set e(value:Number) : void - { - this.name_mV = value; - } - - public function get f() : Number - { - return this._f; - } - - public function set f(value:Number) : void - { - this._f = value; - } - - public function get g() : Number - { - return this.name_eD; - } - - public function set g(value:Number) : void - { - this.name_eD = value; - } - - public function get h() : Number - { - return this.name_ih; - } - - public function set h(value:Number) : void - { - this.name_ih = value; - } - - public function get i() : Number - { - return this.name_Lu; - } - - public function set i(value:Number) : void - { - this.name_Lu = value; - } - - public function get j() : Number - { - return this.name_cJ; - } - - public function set j(value:Number) : void - { - this.name_cJ = value; - } - - public function get k() : Number - { - return this.name_SO; - } - - public function set k(value:Number) : void - { - this.name_SO = value; - } - - public function get l() : Number - { - return this.name_UI; - } - - public function set l(value:Number) : void - { - this.name_UI = value; - } - - public function toString() : String - { - var result:String = "A3DMatrix ["; - result += "a = " + this.a + " "; - result += "b = " + this.b + " "; - result += "c = " + this.c + " "; - result += "d = " + this.d + " "; - result += "e = " + this.e + " "; - result += "f = " + this.f + " "; - result += "g = " + this.g + " "; - result += "h = " + this.h + " "; - result += "i = " + this.i + " "; - result += "j = " + this.j + " "; - result += "k = " + this.k + " "; - result += "l = " + this.l + " "; - return result + "]"; - } - } -} - diff --git a/src/commons/Id.as b/src/commons/Id.as deleted file mode 100644 index b4f9ad3..0000000 --- a/src/commons/Id.as +++ /dev/null @@ -1,31 +0,0 @@ -package commons -{ - public class Id - { - private var name_3I:uint; - - public function Id(id:uint) - { - super(); - this.name_3I = id; - } - - public function get id() : uint - { - return this.name_3I; - } - - public function set id(value:uint) : void - { - this.name_3I = value; - } - - public function toString() : String - { - var result:String = "Id ["; - result += "id = " + this.id + " "; - return result + "]"; - } - } -} - diff --git a/src/platform/client/a3d/osgi/Activator.as b/src/platform/client/a3d/osgi/Activator.as deleted file mode 100644 index 9d10218..0000000 --- a/src/platform/client/a3d/osgi/Activator.as +++ /dev/null @@ -1,1047 +0,0 @@ -package platform.client.a3d.osgi -{ - import _codec.commons.CodecA3DMatrix; - import _codec.commons.CodecId; - import _codec.commons.VectorCodecA3DMatrixLevel1; - import _codec.commons.VectorCodecA3DMatrixLevel2; - import _codec.commons.VectorCodecA3DMatrixLevel3; - import _codec.commons.VectorCodecIdLevel1; - import _codec.commons.VectorCodecIdLevel2; - import _codec.commons.VectorCodecIdLevel3; - import _codec.versions.version1.a3d.CodecA3D; - import _codec.versions.version1.a3d.VectorCodecA3DLevel1; - import _codec.versions.version1.a3d.VectorCodecA3DLevel2; - import _codec.versions.version1.a3d.VectorCodecA3DLevel3; - import _codec.versions.version1.a3d.geometry.CodecA3DGeometry; - import _codec.versions.version1.a3d.geometry.CodecA3DIndexBuffer; - import _codec.versions.version1.a3d.geometry.CodecA3DVertexBuffer; - import _codec.versions.version1.a3d.geometry.VectorCodecA3DGeometryLevel1; - import _codec.versions.version1.a3d.geometry.VectorCodecA3DGeometryLevel2; - import _codec.versions.version1.a3d.geometry.VectorCodecA3DGeometryLevel3; - import _codec.versions.version1.a3d.geometry.VectorCodecA3DIndexBufferLevel1; - import _codec.versions.version1.a3d.geometry.VectorCodecA3DIndexBufferLevel2; - import _codec.versions.version1.a3d.geometry.VectorCodecA3DIndexBufferLevel3; - import _codec.versions.version1.a3d.geometry.VectorCodecA3DVertexBufferLevel1; - import _codec.versions.version1.a3d.geometry.VectorCodecA3DVertexBufferLevel2; - import _codec.versions.version1.a3d.geometry.VectorCodecA3DVertexBufferLevel3; - import _codec.versions.version1.a3d.id.CodecParentId; - import _codec.versions.version1.a3d.id.VectorCodecParentIdLevel1; - import _codec.versions.version1.a3d.id.VectorCodecParentIdLevel2; - import _codec.versions.version1.a3d.id.VectorCodecParentIdLevel3; - import _codec.versions.version1.a3d.materials.CodecA3DImage; - import _codec.versions.version1.a3d.materials.CodecA3DMap; - import _codec.versions.version1.a3d.materials.CodecA3DMaterial; - import _codec.versions.version1.a3d.materials.VectorCodecA3DImageLevel1; - import _codec.versions.version1.a3d.materials.VectorCodecA3DImageLevel2; - import _codec.versions.version1.a3d.materials.VectorCodecA3DImageLevel3; - import _codec.versions.version1.a3d.materials.VectorCodecA3DMapLevel1; - import _codec.versions.version1.a3d.materials.VectorCodecA3DMapLevel2; - import _codec.versions.version1.a3d.materials.VectorCodecA3DMapLevel3; - import _codec.versions.version1.a3d.materials.VectorCodecA3DMaterialLevel1; - import _codec.versions.version1.a3d.materials.VectorCodecA3DMaterialLevel2; - import _codec.versions.version1.a3d.materials.VectorCodecA3DMaterialLevel3; - import _codec.versions.version1.a3d.objects.CodecA3DBox; - import _codec.versions.version1.a3d.objects.CodecA3DObject; - import _codec.versions.version1.a3d.objects.CodecA3DSurface; - import _codec.versions.version1.a3d.objects.CodecA3DTransformation; - import _codec.versions.version1.a3d.objects.VectorCodecA3DBoxLevel1; - import _codec.versions.version1.a3d.objects.VectorCodecA3DBoxLevel2; - import _codec.versions.version1.a3d.objects.VectorCodecA3DBoxLevel3; - import _codec.versions.version1.a3d.objects.VectorCodecA3DObjectLevel1; - import _codec.versions.version1.a3d.objects.VectorCodecA3DObjectLevel2; - import _codec.versions.version1.a3d.objects.VectorCodecA3DObjectLevel3; - import _codec.versions.version1.a3d.objects.VectorCodecA3DSurfaceLevel1; - import _codec.versions.version1.a3d.objects.VectorCodecA3DSurfaceLevel2; - import _codec.versions.version1.a3d.objects.VectorCodecA3DSurfaceLevel3; - import _codec.versions.version1.a3d.objects.VectorCodecA3DTransformationLevel1; - import _codec.versions.version1.a3d.objects.VectorCodecA3DTransformationLevel2; - import _codec.versions.version1.a3d.objects.VectorCodecA3DTransformationLevel3; - import _codec.versions.version2.a3d.CodecA3D2; - import _codec.versions.version2.a3d.VectorCodecA3D2Level1; - import _codec.versions.version2.a3d.VectorCodecA3D2Level2; - import _codec.versions.version2.a3d.VectorCodecA3D2Level3; - import _codec.versions.version2.a3d.animation.CodecA3D2AnimationClip; - import _codec.versions.version2.a3d.animation.CodecA3D2Keyframe; - import _codec.versions.version2.a3d.animation.CodecA3D2Track; - import _codec.versions.version2.a3d.animation.VectorCodecA3D2AnimationClipLevel1; - import _codec.versions.version2.a3d.animation.VectorCodecA3D2AnimationClipLevel2; - import _codec.versions.version2.a3d.animation.VectorCodecA3D2AnimationClipLevel3; - import _codec.versions.version2.a3d.animation.VectorCodecA3D2KeyframeLevel1; - import _codec.versions.version2.a3d.animation.VectorCodecA3D2KeyframeLevel2; - import _codec.versions.version2.a3d.animation.VectorCodecA3D2KeyframeLevel3; - import _codec.versions.version2.a3d.animation.VectorCodecA3D2TrackLevel1; - import _codec.versions.version2.a3d.animation.VectorCodecA3D2TrackLevel2; - import _codec.versions.version2.a3d.animation.VectorCodecA3D2TrackLevel3; - import _codec.versions.version2.a3d.geometry.CodecA3D2IndexBuffer; - import _codec.versions.version2.a3d.geometry.CodecA3D2VertexAttributes; - import _codec.versions.version2.a3d.geometry.CodecA3D2VertexBuffer; - import _codec.versions.version2.a3d.geometry.VectorCodecA3D2IndexBufferLevel1; - import _codec.versions.version2.a3d.geometry.VectorCodecA3D2IndexBufferLevel2; - import _codec.versions.version2.a3d.geometry.VectorCodecA3D2IndexBufferLevel3; - import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexAttributesLevel1; - import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexAttributesLevel2; - import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexAttributesLevel3; - import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexBufferLevel1; - import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexBufferLevel2; - import _codec.versions.version2.a3d.geometry.VectorCodecA3D2VertexBufferLevel3; - import _codec.versions.version2.a3d.materials.CodecA3D2CubeMap; - import _codec.versions.version2.a3d.materials.CodecA3D2Image; - import _codec.versions.version2.a3d.materials.CodecA3D2Map; - import _codec.versions.version2.a3d.materials.CodecA3D2Material; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2CubeMapLevel1; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2CubeMapLevel2; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2CubeMapLevel3; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2ImageLevel1; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2ImageLevel2; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2ImageLevel3; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2MapLevel1; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2MapLevel2; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2MapLevel3; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2MaterialLevel1; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2MaterialLevel2; - import _codec.versions.version2.a3d.materials.VectorCodecA3D2MaterialLevel3; - import _codec.versions.version2.a3d.objects.CodecA3D2AmbientLight; - import _codec.versions.version2.a3d.objects.CodecA3D2Box; - import _codec.versions.version2.a3d.objects.CodecA3D2Decal; - import _codec.versions.version2.a3d.objects.CodecA3D2DirectionalLight; - import _codec.versions.version2.a3d.objects.CodecA3D2Joint; - import _codec.versions.version2.a3d.objects.CodecA3D2JointBindTransform; - import _codec.versions.version2.a3d.objects.CodecA3D2Mesh; - import _codec.versions.version2.a3d.objects.CodecA3D2Object; - import _codec.versions.version2.a3d.objects.CodecA3D2OmniLight; - import _codec.versions.version2.a3d.objects.CodecA3D2Skin; - import _codec.versions.version2.a3d.objects.CodecA3D2SpotLight; - import _codec.versions.version2.a3d.objects.CodecA3D2Sprite; - import _codec.versions.version2.a3d.objects.CodecA3D2Surface; - import _codec.versions.version2.a3d.objects.CodecA3D2Transform; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2AmbientLightLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2AmbientLightLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2AmbientLightLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2BoxLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2BoxLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2BoxLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2DecalLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2DecalLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2DecalLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2DirectionalLightLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2DirectionalLightLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2DirectionalLightLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointBindTransformLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointBindTransformLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointBindTransformLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2JointLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2MeshLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2MeshLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2MeshLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2ObjectLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2ObjectLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2ObjectLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2OmniLightLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2OmniLightLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2OmniLightLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SkinLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SkinLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SkinLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpotLightLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpotLightLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpotLightLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpriteLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpriteLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SpriteLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SurfaceLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SurfaceLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2SurfaceLevel3; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2TransformLevel1; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2TransformLevel2; - import _codec.versions.version2.a3d.objects.VectorCodecA3D2TransformLevel3; - import alternativa.osgi.OSGi; - import alternativa.osgi.bundle.IBundleActivator; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.EnumCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import commons.A3DMatrix; - import commons.Id; - import versions.version1.a3d.A3D; - import versions.version1.a3d.geometry.A3DGeometry; - import versions.version1.a3d.geometry.A3DIndexBuffer; - import versions.version1.a3d.geometry.A3DVertexBuffer; - import versions.version1.a3d.id.ParentId; - import versions.version1.a3d.materials.A3DImage; - import versions.version1.a3d.materials.A3DMap; - import versions.version1.a3d.materials.A3DMaterial; - import versions.version1.a3d.objects.A3DBox; - import versions.version1.a3d.objects.A3DObject; - import versions.version1.a3d.objects.A3DSurface; - import versions.version1.a3d.objects.A3DTransformation; - import versions.version2.a3d.A3D2; - import versions.version2.a3d.animation.A3D2AnimationClip; - import versions.version2.a3d.animation.A3D2Keyframe; - import versions.version2.a3d.animation.A3D2Track; - import versions.version2.a3d.geometry.A3D2IndexBuffer; - import versions.version2.a3d.geometry.A3D2VertexAttributes; - import versions.version2.a3d.geometry.A3D2VertexBuffer; - import versions.version2.a3d.materials.A3D2CubeMap; - import versions.version2.a3d.materials.A3D2Image; - import versions.version2.a3d.materials.A3D2Map; - import versions.version2.a3d.materials.A3D2Material; - import versions.version2.a3d.objects.A3D2AmbientLight; - import versions.version2.a3d.objects.A3D2Box; - import versions.version2.a3d.objects.A3D2Decal; - import versions.version2.a3d.objects.A3D2DirectionalLight; - import versions.version2.a3d.objects.A3D2Joint; - import versions.version2.a3d.objects.A3D2JointBindTransform; - import versions.version2.a3d.objects.A3D2Mesh; - import versions.version2.a3d.objects.A3D2Object; - import versions.version2.a3d.objects.A3D2OmniLight; - import versions.version2.a3d.objects.A3D2Skin; - import versions.version2.a3d.objects.A3D2SpotLight; - import versions.version2.a3d.objects.A3D2Sprite; - import versions.version2.a3d.objects.A3D2Surface; - import versions.version2.a3d.objects.A3D2Transform; - - public class Activator implements IBundleActivator - { - public static var osgi:OSGi; - - public function Activator() - { - super(); - } - - public function start(_osgi:OSGi) : void - { - var codec:ICodec = null; - osgi = _osgi; - var protocol:IProtocol = IProtocol(osgi.getService(IProtocol)); - codec = new CodecA3DImage(); - protocol.registerCodec(new TypeCodecInfo(A3DImage,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DImage,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DVertexBuffer(); - protocol.registerCodec(new TypeCodecInfo(A3DVertexBuffer,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DVertexBuffer,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DGeometry(); - protocol.registerCodec(new TypeCodecInfo(A3DGeometry,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DGeometry,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2AmbientLight(); - protocol.registerCodec(new TypeCodecInfo(A3D2AmbientLight,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2AmbientLight,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2VertexBuffer(); - protocol.registerCodec(new TypeCodecInfo(A3D2VertexBuffer,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2VertexBuffer,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Object(); - protocol.registerCodec(new TypeCodecInfo(A3D2Object,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Object,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2IndexBuffer(); - protocol.registerCodec(new TypeCodecInfo(A3D2IndexBuffer,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2IndexBuffer,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2SpotLight(); - protocol.registerCodec(new TypeCodecInfo(A3D2SpotLight,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2SpotLight,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2(); - protocol.registerCodec(new TypeCodecInfo(A3D2,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DSurface(); - protocol.registerCodec(new TypeCodecInfo(A3DSurface,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DSurface,true),new OptionalCodecDecorator(codec)); - codec = new CodecId(); - protocol.registerCodec(new TypeCodecInfo(Id,false),codec); - protocol.registerCodec(new TypeCodecInfo(Id,true),new OptionalCodecDecorator(codec)); - codec = new CodecParentId(); - protocol.registerCodec(new TypeCodecInfo(ParentId,false),codec); - protocol.registerCodec(new TypeCodecInfo(ParentId,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Map(); - protocol.registerCodec(new TypeCodecInfo(A3D2Map,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Map,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DIndexBuffer(); - protocol.registerCodec(new TypeCodecInfo(A3DIndexBuffer,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DIndexBuffer,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DMaterial(); - protocol.registerCodec(new TypeCodecInfo(A3DMaterial,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DMaterial,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2DirectionalLight(); - protocol.registerCodec(new TypeCodecInfo(A3D2DirectionalLight,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2DirectionalLight,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Image(); - protocol.registerCodec(new TypeCodecInfo(A3D2Image,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Image,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Material(); - protocol.registerCodec(new TypeCodecInfo(A3D2Material,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Material,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Sprite(); - protocol.registerCodec(new TypeCodecInfo(A3D2Sprite,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Sprite,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DMatrix(); - protocol.registerCodec(new TypeCodecInfo(A3DMatrix,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DMatrix,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Decal(); - protocol.registerCodec(new TypeCodecInfo(A3D2Decal,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Decal,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Box(); - protocol.registerCodec(new TypeCodecInfo(A3D2Box,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Box,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DObject(); - protocol.registerCodec(new TypeCodecInfo(A3DObject,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DObject,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Keyframe(); - protocol.registerCodec(new TypeCodecInfo(A3D2Keyframe,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Keyframe,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2OmniLight(); - protocol.registerCodec(new TypeCodecInfo(A3D2OmniLight,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2OmniLight,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Mesh(); - protocol.registerCodec(new TypeCodecInfo(A3D2Mesh,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Mesh,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Surface(); - protocol.registerCodec(new TypeCodecInfo(A3D2Surface,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Surface,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DBox(); - protocol.registerCodec(new TypeCodecInfo(A3DBox,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DBox,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2CubeMap(); - protocol.registerCodec(new TypeCodecInfo(A3D2CubeMap,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2CubeMap,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Transform(); - protocol.registerCodec(new TypeCodecInfo(A3D2Transform,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Transform,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Skin(); - protocol.registerCodec(new TypeCodecInfo(A3D2Skin,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Skin,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2JointBindTransform(); - protocol.registerCodec(new TypeCodecInfo(A3D2JointBindTransform,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2JointBindTransform,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Joint(); - protocol.registerCodec(new TypeCodecInfo(A3D2Joint,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Joint,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DTransformation(); - protocol.registerCodec(new TypeCodecInfo(A3DTransformation,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DTransformation,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2Track(); - protocol.registerCodec(new TypeCodecInfo(A3D2Track,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2Track,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2AnimationClip(); - protocol.registerCodec(new TypeCodecInfo(A3D2AnimationClip,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D2AnimationClip,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D(); - protocol.registerCodec(new TypeCodecInfo(A3D,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3D,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3D2VertexAttributes(); - protocol.registerCodec(new EnumCodecInfo(A3D2VertexAttributes,false),codec); - protocol.registerCodec(new EnumCodecInfo(A3D2VertexAttributes,true),new OptionalCodecDecorator(codec)); - codec = new CodecA3DMap(); - protocol.registerCodec(new TypeCodecInfo(A3DMap,false),codec); - protocol.registerCodec(new TypeCodecInfo(A3DMap,true),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DecalLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DecalLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DVertexBufferLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DVertexBufferLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DirectionalLightLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DirectionalLightLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DirectionalLightLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DirectionalLightLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointBindTransformLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointBindTransformLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DObjectLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DObjectLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2IndexBufferLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2IndexBufferLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexBufferLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexBufferLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DBoxLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DBoxLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMaterialLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMaterialLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2OmniLightLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2OmniLightLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MapLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MapLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DVertexBufferLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DVertexBufferLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2Level2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2Level2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AnimationClipLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AnimationClipLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexAttributesLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexAttributesLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DGeometryLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DGeometryLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SkinLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SkinLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2OmniLightLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2OmniLightLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecParentIdLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecParentIdLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MapLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MapLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecIdLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecIdLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DirectionalLightLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DirectionalLightLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MeshLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MeshLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DecalLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DecalLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MeshLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MeshLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MeshLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MeshLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DSurfaceLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DSurfaceLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMatrixLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMatrixLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2IndexBufferLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2IndexBufferLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SurfaceLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SurfaceLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2BoxLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2BoxLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DTransformationLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DTransformationLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AnimationClipLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AnimationClipLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DTransformationLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DTransformationLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMatrixLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMatrixLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointBindTransformLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointBindTransformLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ObjectLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ObjectLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpriteLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpriteLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DBoxLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DBoxLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexBufferLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexBufferLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecParentIdLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecParentIdLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMaterialLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMaterialLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TrackLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TrackLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AmbientLightLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AmbientLightLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMapLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMapLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ImageLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ImageLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DGeometryLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DGeometryLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMapLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMapLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointBindTransformLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2JointBindTransformLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DSurfaceLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DSurfaceLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SurfaceLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SurfaceLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DIndexBufferLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DIndexBufferLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AnimationClipLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AnimationClipLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DIndexBufferLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DIndexBufferLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpotLightLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpotLightLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DVertexBufferLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DVertexBufferLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMapLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMapLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpotLightLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpotLightLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DecalLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2DecalLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DBoxLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DBoxLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ObjectLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ObjectLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TrackLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TrackLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2CubeMapLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2CubeMapLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DGeometryLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DGeometryLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMatrixLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMatrixLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMatrix,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SkinLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SkinLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DImageLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DImageLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2OmniLightLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2OmniLightLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpotLightLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpotLightLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DImageLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DImageLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DSurfaceLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DSurfaceLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2KeyframeLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2KeyframeLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2IndexBufferLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2IndexBufferLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2KeyframeLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2KeyframeLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TransformLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TransformLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AmbientLightLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AmbientLightLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexAttributesLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexAttributesLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpriteLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpriteLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DImageLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DImageLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DIndexBufferLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DIndexBufferLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DIndexBuffer,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexAttributesLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexAttributesLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2CubeMapLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2CubeMapLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2BoxLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2BoxLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2CubeMapLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2CubeMapLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SurfaceLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SurfaceLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2BoxLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2BoxLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecParentIdLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecParentIdLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ParentId,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ImageLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ImageLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TrackLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TrackLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DObjectLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DObjectLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MaterialLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MaterialLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TransformLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TransformLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SkinLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SkinLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecIdLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecIdLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ObjectLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ObjectLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ImageLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2ImageLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMaterialLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DMaterialLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpriteLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2SpriteLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MaterialLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MaterialLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DTransformationLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DTransformationLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DTransformation,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2KeyframeLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2KeyframeLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecIdLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecIdLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Id,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TransformLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2TransformLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Transform,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2Level3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2Level3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MapLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MapLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexBufferLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2VertexBufferLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MaterialLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2MaterialLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DObjectLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3DObjectLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2Level1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2Level1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AmbientLightLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecA3D2AmbientLightLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,true),true,1),new OptionalCodecDecorator(codec)); - } - - public function stop(osgi:OSGi) : void - { - } - } -} - diff --git a/src/platform/clients/fp10/libraries/alternativaprotocol/Activator.as b/src/platform/clients/fp10/libraries/alternativaprotocol/Activator.as deleted file mode 100644 index 7ced54e..0000000 --- a/src/platform/clients/fp10/libraries/alternativaprotocol/Activator.as +++ /dev/null @@ -1,232 +0,0 @@ -package platform.clients.fp10.libraries.alternativaprotocol -{ - import _codec.VectorCodecStringLevel1; - import _codec.VectorCodecStringLevel2; - import _codec.VectorCodecStringLevel3; - import _codec.VectorCodecbyteLevel1; - import _codec.VectorCodecbyteLevel2; - import _codec.VectorCodecbyteLevel3; - import _codec.VectorCodecfloatLevel1; - import _codec.VectorCodecfloatLevel2; - import _codec.VectorCodecfloatLevel3; - import _codec.VectorCodecintLevel1; - import _codec.VectorCodecintLevel2; - import _codec.VectorCodecintLevel3; - import _codec.VectorCodeclongLevel1; - import _codec.VectorCodeclongLevel2; - import _codec.VectorCodeclongLevel3; - import _codec.VectorCodecshortLevel1; - import _codec.VectorCodecshortLevel2; - import _codec.VectorCodecshortLevel3; - import _codec.unsigned.VectorCodecintLevel1; - import _codec.unsigned.VectorCodecintLevel2; - import _codec.unsigned.VectorCodecintLevel3; - import _codec.unsigned.VectorCodeclongLevel1; - import _codec.unsigned.VectorCodeclongLevel2; - import _codec.unsigned.VectorCodeclongLevel3; - import _codec.unsigned.VectorCodecshortLevel1; - import _codec.unsigned.VectorCodecshortLevel2; - import _codec.unsigned.VectorCodecshortLevel3; - import alternativa.osgi.OSGi; - import alternativa.osgi.bundle.IBundleActivator; - import alternativa.osgi.service.clientlog.IClientLog; - import alternativa.protocol.ICodec; - import alternativa.protocol.IProtocol; - import alternativa.protocol.codec.OptionalCodecDecorator; - import alternativa.protocol.impl.PacketHelper; - import alternativa.protocol.impl.Protocol; - import alternativa.protocol.info.CollectionCodecInfo; - import alternativa.protocol.info.TypeCodecInfo; - import alternativa.types.Byte; - import alternativa.types.Float; - import alternativa.types.Long; - import alternativa.types.Short; - import alternativa.types.UByte; - import alternativa.types.UShort; - - public class Activator implements IBundleActivator - { - public static var osgi:OSGi; - - public function Activator() - { - super(); - } - - public function start(_osgi:OSGi) : void - { - var codec:ICodec = null; - osgi = _osgi; - var protocol:IProtocol = Protocol.defaultInstance; - codec = new VectorCodecbyteLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecbyteLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecbyteLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecbyteLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecbyteLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecbyteLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,true),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecintLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecintLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecintLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecintLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecintLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecintLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(int,true),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecshortLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecshortLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecshortLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecshortLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecshortLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodecshortLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,true),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodeclongLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodeclongLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodeclongLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodeclongLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodeclongLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.VectorCodeclongLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecfloatLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecfloatLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecfloatLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecfloatLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecfloatLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecfloatLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,true),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecintLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecintLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecintLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecintLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecintLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecintLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,true),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecshortLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecshortLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecshortLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecshortLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecshortLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,false),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodecshortLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UByte,true),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodeclongLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodeclongLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),true,1),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodeclongLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodeclongLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),true,2),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodeclongLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,false),true,3),new OptionalCodecDecorator(codec)); - codec = new _codec.unsigned.VectorCodeclongLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(uint,true),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecStringLevel1(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecStringLevel1(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),false,1),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),true,1),new OptionalCodecDecorator(codec)); - codec = new VectorCodecStringLevel2(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecStringLevel2(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),false,2),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),true,2),new OptionalCodecDecorator(codec)); - codec = new VectorCodecStringLevel3(false); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),true,3),new OptionalCodecDecorator(codec)); - codec = new VectorCodecStringLevel3(true); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),false,3),codec); - protocol.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(String,true),true,3),new OptionalCodecDecorator(codec)); - osgi.injectService(IClientLog,Protocol,"clientLog"); - osgi.injectService(IClientLog,PacketHelper,"clientLog"); - } - - public function stop(osgi:OSGi) : void - { - } - } -} - diff --git a/src/versions/version1/a3d/A3D.as b/src/versions/version1/a3d/A3D.as deleted file mode 100644 index 3c3ff8e..0000000 --- a/src/versions/version1/a3d/A3D.as +++ /dev/null @@ -1,108 +0,0 @@ -package versions.version1.a3d -{ - import versions.version1.a3d.geometry.A3DGeometry; - import versions.version1.a3d.materials.A3DImage; - import versions.version1.a3d.materials.A3DMap; - import versions.version1.a3d.materials.A3DMaterial; - import versions.version1.a3d.objects.A3DBox; - import versions.version1.a3d.objects.A3DObject; - - public class A3D - { - private var name_0:Vector.; - - private var OptionalMap:Vector.; - - private var name_ce:Vector.; - - private var name_XJ:Vector.; - - private var name_22:Vector.; - - private var name_Kq:Vector.; - - public function A3D(boxes:Vector., geometries:Vector., images:Vector., maps:Vector., materials:Vector., objects:Vector.) - { - super(); - this.name_0 = boxes; - this.OptionalMap = geometries; - this.name_ce = images; - this.name_XJ = maps; - this.name_22 = materials; - this.name_Kq = objects; - } - - public function get boxes() : Vector. - { - return this.name_0; - } - - public function set boxes(value:Vector.) : void - { - this.name_0 = value; - } - - public function get geometries() : Vector. - { - return this.OptionalMap; - } - - public function set geometries(value:Vector.) : void - { - this.OptionalMap = value; - } - - public function get images() : Vector. - { - return this.name_ce; - } - - public function set images(value:Vector.) : void - { - this.name_ce = value; - } - - public function get maps() : Vector. - { - return this.name_XJ; - } - - public function set maps(value:Vector.) : void - { - this.name_XJ = value; - } - - public function get materials() : Vector. - { - return this.name_22; - } - - public function set materials(value:Vector.) : void - { - this.name_22 = value; - } - - public function get objects() : Vector. - { - return this.name_Kq; - } - - public function set objects(value:Vector.) : void - { - this.name_Kq = value; - } - - public function toString() : String - { - var result:String = "A3D ["; - result += "boxes = " + this.boxes + " "; - result += "geometries = " + this.geometries + " "; - result += "images = " + this.images + " "; - result += "maps = " + this.maps + " "; - result += "materials = " + this.materials + " "; - result += "objects = " + this.objects + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/geometry/A3DGeometry.as b/src/versions/version1/a3d/geometry/A3DGeometry.as deleted file mode 100644 index c674462..0000000 --- a/src/versions/version1/a3d/geometry/A3DGeometry.as +++ /dev/null @@ -1,61 +0,0 @@ -package versions.version1.a3d.geometry -{ - import commons.Id; - - public class A3DGeometry - { - private var name_3I:Id; - - private var name_EM:A3DIndexBuffer; - - private var name_0B:Vector.; - - public function A3DGeometry(id:Id, indexBuffer:A3DIndexBuffer, vertexBuffers:Vector.) - { - super(); - this.name_3I = id; - this.name_EM = indexBuffer; - this.name_0B = vertexBuffers; - } - - public function get id() : Id - { - return this.name_3I; - } - - public function set id(value:Id) : void - { - this.name_3I = value; - } - - public function get indexBuffer() : A3DIndexBuffer - { - return this.name_EM; - } - - public function set indexBuffer(value:A3DIndexBuffer) : void - { - this.name_EM = value; - } - - public function get vertexBuffers() : Vector. - { - return this.name_0B; - } - - public function set vertexBuffers(value:Vector.) : void - { - this.name_0B = value; - } - - public function toString() : String - { - var result:String = "A3DGeometry ["; - result += "id = " + this.id + " "; - result += "indexBuffer = " + this.indexBuffer + " "; - result += "vertexBuffers = " + this.vertexBuffers + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/geometry/A3DIndexBuffer.as b/src/versions/version1/a3d/geometry/A3DIndexBuffer.as deleted file mode 100644 index c20c363..0000000 --- a/src/versions/version1/a3d/geometry/A3DIndexBuffer.as +++ /dev/null @@ -1,47 +0,0 @@ -package versions.version1.a3d.geometry -{ - import flash.utils.ByteArray; - - public class A3DIndexBuffer - { - private var name_79:ByteArray; - - private var name_m0:int; - - public function A3DIndexBuffer(byteBuffer:ByteArray, indexCount:int) - { - super(); - this.name_79 = byteBuffer; - this.name_m0 = indexCount; - } - - public function get byteBuffer() : ByteArray - { - return this.name_79; - } - - public function set byteBuffer(value:ByteArray) : void - { - this.name_79 = value; - } - - public function get indexCount() : int - { - return this.name_m0; - } - - public function set indexCount(value:int) : void - { - this.name_m0 = value; - } - - public function toString() : String - { - var result:String = "A3DIndexBuffer ["; - result += "byteBuffer = " + this.byteBuffer + " "; - result += "indexCount = " + this.indexCount + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/geometry/A3DVertexBuffer.as b/src/versions/version1/a3d/geometry/A3DVertexBuffer.as deleted file mode 100644 index 467f117..0000000 --- a/src/versions/version1/a3d/geometry/A3DVertexBuffer.as +++ /dev/null @@ -1,61 +0,0 @@ -package versions.version1.a3d.geometry -{ - import flash.utils.ByteArray; - - public class A3DVertexBuffer - { - private var name_96:Vector.; - - private var name_79:ByteArray; - - private var name_g1:uint; - - public function A3DVertexBuffer(attributes:Vector., byteBuffer:ByteArray, vertexCount:uint) - { - super(); - this.name_96 = attributes; - this.name_79 = byteBuffer; - this.name_g1 = vertexCount; - } - - public function get attributes() : Vector. - { - return this.name_96; - } - - public function set attributes(value:Vector.) : void - { - this.name_96 = value; - } - - public function get byteBuffer() : ByteArray - { - return this.name_79; - } - - public function set byteBuffer(value:ByteArray) : void - { - this.name_79 = value; - } - - public function get vertexCount() : uint - { - return this.name_g1; - } - - public function set vertexCount(value:uint) : void - { - this.name_g1 = value; - } - - public function toString() : String - { - var result:String = "A3DVertexBuffer ["; - result += "attributes = " + this.attributes + " "; - result += "byteBuffer = " + this.byteBuffer + " "; - result += "vertexCount = " + this.vertexCount + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/id/ParentId.as b/src/versions/version1/a3d/id/ParentId.as deleted file mode 100644 index 9d3f188..0000000 --- a/src/versions/version1/a3d/id/ParentId.as +++ /dev/null @@ -1,31 +0,0 @@ -package versions.version1.a3d.id -{ - public class ParentId - { - private var name_3I:uint; - - public function ParentId(id:uint) - { - super(); - this.name_3I = id; - } - - public function get id() : uint - { - return this.name_3I; - } - - public function set id(value:uint) : void - { - this.name_3I = value; - } - - public function toString() : String - { - var result:String = "ParentId ["; - result += "id = " + this.id + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/materials/A3DImage.as b/src/versions/version1/a3d/materials/A3DImage.as deleted file mode 100644 index c906a43..0000000 --- a/src/versions/version1/a3d/materials/A3DImage.as +++ /dev/null @@ -1,47 +0,0 @@ -package versions.version1.a3d.materials -{ - import commons.Id; - - public class A3DImage - { - private var name_3I:Id; - - private var name_6D:String; - - public function A3DImage(id:Id, url:String) - { - super(); - this.name_3I = id; - this.name_6D = url; - } - - public function get id() : Id - { - return this.name_3I; - } - - public function set id(value:Id) : void - { - this.name_3I = value; - } - - public function get url() : String - { - return this.name_6D; - } - - public function set url(value:String) : void - { - this.name_6D = value; - } - - public function toString() : String - { - var result:String = "A3DImage ["; - result += "id = " + this.id + " "; - result += "url = " + this.url + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/materials/A3DMap.as b/src/versions/version1/a3d/materials/A3DMap.as deleted file mode 100644 index 8492ecf..0000000 --- a/src/versions/version1/a3d/materials/A3DMap.as +++ /dev/null @@ -1,117 +0,0 @@ -package versions.version1.a3d.materials -{ - import commons.Id; - - public class A3DMap - { - private var name_9y:uint; - - private var name_3I:Id; - - private var name_JE:Id; - - private var name_0U:Number; - - private var name_5k:Number; - - private var name_JZ:Number; - - private var name_XP:Number; - - public function A3DMap(channel:uint, id:Id, imageId:Id, uOffset:Number, uScale:Number, vOffset:Number, vScale:Number) - { - super(); - this.name_9y = channel; - this.name_3I = id; - this.name_JE = imageId; - this.name_0U = uOffset; - this.name_5k = uScale; - this.name_JZ = vOffset; - this.name_XP = vScale; - } - - public function get channel() : uint - { - return this.name_9y; - } - - public function set channel(value:uint) : void - { - this.name_9y = value; - } - - public function get id() : Id - { - return this.name_3I; - } - - public function set id(value:Id) : void - { - this.name_3I = value; - } - - public function get imageId() : Id - { - return this.name_JE; - } - - public function set imageId(value:Id) : void - { - this.name_JE = value; - } - - public function get uOffset() : Number - { - return this.name_0U; - } - - public function set uOffset(value:Number) : void - { - this.name_0U = value; - } - - public function get uScale() : Number - { - return this.name_5k; - } - - public function set uScale(value:Number) : void - { - this.name_5k = value; - } - - public function get vOffset() : Number - { - return this.name_JZ; - } - - public function set vOffset(value:Number) : void - { - this.name_JZ = value; - } - - public function get vScale() : Number - { - return this.name_XP; - } - - public function set vScale(value:Number) : void - { - this.name_XP = value; - } - - public function toString() : String - { - var result:String = "A3DMap ["; - result += "channel = " + this.channel + " "; - result += "id = " + this.id + " "; - result += "imageId = " + this.imageId + " "; - result += "uOffset = " + this.uOffset + " "; - result += "uScale = " + this.uScale + " "; - result += "vOffset = " + this.vOffset + " "; - result += "vScale = " + this.vScale + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/materials/A3DMaterial.as b/src/versions/version1/a3d/materials/A3DMaterial.as deleted file mode 100644 index e8b356e..0000000 --- a/src/versions/version1/a3d/materials/A3DMaterial.as +++ /dev/null @@ -1,117 +0,0 @@ -package versions.version1.a3d.materials -{ - import commons.Id; - - public class A3DMaterial - { - private var name_9s:Id; - - private var name_bl:Id; - - private var name_3I:Id; - - private var name_qf:Id; - - private var name_QR:Id; - - private var name_Jn:Id; - - private var name_LA:Id; - - public function A3DMaterial(diffuseMapId:Id, glossinessMapId:Id, id:Id, lightMapId:Id, normalMapId:Id, opacityMapId:Id, specularMapId:Id) - { - super(); - this.name_9s = diffuseMapId; - this.name_bl = glossinessMapId; - this.name_3I = id; - this.name_qf = lightMapId; - this.name_QR = normalMapId; - this.name_Jn = opacityMapId; - this.name_LA = specularMapId; - } - - public function get diffuseMapId() : Id - { - return this.name_9s; - } - - public function set diffuseMapId(value:Id) : void - { - this.name_9s = value; - } - - public function get glossinessMapId() : Id - { - return this.name_bl; - } - - public function set glossinessMapId(value:Id) : void - { - this.name_bl = value; - } - - public function get id() : Id - { - return this.name_3I; - } - - public function set id(value:Id) : void - { - this.name_3I = value; - } - - public function get lightMapId() : Id - { - return this.name_qf; - } - - public function set lightMapId(value:Id) : void - { - this.name_qf = value; - } - - public function get normalMapId() : Id - { - return this.name_QR; - } - - public function set normalMapId(value:Id) : void - { - this.name_QR = value; - } - - public function get opacityMapId() : Id - { - return this.name_Jn; - } - - public function set opacityMapId(value:Id) : void - { - this.name_Jn = value; - } - - public function get specularMapId() : Id - { - return this.name_LA; - } - - public function set specularMapId(value:Id) : void - { - this.name_LA = value; - } - - public function toString() : String - { - var result:String = "A3DMaterial ["; - result += "diffuseMapId = " + this.diffuseMapId + " "; - result += "glossinessMapId = " + this.glossinessMapId + " "; - result += "id = " + this.id + " "; - result += "lightMapId = " + this.lightMapId + " "; - result += "normalMapId = " + this.normalMapId + " "; - result += "opacityMapId = " + this.opacityMapId + " "; - result += "specularMapId = " + this.specularMapId + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/objects/A3DBox.as b/src/versions/version1/a3d/objects/A3DBox.as deleted file mode 100644 index f1fa66c..0000000 --- a/src/versions/version1/a3d/objects/A3DBox.as +++ /dev/null @@ -1,47 +0,0 @@ -package versions.version1.a3d.objects -{ - import commons.Id; - - public class A3DBox - { - private var name_Ge:Vector.; - - private var name_3I:Id; - - public function A3DBox(box:Vector., id:Id) - { - super(); - this.name_Ge = box; - this.name_3I = id; - } - - public function get box() : Vector. - { - return this.name_Ge; - } - - public function set box(value:Vector.) : void - { - this.name_Ge = value; - } - - public function get id() : Id - { - return this.name_3I; - } - - public function set id(value:Id) : void - { - this.name_3I = value; - } - - public function toString() : String - { - var result:String = "A3DBox ["; - result += "box = " + this.box + " "; - result += "id = " + this.id + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/objects/A3DObject.as b/src/versions/version1/a3d/objects/A3DObject.as deleted file mode 100644 index 3f6fe22..0000000 --- a/src/versions/version1/a3d/objects/A3DObject.as +++ /dev/null @@ -1,132 +0,0 @@ -package versions.version1.a3d.objects -{ - import commons.Id; - import versions.version1.a3d.id.ParentId; - - public class A3DObject - { - private var name_jD:Id; - - private var name_16:Id; - - private var name_3I:Id; - - private var _name:String; - - private var name_fP:ParentId; - - private var name_eW:Vector.; - - private var name_UJ:A3DTransformation; - - private var name_1u:Boolean; - - public function A3DObject(boundBoxId:Id, geometryId:Id, id:Id, name:String, parentId:ParentId, surfaces:Vector., transformation:A3DTransformation, visible:Boolean) - { - super(); - this.name_jD = boundBoxId; - this.name_16 = geometryId; - this.name_3I = id; - this._name = name; - this.name_fP = parentId; - this.name_eW = surfaces; - this.name_UJ = transformation; - this.name_1u = visible; - } - - public function get boundBoxId() : Id - { - return this.name_jD; - } - - public function set boundBoxId(value:Id) : void - { - this.name_jD = value; - } - - public function get geometryId() : Id - { - return this.name_16; - } - - public function set geometryId(value:Id) : void - { - this.name_16 = value; - } - - public function get id() : Id - { - return this.name_3I; - } - - public function set id(value:Id) : void - { - this.name_3I = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get parentId() : ParentId - { - return this.name_fP; - } - - public function set parentId(value:ParentId) : void - { - this.name_fP = value; - } - - public function get surfaces() : Vector. - { - return this.name_eW; - } - - public function set surfaces(value:Vector.) : void - { - this.name_eW = value; - } - - public function get transformation() : A3DTransformation - { - return this.name_UJ; - } - - public function set transformation(value:A3DTransformation) : void - { - this.name_UJ = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3DObject ["; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "geometryId = " + this.geometryId + " "; - result += "id = " + this.id + " "; - result += "name = " + this.name + " "; - result += "parentId = " + this.parentId + " "; - result += "surfaces = " + this.surfaces + " "; - result += "transformation = " + this.transformation + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/objects/A3DSurface.as b/src/versions/version1/a3d/objects/A3DSurface.as deleted file mode 100644 index 50d716a..0000000 --- a/src/versions/version1/a3d/objects/A3DSurface.as +++ /dev/null @@ -1,61 +0,0 @@ -package versions.version1.a3d.objects -{ - import commons.Id; - - public class A3DSurface - { - private var name_50:int; - - private var name_pS:Id; - - private var name_4C:int; - - public function A3DSurface(indexBegin:int, materialId:Id, numTriangles:int) - { - super(); - this.name_50 = indexBegin; - this.name_pS = materialId; - this.name_4C = numTriangles; - } - - public function get indexBegin() : int - { - return this.name_50; - } - - public function set indexBegin(value:int) : void - { - this.name_50 = value; - } - - public function get materialId() : Id - { - return this.name_pS; - } - - public function set materialId(value:Id) : void - { - this.name_pS = value; - } - - public function get numTriangles() : int - { - return this.name_4C; - } - - public function set numTriangles(value:int) : void - { - this.name_4C = value; - } - - public function toString() : String - { - var result:String = "A3DSurface ["; - result += "indexBegin = " + this.indexBegin + " "; - result += "materialId = " + this.materialId + " "; - result += "numTriangles = " + this.numTriangles + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version1/a3d/objects/A3DTransformation.as b/src/versions/version1/a3d/objects/A3DTransformation.as deleted file mode 100644 index 15e93d3..0000000 --- a/src/versions/version1/a3d/objects/A3DTransformation.as +++ /dev/null @@ -1,33 +0,0 @@ -package versions.version1.a3d.objects -{ - import commons.A3DMatrix; - - public class A3DTransformation - { - private var name_6p:A3DMatrix; - - public function A3DTransformation(matrix:A3DMatrix) - { - super(); - this.name_6p = matrix; - } - - public function get matrix() : A3DMatrix - { - return this.name_6p; - } - - public function set matrix(value:A3DMatrix) : void - { - this.name_6p = value; - } - - public function toString() : String - { - var result:String = "A3DTransformation ["; - result += "matrix = " + this.matrix + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/A3D2.as b/src/versions/version2/a3d/A3D2.as deleted file mode 100644 index 125c4a3..0000000 --- a/src/versions/version2/a3d/A3D2.as +++ /dev/null @@ -1,303 +0,0 @@ -package versions.version2.a3d -{ - import versions.version2.a3d.animation.A3D2AnimationClip; - import versions.version2.a3d.animation.A3D2Track; - import versions.version2.a3d.geometry.A3D2IndexBuffer; - import versions.version2.a3d.geometry.A3D2VertexBuffer; - import versions.version2.a3d.materials.A3D2CubeMap; - import versions.version2.a3d.materials.A3D2Image; - import versions.version2.a3d.materials.A3D2Map; - import versions.version2.a3d.materials.A3D2Material; - import versions.version2.a3d.objects.A3D2AmbientLight; - import versions.version2.a3d.objects.A3D2Box; - import versions.version2.a3d.objects.A3D2Decal; - import versions.version2.a3d.objects.A3D2DirectionalLight; - import versions.version2.a3d.objects.A3D2Joint; - import versions.version2.a3d.objects.A3D2Mesh; - import versions.version2.a3d.objects.A3D2Object; - import versions.version2.a3d.objects.A3D2OmniLight; - import versions.version2.a3d.objects.A3D2Skin; - import versions.version2.a3d.objects.A3D2SpotLight; - import versions.version2.a3d.objects.A3D2Sprite; - - public class A3D2 - { - private var name_VP:Vector.; - - private var name_qp:Vector.; - - private var name_Ib:Vector.; - - private var name_0:Vector.; - - private var name_fK:Vector.; - - private var name_Gv:Vector.; - - private var name_93:Vector.; - - private var name_ce:Vector.; - - private var name_jm:Vector.; - - private var name_26:Vector.; - - private var name_XJ:Vector.; - - private var name_22:Vector.; - - private var name_jz:Vector.; - - private var name_Kq:Vector.; - - private var name_fM:Vector.; - - private var name_G0:Vector.; - - private var name_pd:Vector.; - - private var name_Ke:Vector.; - - private var name_0B:Vector.; - - public function A3D2(ambientLights:Vector., animationClips:Vector., animationTracks:Vector., boxes:Vector., cubeMaps:Vector., decals:Vector., directionalLights:Vector., images:Vector., indexBuffers:Vector., joints:Vector., maps:Vector., materials:Vector., meshes:Vector., objects:Vector., omniLights:Vector., skins:Vector., spotLights:Vector., sprites:Vector., vertexBuffers:Vector.) - { - super(); - this.name_VP = ambientLights; - this.name_qp = animationClips; - this.name_Ib = animationTracks; - this.name_0 = boxes; - this.name_fK = cubeMaps; - this.name_Gv = decals; - this.name_93 = directionalLights; - this.name_ce = images; - this.name_jm = indexBuffers; - this.name_26 = joints; - this.name_XJ = maps; - this.name_22 = materials; - this.name_jz = meshes; - this.name_Kq = objects; - this.name_fM = omniLights; - this.name_G0 = skins; - this.name_pd = spotLights; - this.name_Ke = sprites; - this.name_0B = vertexBuffers; - } - - public function get ambientLights() : Vector. - { - return this.name_VP; - } - - public function set ambientLights(value:Vector.) : void - { - this.name_VP = value; - } - - public function get animationClips() : Vector. - { - return this.name_qp; - } - - public function set animationClips(value:Vector.) : void - { - this.name_qp = value; - } - - public function get animationTracks() : Vector. - { - return this.name_Ib; - } - - public function set animationTracks(value:Vector.) : void - { - this.name_Ib = value; - } - - public function get boxes() : Vector. - { - return this.name_0; - } - - public function set boxes(value:Vector.) : void - { - this.name_0 = value; - } - - public function get cubeMaps() : Vector. - { - return this.name_fK; - } - - public function set cubeMaps(value:Vector.) : void - { - this.name_fK = value; - } - - public function get decals() : Vector. - { - return this.name_Gv; - } - - public function set decals(value:Vector.) : void - { - this.name_Gv = value; - } - - public function get directionalLights() : Vector. - { - return this.name_93; - } - - public function set directionalLights(value:Vector.) : void - { - this.name_93 = value; - } - - public function get images() : Vector. - { - return this.name_ce; - } - - public function set images(value:Vector.) : void - { - this.name_ce = value; - } - - public function get indexBuffers() : Vector. - { - return this.name_jm; - } - - public function set indexBuffers(value:Vector.) : void - { - this.name_jm = value; - } - - public function get joints() : Vector. - { - return this.name_26; - } - - public function set joints(value:Vector.) : void - { - this.name_26 = value; - } - - public function get maps() : Vector. - { - return this.name_XJ; - } - - public function set maps(value:Vector.) : void - { - this.name_XJ = value; - } - - public function get materials() : Vector. - { - return this.name_22; - } - - public function set materials(value:Vector.) : void - { - this.name_22 = value; - } - - public function get meshes() : Vector. - { - return this.name_jz; - } - - public function set meshes(value:Vector.) : void - { - this.name_jz = value; - } - - public function get objects() : Vector. - { - return this.name_Kq; - } - - public function set objects(value:Vector.) : void - { - this.name_Kq = value; - } - - public function get omniLights() : Vector. - { - return this.name_fM; - } - - public function set omniLights(value:Vector.) : void - { - this.name_fM = value; - } - - public function get skins() : Vector. - { - return this.name_G0; - } - - public function set skins(value:Vector.) : void - { - this.name_G0 = value; - } - - public function get spotLights() : Vector. - { - return this.name_pd; - } - - public function set spotLights(value:Vector.) : void - { - this.name_pd = value; - } - - public function get sprites() : Vector. - { - return this.name_Ke; - } - - public function set sprites(value:Vector.) : void - { - this.name_Ke = value; - } - - public function get vertexBuffers() : Vector. - { - return this.name_0B; - } - - public function set vertexBuffers(value:Vector.) : void - { - this.name_0B = value; - } - - public function toString() : String - { - var result:String = "A3D2 ["; - result += "ambientLights = " + this.ambientLights + " "; - result += "animationClips = " + this.animationClips + " "; - result += "animationTracks = " + this.animationTracks + " "; - result += "boxes = " + this.boxes + " "; - result += "cubeMaps = " + this.cubeMaps + " "; - result += "decals = " + this.decals + " "; - result += "directionalLights = " + this.directionalLights + " "; - result += "images = " + this.images + " "; - result += "indexBuffers = " + this.indexBuffers + " "; - result += "joints = " + this.joints + " "; - result += "maps = " + this.maps + " "; - result += "materials = " + this.materials + " "; - result += "meshes = " + this.meshes + " "; - result += "objects = " + this.objects + " "; - result += "omniLights = " + this.omniLights + " "; - result += "skins = " + this.skins + " "; - result += "spotLights = " + this.spotLights + " "; - result += "sprites = " + this.sprites + " "; - result += "vertexBuffers = " + this.vertexBuffers + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/animation/A3D2AnimationClip.as b/src/versions/version2/a3d/animation/A3D2AnimationClip.as deleted file mode 100644 index e87009b..0000000 --- a/src/versions/version2/a3d/animation/A3D2AnimationClip.as +++ /dev/null @@ -1,89 +0,0 @@ -package versions.version2.a3d.animation -{ - import alternativa.types.Long; - - public class A3D2AnimationClip - { - private var name_3I:int; - - private var name_OV:Boolean; - - private var _name:String; - - private var name_Cp:Vector.; - - private var name_cT:Vector.; - - public function A3D2AnimationClip(id:int, loop:Boolean, name:String, objectIDs:Vector., tracks:Vector.) - { - super(); - this.name_3I = id; - this.name_OV = loop; - this._name = name; - this.name_Cp = objectIDs; - this.name_cT = tracks; - } - - public function get id() : int - { - return this.name_3I; - } - - public function set id(value:int) : void - { - this.name_3I = value; - } - - public function get loop() : Boolean - { - return this.name_OV; - } - - public function set loop(value:Boolean) : void - { - this.name_OV = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get objectIDs() : Vector. - { - return this.name_Cp; - } - - public function set objectIDs(value:Vector.) : void - { - this.name_Cp = value; - } - - public function get tracks() : Vector. - { - return this.name_cT; - } - - public function set tracks(value:Vector.) : void - { - this.name_cT = value; - } - - public function toString() : String - { - var result:String = "A3D2AnimationClip ["; - result += "id = " + this.id + " "; - result += "loop = " + this.loop + " "; - result += "name = " + this.name + " "; - result += "objectIDs = " + this.objectIDs + " "; - result += "tracks = " + this.tracks + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/animation/A3D2Keyframe.as b/src/versions/version2/a3d/animation/A3D2Keyframe.as deleted file mode 100644 index 4f609d1..0000000 --- a/src/versions/version2/a3d/animation/A3D2Keyframe.as +++ /dev/null @@ -1,47 +0,0 @@ -package versions.version2.a3d.animation -{ - import versions.version2.a3d.objects.A3D2Transform; - - public class A3D2Keyframe - { - private var name_qC:Number; - - private var name_bP:A3D2Transform; - - public function A3D2Keyframe(time:Number, transform:A3D2Transform) - { - super(); - this.name_qC = time; - this.name_bP = transform; - } - - public function get time() : Number - { - return this.name_qC; - } - - public function set time(value:Number) : void - { - this.name_qC = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function toString() : String - { - var result:String = "A3D2Keyframe ["; - result += "time = " + this.time + " "; - result += "transform = " + this.transform + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/animation/A3D2Track.as b/src/versions/version2/a3d/animation/A3D2Track.as deleted file mode 100644 index df5d653..0000000 --- a/src/versions/version2/a3d/animation/A3D2Track.as +++ /dev/null @@ -1,59 +0,0 @@ -package versions.version2.a3d.animation -{ - public class A3D2Track - { - private var name_3I:int; - - private var name_1:Vector.; - - private var name_pa:String; - - public function A3D2Track(id:int, keyframes:Vector., objectName:String) - { - super(); - this.name_3I = id; - this.name_1 = keyframes; - this.name_pa = objectName; - } - - public function get id() : int - { - return this.name_3I; - } - - public function set id(value:int) : void - { - this.name_3I = value; - } - - public function get keyframes() : Vector. - { - return this.name_1; - } - - public function set keyframes(value:Vector.) : void - { - this.name_1 = value; - } - - public function get objectName() : String - { - return this.name_pa; - } - - public function set objectName(value:String) : void - { - this.name_pa = value; - } - - public function toString() : String - { - var result:String = "A3D2Track ["; - result += "id = " + this.id + " "; - result += "keyframes = " + this.keyframes + " "; - result += "objectName = " + this.objectName + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/geometry/A3D2IndexBuffer.as b/src/versions/version2/a3d/geometry/A3D2IndexBuffer.as deleted file mode 100644 index 5378d49..0000000 --- a/src/versions/version2/a3d/geometry/A3D2IndexBuffer.as +++ /dev/null @@ -1,61 +0,0 @@ -package versions.version2.a3d.geometry -{ - import flash.utils.ByteArray; - - public class A3D2IndexBuffer - { - private var name_79:ByteArray; - - private var name_3I:int; - - private var name_m0:int; - - public function A3D2IndexBuffer(byteBuffer:ByteArray, id:int, indexCount:int) - { - super(); - this.name_79 = byteBuffer; - this.name_3I = id; - this.name_m0 = indexCount; - } - - public function get byteBuffer() : ByteArray - { - return this.name_79; - } - - public function set byteBuffer(value:ByteArray) : void - { - this.name_79 = value; - } - - public function get id() : int - { - return this.name_3I; - } - - public function set id(value:int) : void - { - this.name_3I = value; - } - - public function get indexCount() : int - { - return this.name_m0; - } - - public function set indexCount(value:int) : void - { - this.name_m0 = value; - } - - public function toString() : String - { - var result:String = "A3D2IndexBuffer ["; - result += "byteBuffer = " + this.byteBuffer + " "; - result += "id = " + this.id + " "; - result += "indexCount = " + this.indexCount + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/geometry/A3D2VertexAttributes.as b/src/versions/version2/a3d/geometry/A3D2VertexAttributes.as deleted file mode 100644 index d15d02f..0000000 --- a/src/versions/version2/a3d/geometry/A3D2VertexAttributes.as +++ /dev/null @@ -1,50 +0,0 @@ -package versions.version2.a3d.geometry -{ - public class A3D2VertexAttributes - { - public static const POSITION:A3D2VertexAttributes = new A3D2VertexAttributes(0); - - public static const NORMAL:A3D2VertexAttributes = new A3D2VertexAttributes(1); - - public static const TANGENT4:A3D2VertexAttributes = new A3D2VertexAttributes(2); - - public static const JOINT:A3D2VertexAttributes = new A3D2VertexAttributes(3); - - public static const TEXCOORD:A3D2VertexAttributes = new A3D2VertexAttributes(4); - - public var value:int; - - public function A3D2VertexAttributes(value:int) - { - super(); - this.value = value; - } - - public function toString() : String - { - var result:String = "A3D2VertexAttributes ["; - if(this.value == 0) - { - result += "POSITION"; - } - if(this.value == 1) - { - result += "NORMAL"; - } - if(this.value == 2) - { - result += "TANGENT4"; - } - if(this.value == 3) - { - result += "JOINT"; - } - if(this.value == 4) - { - result += "TEXCOORD"; - } - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/geometry/A3D2VertexBuffer.as b/src/versions/version2/a3d/geometry/A3D2VertexBuffer.as deleted file mode 100644 index 11103bf..0000000 --- a/src/versions/version2/a3d/geometry/A3D2VertexBuffer.as +++ /dev/null @@ -1,75 +0,0 @@ -package versions.version2.a3d.geometry -{ - import flash.utils.ByteArray; - - public class A3D2VertexBuffer - { - private var name_96:Vector.; - - private var name_79:ByteArray; - - private var name_3I:int; - - private var name_g1:uint; - - public function A3D2VertexBuffer(attributes:Vector., byteBuffer:ByteArray, id:int, vertexCount:uint) - { - super(); - this.name_96 = attributes; - this.name_79 = byteBuffer; - this.name_3I = id; - this.name_g1 = vertexCount; - } - - public function get attributes() : Vector. - { - return this.name_96; - } - - public function set attributes(value:Vector.) : void - { - this.name_96 = value; - } - - public function get byteBuffer() : ByteArray - { - return this.name_79; - } - - public function set byteBuffer(value:ByteArray) : void - { - this.name_79 = value; - } - - public function get id() : int - { - return this.name_3I; - } - - public function set id(value:int) : void - { - this.name_3I = value; - } - - public function get vertexCount() : uint - { - return this.name_g1; - } - - public function set vertexCount(value:uint) : void - { - this.name_g1 = value; - } - - public function toString() : String - { - var result:String = "A3D2VertexBuffer ["; - result += "attributes = " + this.attributes + " "; - result += "byteBuffer = " + this.byteBuffer + " "; - result += "id = " + this.id + " "; - result += "vertexCount = " + this.vertexCount + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/materials/A3D2CubeMap.as b/src/versions/version2/a3d/materials/A3D2CubeMap.as deleted file mode 100644 index 1a2be01..0000000 --- a/src/versions/version2/a3d/materials/A3D2CubeMap.as +++ /dev/null @@ -1,115 +0,0 @@ -package versions.version2.a3d.materials -{ - public class A3D2CubeMap - { - private var name_0x:int; - - private var name_el:int; - - private var name_5I:int; - - private var name_3I:int; - - private var name_ML:int; - - private var name_K:int; - - private var name_pW:int; - - public function A3D2CubeMap(backId:int, bottomId:int, frontId:int, id:int, leftId:int, rightId:int, topId:int) - { - super(); - this.name_0x = backId; - this.name_el = bottomId; - this.name_5I = frontId; - this.name_3I = id; - this.name_ML = leftId; - this.name_K = rightId; - this.name_pW = topId; - } - - public function get backId() : int - { - return this.name_0x; - } - - public function set backId(value:int) : void - { - this.name_0x = value; - } - - public function get bottomId() : int - { - return this.name_el; - } - - public function set bottomId(value:int) : void - { - this.name_el = value; - } - - public function get frontId() : int - { - return this.name_5I; - } - - public function set frontId(value:int) : void - { - this.name_5I = value; - } - - public function get id() : int - { - return this.name_3I; - } - - public function set id(value:int) : void - { - this.name_3I = value; - } - - public function get leftId() : int - { - return this.name_ML; - } - - public function set leftId(value:int) : void - { - this.name_ML = value; - } - - public function get rightId() : int - { - return this.name_K; - } - - public function set rightId(value:int) : void - { - this.name_K = value; - } - - public function get topId() : int - { - return this.name_pW; - } - - public function set topId(value:int) : void - { - this.name_pW = value; - } - - public function toString() : String - { - var result:String = "A3D2CubeMap ["; - result += "backId = " + this.backId + " "; - result += "bottomId = " + this.bottomId + " "; - result += "frontId = " + this.frontId + " "; - result += "id = " + this.id + " "; - result += "leftId = " + this.leftId + " "; - result += "rightId = " + this.rightId + " "; - result += "topId = " + this.topId + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/materials/A3D2Image.as b/src/versions/version2/a3d/materials/A3D2Image.as deleted file mode 100644 index 689e85b..0000000 --- a/src/versions/version2/a3d/materials/A3D2Image.as +++ /dev/null @@ -1,45 +0,0 @@ -package versions.version2.a3d.materials -{ - public class A3D2Image - { - private var name_3I:int; - - private var name_6D:String; - - public function A3D2Image(id:int, url:String) - { - super(); - this.name_3I = id; - this.name_6D = url; - } - - public function get id() : int - { - return this.name_3I; - } - - public function set id(value:int) : void - { - this.name_3I = value; - } - - public function get url() : String - { - return this.name_6D; - } - - public function set url(value:String) : void - { - this.name_6D = value; - } - - public function toString() : String - { - var result:String = "A3D2Image ["; - result += "id = " + this.id + " "; - result += "url = " + this.url + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/materials/A3D2Map.as b/src/versions/version2/a3d/materials/A3D2Map.as deleted file mode 100644 index 5d2e6c7..0000000 --- a/src/versions/version2/a3d/materials/A3D2Map.as +++ /dev/null @@ -1,59 +0,0 @@ -package versions.version2.a3d.materials -{ - public class A3D2Map - { - private var name_9y:uint; - - private var name_3I:int; - - private var name_JE:int; - - public function A3D2Map(channel:uint, id:int, imageId:int) - { - super(); - this.name_9y = channel; - this.name_3I = id; - this.name_JE = imageId; - } - - public function get channel() : uint - { - return this.name_9y; - } - - public function set channel(value:uint) : void - { - this.name_9y = value; - } - - public function get id() : int - { - return this.name_3I; - } - - public function set id(value:int) : void - { - this.name_3I = value; - } - - public function get imageId() : int - { - return this.name_JE; - } - - public function set imageId(value:int) : void - { - this.name_JE = value; - } - - public function toString() : String - { - var result:String = "A3D2Map ["; - result += "channel = " + this.channel + " "; - result += "id = " + this.id + " "; - result += "imageId = " + this.imageId + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/materials/A3D2Material.as b/src/versions/version2/a3d/materials/A3D2Material.as deleted file mode 100644 index e03cd07..0000000 --- a/src/versions/version2/a3d/materials/A3D2Material.as +++ /dev/null @@ -1,129 +0,0 @@ -package versions.version2.a3d.materials -{ - public class A3D2Material - { - private var name_9s:int; - - private var name_bl:int; - - private var name_3I:int; - - private var name_qf:int; - - private var name_QR:int; - - private var name_Jn:int; - - private var name_iG:int; - - private var name_LA:int; - - public function A3D2Material(diffuseMapId:int, glossinessMapId:int, id:int, lightMapId:int, normalMapId:int, opacityMapId:int, reflectionCubeMapId:int, specularMapId:int) - { - super(); - this.name_9s = diffuseMapId; - this.name_bl = glossinessMapId; - this.name_3I = id; - this.name_qf = lightMapId; - this.name_QR = normalMapId; - this.name_Jn = opacityMapId; - this.name_iG = reflectionCubeMapId; - this.name_LA = specularMapId; - } - - public function get diffuseMapId() : int - { - return this.name_9s; - } - - public function set diffuseMapId(value:int) : void - { - this.name_9s = value; - } - - public function get glossinessMapId() : int - { - return this.name_bl; - } - - public function set glossinessMapId(value:int) : void - { - this.name_bl = value; - } - - public function get id() : int - { - return this.name_3I; - } - - public function set id(value:int) : void - { - this.name_3I = value; - } - - public function get lightMapId() : int - { - return this.name_qf; - } - - public function set lightMapId(value:int) : void - { - this.name_qf = value; - } - - public function get normalMapId() : int - { - return this.name_QR; - } - - public function set normalMapId(value:int) : void - { - this.name_QR = value; - } - - public function get opacityMapId() : int - { - return this.name_Jn; - } - - public function set opacityMapId(value:int) : void - { - this.name_Jn = value; - } - - public function get reflectionCubeMapId() : int - { - return this.name_iG; - } - - public function set reflectionCubeMapId(value:int) : void - { - this.name_iG = value; - } - - public function get specularMapId() : int - { - return this.name_LA; - } - - public function set specularMapId(value:int) : void - { - this.name_LA = value; - } - - public function toString() : String - { - var result:String = "A3D2Material ["; - result += "diffuseMapId = " + this.diffuseMapId + " "; - result += "glossinessMapId = " + this.glossinessMapId + " "; - result += "id = " + this.id + " "; - result += "lightMapId = " + this.lightMapId + " "; - result += "normalMapId = " + this.normalMapId + " "; - result += "opacityMapId = " + this.opacityMapId + " "; - result += "reflectionCubeMapId = " + this.reflectionCubeMapId + " "; - result += "specularMapId = " + this.specularMapId + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2AmbientLight.as b/src/versions/version2/a3d/objects/A3D2AmbientLight.as deleted file mode 100644 index 0ad02e5..0000000 --- a/src/versions/version2/a3d/objects/A3D2AmbientLight.as +++ /dev/null @@ -1,131 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2AmbientLight - { - private var name_jD:int; - - private var name_Tn:uint; - - private var name_3I:Long; - - private var name_74:Number; - - private var _name:String; - - private var name_fP:Long; - - private var name_bP:A3D2Transform; - - private var name_1u:Boolean; - - public function A3D2AmbientLight(boundBoxId:int, color:uint, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) - { - super(); - this.name_jD = boundBoxId; - this.name_Tn = color; - this.name_3I = id; - this.name_74 = intensity; - this._name = name; - this.name_fP = parentId; - this.name_bP = transform; - this.name_1u = visible; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get color() : uint - { - return this.name_Tn; - } - - public function set color(value:uint) : void - { - this.name_Tn = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get intensity() : Number - { - return this.name_74; - } - - public function set intensity(value:Number) : void - { - this.name_74 = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3D2AmbientLight ["; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "color = " + this.color + " "; - result += "id = " + this.id + " "; - result += "intensity = " + this.intensity + " "; - result += "name = " + this.name + " "; - result += "parentId = " + this.parentId + " "; - result += "transform = " + this.transform + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2Box.as b/src/versions/version2/a3d/objects/A3D2Box.as deleted file mode 100644 index 7fd4f9e..0000000 --- a/src/versions/version2/a3d/objects/A3D2Box.as +++ /dev/null @@ -1,45 +0,0 @@ -package versions.version2.a3d.objects -{ - public class A3D2Box - { - private var name_Ge:Vector.; - - private var name_3I:int; - - public function A3D2Box(box:Vector., id:int) - { - super(); - this.name_Ge = box; - this.name_3I = id; - } - - public function get box() : Vector. - { - return this.name_Ge; - } - - public function set box(value:Vector.) : void - { - this.name_Ge = value; - } - - public function get id() : int - { - return this.name_3I; - } - - public function set id(value:int) : void - { - this.name_3I = value; - } - - public function toString() : String - { - var result:String = "A3D2Box ["; - result += "box = " + this.box + " "; - result += "id = " + this.id + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2Decal.as b/src/versions/version2/a3d/objects/A3D2Decal.as deleted file mode 100644 index 76f2a5a..0000000 --- a/src/versions/version2/a3d/objects/A3D2Decal.as +++ /dev/null @@ -1,159 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2Decal - { - private var name_jD:int; - - private var name_3I:Long; - - private var name_Hc:int; - - private var _name:String; - - private var name_3D:Number; - - private var name_fP:Long; - - private var name_eW:Vector.; - - private var name_bP:A3D2Transform; - - private var name_0B:Vector.; - - private var name_1u:Boolean; - - public function A3D2Decal(boundBoxId:int, id:Long, indexBufferId:int, name:String, offset:Number, parentId:Long, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) - { - super(); - this.name_jD = boundBoxId; - this.name_3I = id; - this.name_Hc = indexBufferId; - this._name = name; - this.name_3D = offset; - this.name_fP = parentId; - this.name_eW = surfaces; - this.name_bP = transform; - this.name_0B = vertexBuffers; - this.name_1u = visible; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get indexBufferId() : int - { - return this.name_Hc; - } - - public function set indexBufferId(value:int) : void - { - this.name_Hc = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get offset() : Number - { - return this.name_3D; - } - - public function set offset(value:Number) : void - { - this.name_3D = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get surfaces() : Vector. - { - return this.name_eW; - } - - public function set surfaces(value:Vector.) : void - { - this.name_eW = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get vertexBuffers() : Vector. - { - return this.name_0B; - } - - public function set vertexBuffers(value:Vector.) : void - { - this.name_0B = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3D2Decal ["; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "id = " + this.id + " "; - result += "indexBufferId = " + this.indexBufferId + " "; - result += "name = " + this.name + " "; - result += "offset = " + this.offset + " "; - result += "parentId = " + this.parentId + " "; - result += "surfaces = " + this.surfaces + " "; - result += "transform = " + this.transform + " "; - result += "vertexBuffers = " + this.vertexBuffers + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2DirectionalLight.as b/src/versions/version2/a3d/objects/A3D2DirectionalLight.as deleted file mode 100644 index b8a538a..0000000 --- a/src/versions/version2/a3d/objects/A3D2DirectionalLight.as +++ /dev/null @@ -1,131 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2DirectionalLight - { - private var name_jD:int; - - private var name_Tn:uint; - - private var name_3I:Long; - - private var name_74:Number; - - private var _name:String; - - private var name_fP:Long; - - private var name_bP:A3D2Transform; - - private var name_1u:Boolean; - - public function A3D2DirectionalLight(boundBoxId:int, color:uint, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) - { - super(); - this.name_jD = boundBoxId; - this.name_Tn = color; - this.name_3I = id; - this.name_74 = intensity; - this._name = name; - this.name_fP = parentId; - this.name_bP = transform; - this.name_1u = visible; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get color() : uint - { - return this.name_Tn; - } - - public function set color(value:uint) : void - { - this.name_Tn = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get intensity() : Number - { - return this.name_74; - } - - public function set intensity(value:Number) : void - { - this.name_74 = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3D2DirectionalLight ["; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "color = " + this.color + " "; - result += "id = " + this.id + " "; - result += "intensity = " + this.intensity + " "; - result += "name = " + this.name + " "; - result += "parentId = " + this.parentId + " "; - result += "transform = " + this.transform + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2Joint.as b/src/versions/version2/a3d/objects/A3D2Joint.as deleted file mode 100644 index 8937a1d..0000000 --- a/src/versions/version2/a3d/objects/A3D2Joint.as +++ /dev/null @@ -1,103 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2Joint - { - private var name_jD:int; - - private var name_3I:Long; - - private var _name:String; - - private var name_fP:Long; - - private var name_bP:A3D2Transform; - - private var name_1u:Boolean; - - public function A3D2Joint(boundBoxId:int, id:Long, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) - { - super(); - this.name_jD = boundBoxId; - this.name_3I = id; - this._name = name; - this.name_fP = parentId; - this.name_bP = transform; - this.name_1u = visible; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3D2Joint ["; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "id = " + this.id + " "; - result += "name = " + this.name + " "; - result += "parentId = " + this.parentId + " "; - result += "transform = " + this.transform + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2JointBindTransform.as b/src/versions/version2/a3d/objects/A3D2JointBindTransform.as deleted file mode 100644 index 5f05653..0000000 --- a/src/versions/version2/a3d/objects/A3D2JointBindTransform.as +++ /dev/null @@ -1,47 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2JointBindTransform - { - private var name_NL:A3D2Transform; - - private var name_3I:Long; - - public function A3D2JointBindTransform(bindPoseTransform:A3D2Transform, id:Long) - { - super(); - this.name_NL = bindPoseTransform; - this.name_3I = id; - } - - public function get bindPoseTransform() : A3D2Transform - { - return this.name_NL; - } - - public function set bindPoseTransform(value:A3D2Transform) : void - { - this.name_NL = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function toString() : String - { - var result:String = "A3D2JointBindTransform ["; - result += "bindPoseTransform = " + this.bindPoseTransform + " "; - result += "id = " + this.id + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2Mesh.as b/src/versions/version2/a3d/objects/A3D2Mesh.as deleted file mode 100644 index 0f08846..0000000 --- a/src/versions/version2/a3d/objects/A3D2Mesh.as +++ /dev/null @@ -1,145 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2Mesh - { - private var name_jD:int; - - private var name_3I:Long; - - private var name_Hc:int; - - private var _name:String; - - private var name_fP:Long; - - private var name_eW:Vector.; - - private var name_bP:A3D2Transform; - - private var name_0B:Vector.; - - private var name_1u:Boolean; - - public function A3D2Mesh(boundBoxId:int, id:Long, indexBufferId:int, name:String, parentId:Long, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) - { - super(); - this.name_jD = boundBoxId; - this.name_3I = id; - this.name_Hc = indexBufferId; - this._name = name; - this.name_fP = parentId; - this.name_eW = surfaces; - this.name_bP = transform; - this.name_0B = vertexBuffers; - this.name_1u = visible; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get indexBufferId() : int - { - return this.name_Hc; - } - - public function set indexBufferId(value:int) : void - { - this.name_Hc = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get surfaces() : Vector. - { - return this.name_eW; - } - - public function set surfaces(value:Vector.) : void - { - this.name_eW = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get vertexBuffers() : Vector. - { - return this.name_0B; - } - - public function set vertexBuffers(value:Vector.) : void - { - this.name_0B = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3D2Mesh ["; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "id = " + this.id + " "; - result += "indexBufferId = " + this.indexBufferId + " "; - result += "name = " + this.name + " "; - result += "parentId = " + this.parentId + " "; - result += "surfaces = " + this.surfaces + " "; - result += "transform = " + this.transform + " "; - result += "vertexBuffers = " + this.vertexBuffers + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2Object.as b/src/versions/version2/a3d/objects/A3D2Object.as deleted file mode 100644 index 57e9d92..0000000 --- a/src/versions/version2/a3d/objects/A3D2Object.as +++ /dev/null @@ -1,103 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2Object - { - private var name_jD:int; - - private var name_3I:Long; - - private var _name:String; - - private var name_fP:Long; - - private var name_bP:A3D2Transform; - - private var name_1u:Boolean; - - public function A3D2Object(boundBoxId:int, id:Long, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) - { - super(); - this.name_jD = boundBoxId; - this.name_3I = id; - this._name = name; - this.name_fP = parentId; - this.name_bP = transform; - this.name_1u = visible; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3D2Object ["; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "id = " + this.id + " "; - result += "name = " + this.name + " "; - result += "parentId = " + this.parentId + " "; - result += "transform = " + this.transform + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2OmniLight.as b/src/versions/version2/a3d/objects/A3D2OmniLight.as deleted file mode 100644 index 70ef5d2..0000000 --- a/src/versions/version2/a3d/objects/A3D2OmniLight.as +++ /dev/null @@ -1,159 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2OmniLight - { - private var name_Hw:Number; - - private var name_AS:Number; - - private var name_jD:int; - - private var name_Tn:uint; - - private var name_3I:Long; - - private var name_74:Number; - - private var _name:String; - - private var name_fP:Long; - - private var name_bP:A3D2Transform; - - private var name_1u:Boolean; - - public function A3D2OmniLight(attenuationBegin:Number, attenuationEnd:Number, boundBoxId:int, color:uint, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) - { - super(); - this.name_Hw = attenuationBegin; - this.name_AS = attenuationEnd; - this.name_jD = boundBoxId; - this.name_Tn = color; - this.name_3I = id; - this.name_74 = intensity; - this._name = name; - this.name_fP = parentId; - this.name_bP = transform; - this.name_1u = visible; - } - - public function get attenuationBegin() : Number - { - return this.name_Hw; - } - - public function set attenuationBegin(value:Number) : void - { - this.name_Hw = value; - } - - public function get attenuationEnd() : Number - { - return this.name_AS; - } - - public function set attenuationEnd(value:Number) : void - { - this.name_AS = value; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get color() : uint - { - return this.name_Tn; - } - - public function set color(value:uint) : void - { - this.name_Tn = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get intensity() : Number - { - return this.name_74; - } - - public function set intensity(value:Number) : void - { - this.name_74 = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3D2OmniLight ["; - result += "attenuationBegin = " + this.attenuationBegin + " "; - result += "attenuationEnd = " + this.attenuationEnd + " "; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "color = " + this.color + " "; - result += "id = " + this.id + " "; - result += "intensity = " + this.intensity + " "; - result += "name = " + this.name + " "; - result += "parentId = " + this.parentId + " "; - result += "transform = " + this.transform + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2Skin.as b/src/versions/version2/a3d/objects/A3D2Skin.as deleted file mode 100644 index 414a80d..0000000 --- a/src/versions/version2/a3d/objects/A3D2Skin.as +++ /dev/null @@ -1,187 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2Skin - { - private var name_jD:int; - - private var name_3I:Long; - - private var name_Hc:int; - - private var name_KB:Vector.; - - private var name_26:Vector.; - - private var _name:String; - - private var name_Dr:Vector.; - - private var name_fP:Long; - - private var name_eW:Vector.; - - private var name_bP:A3D2Transform; - - private var name_0B:Vector.; - - private var name_1u:Boolean; - - public function A3D2Skin(boundBoxId:int, id:Long, indexBufferId:int, jointBindTransforms:Vector., joints:Vector., name:String, numJoints:Vector., parentId:Long, surfaces:Vector., transform:A3D2Transform, vertexBuffers:Vector., visible:Boolean) - { - super(); - this.name_jD = boundBoxId; - this.name_3I = id; - this.name_Hc = indexBufferId; - this.name_KB = jointBindTransforms; - this.name_26 = joints; - this._name = name; - this.name_Dr = numJoints; - this.name_fP = parentId; - this.name_eW = surfaces; - this.name_bP = transform; - this.name_0B = vertexBuffers; - this.name_1u = visible; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get indexBufferId() : int - { - return this.name_Hc; - } - - public function set indexBufferId(value:int) : void - { - this.name_Hc = value; - } - - public function get jointBindTransforms() : Vector. - { - return this.name_KB; - } - - public function set jointBindTransforms(value:Vector.) : void - { - this.name_KB = value; - } - - public function get joints() : Vector. - { - return this.name_26; - } - - public function set joints(value:Vector.) : void - { - this.name_26 = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get numJoints() : Vector. - { - return this.name_Dr; - } - - public function set numJoints(value:Vector.) : void - { - this.name_Dr = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get surfaces() : Vector. - { - return this.name_eW; - } - - public function set surfaces(value:Vector.) : void - { - this.name_eW = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get vertexBuffers() : Vector. - { - return this.name_0B; - } - - public function set vertexBuffers(value:Vector.) : void - { - this.name_0B = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3D2Skin ["; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "id = " + this.id + " "; - result += "indexBufferId = " + this.indexBufferId + " "; - result += "jointBindTransforms = " + this.jointBindTransforms + " "; - result += "joints = " + this.joints + " "; - result += "name = " + this.name + " "; - result += "numJoints = " + this.numJoints + " "; - result += "parentId = " + this.parentId + " "; - result += "surfaces = " + this.surfaces + " "; - result += "transform = " + this.transform + " "; - result += "vertexBuffers = " + this.vertexBuffers + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2SpotLight.as b/src/versions/version2/a3d/objects/A3D2SpotLight.as deleted file mode 100644 index 8628613..0000000 --- a/src/versions/version2/a3d/objects/A3D2SpotLight.as +++ /dev/null @@ -1,187 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - - public class A3D2SpotLight - { - private var name_Hw:Number; - - private var name_AS:Number; - - private var name_jD:int; - - private var name_Tn:uint; - - private var name_a0:Number; - - private var name_GR:Number; - - private var name_3I:Long; - - private var name_74:Number; - - private var _name:String; - - private var name_fP:Long; - - private var name_bP:A3D2Transform; - - private var name_1u:Boolean; - - public function A3D2SpotLight(attenuationBegin:Number, attenuationEnd:Number, boundBoxId:int, color:uint, falloff:Number, hotspot:Number, id:Long, intensity:Number, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) - { - super(); - this.name_Hw = attenuationBegin; - this.name_AS = attenuationEnd; - this.name_jD = boundBoxId; - this.name_Tn = color; - this.name_a0 = falloff; - this.name_GR = hotspot; - this.name_3I = id; - this.name_74 = intensity; - this._name = name; - this.name_fP = parentId; - this.name_bP = transform; - this.name_1u = visible; - } - - public function get attenuationBegin() : Number - { - return this.name_Hw; - } - - public function set attenuationBegin(value:Number) : void - { - this.name_Hw = value; - } - - public function get attenuationEnd() : Number - { - return this.name_AS; - } - - public function set attenuationEnd(value:Number) : void - { - this.name_AS = value; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get color() : uint - { - return this.name_Tn; - } - - public function set color(value:uint) : void - { - this.name_Tn = value; - } - - public function get falloff() : Number - { - return this.name_a0; - } - - public function set falloff(value:Number) : void - { - this.name_a0 = value; - } - - public function get hotspot() : Number - { - return this.name_GR; - } - - public function set hotspot(value:Number) : void - { - this.name_GR = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get intensity() : Number - { - return this.name_74; - } - - public function set intensity(value:Number) : void - { - this.name_74 = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function toString() : String - { - var result:String = "A3D2SpotLight ["; - result += "attenuationBegin = " + this.attenuationBegin + " "; - result += "attenuationEnd = " + this.attenuationEnd + " "; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "color = " + this.color + " "; - result += "falloff = " + this.falloff + " "; - result += "hotspot = " + this.hotspot + " "; - result += "id = " + this.id + " "; - result += "intensity = " + this.intensity + " "; - result += "name = " + this.name + " "; - result += "parentId = " + this.parentId + " "; - result += "transform = " + this.transform + " "; - result += "visible = " + this.visible + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2Sprite.as b/src/versions/version2/a3d/objects/A3D2Sprite.as deleted file mode 100644 index eb9cea1..0000000 --- a/src/versions/version2/a3d/objects/A3D2Sprite.as +++ /dev/null @@ -1,216 +0,0 @@ -package versions.version2.a3d.objects -{ - import alternativa.types.Long; - import commons.Id; - - public class A3D2Sprite - { - private var name_CL:Boolean; - - private var name_jD:int; - - private var _height:Number; - - private var name_3I:Long; - - private var name_pS:Id; - - private var _name:String; - - private var name_4T:Number; - - private var name_TP:Number; - - private var name_fP:Long; - - private var name_2t:Boolean; - - private var name_Vd:Number; - - private var name_bP:A3D2Transform; - - private var name_1u:Boolean; - - private var name_qj:Number; - - public function A3D2Sprite(alwaysOnTop:Boolean, boundBoxId:int, height:Number, id:Long, materialId:Id, name:String, originX:Number, originY:Number, parentId:Long, perspectiveScale:Boolean, rotation:Number, transform:A3D2Transform, visible:Boolean, width:Number) - { - super(); - this.name_CL = alwaysOnTop; - this.name_jD = boundBoxId; - this._height = height; - this.name_3I = id; - this.name_pS = materialId; - this._name = name; - this.name_4T = originX; - this.name_TP = originY; - this.name_fP = parentId; - this.name_2t = perspectiveScale; - this.name_Vd = rotation; - this.name_bP = transform; - this.name_1u = visible; - this.name_qj = width; - } - - public function get alwaysOnTop() : Boolean - { - return this.name_CL; - } - - public function set alwaysOnTop(value:Boolean) : void - { - this.name_CL = value; - } - - public function get boundBoxId() : int - { - return this.name_jD; - } - - public function set boundBoxId(value:int) : void - { - this.name_jD = value; - } - - public function get height() : Number - { - return this._height; - } - - public function set height(value:Number) : void - { - this._height = value; - } - - public function get id() : Long - { - return this.name_3I; - } - - public function set id(value:Long) : void - { - this.name_3I = value; - } - - public function get materialId() : Id - { - return this.name_pS; - } - - public function set materialId(value:Id) : void - { - this.name_pS = value; - } - - public function get name() : String - { - return this._name; - } - - public function set name(value:String) : void - { - this._name = value; - } - - public function get originX() : Number - { - return this.name_4T; - } - - public function set originX(value:Number) : void - { - this.name_4T = value; - } - - public function get originY() : Number - { - return this.name_TP; - } - - public function set originY(value:Number) : void - { - this.name_TP = value; - } - - public function get parentId() : Long - { - return this.name_fP; - } - - public function set parentId(value:Long) : void - { - this.name_fP = value; - } - - public function get perspectiveScale() : Boolean - { - return this.name_2t; - } - - public function set perspectiveScale(value:Boolean) : void - { - this.name_2t = value; - } - - public function get rotation() : Number - { - return this.name_Vd; - } - - public function set rotation(value:Number) : void - { - this.name_Vd = value; - } - - public function get transform() : A3D2Transform - { - return this.name_bP; - } - - public function set transform(value:A3D2Transform) : void - { - this.name_bP = value; - } - - public function get visible() : Boolean - { - return this.name_1u; - } - - public function set visible(value:Boolean) : void - { - this.name_1u = value; - } - - public function get width() : Number - { - return this.name_qj; - } - - public function set width(value:Number) : void - { - this.name_qj = value; - } - - public function toString() : String - { - var result:String = "A3D2Sprite ["; - result += "alwaysOnTop = " + this.alwaysOnTop + " "; - result += "boundBoxId = " + this.boundBoxId + " "; - result += "height = " + this.height + " "; - result += "id = " + this.id + " "; - result += "materialId = " + this.materialId + " "; - result += "name = " + this.name + " "; - result += "originX = " + this.originX + " "; - result += "originY = " + this.originY + " "; - result += "parentId = " + this.parentId + " "; - result += "perspectiveScale = " + this.perspectiveScale + " "; - result += "rotation = " + this.rotation + " "; - result += "transform = " + this.transform + " "; - result += "visible = " + this.visible + " "; - result += "width = " + this.width + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2Surface.as b/src/versions/version2/a3d/objects/A3D2Surface.as deleted file mode 100644 index 4609eca..0000000 --- a/src/versions/version2/a3d/objects/A3D2Surface.as +++ /dev/null @@ -1,59 +0,0 @@ -package versions.version2.a3d.objects -{ - public class A3D2Surface - { - private var name_50:int; - - private var name_pS:int; - - private var name_4C:int; - - public function A3D2Surface(indexBegin:int, materialId:int, numTriangles:int) - { - super(); - this.name_50 = indexBegin; - this.name_pS = materialId; - this.name_4C = numTriangles; - } - - public function get indexBegin() : int - { - return this.name_50; - } - - public function set indexBegin(value:int) : void - { - this.name_50 = value; - } - - public function get materialId() : int - { - return this.name_pS; - } - - public function set materialId(value:int) : void - { - this.name_pS = value; - } - - public function get numTriangles() : int - { - return this.name_4C; - } - - public function set numTriangles(value:int) : void - { - this.name_4C = value; - } - - public function toString() : String - { - var result:String = "A3D2Surface ["; - result += "indexBegin = " + this.indexBegin + " "; - result += "materialId = " + this.materialId + " "; - result += "numTriangles = " + this.numTriangles + " "; - return result + "]"; - } - } -} - diff --git a/src/versions/version2/a3d/objects/A3D2Transform.as b/src/versions/version2/a3d/objects/A3D2Transform.as deleted file mode 100644 index d528167..0000000 --- a/src/versions/version2/a3d/objects/A3D2Transform.as +++ /dev/null @@ -1,33 +0,0 @@ -package versions.version2.a3d.objects -{ - import commons.A3DMatrix; - - public class A3D2Transform - { - private var name_6p:A3DMatrix; - - public function A3D2Transform(matrix:A3DMatrix) - { - super(); - this.name_6p = matrix; - } - - public function get matrix() : A3DMatrix - { - return this.name_6p; - } - - public function set matrix(value:A3DMatrix) : void - { - this.name_6p = value; - } - - public function toString() : String - { - var result:String = "A3D2Transform ["; - result += "matrix = " + this.matrix + " "; - return result + "]"; - } - } -} -