Example #1
0
 public Execute(Statement statement, TNode nextNode = null, Area parent = null, string id = null)
     : base(nextNode, parent, id ?? IdentifyShop.GetNewID("E"))
 {
     Statements = new List <Statement> {
         statement
     };
 }
Example #2
0
 public Status(string id, Area parent, Choice choice)
     : base(null, parent, id ?? IdentifyShop.GetNewID("ST"))
 {
     if (choice != null)
     {
         Choices.Add(choice);
     }
 }
Example #3
0
 public Status(string id = null, Area parent = null, List <Choice> choices = null)
     : base(null, parent, id ?? IdentifyShop.GetNewID("ST"))
 {
     if (choices != null)
     {
         Choices = choices;
     }
 }
Example #4
0
 public Execute(List <Statement> statements    = null,
                List <Statement> ranStatements = null,
                TNode nextNode = null, Area parent = null, string id = null)
     : base(nextNode, parent, id ?? IdentifyShop.GetNewID("E"))
 {
     Statements       = statements ?? new List <Statement>();
     RandomStatements = ranStatements;
     if (RandomStatements != null)
     {
         RunRandomStatement = true;
     }
 }
Example #5
0
 public AreaStart(Area area = null, Area parent = null, TNode nextNode = null, string id = null)
     : base(nextNode, parent, id ?? IdentifyShop.GetNewID("A"))
 {
     Area = area;
 }
Example #6
0
 protected Part(TNode nextNode = null, Area parent = null, string id = null)
     : base(nextNode, parent, id ?? IdentifyShop.GetNewID("P"))
 {
 }
Example #7
0
 protected TNode(TNode nextNode = null, Area parent = null, string id = null)
 {
     ID       = id ?? IdentifyShop.GetNewID();
     Parent   = parent;
     NextNode = nextNode;
 }
Example #8
0
 public Area(string name = null, TNode startNode = null, Area parent = null)
 {
     Name      = name ?? IdentifyShop.GetNewID("AR");
     StartNode = startNode;
     Parent    = parent;
 }