restore_data.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.7/restore_data.bend as Restore_data
6 imports
import Base import ./entity_key.bend as Key import ./world.bend as W import ./decode_data.bend as D import ./decode_construction.bend as Constructor import ./snapshot_data.bend as Snapshot
Types
type Binding source · line 8 · raw
@S:Data -> Data
Binding@S:Data -> @saved:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Binding<S>
type Change source · line 10 · raw
@S:Data -> Data
Removed@S:Data -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> @name:String -> Change<S>
Despawned@S:Data -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Change<S>
Spawned@S:Data -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> Change<S>
type Position source · line 14 · raw
Data
Component@saved:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> Position
ResourcePosition
type Error source · line 17 · raw
@Custom:Data -> Data
InvalidSnapshot@Custom:Data -> @path:String -> Error<Custom>
UnsupportedVersion@Custom:Data -> @version:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> Error<Custom>
DuplicateEntity@Custom:Data -> @saved:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> Error<Custom>
UnknownComponent@Custom:Data -> @saved:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @name:String -> Error<Custom>
UnknownResource@Custom:Data -> @name:String -> Error<Custom>
InvalidComponent@Custom:Data -> @saved:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @name:String -> @error:0x7e321819d0ff210531780719c7674cef/decode_construction.Error<Custom> -> Error<Custom>
InvalidResource@Custom:Data -> @name:String -> @error:0x7e321819d0ff210531780719c7674cef/decode_construction.Error<Custom> -> Error<Custom>
UnvalidatedDescriptor@Custom:Data -> @name:String -> Error<Custom>
Capacity@Custom:Data -> @nextEntity:U32 -> Error<Custom>
type Dispatch source · line 27 · raw
@Custom:Data -> Data
Unhandled@Custom:Data -> Dispatch<Custom>
Staged@Custom:Data -> Dispatch<Custom>
Rejected@Custom:Data -> @error:0x7e321819d0ff210531780719c7674cef/decode_construction.Error<Custom> -> Dispatch<Custom>
type Prepared source · line 31 · raw
@State:Type -> @Custom:Data -> Type
BendvyReady@State:Type -> @Custom:Data -> @state:State -> @snapshot:0x7e321819d0ff210531780719c7674cef/snapshot_data.Snapshot -> Prepared<State, Custom>
Refused@State:Type -> @Custom:Data -> @state:State -> @input:0x7e321819d0ff210531780719c7674cef/snapshot_data.Snapshot -> @error:Error<Custom> -> Prepared<State, Custom>
Templates
template lookup_choose source · line 34 · raw
@-S:Data -> @equal:Bool -> @target:0x7e321819d0ff210531780719c7674cef/world.Handle<S> -> @next:(@_:Unit -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>) -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>
template lookup source · line 38 · raw
@-S:Data -> @+saved:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @bindings:List<&2, Binding<S>> -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/world.Handle<S>>