OKP45LHMU44KSJO64P2I7JAMEH6K77VAPBS4TA6MGGYEHEL76A2QC
RZSPBGSODY2STZ47YWPFGKBUVBRQKRSVV5BOSIKZONUJLJCSDO3QC
CHX7R6AMVYVLZJ7DSE6E3B4TCJPRWS2V7ZEJIU2UQ3SSLRKYMJWQC
JNVXXPEIDBTMUTQT5T5WWJXPZCDBEEBG5QXA3JKXYP5SORBVUMMQC
EK273J7XN5BRDC6T24XLZ2LZP2SLDT2Y4AVPIGCQTY2IMEKHDZBAC
ZJ2DSL63RVPSNXIGTAZNPV6HLHOKLWC5RSK5EAAM3HIYUJ5Y3ISQC
ASIORORAPGGVNLR42J6PZRTG7JKK34GYXBYSKSTJFXSFW6YXBJJQC
LJJL6IBEQCCIVNJHDMXA7HBVI3CVROFUSFTXB3CSARCMJFM25Z5AC
JV22QZEHUOIQD6B3P5F3CT5H3FFR4VH5Q64XG2TQKSTSXEVBH6MAC
KZU3YXA22IYIPZICQTMZ4XILKCWOI5O6W4H72PDXDUTZDFVMVGVQC
FIO72ZSANLC3OS5IKSZ4PUAIBFAAHZA6EFGHMHP6YVFGTOJ7PPKQC
MKB2A5XCWBZO2E6QFE6PD36LF3IGMJCGJB5TGMRAPSKCKHS75ISAC
}
}
// Also let's us load in the Sfxr itself, for debugging purposes
#[derive(Default)]
struct DebugSfxrLoader;
impl AssetLoader for DebugSfxrLoader {
type Asset = Sfxr;
type Settings = ();
type Error = SfxrLoaderError;
fn load<'a>(
&'a self,
reader: &'a mut Reader,
_settings: &'a Self::Settings,
_load_context: &'a mut LoadContext,
) -> BoxedFuture<'a, Result<Self::Asset, Self::Error>> {
Box::pin(async move {
let mut bytes = Vec::new();
reader.read_to_end(&mut bytes).await?;
let sfxr = ron::de::from_bytes::<Sfxr>(&bytes)?;
Ok(sfxr)
})
}
fn extensions(&self) -> &[&str] {
&["sfxr.ron"]
.with_userdata(sfxr)