DialogueText.ts 306 B

12345678910111213
  1. /// <reference path="DialogueNode.ts" />
  2. class DialogueText extends DialogueNode {
  3. public type = NodeType.Text;
  4. private sayCreator : () => Say;
  5. public setSay (sayCreator : () => Say) {
  6. this.sayCreator= sayCreator;
  7. }
  8. public getSay () {
  9. return this.sayCreator();
  10. }
  11. }