Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        TextAsset jsonFile = (TextAsset)Resources.Load("profile");

        this.grammar = Tracery.Grammar.LoadFromJSON(jsonFile);
        GenerateNewProfile();
    }
 public override string Flatten(Grammar grammar)
 {
     return(text);
 }
Beispiel #3
0
 public Unparser(Grammar grammar, int?seed = null, ActionCache cache = null)
 {
     _grammar  = grammar;
     _saveData = cache ?? new ActionCache();
     Seed(seed);
 }