Milky2018/mgstudio/core does not have a README file
pub(open) trait ChangeTickWorld {
read_change_tick(self : Self) -> Int
increment_change_tick(self : Self) -> Int
}pub(open) trait SpawnWorld {
spawn_empty(self : Self) -> Entity
despawn(self : Self, entity : Entity) -> Unit raise EntityError
}pub(open) trait SystemContextWorld {
get_system_context(self : Self) -> SystemContext
set_system_context(self : Self, ctx : SystemContext) -> Unit
}fn[T] ComponentStore::for_each_added(self : ComponentStore[T], system : SystemTicks, f : (Entity, T) -> Unit) -> Unitfn[T] ComponentStore::for_each_changed(self : ComponentStore[T], system : SystemTicks, f : (Entity, T) -> Unit) -> Unitfn[T] ComponentStore::insert(self : ComponentStore[T], entity : Entity, value : T, change_tick : Int) -> Unitfn[T] ComponentStore::set(self : ComponentStore[T], entity : Entity, value : T, change_tick : Int) -> Boolpub struct ComponentTicks {
added : Int
changed : Int
}type Entitiespub struct Entity {
id : Int
generation : Int
}type SparseSet[T]pub struct SystemContext {
last_run : Int
this_run : Int
}pub struct SystemTicks {
last_run : Int
this_run : Int
}type Worldfn[A, B] query2_changed_a(a : ComponentStore[A], b : ComponentStore[B], system : SystemTicks, f : (Entity, A, B) -> Unit) -> Unit