class Lapis::Multiplayer::Harness

Overview

Orchestrates Server and Clients in an isolated co-process environment

Defined in:

libgodot/multiplayer/harness.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client_count : Int32 = 2) #

Instance Method Detail

def cleanup : Void #

def client(index : Int32) : PeerContext #

def clients : Array(PeerContext) #

def master_root : Godot::Node #

def peer_by_id(id : Int32) : PeerContext | Nil #

def pending_actions : Array(Proc(Nil)) #

def queue_action(&block : -> Nil) : Void #

def server : PeerContext #

def spy : Spy #

def step_frames(count : Int32 = 1, delta : Float64 = 0.016667) : Void #