Package org.godot.utilities.engine
Class BaseEngine
- java.lang.Object
-
- org.godot.utilities.core.io.FileResource
-
- org.godot.utilities.engine.BaseEngine
-
- All Implemented Interfaces:
IResource
- Direct Known Subclasses:
Engine
public class BaseEngine extends FileResource
-
-
Field Summary
Fields Modifier and Type Field Description protected VersionengineVersionCurrent engine versionprotected booleanisCustomEngine type.protected booleanisEarlyAccessEngine type.protected booleanisMonoEngine type.protected StringrawVersionEngine raw string version-
Fields inherited from class org.godot.utilities.core.io.FileResource
location
-
-
Constructor Summary
Constructors Constructor Description BaseEngine(@NotNull Path l)BaseEngine constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersiongetEngineVersion()Get current engine version.booleanisCustom()Get current engine type.booleanisEarlyAccess()Get current engine type.booleanisMono()Get current engine type.@NotNull StringtoString()Object string representation-
Methods inherited from class org.godot.utilities.core.io.FileResource
getExtension, getResourcePath
-
-
-
-
Field Detail
-
engineVersion
protected Version engineVersion
Current engine version
-
rawVersion
protected String rawVersion
Engine raw string version
-
isMono
protected boolean isMono
Engine type. Check if is a mono version
-
isEarlyAccess
protected boolean isEarlyAccess
Engine type. Check if engine is an early access version.
-
isCustom
protected boolean isCustom
Engine type. Check if engine is a custom compilation.
-
-
Constructor Detail
-
BaseEngine
public BaseEngine(@NotNull @NotNull Path l)
BaseEngine constructor- Parameters:
l- Target file location- Throws:
IllegalArgumentException- Error if location is not a regular file
-
-
Method Detail
-
getEngineVersion
public Version getEngineVersion()
Get current engine version.BaseEnginealways returnnull.- Returns:
- Target engine version
-
isMono
public boolean isMono()
Get current engine type.BaseEnginealways returnfalse.- Returns:
- Return
trueif current engine is a Mono version orfalseotherwise.
-
isEarlyAccess
public boolean isEarlyAccess()
Get current engine type.BaseEnginealways returnfalse.- Returns:
- Return
trueif current engine is an early access version orfalseotherwise.
-
isCustom
public boolean isCustom()
Get current engine type.BaseEnginealways returnfalse.- Returns:
- Return
trueif current engine is a custom compilation orfalseotherwise.
-
toString
@NotNull public @NotNull String toString()
Object string representation- Overrides:
toStringin classFileResource- Returns:
- Object string representation
-
-