pub fn amethyst_gamedata_base_2d(base: &str) -> Result<GameDataBuilder<'static, 'static>> {
    amethyst::start_logger(Default::default());

    let display_config_path = format!("{}/assets/base/config/display.ron", base);

    let key_bindings_path = format!("{}/assets/base/config/input.ron", base);

    GameDataBuilder::default()
        //.with(PrefabLoaderSystem::<MyPrefabData>::default(), "", &[])
        .with_bundle(TransformBundle::new())?
        .with_bundle(
            InputBundle::<String, String>::new().with_bindings_from_file(&key_bindings_path)?,
        )?.with_bundle(UiBundle::<String, String>::new())?
        .with_bundle(AnimationBundle::<u32, Material>::new(
            "animation_control_system",
            "sampler_interpolation_system",
        ))?.with_bundle(AudioBundle::new(|music: &mut Music| music.music.next()))?
        .with(TimedDestroySystem, "timed_destroy", &[])
        .with_basic_renderer(display_config_path, DrawFlat::<PosTex>::new(), false)
}
// TODO: Broken af dependency of TransformBundle pls fix asap lmao
Broken af dependency of TransformBundle pls fix asap lmao
Broken af dependency of TransformBundle pls fix asap lmao
pub fn amethyst_gamedata_base_2d(base: &str) -> Result<GameDataBuilder<'static, 'static>> {
    amethyst::start_logger(Default::default());
    let display_config_path = format!("{}/assets/base/config/display.ron", base);
    let key_bindings_path = format!("{}/assets/base/config/input.ron", base);
    GameDataBuilder::default()
        //.with(PrefabLoaderSystem::<MyPrefabData>::default(), "", &[])
        .with_bundle(TransformBundle::new())?
        .with_bundle(
            InputBundle::<String, String>::new().with_bindings_from_file(&key_bindings_path)?,
        )?.with_bundle(UiBundle::<String, String>::new())?
        .with_bundle(AnimationBundle::<u32, Material>::new(
            "animation_control_system",
            "sampler_interpolation_system",
        ))?.with_bundle(AudioBundle::new(|music: &mut Music| music.music.next()))?
        .with(TimedDestroySystem, "timed_destroy", &[])
        .with_basic_renderer(display_config_path, DrawFlat::<PosTex>::new(), false)
}
pub fn amethyst_gamedata_base_2d ( base : & str ) -> Result < GameDataBuilder < ' static , ' static > > { amethyst :: start_logger ( Default :: default ( ) ) ; let display_config_path = format ! ( " " base ) ; let key_bindings_path = format ! ( " " base ) ; GameDataBuilder :: default ( ) //.with(PrefabLoaderSystem::<MyPrefabData>::default(), "", &[]) . with_bundle ( TransformBundle :: new ( ) ) ? . with_bundle ( InputBundle :: < String , String > :: new ( ) . with_bindings_from_file ( & key_bindings_path ) ? , ) ? . with_bundle ( UiBundle :: < String , String > :: new ( ) ) ? . with_bundle ( AnimationBundle :: < u32 , Material > :: new ( " " , " " , ) ) ? . with_bundle ( AudioBundle :: new ( | music : & mut Music | music . music . next ( ) ) ) ? . with ( TimedDestroySystem , " " , & [ ] ) . with_basic_renderer ( display_config_path , DrawFlat :: < PosTex > :: new ( ) , false ) }
TODO: Broken af dependency of TransformBundle pls fix asap lmao
TODO : Broken af dependency of TransformBundle pls fix asap lmao
base
&str
base
&str