Package org.godot.utilities.engine
Class Engine
- java.lang.Object
-
- org.godot.utilities.core.io.FileResource
-
- org.godot.utilities.engine.BaseEngine
-
- org.godot.utilities.engine.Engine
-
- All Implemented Interfaces:
IResource
public final class Engine extends BaseEngine
-
-
Field Summary
-
Fields inherited from class org.godot.utilities.engine.BaseEngine
engineVersion, isCustom, isEarlyAccess, isMono, rawVersion
-
Fields inherited from class org.godot.utilities.core.io.FileResource
location
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EngineThreadgetEngineThread()Get engine thread.@NotNull StringtoString()Object string representation.-
Methods inherited from class org.godot.utilities.engine.BaseEngine
getEngineVersion, isCustom, isEarlyAccess, isMono
-
Methods inherited from class org.godot.utilities.core.io.FileResource
getExtension, getResourcePath
-
-
-
-
Constructor Detail
-
Engine
public Engine(@NotNull @NotNull Path l) throws IOException
Engine constructor. The main differences betweenEngineandBaseEngineare:BaseEngineis only used to storage base information of engineBaseEngineis used when the engine location doesn't exist, but at some point it did.Engineverify if the engine location exist, also check if the location is a valid executable file.Enginedetermine the engine version by executing a special command
- Parameters:
l- Target engine location- Throws:
IOException- Error if file not exists or file is not a valid binary file
-
Engine
public Engine(@NotNull @NotNull BaseEngine engine) throws IOException
Engine constructor. Pass anotherBaseEngineinstance to create a new engine instance.- Parameters:
engine- Target engine base instance- Throws:
IOException- Error if location not exists or file is not a valid binary file
-
-
Method Detail
-
getEngineThread
public EngineThread getEngineThread()
Get engine thread.- Returns:
- Returns current instance of current engine or new instance
- See Also:
EngineThread
-
-