Package org.terasology.asset.sources

Examples of org.terasology.asset.sources.DirectorySource


    private AssetSource createAssetSource(Name id, Path path) {
        if (Files.isRegularFile(path)) {
            return new ArchiveSource(id, path.toFile(), TerasologyConstants.ASSETS_SUBDIRECTORY, TerasologyConstants.OVERRIDES_SUBDIRECTORY,
                    TerasologyConstants.DELTAS_SUBDIRECTORY);
        } else {
            return new DirectorySource(id, path.resolve(TerasologyConstants.ASSETS_SUBDIRECTORY),
                    path.resolve(TerasologyConstants.OVERRIDES_SUBDIRECTORY), path.resolve(TerasologyConstants.DELTAS_SUBDIRECTORY));
        }
    }
View Full Code Here

TOP

Related Classes of org.terasology.asset.sources.DirectorySource

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.