class
Lapis::Multiplayer::PeerContext
- Lapis::Multiplayer::PeerContext
- Reference
- Object
Overview
Context representing a single simulated peer (Server or Client) Represents an isolated peer context (Server or Client) within the test harness
Defined in:
libgodot/multiplayer/harness.crConstructors
Instance Method Summary
- #client? : Bool
- #dispatch_rpc(method : String | Symbol, *args) : Void
- #get_node(path : String) : Godot::Node | Nil
- #harness : Harness | Nil
- #harness=(harness : Harness | Nil)
- #multiplayer_api : Godot::MultiplayerAPI
- #peer : Godot::MultiplayerPeer | Nil
- #peer_id : Int32
- #role : String
- #root_node : Godot::Node
- #rpc(method : String | Symbol, *args) : Godot::Error
- #rpc_id(target_peer_id : Int32 | Int64, method : String | Symbol, *args) : Godot::Error
- #send_action(action : String | Symbol, pressed : Bool = true, strength : Float32 = 1.0_f32) : Void
- #server? : Bool
- #spawn(node_class : T.class, name : String | Nil = nil) : T forall T
- #spawned_nodes : Array(Godot::Node)
- #spy : Spy
Constructor Detail
def self.new(peer_id : Int32, role : String, root_node : Godot::Node, multiplayer_api : Godot::MultiplayerAPI, spy : Spy, peer : Godot::MultiplayerPeer | Nil = nil)
#