weopqrst/moonroll/session does not have a README file
pub(open) trait Sim {
fn save(Self) -> Bytes
fn restore(Self, Bytes) -> Unit
fn step_players(Self, Array[UInt64]) -> Unit
fn hash(Self) -> UInt64
}pub struct Session[T] {
sim : T
local_id : Int
num_players : Int
window : Int
frame : Int
confirmed : Int
rollbacks : Int
replayed : Int64
max_depth : Int
resyncs : Int
rings : Array[InputRing]
cont : Array[Int]
active : Array[Bool]
heard : Array[Int]
buf : Array[UInt64]
snaps : SnapshotRing
hashes : HashRing
}Install
Download zipSans-IO deterministic rollback netcode for MoonBit: input ring buffer, prediction, rollback re-simulation, state checksums, compact byte protocol, deterministic link simulator, 1..8 player sessions.