Uses 911K of libraries. Click here for Pure Java version (12507L/65K).
1 | !7 |
2 | |
3 | concept Scenario {
|
4 | S name; |
5 | LS conditions; |
6 | LS actions; |
7 | |
8 | toString { ret "Scenario " + quote(name); }
|
9 | } |
10 | |
11 | cmodule Scenarios > DynCRUD<Scenario> {
|
12 | NameBasedVoiceCRUD scenariosCRUD = new(Scenario, "scenario"); |
13 | |
14 | !include #1027563 // Undo Manager |
15 | |
16 | S answer(S s) {
|
17 | ret dm_q(() -> {
|
18 | print("answering: " + s);
|
19 | try answer undoActions(s); |
20 | ret scenariosCRUD.answer(s); |
21 | }); |
22 | } |
23 | |
24 | afterVisualize {
|
25 | addComponent(crud.buttons, jbutton("Talk to me", rThread talkToMe));
|
26 | } |
27 | |
28 | void talkToMe enter { dm_showConversationPopupForModule(); }
|
29 | } |
Began life as a copy of #1027443
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027562 |
| Snippet name: | Scenarios DB rewrite with NameBasedVoiceCRUD |
| Eternal ID of this version: | #1027562/4 |
| Text MD5: | 2651587321a8dfdf9afa344f53a9403c |
| Transpilation MD5: | 0c86847846001a56147044276ee1e0af |
| Author: | stefan |
| Category: | javax / scenarios |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-03-23 22:48:02 |
| Source code size: | 603 bytes / 29 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 413 / 602 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |