Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
ErrorCode
JSONRPC.swift:13enum ErrorCode
Cases
case parseError
case invalidRequest
case methodNotFound
A method call was requested but no function of that name existed in the JSONRPC subclass.
case invalidParams
case internalError
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (8) members.
Type members
Instance members
func makeNotification(method: String, params: Variant
) -> GDictionary Returns a dictionary in the form of a JSON-RPC notification. Notifications are one-shot messages which do not expect a response.
func makeRequest(method: String, params: Variant, id: Variant
) -> GDictionary Returns a dictionary in the form of a JSON-RPC request. Requests are sent to a server with the expectation of a response. The ID field is used for the server to specify which exact request it is responding to.
func makeResponse(result: Variant, id: Variant
) -> GDictionary When a server has received and processed a request, it is expected to send a response. If you did not want a response then you need to have sent a Notification instead.
func makeResponseError(code: Int32, message: String, id: Variant
) -> GDictionary Creates a response which indicates a previous reply has failed in some way.
func processAction(Variant, recurse: Bool
) -> Variant Given a Dictionary which takes the form of a JSON-RPC request: unpack the request and run it. Methods are resolved by looking at the field called “method” and looking for an equivalently named function in the JSONRPC object. If one is found that method is called.
func processString(action: String
) -> String func setScope(String, target: Object?
)
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.