JamReplicator

Inherits: Node < Object

There is currently no description for this class. Please help us by contributing one!

Properties

Variant

sync_seq

0

float

sync_clock

0.0

bool

sync_stable

false

JamReplicator.StateFrame[]

state_buffer

[]

float

state_interp

0.0

Variant

got_initial_state

false

Variant

target_state_buffer_len

4

Variant

target_state_buffer_len_min

4

float

segment_time

0.0

float

segment_length

5.0

int

drops_in_segment

0

int

drops_threshold

3

int

dropless_segments

0

int

dropless_threshold

5

int

buffer_increases

0

Variant

server_state

{}

Variant

sync_refs

{}

Variant

spawn_scene_cache

{}

Methods

JamReplicator

get_replicator ( SceneTree tree ) static

void

_ready ( )

void

_jam_connect_init ( JamConnect jc )

void

_on_peer_connected ( int pid )

void

_on_peer_disconnected ( int _pid )

void

_process ( Variant delta )

void

amend_server_state ( int sync_id, Variant value )

void

sync_state ( int seq, Dictionary data )

JamReplicator.StateInterp

get_state ( int sync_id )

Node

_instantiate_spawn_scene ( String scene_path )

void

scene_spawn ( JamSync sync_node, int peer_id=-1 )

void

scene_despawn ( JamSync sync_node )

void

_scene_spawn ( String node_path, String scene_path, Dictionary spawn_properties, int sync_id )

void

_scene_despawn ( int sync_id )

void

clear_sync_ref ( int sync_id )


Constants

sync_interval = 0.0333333

There is currently no description for this constant. Please help us by contributing one!


Property Descriptions

Variant sync_seq = 0

There is currently no description for this property. Please help us by contributing one!


float sync_clock = 0.0

There is currently no description for this property. Please help us by contributing one!


bool sync_stable = false

There is currently no description for this property. Please help us by contributing one!


JamReplicator.StateFrame[] state_buffer = []

There is currently no description for this property. Please help us by contributing one!


float state_interp = 0.0

There is currently no description for this property. Please help us by contributing one!


Variant got_initial_state = false

There is currently no description for this property. Please help us by contributing one!


Variant target_state_buffer_len = 4

There is currently no description for this property. Please help us by contributing one!


Variant target_state_buffer_len_min = 4

There is currently no description for this property. Please help us by contributing one!


float segment_time = 0.0

There is currently no description for this property. Please help us by contributing one!


float segment_length = 5.0

There is currently no description for this property. Please help us by contributing one!


int drops_in_segment = 0

There is currently no description for this property. Please help us by contributing one!


int drops_threshold = 3

There is currently no description for this property. Please help us by contributing one!


int dropless_segments = 0

There is currently no description for this property. Please help us by contributing one!


int dropless_threshold = 5

There is currently no description for this property. Please help us by contributing one!


int buffer_increases = 0

There is currently no description for this property. Please help us by contributing one!


Variant server_state = {}

There is currently no description for this property. Please help us by contributing one!


Variant sync_refs = {}

There is currently no description for this property. Please help us by contributing one!


Variant spawn_scene_cache = {}

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

JamReplicator get_replicator ( SceneTree tree ) static

There is currently no description for this method. Please help us by contributing one!


void _ready ( )

There is currently no description for this method. Please help us by contributing one!


void _jam_connect_init ( JamConnect jc )

There is currently no description for this method. Please help us by contributing one!


void _on_peer_connected ( int pid )

There is currently no description for this method. Please help us by contributing one!


void _on_peer_disconnected ( int _pid )

There is currently no description for this method. Please help us by contributing one!


void _process ( Variant delta )

There is currently no description for this method. Please help us by contributing one!


void amend_server_state ( int sync_id, Variant value )

There is currently no description for this method. Please help us by contributing one!


void sync_state ( int seq, Dictionary data )

There is currently no description for this method. Please help us by contributing one!


JamReplicator.StateInterp get_state ( int sync_id )

There is currently no description for this method. Please help us by contributing one!


Node _instantiate_spawn_scene ( String scene_path )

There is currently no description for this method. Please help us by contributing one!


void scene_spawn ( JamSync sync_node, int peer_id=-1 )

There is currently no description for this method. Please help us by contributing one!


void scene_despawn ( JamSync sync_node )

There is currently no description for this method. Please help us by contributing one!


void _scene_spawn ( String node_path, String scene_path, Dictionary spawn_properties, int sync_id )

There is currently no description for this method. Please help us by contributing one!


void _scene_despawn ( int sync_id )

There is currently no description for this method. Please help us by contributing one!


void clear_sync_ref ( int sync_id )

There is currently no description for this method. Please help us by contributing one!