Package org.terasology.persistence.typeHandling.extensionTypes

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


    private TypeSerializationLibrary buildTypeLibrary(PojoEntityManager entityManager, ReflectFactory factory, CopyStrategyLibrary copyStrategies) {
        TypeSerializationLibrary serializationLibrary = new TypeSerializationLibrary(factory, copyStrategies);
        serializationLibrary.add(BlockFamily.class, new BlockFamilyTypeHandler());
        serializationLibrary.add(Block.class, new BlockTypeHandler());
        serializationLibrary.add(Color.class, new ColorTypeHandler());
        serializationLibrary.add(Quat4f.class, new Quat4fTypeHandler());
        serializationLibrary.add(Texture.class, new AssetTypeHandler<>(AssetType.TEXTURE, Texture.class));
        serializationLibrary.add(UIElement.class, new AssetTypeHandler<>(AssetType.UI_ELEMENT, UIElement.class));
        serializationLibrary.add(Mesh.class, new AssetTypeHandler<>(AssetType.MESH, Mesh.class));
        serializationLibrary.add(StaticSound.class, new AssetTypeHandler<>(AssetType.SOUND, StaticSound.class));
View Full Code Here


        // TODO: Get this library from elsewhere
        TypeSerializationLibrary library = new TypeSerializationLibrary(reflectFactory, copyStrategyLibrary);
        library.add(BlockFamily.class, new BlockFamilyTypeHandler());
        library.add(Block.class, new BlockTypeHandler());
        library.add(Color.class, new ColorTypeHandler());
        library.add(Quat4f.class, new Quat4fTypeHandler());
        library.add(Texture.class, new AssetTypeHandler<>(AssetType.TEXTURE, Texture.class));
        library.add(Mesh.class, new AssetTypeHandler<>(AssetType.MESH, Mesh.class));
        library.add(StaticSound.class, new AssetTypeHandler<>(AssetType.SOUND, StaticSound.class));
        library.add(StreamingSound.class, new AssetTypeHandler<>(AssetType.MUSIC, StreamingSound.class));
View Full Code Here

TOP

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

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.