Skip to main content

edda_types/
lib.rs

1//! Shared domain types for Edda.
2//!
3//! This crate is deliberately free of server-side dependencies so it can be
4//! used by every service *and* every frontend (native, CLI, or WASM).
5
6pub mod action;
7pub mod admin;
8/// Character sheets: classes, abilities, skills, hit points and items.
9pub mod character;
10pub mod combat;
11pub mod edition;
12pub mod encounter;
13pub mod monster;
14/// Limited uses (spell slots, class features) and rests.
15pub mod resources;
16pub mod rules_text;
17mod slots;
18/// Spells known, spell slots and Pact Magic, and how many slots classes give.
19pub mod spellcasting;
20
21pub use action::{ActionError, CharacterAction};
22pub use character::{
23    Ability, AbilityScores, Character, CharacterSheet, CharacterSummary, ClassLevel, HitPoints,
24    Item, Skill, ValidationError,
25};
26pub use edition::Edition;
27pub use resources::{Pool, Recharge, Resource, RestKind};
28pub use spellcasting::{PactMagic, Spell, Spellcasting};