package tiny_libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module RollbackSource

Sourcetype 'model t
Sourceval create : me:int -> players:int -> ?delay:int -> ?max_ahead:int -> update:(string array -> 'model -> 'model) -> on_confirm:(int -> 'model -> unit) -> 'model -> 'model t
Sourceval step : 'model t -> string -> unit
Sourceval settle : 'model t -> unit
Sourceval model : 'model t -> 'model
Sourceval tick : 'model t -> int
Sourceval confirmed : 'model t -> int
Sourceval packet : 'model t -> string
Sourceval receive : 'model t -> string -> unit
Sourceval checksum : 'model t -> tick:int -> int32 -> unit
Sourceval desync : 'model t -> (int * int) option
Sourcetype stats = {
  1. stalls : int;
  2. rollbacks : int;
  3. replayed : int;
  4. deepest : int;
  5. dropped : int;
}
Sourceval stats : 'model t -> stats