Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Bevy Micro LDTK
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Bevy Micro LDTK
Commits
3c4173f9
Verified
Commit
3c4173f9
authored
1 year ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Use get_all_levels for multi-world support
parent
fd860a4d
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Cargo.lock
+1
-1
1 addition, 1 deletion
Cargo.lock
README.md
+1
-1
1 addition, 1 deletion
README.md
src/assets/asset_events.rs
+1
-1
1 addition, 1 deletion
src/assets/asset_events.rs
src/lib.rs
+14
-0
14 additions, 0 deletions
src/lib.rs
with
17 additions
and
3 deletions
Cargo.lock
+
1
−
1
View file @
3c4173f9
...
@@ -2077,7 +2077,7 @@ dependencies = [
...
@@ -2077,7 +2077,7 @@ dependencies = [
[[package]]
[[package]]
name = "micro_ldtk"
name = "micro_ldtk"
version = "0.
3
.0"
version = "0.
4
.0"
dependencies = [
dependencies = [
"anyhow",
"anyhow",
"bevy",
"bevy",
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
3c4173f9
...
@@ -17,7 +17,7 @@ select the schema version you need:
...
@@ -17,7 +17,7 @@ select the schema version you need:
```
toml
```
toml
[dependencies]
[dependencies]
micro_ldtk
=
{
version
=
"0.
3.0-beta
.1"
,
default-features
=
false
,
features
=
[
"ldtk_1_
2_5
"
,
"autotile"
]
}
micro_ldtk
=
{
version
=
"0.
4
.1"
,
default-features
=
false
,
features
=
[
"ldtk_1_
3_0
"
,
"autotile"
]
}
```
```
### Features
### Features
...
...
This diff is collapsed.
Click to expand it.
src/assets/asset_events.rs
+
1
−
1
View file @
3c4173f9
...
@@ -17,7 +17,7 @@ pub fn handle_ldtk_project_events(
...
@@ -17,7 +17,7 @@ pub fn handle_ldtk_project_events(
match
event
{
match
event
{
AssetEvent
::
Created
{
handle
}
|
AssetEvent
::
Modified
{
handle
}
=>
{
AssetEvent
::
Created
{
handle
}
|
AssetEvent
::
Modified
{
handle
}
=>
{
if
let
Some
(
project
)
=
assets
.get
(
handle
)
{
if
let
Some
(
project
)
=
assets
.get
(
handle
)
{
for
level
in
&
project
.levels
{
for
level
in
project
.
get_all_
levels
()
{
level_index
level_index
.insert
(
level
.identifier
.clone
(),
LdtkLevel
::
from
(
level
.clone
()));
.insert
(
level
.identifier
.clone
(),
LdtkLevel
::
from
(
level
.clone
()));
update_events
.send
(
LevelDataUpdated
(
level
.identifier
.clone
()));
update_events
.send
(
LevelDataUpdated
(
level
.identifier
.clone
()));
...
...
This diff is collapsed.
Click to expand it.
src/lib.rs
+
14
−
0
View file @
3c4173f9
#[cfg(any(
feature
=
"ldtk_1_3_0"
,
feature
=
"ldtk_1_2_5"
,
feature
=
"ldtk_1_2_4"
,
feature
=
"ldtk_1_2_3"
,
feature
=
"ldtk_1_2_2"
,
feature
=
"ldtk_1_2_1"
,
feature
=
"ldtk_1_2_0"
,
feature
=
"ldtk_1_1_3"
,
feature
=
"ldtk_1_1_2"
,
feature
=
"ldtk_1_1_1"
,
feature
=
"ldtk_1_1_0"
,
feature
=
"ldtk_1_0_0"
,
))]
mod
assets
;
mod
assets
;
mod
camera
;
mod
camera
;
mod
map_query
;
mod
map_query
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment