pub struct AiInstance<C>where
C: Component,{
pub template: String,
pub decide_delay: Scalar,
/* private fields */
}
Fields§
§template: String
§decide_delay: Scalar
Implementations§
Trait Implementations§
Source§impl<C> Default for AiInstance<C>
impl<C> Default for AiInstance<C>
Source§fn default() -> AiInstance<C>
fn default() -> AiInstance<C>
Returns the “default value” for a type. Read more
Source§impl<'de, C> Deserialize<'de> for AiInstance<C>
impl<'de, C> Deserialize<'de> for AiInstance<C>
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<C> Prefab for AiInstance<C>
impl<C> Prefab for AiInstance<C>
fn from_prefab(data: &Value) -> Result<Self, PrefabError>
fn from_prefab_with_extras( data: &Value, _named_entities: &HashMap<String, Entity>, _state_token: ID<PhantomData<dyn State + Sync + Send>>, ) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<Value, PrefabError>
fn from_prefab_str(data: &str) -> Result<Self, PrefabError>
fn to_prefab_string(&self) -> Result<String, PrefabError>
fn post_from_prefab(&mut self)
Source§impl<C> Serialize for AiInstance<C>where
C: Component,
impl<C> Serialize for AiInstance<C>where
C: Component,
impl<C> PrefabComponent for AiInstance<C>
Auto Trait Implementations§
impl<C> Freeze for AiInstance<C>
impl<C> !RefUnwindSafe for AiInstance<C>
impl<C> Send for AiInstance<C>
impl<C> Sync for AiInstance<C>
impl<C> Unpin for AiInstance<C>
impl<C> !UnwindSafe for AiInstance<C>
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