pub struct Template {Show 36 fields
pub reference: String,
pub bucket: usize,
pub map: Option<MapDescription>,
pub model: Option<ModelDescription>,
pub animations: Vec<Option<Arc<AnimationGroup>>>,
pub audio_events: Vec<(String, Option<String>, f32)>,
pub natural: Option<NaturalResourceDescription>,
pub growth: Option<GrowthDescription>,
pub fruit: Option<FruitTemplate>,
pub growth_reference: Option<String>,
pub spawn: Vec<(usize, f32, f32)>,
pub updates: Vec<ScheduledComponent>,
pub size: Option<(i32, i32)>,
pub storage: Option<(u32, i32, bool)>,
pub storage_location: bool,
pub storage_location_flags: u32,
pub storage_display: bool,
pub market_radius: Option<i32>,
pub market_location: bool,
pub has_interact: bool,
pub use_points: Vec<[f32; 3]>,
pub pile: Option<usize>,
pub pile_material: Option<usize>,
pub pile_yield: (i32, i32),
pub build_points: Vec<[f32; 3]>,
pub use_yaws: Vec<f32>,
pub create_points: Vec<[f32; 3]>,
pub named_points: Vec<(String, [f32; 3], f32)>,
pub floor: Option<Arc<Vec<[[f32; 3]; 3]>>>,
pub floor_on_activate: bool,
pub terraform: Option<TerraformTemplate>,
pub tornado: Option<TornadoTemplate>,
pub quarry: Option<QuarryTemplate>,
pub trading_post: bool,
pub tracker: bool,
pub fenced_area: bool,
}Expand description
The descriptions of one template that seeding reads.
Fields§
§reference: StringTemplate\X.rsc:resource.
bucket: usizeComponentDescription: scheduled bucket; 6 means unscheduled.
map: Option<MapDescription>The MapDescription: the footprint on the map.
model: Option<ModelDescription>The ModelDescription: the model’s variants.
animations: Vec<Option<Arc<AnimationGroup>>>ModelDescription variant animation groups, cached in the original ExternalFactory.
audio_events: Vec<(String, Option<String>, f32)>The AnimAudioEvents its clips fire: event resource, SoundEffect and probability.
natural: Option<NaturalResourceDescription>The NaturalResourceDescription (trees, rocks, crops).
growth: Option<GrowthDescription>The GrowthDescription.
fruit: Option<FruitTemplate>FruitDescription (orchard trees).
growth_reference: Option<String>The reference of the growth description, to compare two resources’ growth.
spawn: Vec<(usize, f32, f32)>Spawn entries: (index into the template table, lo, hi).
updates: Vec<ScheduledComponent>Scheduled component callbacks, in the ComponentDescription’s construction order.
size: Option<(i32, i32)>CreatePlacedDescription: building footprint size.
storage: Option<(u32, i32, bool)>StorageDescription: accepted flags, capacity, capacity per footprint cell.
storage_location: boolHas a StorageLocationDescription (a town storage the starting goods go to).
storage_location_flags: u32The StorageLocationDescription’s accepted flags.
storage_display: boolHas a StorageDisplayComponent (its stored goods are drawn on its cells).
market_radius: Option<i32>A market’s radius.
market_location: boolWhether it is a market (a town storage with a radius).
has_interact: boolWhether it has an InteractDescription.
use_points: Vec<[f32; 3]>InteractDescription “use” points in model space (its point list’s category 0).
pile: Option<usize>A natural resource’s pile template (NaturalResourceDescription).
pile_material: Option<usize>A pile template’s raw material (its RawMaterialDescription).
pile_yield: (i32, i32)A pile template’s yields: (uneducated, educated).
build_points: Vec<[f32; 3]>InteractDescription “build” points in model space (category 1): where builders stand and materials are delivered.
use_yaws: Vec<f32>The “use” points’ yaws, in degrees.
create_points: Vec<[f32; 3]>The “create” points (category 2) where a workplace leaves its output.
named_points: Vec<(String, [f32; 3], f32)>The InteractDescription’s other named points (name, position, yaw): the trading post’s “boat”.
floor: Option<Arc<Vec<[[f32; 3]; 3]>>>FloorDescription: its picking mesh’s triangles in model space (bridge pieces, docks, porches).
floor_on_activate: boolFloorDescription: the floor is added on activation (bridge pieces); the others are added when their MultiObject is built.
Original: FUN_140124810, FUN_14012aa30.
terraform: Option<TerraformTemplate>TerraformDescription (tunnels).
tornado: Option<TornadoTemplate>TornadoDescription.
quarry: Option<QuarryTemplate>QuarryDescription.
trading_post: boolHas a TradeComponent (the trading post).
tracker: boolHas a TrackerComponent (workplaces whose production the window shows).
fenced_area: boolWhether this is a fenced area’s template (it has a createfenced component). Its model is
never placed, so it stays at the origin with no rotation; Placed::yaw is its rotation on
the map.