amethyst / editor-core

Crate that allows an Amethyst game to communicate with an editor.
Other
44 stars 10 forks source link

Handle missing resources #14

Closed randomPoison closed 6 years ago

randomPoison commented 6 years ago

Fixes #13

Per @jojolepro's suggestion, use Option<Read<T>> instead of ReadExpect<T> so that we can gracefully handle the case where a resource is missing. For now I'm setting this up to warn about missing resources, but we can change that if it seems like the wrong approach.