Module multiplayer_api

Consts

RPC_MODE_DISABLED = 0'i64
RPC_MODE_REMOTE = 1'i64
RPC_MODE_SYNC = 2'i64
RPC_MODE_MASTER = 3'i64
RPC_MODE_SLAVE = 4'i64
RPC_MODE_REMOTESYNC = 5'i64
RPC_MODE_MASTERSYNC = 6'i64
RPC_MODE_SLAVESYNC = 7'i64

Procs

proc refuseNewNetworkConnections(self: MultiplayerAPI): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc refuseNewNetworkConnections=(self: MultiplayerAPI; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc networkPeer(self: MultiplayerAPI): NetworkedMultiplayerPeer {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc networkPeer=(self: MultiplayerAPI; val: NetworkedMultiplayerPeer) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setRootNode(self: MultiplayerAPI; node: Object) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc sendBytes(self: MultiplayerAPI; bytes: PoolByteArray; id: int64 = 0'i64): Error {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc hasNetworkPeer(self: MultiplayerAPI): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getNetworkUniqueId(self: MultiplayerAPI): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc isNetworkServer(self: MultiplayerAPI): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getRpcSenderId(self: MultiplayerAPI): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc poll(self: MultiplayerAPI) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc clear(self: MultiplayerAPI) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getNetworkConnectedPeers(self: MultiplayerAPI): PoolIntArray {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}

Methods

method addPeer(self: MultiplayerAPI; id: int64) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method delPeer(self: MultiplayerAPI; id: int64) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method connectedToServer(self: MultiplayerAPI) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method connectionFailed(self: MultiplayerAPI) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method serverDisconnected(self: MultiplayerAPI) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}