Trait oxygengine_core::prefab::Prefab[][src]

pub trait Prefab: Serialize + DeserializeOwned + Sized {
    fn from_prefab(data: PrefabValue) -> Result<Self, PrefabError> { ... }
fn from_prefab_with_extras(
        data: PrefabValue,
        _named_entities: &HashMap<String, Entity>,
        _state_token: StateToken
    ) -> Result<Self, PrefabError> { ... }
fn to_prefab(&self) -> Result<PrefabValue, PrefabError> { ... }
fn from_prefab_str(data: &str) -> Result<Self, PrefabError> { ... }
fn to_prefab_string(&self) -> Result<String, PrefabError> { ... }
fn post_from_prefab(&mut self) { ... } }

Provided methods

fn from_prefab(data: PrefabValue) -> Result<Self, PrefabError>[src]

fn from_prefab_with_extras(
    data: PrefabValue,
    _named_entities: &HashMap<String, Entity>,
    _state_token: StateToken
) -> Result<Self, PrefabError>
[src]

fn to_prefab(&self) -> Result<PrefabValue, PrefabError>[src]

fn from_prefab_str(data: &str) -> Result<Self, PrefabError>[src]

fn to_prefab_string(&self) -> Result<String, PrefabError>[src]

fn post_from_prefab(&mut self)[src]

Loading content...

Implementors

Loading content...