pub struct LuaSurfaceCreateSegmentedUnitParams {
pub force: LuaAny,
pub name: LuaAny,
pub quality: LuaAny,
pub territory: LuaTerritory,
}Expand description
Create a segmented unit on the surface. This differs from creating an entity with type "segmented-unit" in that this method can create the entity in non-generated chunks and with any arbitrary body shape and pre-assigned to a territory.
Fields§
§force: LuaAnyForce of the segmented unit. Defaults to enemy.
name: LuaAnyThe segmented-unit prototype name to create. Must be of type "segmented-unit".
quality: LuaAnyQuality of the entity to be created. Defaults to normal.
territory: LuaTerritoryThe territory that the segmented unit is assigned to. If nil, the segmented unit will patrol around its spawn location. Must be located on this same surface.
Trait Implementations§
Source§impl Clone for LuaSurfaceCreateSegmentedUnitParams
impl Clone for LuaSurfaceCreateSegmentedUnitParams
Source§fn clone(&self) -> LuaSurfaceCreateSegmentedUnitParams
fn clone(&self) -> LuaSurfaceCreateSegmentedUnitParams
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 Default for LuaSurfaceCreateSegmentedUnitParams
impl Default for LuaSurfaceCreateSegmentedUnitParams
Source§fn default() -> LuaSurfaceCreateSegmentedUnitParams
fn default() -> LuaSurfaceCreateSegmentedUnitParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCreateSegmentedUnitParams
impl RefUnwindSafe for LuaSurfaceCreateSegmentedUnitParams
impl Send for LuaSurfaceCreateSegmentedUnitParams
impl Sync for LuaSurfaceCreateSegmentedUnitParams
impl Unpin for LuaSurfaceCreateSegmentedUnitParams
impl UnsafeUnpin for LuaSurfaceCreateSegmentedUnitParams
impl UnwindSafe for LuaSurfaceCreateSegmentedUnitParams
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