pub struct LuaPlayerAddPinParams {
pub always_visible: Option<bool>,
pub chart_tag: Option<LuaCustomChartTag>,
pub entity: Option<LuaEntity>,
pub label: Option<String>,
pub player: Option<PlayerIdentification>,
pub position: Option<MapPosition>,
pub preview_distance: Option<u16>,
pub resource: Option<EntityID>,
pub surface: Option<SurfaceIdentification>,
}Expand description
Adds a pin to this player for the given pin specification. Either entity, player, or surface and position must be defined.
Fields§
§always_visible: Option<bool>Defaults to true.
chart_tag: Option<LuaCustomChartTag>The tag to pin.
entity: Option<LuaEntity>The entity to pin.
label: Option<String>§player: Option<PlayerIdentification>The player to pin.
position: Option<MapPosition>Where to create the pin. Required when surface is defined or resource is defined.
preview_distance: Option<u16>Defaults to 16.
resource: Option<EntityID>The resource prototype to add an entire resource patch with.
surface: Option<SurfaceIdentification>The surface to create the pin on. Required when resource is defined.
Trait Implementations§
Source§impl Clone for LuaPlayerAddPinParams
impl Clone for LuaPlayerAddPinParams
Source§fn clone(&self) -> LuaPlayerAddPinParams
fn clone(&self) -> LuaPlayerAddPinParams
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 moreSource§impl Debug for LuaPlayerAddPinParams
impl Debug for LuaPlayerAddPinParams
Source§impl Default for LuaPlayerAddPinParams
impl Default for LuaPlayerAddPinParams
Source§fn default() -> LuaPlayerAddPinParams
fn default() -> LuaPlayerAddPinParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaPlayerAddPinParams
impl RefUnwindSafe for LuaPlayerAddPinParams
impl Send for LuaPlayerAddPinParams
impl Sync for LuaPlayerAddPinParams
impl Unpin for LuaPlayerAddPinParams
impl UnsafeUnpin for LuaPlayerAddPinParams
impl UnwindSafe for LuaPlayerAddPinParams
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