Package org.terasology.persistence.typeHandling.extensionTypes

Examples of org.terasology.persistence.typeHandling.extensionTypes.TextureRegionTypeHandler


        serializationLibrary.add(StaticSound.class, new AssetTypeHandler<>(AssetType.SOUND, StaticSound.class));
        serializationLibrary.add(StreamingSound.class, new AssetTypeHandler<>(AssetType.MUSIC, StreamingSound.class));
        serializationLibrary.add(Material.class, new AssetTypeHandler<>(AssetType.MATERIAL, Material.class));
        serializationLibrary.add(SkeletalMesh.class, new AssetTypeHandler<>(AssetType.SKELETON_MESH, SkeletalMesh.class));
        serializationLibrary.add(MeshAnimation.class, new AssetTypeHandler<>(AssetType.ANIMATION, 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(CollisionGroup.class, new CollisionGroupTypeHandler());
View Full Code Here


        library.add(Rect2f.class, new Rect2fTypeHandler());
        library.add(CollisionGroup.class, new CollisionGroupTypeHandler());
        library.add(Region3i.class, new Region3iTypeHandler());
        library.add(Prefab.class, new PrefabTypeHandler());
        library.add(Border.class, new BorderTypeHandler());
        library.add(TextureRegion.class, new TextureRegionTypeHandler());
        library.add(TextureRegionAsset.class, new TextureRegionTypeHandler());

        GsonBuilder gsonBuilder = new GsonBuilder()
                .registerTypeAdapterFactory(new CaseInsensitiveEnumTypeAdapterFactory())
                .registerTypeAdapter(UIData.class, new UIDataTypeAdapter())
                .registerTypeHierarchyAdapter(UIWidget.class, new UIWidgetTypeAdapter(nuiManager));
View Full Code Here

TOP

Related Classes of org.terasology.persistence.typeHandling.extensionTypes.TextureRegionTypeHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.