pub enum RegistrationTarget {
Show 25 variants
Entity(LuaEntity),
Equipment(LuaEquipment),
EquipmentGrid(LuaEquipmentGrid),
Item(LuaItem),
LogisticCell(LuaLogisticCell),
LogisticNetwork(LuaLogisticNetwork),
LogisticSection(LuaLogisticSection),
PermissionGroup(LuaPermissionGroup),
Planet(LuaPlanet),
Player(LuaPlayer),
RailPath(LuaRailPath),
RenderObject(LuaRenderObject),
SpacePlatform(LuaSpacePlatform),
Surface(LuaSurface),
Train(LuaTrain),
Commandable(LuaCommandable),
CustomChartTag(LuaCustomChartTag),
GuiElement(LuaGuiElement),
CargoHatch(LuaCargoHatch),
Schedule(LuaSchedule),
Territory(LuaTerritory),
SegmentedUnit(LuaSegmentedUnit),
ElectricNetwork(LuaElectricNetwork),
ElectricSubNetwork(LuaElectricSubNetwork),
Force(LuaForce),
}Expand description
Represents an object that can be registered for the on_object_destroyed event. Each target has an associated defines.target_type and some have a unique identifier.
Variants§
Entity(LuaEntity)
Equipment(LuaEquipment)
EquipmentGrid(LuaEquipmentGrid)
Item(LuaItem)
LogisticCell(LuaLogisticCell)
LogisticNetwork(LuaLogisticNetwork)
LogisticSection(LuaLogisticSection)
PermissionGroup(LuaPermissionGroup)
Planet(LuaPlanet)
Player(LuaPlayer)
RailPath(LuaRailPath)
RenderObject(LuaRenderObject)
SpacePlatform(LuaSpacePlatform)
Surface(LuaSurface)
Train(LuaTrain)
Commandable(LuaCommandable)
CustomChartTag(LuaCustomChartTag)
GuiElement(LuaGuiElement)
CargoHatch(LuaCargoHatch)
Schedule(LuaSchedule)
Territory(LuaTerritory)
SegmentedUnit(LuaSegmentedUnit)
ElectricNetwork(LuaElectricNetwork)
ElectricSubNetwork(LuaElectricSubNetwork)
Force(LuaForce)
Trait Implementations§
Source§impl Clone for RegistrationTarget
impl Clone for RegistrationTarget
Source§fn clone(&self) -> RegistrationTarget
fn clone(&self) -> RegistrationTarget
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 RegistrationTarget
Source§impl Debug for RegistrationTarget
impl Debug for RegistrationTarget
Source§impl Default for RegistrationTarget
impl Default for RegistrationTarget
Source§impl From<LuaCargoHatch> for RegistrationTarget
impl From<LuaCargoHatch> for RegistrationTarget
Source§fn from(value: LuaCargoHatch) -> Self
fn from(value: LuaCargoHatch) -> Self
Converts to this type from the input type.
Source§impl From<LuaCommandable> for RegistrationTarget
impl From<LuaCommandable> for RegistrationTarget
Source§fn from(value: LuaCommandable) -> Self
fn from(value: LuaCommandable) -> Self
Converts to this type from the input type.
Source§impl From<LuaCustomChartTag> for RegistrationTarget
impl From<LuaCustomChartTag> for RegistrationTarget
Source§fn from(value: LuaCustomChartTag) -> Self
fn from(value: LuaCustomChartTag) -> Self
Converts to this type from the input type.
Source§impl From<LuaElectricNetwork> for RegistrationTarget
impl From<LuaElectricNetwork> for RegistrationTarget
Source§fn from(value: LuaElectricNetwork) -> Self
fn from(value: LuaElectricNetwork) -> Self
Converts to this type from the input type.
Source§impl From<LuaElectricSubNetwork> for RegistrationTarget
impl From<LuaElectricSubNetwork> for RegistrationTarget
Source§fn from(value: LuaElectricSubNetwork) -> Self
fn from(value: LuaElectricSubNetwork) -> Self
Converts to this type from the input type.
Source§impl From<LuaEntity> for RegistrationTarget
impl From<LuaEntity> for RegistrationTarget
Source§impl From<LuaEquipment> for RegistrationTarget
impl From<LuaEquipment> for RegistrationTarget
Source§fn from(value: LuaEquipment) -> Self
fn from(value: LuaEquipment) -> Self
Converts to this type from the input type.
Source§impl From<LuaEquipmentGrid> for RegistrationTarget
impl From<LuaEquipmentGrid> for RegistrationTarget
Source§fn from(value: LuaEquipmentGrid) -> Self
fn from(value: LuaEquipmentGrid) -> Self
Converts to this type from the input type.
Source§impl From<LuaForce> for RegistrationTarget
impl From<LuaForce> for RegistrationTarget
Source§impl From<LuaGuiElement> for RegistrationTarget
impl From<LuaGuiElement> for RegistrationTarget
Source§fn from(value: LuaGuiElement) -> Self
fn from(value: LuaGuiElement) -> Self
Converts to this type from the input type.
Source§impl From<LuaItem> for RegistrationTarget
impl From<LuaItem> for RegistrationTarget
Source§impl From<LuaLogisticCell> for RegistrationTarget
impl From<LuaLogisticCell> for RegistrationTarget
Source§fn from(value: LuaLogisticCell) -> Self
fn from(value: LuaLogisticCell) -> Self
Converts to this type from the input type.
Source§impl From<LuaLogisticNetwork> for RegistrationTarget
impl From<LuaLogisticNetwork> for RegistrationTarget
Source§fn from(value: LuaLogisticNetwork) -> Self
fn from(value: LuaLogisticNetwork) -> Self
Converts to this type from the input type.
Source§impl From<LuaLogisticSection> for RegistrationTarget
impl From<LuaLogisticSection> for RegistrationTarget
Source§fn from(value: LuaLogisticSection) -> Self
fn from(value: LuaLogisticSection) -> Self
Converts to this type from the input type.
Source§impl From<LuaPermissionGroup> for RegistrationTarget
impl From<LuaPermissionGroup> for RegistrationTarget
Source§fn from(value: LuaPermissionGroup) -> Self
fn from(value: LuaPermissionGroup) -> Self
Converts to this type from the input type.
Source§impl From<LuaPlanet> for RegistrationTarget
impl From<LuaPlanet> for RegistrationTarget
Source§impl From<LuaPlayer> for RegistrationTarget
impl From<LuaPlayer> for RegistrationTarget
Source§impl From<LuaRailPath> for RegistrationTarget
impl From<LuaRailPath> for RegistrationTarget
Source§fn from(value: LuaRailPath) -> Self
fn from(value: LuaRailPath) -> Self
Converts to this type from the input type.
Source§impl From<LuaRenderObject> for RegistrationTarget
impl From<LuaRenderObject> for RegistrationTarget
Source§fn from(value: LuaRenderObject) -> Self
fn from(value: LuaRenderObject) -> Self
Converts to this type from the input type.
Source§impl From<LuaSchedule> for RegistrationTarget
impl From<LuaSchedule> for RegistrationTarget
Source§fn from(value: LuaSchedule) -> Self
fn from(value: LuaSchedule) -> Self
Converts to this type from the input type.
Source§impl From<LuaSegmentedUnit> for RegistrationTarget
impl From<LuaSegmentedUnit> for RegistrationTarget
Source§fn from(value: LuaSegmentedUnit) -> Self
fn from(value: LuaSegmentedUnit) -> Self
Converts to this type from the input type.
Source§impl From<LuaSpacePlatform> for RegistrationTarget
impl From<LuaSpacePlatform> for RegistrationTarget
Source§fn from(value: LuaSpacePlatform) -> Self
fn from(value: LuaSpacePlatform) -> Self
Converts to this type from the input type.
Source§impl From<LuaSurface> for RegistrationTarget
impl From<LuaSurface> for RegistrationTarget
Source§fn from(value: LuaSurface) -> Self
fn from(value: LuaSurface) -> Self
Converts to this type from the input type.
Source§impl From<LuaTerritory> for RegistrationTarget
impl From<LuaTerritory> for RegistrationTarget
Source§fn from(value: LuaTerritory) -> Self
fn from(value: LuaTerritory) -> Self
Converts to this type from the input type.
Source§impl From<LuaTrain> for RegistrationTarget
impl From<LuaTrain> for RegistrationTarget
Source§impl From<RegistrationTarget> for LuaAny
impl From<RegistrationTarget> for LuaAny
Source§fn from(_: RegistrationTarget) -> Self
fn from(_: RegistrationTarget) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RegistrationTarget
impl PartialEq for RegistrationTarget
impl StructuralPartialEq for RegistrationTarget
Auto Trait Implementations§
impl Freeze for RegistrationTarget
impl RefUnwindSafe for RegistrationTarget
impl Send for RegistrationTarget
impl Sync for RegistrationTarget
impl Unpin for RegistrationTarget
impl UnsafeUnpin for RegistrationTarget
impl UnwindSafe for RegistrationTarget
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