14 lines
481 B
Haxe
14 lines
481 B
Haxe
package hank;
|
|
|
|
import haxe.ds.Option;
|
|
|
|
typedef Choice = {id:Int, onceOnly:Bool, label:Option<String>, condition:Option<String>, depth:Int, output:Output, divertTarget:Option<String>, tags:Array<String>};
|
|
typedef ChoicePointInfo = {choices:Array<Choice>, fallbackIndex:Int};
|
|
typedef FallbackChoiceInfo = {choiceInfo:Choice, index:Int};
|
|
|
|
class ChoiceExtension {
|
|
public static function toString(choice:Choice):String {
|
|
return '*' + Std.string(choice.output.parts[0]) + '...';
|
|
}
|
|
}
|