Trait oxygengine_core::prefab::Prefab
source · [−]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
source
fn from_prefab(data: &PrefabValue) -> Result<Self, PrefabError>
sourcefn from_prefab_with_extras(
fn from_prefab_with_extras(
data: &PrefabValue,
_named_entities: &HashMap<String, Entity>,
_state_token: StateToken
) -> Result<Self, PrefabError>
source
fn to_prefab(&self) -> Result<PrefabValue, PrefabError>
source
fn from_prefab_str(data: &str) -> Result<Self, PrefabError>
source
fn to_prefab_string(&self) -> Result<String, PrefabError>
source