Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dialogs api #5

Open
caisilus opened this issue Oct 14, 2021 · 0 comments
Open

dialogs api #5

caisilus opened this issue Oct 14, 2021 · 0 comments

Comments

@caisilus
Copy link
Contributor

caisilus commented Oct 14, 2021

high-level api for dialog system

prot:

dialog = Dialog.new('my_dialog.txt', '2.txt')
dialog + dialog2
dialog.nodes => {}
dialog.validate => [errors]
dialog.characters
dialog.nodes['Приветствие'].characters => [Character]
dialog.nodes['Приветствие'].next => [Nodes]
dialog.nodes['Приветствие'].next 'Нет, я не хочу носить кольцо' => Node
dialog.start => starting Node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant