Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
Contracts.TextGen Class Reference

Static Public Member Functions

static string GenerateBackStories (string contractType, string agency, string topic, string subject, int seed, bool allowGenericIntroduction, bool allowGenericProblem, bool allowGenericConclusion)
 Puts together a randomized short story that may even make sense in attempting to explain an agency's reasoning for a mission contract. More...
 
static void Setup ()
 

Member Function Documentation

static string Contracts.TextGen.GenerateBackStories ( string  contractType,
string  agency,
string  topic,
string  subject,
int  seed,
bool  allowGenericIntroduction,
bool  allowGenericProblem,
bool  allowGenericConclusion 
)
inlinestatic

Puts together a randomized short story that may even make sense in attempting to explain an agency's reasoning for a mission contract.

Parameters
contractType
agencyThe name of the agency offering the contract
topicA string for a 'topic' that will be directly substituted in facts and other fields that mention it. Singular noun please.
subjectA string containing the subject matter at hand (usually a destination like a Celestial Body, Orbit, Srf, see StoryDefs.cfg for examples)
seedA seed number, for retrieving the exact same string again when needed (mind the string parameters must also be the same)
allowGenericIntroduction
allowGenericProblem
allowGenericConclusion
Returns
A string telling the story, no guarantees on it making much sense.
static void Contracts.TextGen.Setup ( )
inlinestatic

The documentation for this class was generated from the following file: