pub fn write_character_posts(
inputs: &WorldInputs<'_>,
posts: &PostPlan,
faction: &str,
runtime_id: impl Fn(&str) -> Option<u32>,
) -> Result<RecordNode>Expand description
Writes the posts of a faction’s government (CHARACTER_POSTS): one group per post group, with its post count and
that many posts, each with its holder’s runtime id (0 for vacant posts).
§Arguments
inputs- Tables, startpos rows and layouts.posts- Government posts of the factions.faction- Faction key.runtime_id- Runtime id of a character, bystart_pos_charactersid.
§Errors
Returns an error if the layout lacks a record, or a group has more posts than the layout knows.