Struct scl_core::download::structs::AssetIndexes
source · pub struct AssetIndexes {
pub map_to_resources: bool,
pub objects: BTreeMap<String, AssetItem>,
}
Expand description
资源索引信息
Fields§
§map_to_resources: bool
是否需要在启动游戏前将资源文件映射(复制)到 游戏目录/resources 文件夹内
该参数会出现在 pre-1.6 的资源文件内,且都是 true
objects: BTreeMap<String, AssetItem>
所有的资源文件哈希对照表,键为原文件路径
Trait Implementations§
source§impl Debug for AssetIndexes
impl Debug for AssetIndexes
source§impl Default for AssetIndexes
impl Default for AssetIndexes
source§fn default() -> AssetIndexes
fn default() -> AssetIndexes
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AssetIndexes
impl<'de> Deserialize<'de> for AssetIndexes
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<AssetIndexes> for AssetIndexes
impl PartialEq<AssetIndexes> for AssetIndexes
source§fn eq(&self, other: &AssetIndexes) -> bool
fn eq(&self, other: &AssetIndexes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AssetIndexes
impl StructuralEq for AssetIndexes
impl StructuralPartialEq for AssetIndexes
Auto Trait Implementations§
impl RefUnwindSafe for AssetIndexes
impl Send for AssetIndexes
impl Sync for AssetIndexes
impl Unpin for AssetIndexes
impl UnwindSafe for AssetIndexes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.