Interface IDhApiSaveStructure
- All Superinterfaces:
IBindable
,IDhApiOverrideable
Used to override which folder DH uses when loading a level.
Can be used to redirect LOD data saving into a more manageable location
or for replays/local-servers that are running out of a different folder
than where the DH data is normally saved.
- Since:
- API 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionoverrideFilePath
(File currentFilePath, IDhApiLevelWrapper levelWrapper) Called when DH first loads a level to determine which folder it should use for file handling.Methods inherited from interface com.seibel.distanthorizons.coreapi.interfaces.dependencyInjection.IBindable
finishDelayedSetup, getDelayedSetupComplete
Methods inherited from interface com.seibel.distanthorizons.api.interfaces.override.IDhApiOverrideable
getPriority
-
Method Details
-
overrideFilePath
Called when DH first loads a level to determine which folder it should use for file handling.- Parameters:
currentFilePath
- the file path DH is planning to use. If this method returns null this is the file path that will be used.levelWrapper
- the level this file path is used for.- Returns:
- null if you don't want to override the file path. Non-null if you want to change the file path.
-