Crate dsmsg

source · []
Expand description

DSMSG: Random generator for Messages that would be found in the Dark Souls series.

Structs

A complete Hint Message that could be found in Dark Souls I. Consists of either one or two strings. One is a Template, and the other, if present, is a Fill phrase.

A complete Hint Message that could be found in Dark Souls II. Consists of either one or two parts. If there are two, there will also be a Conjunction string to join them.

A complete Hint Message that could be found in Dark Souls III. Consists of either one or two parts. If there are two, there will also be a Conjunction string to join them.

Constants

A constant slice of small closures that each return a Box<dyn DsMsg> of a random generation of their respective messages.

Traits

Indicates that a Struct can be used to generate and represent a Message.

A special case of DsMsg which may contain a second segment. The two parts will be joined by a Conjunction string.

Functions

Randomly select from the GENERATORS slice, and run it, producing a random message from a random source.

Type Definitions

A Closure that takes an RNG State and returns a dynamic type that implements DsMsg.