pub struct Campaign {
pub world: Envelope<WorldContent>,
pub npcs: Envelope<NpcsContent>,
pub classes: Envelope<ClassesContent>,
pub quest_plan: Envelope<QuestPlanContent>,
pub quests: Envelope<QuestsContent>,
pub dialogue: Envelope<DialogueContent>,
pub world_edits: Option<Envelope<WorldEditsContent>>,
}Expand description
The parsed stage documents that make up one campaign: the six required stages plus the optional stage-7 edit script (spec-0017).
Fields§
§world: Envelope<WorldContent>Stage 1.
npcs: Envelope<NpcsContent>Stage 2.
classes: Envelope<ClassesContent>Stage 3.
quest_plan: Envelope<QuestPlanContent>Stage 4.
quests: Envelope<QuestsContent>Stage 5.
dialogue: Envelope<DialogueContent>Stage 6.
world_edits: Option<Envelope<WorldEditsContent>>Stage 7 (optional; DSL v0.6, spec-0017): the map-editor edit script.
None = no world-edits.json in the campaign directory — byte-identical
to a campaign from before the stage existed.
Trait Implementations§
impl StructuralPartialEq for Campaign
Auto Trait Implementations§
impl Freeze for Campaign
impl RefUnwindSafe for Campaign
impl Send for Campaign
impl Sync for Campaign
impl Unpin for Campaign
impl UnsafeUnpin for Campaign
impl UnwindSafe for Campaign
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