pub struct LuaSurfaceCreateTerritoryParams {
pub chunks: Vec<ChunkPosition>,
pub patrol_path: Vec<MapPosition>,
}Expand description
Create a territory on the surface.
Fields§
§chunks: Vec<ChunkPosition>The chunks to assign to the new territory. Must contain at least one generated chunk. Any chunks already assigned to existing territories will be removed from those territories. Any territories left with no generated chunks will be deleted from the surface as a result.
patrol_path: Vec<MapPosition>The path that patrolling units will follow. If nil or empty, one will be generated for the new territory based on chunks.
Trait Implementations§
Source§impl Clone for LuaSurfaceCreateTerritoryParams
impl Clone for LuaSurfaceCreateTerritoryParams
Source§fn clone(&self) -> LuaSurfaceCreateTerritoryParams
fn clone(&self) -> LuaSurfaceCreateTerritoryParams
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 LuaSurfaceCreateTerritoryParams
impl Default for LuaSurfaceCreateTerritoryParams
Source§fn default() -> LuaSurfaceCreateTerritoryParams
fn default() -> LuaSurfaceCreateTerritoryParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCreateTerritoryParams
impl RefUnwindSafe for LuaSurfaceCreateTerritoryParams
impl Send for LuaSurfaceCreateTerritoryParams
impl Sync for LuaSurfaceCreateTerritoryParams
impl Unpin for LuaSurfaceCreateTerritoryParams
impl UnsafeUnpin for LuaSurfaceCreateTerritoryParams
impl UnwindSafe for LuaSurfaceCreateTerritoryParams
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