pub struct SpawnDef {
pub item_id: u32,
pub rate_days: u32,
pub xz_radius: f32,
pub y_radius: f32,
pub y_offset: f32,
pub limit: u32,
pub count: u32,
}Expand description
Periodic item-spawn configuration.
Defines what items an object periodically spawns into the world.
§.inf format
spawn=item_id,rate_days,xz_radius,y_radius,y_offset,limit,countFields§
§item_id: u32Item type ID to spawn.
rate_days: u32Spawn interval in days.
xz_radius: f32Horizontal spawn radius.
y_radius: f32Vertical spawn radius.
y_offset: f32Vertical spawn offset.
limit: u32Maximum number of spawned items at once.
count: u32Number of items per spawn event.
Implementations§
Trait Implementations§
impl Copy for SpawnDef
Source§impl<'de> Deserialize<'de> for SpawnDef
impl<'de> Deserialize<'de> for SpawnDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SpawnDef
Auto Trait Implementations§
impl Forget for SpawnDef
impl Freeze for SpawnDef
impl Move for SpawnDef
impl RefUnwindSafe for SpawnDef
impl Send for SpawnDef
impl Sync for SpawnDef
impl Unpin for SpawnDef
impl UnsafeUnpin for SpawnDef
impl UnwindSafe for SpawnDef
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