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]
data: PrefabValue,
_named_entities: &HashMap<String, Entity>,
_state_token: StateToken
) -> Result<Self, PrefabError>
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]
Implementors
impl Prefab for PrefabSceneEntity
[src]
impl Prefab for PrefabSceneEntity
[src]impl Prefab for PrefabValue
[src]
impl Prefab for PrefabValue
[src]impl Prefab for NonPersistentPrefabProxy
[src]
impl Prefab for NonPersistentPrefabProxy
[src]impl Prefab for ParentPrefabProxy
[src]
impl Prefab for ParentPrefabProxy
[src]impl Prefab for PrefabScene
[src]
impl Prefab for PrefabScene
[src]impl Prefab for PrefabSceneEntityData
[src]
impl Prefab for PrefabSceneEntityData
[src]