- /// <reference path="DialogueNode.ts" />
- class DialogueText extends DialogueNode {
- public type = NodeType.Text;
- private sayCreator : () => Say;
- public setSay (sayCreator : () => Say) {
- this.sayCreator= sayCreator;
- }
- public getSay () {
- return this.sayCreator();
- }
- }
|