pub struct LuaRenderingDrawLineParams {Show 16 fields
pub blink_interval: u16,
pub color: Color,
pub dash_length: f64,
pub dash_offset: f64,
pub draw_on_ground: bool,
pub forces: ForceSet,
pub from: ScriptRenderTarget,
pub gap_length: f64,
pub only_in_alt_mode: bool,
pub players: Vec<PlayerIdentification>,
pub render_mode: ScriptRenderMode,
pub surface: SurfaceIdentification,
pub time_to_live: u32,
pub to: ScriptRenderTarget,
pub visible: bool,
pub width: f32,
}Expand description
Create a line.
Fields§
§blink_interval: u16In ticks. Defaults to 0 (no blinking). Game alerts use 30.
color: Color§dash_length: f64Length of the dashes that this line has. Used only if gap_length > 0. Default is 0.
dash_offset: f64Starting offset to apply to dashes. Cannot be greater than dash_length + gap_length. Default is 0.
draw_on_ground: boolIf this should be drawn below sprites and entities. Defaults to false.
forces: ForceSetThe forces that this object is rendered to. Passing nil or an empty table will render it to all forces.
from: ScriptRenderTarget§gap_length: f64Length of the gaps that this line has, in tiles. Default is 0.
only_in_alt_mode: boolIf this should only be rendered in alt mode. Defaults to false.
players: Vec<PlayerIdentification>The players that this object is rendered to. Passing nil or an empty table will render it to all players.
render_mode: ScriptRenderModeMode which this object should render in. Defaults to “game”.
surface: SurfaceIdentification§time_to_live: u32In ticks. Defaults to living forever.
to: ScriptRenderTarget§visible: boolIf this is rendered to anyone at all. Defaults to true.
width: f32In pixels (32 per tile).
Trait Implementations§
Source§impl Clone for LuaRenderingDrawLineParams
impl Clone for LuaRenderingDrawLineParams
Source§fn clone(&self) -> LuaRenderingDrawLineParams
fn clone(&self) -> LuaRenderingDrawLineParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more