pub enum ScriptRenderTarget {
Entity(LuaEntity),
Position(MapPosition),
Table(ScriptRenderTargetTable),
}Expand description
When writing it is possible to give LuaEntity or MapPosition directly. However, reading always returns the full ScriptRenderTargetTable.
The full ScriptRenderTargetTable allows specifying cursor targets and an offset for entity targets.
If an entity target of an object (except its orientation_target) is destroyed or changes surface, then the object is also destroyed.
Variants§
Trait Implementations§
Source§impl Clone for ScriptRenderTarget
impl Clone for ScriptRenderTarget
Source§fn clone(&self) -> ScriptRenderTarget
fn clone(&self) -> ScriptRenderTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScriptRenderTarget
Source§impl Debug for ScriptRenderTarget
impl Debug for ScriptRenderTarget
Source§impl Default for ScriptRenderTarget
impl Default for ScriptRenderTarget
Source§impl From<LuaEntity> for ScriptRenderTarget
impl From<LuaEntity> for ScriptRenderTarget
Source§impl From<MapPosition> for ScriptRenderTarget
impl From<MapPosition> for ScriptRenderTarget
Source§fn from(value: MapPosition) -> Self
fn from(value: MapPosition) -> Self
Converts to this type from the input type.
Source§impl From<ScriptRenderTarget> for LuaAny
impl From<ScriptRenderTarget> for LuaAny
Source§fn from(_: ScriptRenderTarget) -> Self
fn from(_: ScriptRenderTarget) -> Self
Converts to this type from the input type.
Source§impl From<ScriptRenderTargetTable> for ScriptRenderTarget
impl From<ScriptRenderTargetTable> for ScriptRenderTarget
Source§fn from(value: ScriptRenderTargetTable) -> Self
fn from(value: ScriptRenderTargetTable) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScriptRenderTarget
impl PartialEq for ScriptRenderTarget
impl StructuralPartialEq for ScriptRenderTarget
Auto Trait Implementations§
impl Freeze for ScriptRenderTarget
impl RefUnwindSafe for ScriptRenderTarget
impl Send for ScriptRenderTarget
impl Sync for ScriptRenderTarget
impl Unpin for ScriptRenderTarget
impl UnsafeUnpin for ScriptRenderTarget
impl UnwindSafe for ScriptRenderTarget
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