pub struct LuaCustomChartTag;Expand description
A custom tag that shows on the map view.
Implementations§
Source§impl LuaCustomChartTag
impl LuaCustomChartTag
Sourcepub fn object_name(&self) -> &str
pub fn object_name(&self) -> &str
The class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
Sourcepub fn position(&self) -> MapPosition
pub fn position(&self) -> MapPosition
The position of this tag.
Sourcepub fn surface(&self) -> LuaSurface
pub fn surface(&self) -> LuaSurface
The surface this tag belongs to.
Sourcepub fn tag_number(&self) -> u32
pub fn tag_number(&self) -> u32
The unique ID for this tag on this force.
pub fn text(&self) -> &str
Sourcepub fn valid(&self) -> bool
pub fn valid(&self) -> bool
Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
Trait Implementations§
Source§impl Clone for LuaCustomChartTag
impl Clone for LuaCustomChartTag
Source§fn clone(&self) -> LuaCustomChartTag
fn clone(&self) -> LuaCustomChartTag
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 LuaCustomChartTag
Source§impl Debug for LuaCustomChartTag
impl Debug for LuaCustomChartTag
Source§impl Default for LuaCustomChartTag
impl Default for LuaCustomChartTag
Source§fn default() -> LuaCustomChartTag
fn default() -> LuaCustomChartTag
Returns the “default value” for a type. Read more
impl Eq for LuaCustomChartTag
Source§impl From<LuaCustomChartTag> for LuaAny
impl From<LuaCustomChartTag> for LuaAny
Source§fn from(_: LuaCustomChartTag) -> Self
fn from(_: LuaCustomChartTag) -> Self
Converts to this type from the input type.
impl LuaObject for LuaCustomChartTag
Source§impl PartialEq for LuaCustomChartTag
impl PartialEq for LuaCustomChartTag
impl StructuralPartialEq for LuaCustomChartTag
Auto Trait Implementations§
impl Freeze for LuaCustomChartTag
impl RefUnwindSafe for LuaCustomChartTag
impl Send for LuaCustomChartTag
impl Sync for LuaCustomChartTag
impl Unpin for LuaCustomChartTag
impl UnsafeUnpin for LuaCustomChartTag
impl UnwindSafe for LuaCustomChartTag
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