pub struct ScriptRenderTargetTable {
pub entity: LuaEntity,
pub offset: LuaAny,
pub position: LuaAny,
pub type: ScriptRenderTargetTableType,
}Expand description
If an entity target of an object (except its orientation_target) is destroyed or changes surface, then the object is also destroyed.
Targets of type "cursor" draw at the position of the player’s cursor.
Targets of type "build-cursor" draw at the position of the player’s build cursor, including snapping to the build position. The offset is rotated by the entity’s direction and mirrored if the entity to be built is mirrored. Recommended to be combined with ScriptRenderMode::build-cursor.
Fields§
§entity: LuaEntity§offset: LuaAny§position: LuaAny§type: ScriptRenderTargetTableTypeTrait Implementations§
Source§impl Clone for ScriptRenderTargetTable
impl Clone for ScriptRenderTargetTable
Source§fn clone(&self) -> ScriptRenderTargetTable
fn clone(&self) -> ScriptRenderTargetTable
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 ScriptRenderTargetTable
Source§impl Debug for ScriptRenderTargetTable
impl Debug for ScriptRenderTargetTable
Source§impl Default for ScriptRenderTargetTable
impl Default for ScriptRenderTargetTable
Source§fn default() -> ScriptRenderTargetTable
fn default() -> ScriptRenderTargetTable
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScriptRenderTargetTable
impl PartialEq for ScriptRenderTargetTable
impl StructuralPartialEq for ScriptRenderTargetTable
Auto Trait Implementations§
impl Freeze for ScriptRenderTargetTable
impl RefUnwindSafe for ScriptRenderTargetTable
impl Send for ScriptRenderTargetTable
impl Sync for ScriptRenderTargetTable
impl Unpin for ScriptRenderTargetTable
impl UnsafeUnpin for ScriptRenderTargetTable
impl UnwindSafe for ScriptRenderTargetTable
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