Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
CacheMode
ResourceFormatLoader.swift:18enum CacheMode
Cases
Other members in extension
Type members
Instance members
Show implementation details (11)
Hide implementation details
func _exists(path: String
) -> Bool func _getClassesUsed(path: String
) -> PackedStringArray func _getDependencies(path: String, addTypes: Bool
) -> PackedStringArray If implemented, gets the dependencies of a given resource. If
addTypes
istrue
, paths should be appended::TypeName
, whereTypeName
is the class name of the dependency.func _getRecognizedExtensions(
) -> PackedStringArray Gets the list of extensions for files this loader is able to read.
func _getResourceScriptClass(path: String
) -> String Returns the script class name associated with the
Resource
under the givenpath
. If the resource has no script or the script isn’t a named class, it should return""
.func _getResourceType(path: String
) -> String Gets the class name of the resource associated with the given path. If the loader cannot handle it, it should return
""
.func _getResourceUid(path: String
) -> Int func _handlesType(StringName
) -> Bool Tells which resource class this loader can load.
func _load(path: String, originalPath: String, useSubThreads: Bool, cacheMode: Int32
) -> Variant Loads a resource when the engine finds this loader to be compatible. If the loaded resource is the result of an import,
originalPath
will target the source file. Returns aResource
object on success, or anGodotError
constant in case of failure.func _recognizePath(String, type: StringName
) -> Bool Tells whether or not this loader should load a resource from its resource path for a given type.
func _renameDependencies(path: String, renames: GDictionary
) -> GodotError If implemented, renames dependencies within the given resource and saves it.
renames
is a dictionary{ String => String }
mapping old dependency paths to new paths.
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.