Sign in

    Milky2018/mgstudio/app does not have a README file

    DeltaSecondsFn

    type DeltaSecondsFn = () -> Float

    Plugin

    type Plugin[W] = (App[W]) -> App[W]

    RunConditionFn

    type RunConditionFn[W] = (W) -> Bool

    RunnerBuilder

    type RunnerBuilder[W] = (App[W]) -> (() -> Unit)

    RunnerFn

    type RunnerFn = () -> Unit

    SystemFn

    type SystemFn[W] = (W) -> Unit

    SystemSet

    type SystemSet = String

    SystemParam

    pub(open) trait SystemParam {
    get() -> Self
    }

    App

    pub struct App[W] {
    world : W
    schedule : Schedule[W]
    runner : () -> Unit?
    }

    App::add_fixed_update_system

    fn[W] App::add_fixed_update_system(self : App[W], system_fn : (W) -> Unit) -> App[W]

    App::add_fixed_update_system_config

    fn[W] App::add_fixed_update_system_config(self : App[W], config : SystemConfig[W]) -> App[W]

    App::add_fixed_update_system_param

    fn[W, P : SystemParam] App::add_fixed_update_system_param(self : App[W], fixed_update_system : (P) -> Unit) -> App[W]

    App::add_plugins

    fn[W] App::add_plugins(self : App[W], plugins : Array[(App[W]) -> App[W]]) -> App[W]

    App::add_post_update_system

    fn[W] App::add_post_update_system(self : App[W], system_fn : (W) -> Unit) -> App[W]

    App::add_post_update_system_config

    fn[W] App::add_post_update_system_config(self : App[W], config : SystemConfig[W]) -> App[W]

    App::add_post_update_system_param

    fn[W, P : SystemParam] App::add_post_update_system_param(self : App[W], post_update_system : (P) -> Unit) -> App[W]

    App::add_pre_update_system

    fn[W] App::add_pre_update_system(self : App[W], system_fn : (W) -> Unit) -> App[W]

    App::add_pre_update_system_config

    fn[W] App::add_pre_update_system_config(self : App[W], config : SystemConfig[W]) -> App[W]

    App::add_pre_update_system_param

    fn[W, P : SystemParam] App::add_pre_update_system_param(self : App[W], pre_update_system : (P) -> Unit) -> App[W]

    App::add_startup_system

    fn[W] App::add_startup_system(self : App[W], system_fn : (W) -> Unit) -> App[W]

    App::add_startup_system_config

    fn[W] App::add_startup_system_config(self : App[W], config : SystemConfig[W]) -> App[W]

    App::add_startup_system_param

    fn[W, P : SystemParam] App::add_startup_system_param(self : App[W], startup_system : (P) -> Unit) -> App[W]

    App::add_system

    fn[W] App::add_system(self : App[W], system_fn : (W) -> Unit) -> App[W]

    App::add_system_config

    fn[W] App::add_system_config(self : App[W], config : SystemConfig[W]) -> App[W]

    App::add_system_param

    fn[W, P : SystemParam] App::add_system_param(self : App[W], update_system : (P) -> Unit) -> App[W]

    App::configure_set

    fn[W] App::configure_set(self : App[W], stage : ScheduleStage, set : String, before? : Array[String], after? : Array[String]) -> App[W]

    App::new

    fn[W] App::new(world : W) -> App[W]

    App::set_runner

    fn[W] App::set_runner(self : App[W], builder : (App[W]) -> (() -> Unit)) -> App[W]

    Schedule

    pub struct Schedule[W] {
    startup : Array[SystemConfig[W]]
    pre_update : Array[SystemConfig[W]]
    fixed_update : Array[SystemConfig[W]]
    update : Array[SystemConfig[W]]
    post_update : Array[SystemConfig[W]]
    startup_set_edges : Array[(String, String)]
    pre_update_set_edges : Array[(String, String)]
    fixed_update_set_edges : Array[(String, String)]
    update_set_edges : Array[(String, String)]
    post_update_set_edges : Array[(String, String)]
    }

    ScheduleStage

    pub(all) enum ScheduleStage {
    Startup
    PreUpdate
    FixedUpdate
    Update
    PostUpdate
    }

    impl Eq for ScheduleStage

    SystemConfig

    pub struct SystemConfig[W] {
    system : (W) -> Unit
    run_if : (W) -> Bool?
    set : String?
    before : Array[String]
    after : Array[String]
    last_run_tick : Int
    }

    SystemConfig::after

    fn[W] SystemConfig::after(self : SystemConfig[W], set : String) -> SystemConfig[W]

    SystemConfig::before

    fn[W] SystemConfig::before(self : SystemConfig[W], set : String) -> SystemConfig[W]

    SystemConfig::in_set

    fn[W] SystemConfig::in_set(self : SystemConfig[W], set : String) -> SystemConfig[W]

    SystemConfig::run_if

    fn[W] SystemConfig::run_if(self : SystemConfig[W], cond : (W) -> Bool) -> SystemConfig[W]

    clear_delta_seconds_provider

    fn clear_delta_seconds_provider() -> Unit

    fixed_time_did_run_this_frame

    fn fixed_time_did_run_this_frame() -> Bool

    fixed_time_elapsed_seconds

    fn fixed_time_elapsed_seconds() -> Float

    fixed_time_overstep_fraction

    fn fixed_time_overstep_fraction() -> Float

    fixed_time_overstep_seconds

    fn fixed_time_overstep_seconds() -> Float

    fixed_time_reset

    fn fixed_time_reset() -> Unit

    fixed_time_set_max_delta_seconds

    fn fixed_time_set_max_delta_seconds(seconds : Float) -> Unit

    fixed_time_set_timestep_seconds

    fn fixed_time_set_timestep_seconds(seconds : Float) -> Unit

    fixed_time_steps_ran_this_frame

    fn fixed_time_steps_ran_this_frame() -> Int

    fixed_time_timestep_seconds

    fn fixed_time_timestep_seconds() -> Float

    set_delta_seconds_provider

    fn set_delta_seconds_provider(provider : () -> Float) -> Unit

    system

    fn[W] system(system : (W) -> Unit) -> SystemConfig[W]

    system_param

    fn[W, P : SystemParam] system_param(system : (P) -> Unit) -> ((W) -> Unit)

    system_set

    fn system_set(name : String) -> String

    Source Files