[−][src]Struct sulis_state::PropState
Fields
prop: Rc<Prop>
location: Location
animation_state: AnimationState
listeners: ChangeListenerList<PropState>
Implementations
impl PropState
[src]
pub fn name(&self) -> &str
[src]
pub fn is_enabled(&self) -> bool
[src]
pub fn location_points(&self) -> ObjectSizeIterator<'_>
[src]
pub fn might_contain_items(&self) -> bool
[src]
pub fn is_door(&self) -> bool
[src]
pub fn is_hover(&self) -> bool
[src]
pub fn is_container(&self) -> bool
[src]
pub fn toggle_active(&mut self)
[src]
pub fn add_item(&mut self, item: ItemState)
[src]
pub fn add_items(&mut self, items_to_add: Vec<(u32, ItemState)>)
[src]
pub fn items(&self) -> Option<&ItemList>
[src]
pub fn remove_all_at(&mut self, index: usize) -> Option<(u32, ItemState)>
[src]
pub fn remove_one_at(&mut self, index: usize) -> Option<ItemState>
[src]
pub fn is_active(&self) -> bool
[src]
pub fn append_to_draw_list(
&self,
draw_list: &mut DrawList,
offset: Offset,
millis: u32
)
[src]
&self,
draw_list: &mut DrawList,
offset: Offset,
millis: u32
)
Trait Implementations
impl AreaDrawable for PropState
[src]
fn cache(
&mut self,
_renderer: &mut dyn GraphicsRenderer,
_texture_cache: &mut EntityTextureCache
)
[src]
&mut self,
_renderer: &mut dyn GraphicsRenderer,
_texture_cache: &mut EntityTextureCache
)
fn draw(
&self,
renderer: &mut dyn GraphicsRenderer,
scale: Scale,
x: f32,
y: f32,
millis: u32,
color: Color
)
[src]
&self,
renderer: &mut dyn GraphicsRenderer,
scale: Scale,
x: f32,
y: f32,
millis: u32,
color: Color
)
fn size(&self) -> Size
[src]
fn location(&self) -> &Location
[src]
fn aerial(&self) -> bool
[src]
impl Debug for PropState
[src]
impl Locatable for PropState
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PropState
impl !Send for PropState
impl !Sync for PropState
impl Unpin for PropState
impl !UnwindSafe for PropState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,