Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1027427 // dm_proposeAction

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2483L/16K).

svoid dm_proposeAction(S description, Runnable r) {
  dm_proposeAction(ProposedAction(description, r));
}

svoid dm_proposeAction(ProposedAction a) {
  if (a == null) ret;
  print("Proposing action: " + a.description);
  dm_requireAndCall("#1027426/ProposedActions", 'addProposition, a.description, a.action, dm_moduleIDAndName());
}

Author comment

Began life as a copy of #1016983

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: #1027427
Snippet name: dm_proposeAction
Eternal ID of this version: #1027427/3
Text MD5: 7c665f41666bfce10301cb31eff7e527
Transpilation MD5: 19caf53709ea2c7798f527551c4c7c47
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-18 20:00:06
Source code size: 341 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 202 / 260
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)