Skip to content

Commit

Permalink
Continue writing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-keibler committed Apr 8, 2024
1 parent 20d1f6a commit fc9822e
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions cypher_character_model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
//! ```
//! # use cypher_character_model::{Character, Sentence};
//! let character = Character {
//! name: "Ferris".to_string(),
//! pronouns: "any".to_string(),
//! sentence: Sentence {
//! descriptor: "TODO".to_string(),
//! character_type: "TODO".to_string(),
//! flavor: Some("TODO".to_string()),
//! focus: "TODO".to_string(),
//! }
//! name: "Ferris".to_string(),
//! pronouns: "any".to_string(),
//! sentence: Sentence {
//! descriptor: "Fast".to_string(),
//! character_type: "Explorer".to_string(),
//! flavor: Some("Technology".to_string()),
//! focus: "Helps Their Friends".to_string(),
//! }
//! };
//! assert_eq!(&character.to_string(), "Ferris (any) is a TODO TODO (TODO) who TODO");
//! assert_eq!(
//! &character.to_string(),
//! "Ferris (any) is a Fast Explorer (Technology) who Helps Their Friends"
//! );
//! ```
//!
//! ## [`CharacterStats`]
Expand Down Expand Up @@ -65,11 +68,33 @@ impl Display for Character {
}

/// Sentence is the high-level description of the character
///
/// The Sentence determines lower-level capabilitis such as skills and
/// abilities.
///
/// ([Cypher System Sentence
/// Information](https://cypher-system.com/cypher-system-characters/))
#[derive(Debug, Deserialize, Serialize)]
pub struct Sentence {
/// The "adjective" of the sentence
pub descriptor: String,

/// The "noun" of the sentence
///
/// This determines the core of your character. The base ruleset has four
/// character types (Warrior, Adept, Explorer, and Speaker).
pub character_type: String,

/// An optional modifier for the [`character_type`]
///
/// This allows for flavoring the character type to your campaign's setting
/// and your goals. Without delving any deeper, a "Stealthy" flavor Explorer
/// and a "Technology" flavor Explorer bring to mind different archtypes.
pub flavor: Option<String>,

/// The "verb" of the sentence
///
/// This rounds out the character and makes them unique within the party.
pub focus: String,
}

Expand Down

0 comments on commit fc9822e

Please sign in to comment.