StarArawn / bevy_tiled

A plugin for rendering tiled maps.
MIT License
151 stars 40 forks source link

bevy tiled must declare indice types #19

Closed MichaelFroelich closed 3 years ago

MichaelFroelich commented 3 years ago

Due to this commit: https://github.com/bevyengine/bevy/commit/f7c8882c0408902ce6d5e22ac05f51d0f5381ff1

Bevy enforces the need to declare what kind of indices you're using, either U32 or U16

It results in this error when using the current master of bevy:

C:\ProjectFiles\bevy_tiled>cargo run --example iso_main
   Compiling bevy_tiled v0.1.0 (C:\ProjectFiles\bevy_tiled)
error[E0433]: failed to resolve: use of undeclared type or module `Indices`
   --> src\loader.rs:264:47
    |
264 | ...                   indices: Some(Indices::U32(indices)),
    |                                     ^^^^^^^ not found in this scope
    |
help: consider importing this enum
    |
1   | use crate::shape::Indices;
    |
MichaelFroelich commented 3 years ago

Pull request open here: https://github.com/StarArawn/bevy_tiled/pull/20

Merge it when bevy 0.2.2 is released