Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
LoadStatus
GDExtensionManager.swift:35enum LoadStatus
Cases
case ok
The extension has loaded successfully.
case failed
The extension has failed to load, possibly because it does not exist or has missing dependencies.
case alreadyLoaded
The extension has already been loaded.
case notLoaded
The extension has not been loaded.
case needsRestart
The extension requires the application to restart to fully load.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (9) members.
Type members
static func getExtension(path: String
) -> GDExtension? Returns the
GDExtension
at the given filepath
, ornull
if it has not been loaded or does not exist.static func getLoadedExtensions(
) -> PackedStringArray Returns the file paths of all currently loaded extensions.
static func isExtensionLoaded(path: String
) -> Bool Returns
true
if the extension at the given filepath
has already been loaded successfully. See alsogetLoadedExtensions
.static func loadExtension(path: String
) -> GDExtensionManager.LoadStatus Loads an extension by absolute file path. The
path
needs to point to a validGDExtension
. Returns .ok if successful.static func reloadExtension(path: String
) -> GDExtensionManager.LoadStatus Reloads the extension at the given file path. The
path
needs to point to a validGDExtension
, otherwise this method may return either .notLoaded or .failed.static func unloadExtension(path: String
) -> GDExtensionManager.LoadStatus Unloads an extension by file path. The
path
needs to point to an already loadedGDExtension
, otherwise this method returns .notLoaded.class var godotClassName: StringName
Instance members
var extensionsReloaded: SimpleSignal
Emitted after the editor has finished reloading one or more extensions.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.