Search in sources :

Example 1 with Rect2fTypeHandler

use of org.terasology.persistence.typeHandling.mathTypes.Rect2fTypeHandler in project Terasology by MovingBlocks.

the class TypeSerializationLibrary method createDefaultLibrary.

public static TypeSerializationLibrary createDefaultLibrary(ReflectFactory factory, CopyStrategyLibrary copyStrategies) {
    TypeSerializationLibrary serializationLibrary = new TypeSerializationLibrary(factory, copyStrategies);
    serializationLibrary.add(Color.class, new ColorTypeHandler());
    serializationLibrary.add(Quat4f.class, new Quat4fTypeHandler());
    serializationLibrary.add(Texture.class, new AssetTypeHandler<>(Texture.class));
    serializationLibrary.add(UIElement.class, new AssetTypeHandler<>(UIElement.class));
    serializationLibrary.add(Mesh.class, new AssetTypeHandler<>(Mesh.class));
    serializationLibrary.add(StaticSound.class, new AssetTypeHandler<>(StaticSound.class));
    serializationLibrary.add(StreamingSound.class, new AssetTypeHandler<>(StreamingSound.class));
    serializationLibrary.add(Material.class, new AssetTypeHandler<>(Material.class));
    serializationLibrary.add(Name.class, new NameTypeHandler());
    serializationLibrary.add(SkeletalMesh.class, new AssetTypeHandler<>(SkeletalMesh.class));
    serializationLibrary.add(MeshAnimation.class, new AssetTypeHandler<>(MeshAnimation.class));
    serializationLibrary.add(TextureRegion.class, new TextureRegionTypeHandler());
    serializationLibrary.add(TextureRegionAsset.class, new TextureRegionTypeHandler());
    serializationLibrary.add(Vector4f.class, new Vector4fTypeHandler());
    serializationLibrary.add(Vector3f.class, new Vector3fTypeHandler());
    serializationLibrary.add(Vector2f.class, new Vector2fTypeHandler());
    serializationLibrary.add(Vector3i.class, new Vector3iTypeHandler());
    serializationLibrary.add(Vector2i.class, new Vector2iTypeHandler());
    serializationLibrary.add(Rect2i.class, new Rect2iTypeHandler());
    serializationLibrary.add(Rect2f.class, new Rect2fTypeHandler());
    serializationLibrary.add(Region3i.class, new Region3iTypeHandler());
    serializationLibrary.add(Prefab.class, new PrefabTypeHandler());
    serializationLibrary.add(BehaviorTree.class, new AssetTypeHandler<>(BehaviorTree.class));
    serializationLibrary.add(IntegerRange.class, new IntegerRangeHandler());
    return serializationLibrary;
}
Also used : PrefabTypeHandler(org.terasology.persistence.typeHandling.extensionTypes.PrefabTypeHandler) UIElement(org.terasology.rendering.nui.asset.UIElement) Vector3iTypeHandler(org.terasology.persistence.typeHandling.mathTypes.Vector3iTypeHandler) StreamingSound(org.terasology.audio.StreamingSound) SkeletalMesh(org.terasology.rendering.assets.skeletalmesh.SkeletalMesh) Texture(org.terasology.rendering.assets.texture.Texture) Vector2iTypeHandler(org.terasology.persistence.typeHandling.mathTypes.Vector2iTypeHandler) NameTypeHandler(org.terasology.persistence.typeHandling.extensionTypes.NameTypeHandler) MeshAnimation(org.terasology.rendering.assets.animation.MeshAnimation) IntegerRangeHandler(org.terasology.persistence.typeHandling.mathTypes.IntegerRangeHandler) Rect2fTypeHandler(org.terasology.persistence.typeHandling.mathTypes.Rect2fTypeHandler) StaticSound(org.terasology.audio.StaticSound) Region3iTypeHandler(org.terasology.persistence.typeHandling.mathTypes.Region3iTypeHandler) Mesh(org.terasology.rendering.assets.mesh.Mesh) SkeletalMesh(org.terasology.rendering.assets.skeletalmesh.SkeletalMesh) Material(org.terasology.rendering.assets.material.Material) BehaviorTree(org.terasology.logic.behavior.asset.BehaviorTree) Vector3fTypeHandler(org.terasology.persistence.typeHandling.mathTypes.Vector3fTypeHandler) ColorTypeHandler(org.terasology.persistence.typeHandling.extensionTypes.ColorTypeHandler) Vector4fTypeHandler(org.terasology.persistence.typeHandling.mathTypes.Vector4fTypeHandler) Quat4fTypeHandler(org.terasology.persistence.typeHandling.mathTypes.Quat4fTypeHandler) Rect2iTypeHandler(org.terasology.persistence.typeHandling.mathTypes.Rect2iTypeHandler) TextureRegionTypeHandler(org.terasology.persistence.typeHandling.extensionTypes.TextureRegionTypeHandler) Vector2fTypeHandler(org.terasology.persistence.typeHandling.mathTypes.Vector2fTypeHandler)

Aggregations

StaticSound (org.terasology.audio.StaticSound)1 StreamingSound (org.terasology.audio.StreamingSound)1 BehaviorTree (org.terasology.logic.behavior.asset.BehaviorTree)1 ColorTypeHandler (org.terasology.persistence.typeHandling.extensionTypes.ColorTypeHandler)1 NameTypeHandler (org.terasology.persistence.typeHandling.extensionTypes.NameTypeHandler)1 PrefabTypeHandler (org.terasology.persistence.typeHandling.extensionTypes.PrefabTypeHandler)1 TextureRegionTypeHandler (org.terasology.persistence.typeHandling.extensionTypes.TextureRegionTypeHandler)1 IntegerRangeHandler (org.terasology.persistence.typeHandling.mathTypes.IntegerRangeHandler)1 Quat4fTypeHandler (org.terasology.persistence.typeHandling.mathTypes.Quat4fTypeHandler)1 Rect2fTypeHandler (org.terasology.persistence.typeHandling.mathTypes.Rect2fTypeHandler)1 Rect2iTypeHandler (org.terasology.persistence.typeHandling.mathTypes.Rect2iTypeHandler)1 Region3iTypeHandler (org.terasology.persistence.typeHandling.mathTypes.Region3iTypeHandler)1 Vector2fTypeHandler (org.terasology.persistence.typeHandling.mathTypes.Vector2fTypeHandler)1 Vector2iTypeHandler (org.terasology.persistence.typeHandling.mathTypes.Vector2iTypeHandler)1 Vector3fTypeHandler (org.terasology.persistence.typeHandling.mathTypes.Vector3fTypeHandler)1 Vector3iTypeHandler (org.terasology.persistence.typeHandling.mathTypes.Vector3iTypeHandler)1 Vector4fTypeHandler (org.terasology.persistence.typeHandling.mathTypes.Vector4fTypeHandler)1 MeshAnimation (org.terasology.rendering.assets.animation.MeshAnimation)1 Material (org.terasology.rendering.assets.material.Material)1 Mesh (org.terasology.rendering.assets.mesh.Mesh)1