dzavalishin / phantomuserland

Phantom: Persistent Operating System
GNU Lesser General Public License v3.0
890 stars 59 forks source link

.phantom.application - action items #608

Open dzavalishin opened 4 years ago

dzavalishin commented 4 years ago

getActions must return an array of possible commands to execute on instance, like "compile", "start", "set time"

class .dz.clock extends application {

   getActions() { 
    actions[0] = new Action( "set time", ... );
    return actions;
   }

}