1 | static L<Dialog> loadDialogs(S themeOrID) { |
2 | L<Snippet> snippets; |
3 | if (isSnippetID(themeOrID)) { |
4 | new Snippet s; |
5 | s.id = themeOrID; |
6 | s.title = getSnippetTitle(s.id); |
7 | snippets = litlist(s); |
8 | } else |
9 | snippets = sortSnippetsByID(findDialogsNamed(themeOrID)); |
10 | //psl(snippets); |
11 | new L<Dialog> dialogs; |
12 | for (Snippet s : snippets) { |
13 | new Dialog d; |
14 | d.snippet = s; |
15 | d.good = !cic(javaTok(s.title), "bad"); |
16 | d.poem = parsePoem(s.id); |
17 | dialogs.add(d); |
18 | } |
19 | //psl(dialogs); |
20 | ret dialogs; |
21 | } |
Began life as a copy of #1003326
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003330 |
Snippet name: | loadDialogs |
Eternal ID of this version: | #1003330/1 |
Text MD5: | 957d0b1cbe5d9081f96980ebc8ab064f |
Author: | stefan |
Category: | javax / talking robots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-11 01:53:15 |
Source code size: | 539 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 736 / 1237 |
Referenced in: | [show references] |