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

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>

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)

Loading content...

Implementors

impl Prefab for PrefabSceneEntity[src]

impl Prefab for PrefabValue[src]

impl Prefab for Name[src]

impl Prefab for NonPersistentPrefabProxy[src]

impl Prefab for ParentPrefabProxy[src]

impl Prefab for Tag[src]

impl Prefab for PrefabScene[src]

impl Prefab for PrefabSceneEntityData[src]

Loading content...