Module: Scheduler
- Defined in:
- docs/00700_Ajout_PSDK.rb,
docs/99999_Scripts_a_haute_dependences.rb
Overview
The Sheduler also has a @storage Hash that is used by the tasks to store informations
Defined Under Namespace
Modules: EventTasks Classes: MessageTask, ProcTask
Class Method Summary collapse
-
.__add_task(reason, klass, task)
add a task (and sort them by priority).
-
.__remove_task(reason, klass, name, priority)
Remove a task.
-
.add_message(reason, klass, name, priority, object, *message)
Add a message task to the Scheduler.
-
.add_proc(reason, klass, name, priority, proc_object = nil, &block)
Add a proc task to the Scheduler.
-
.get_boot_scene ⇒ Object
Return the object of the Boot Scene (usually Scene_Title).
-
.init
Initialize the Scheduler with no task and nothing in the storage.
-
.start(reason, klass = $scene.class)
Start tasks that are related to a specific reason.
Class Method Details
.__add_task(reason, klass, task)
add a task (and sort them by priority)
246 247 |
# File 'docs/00700_Ajout_PSDK.rb', line 246 def __add_task(reason, klass, task) end |
.__remove_task(reason, klass, name, priority)
Remove a task
240 241 |
# File 'docs/00700_Ajout_PSDK.rb', line 240 def __remove_task(reason, klass, name, priority) end |
.add_message(reason, klass, name, priority, object, *message)
Add a message task to the Scheduler
301 302 |
# File 'docs/00700_Ajout_PSDK.rb', line 301 def (reason, klass, name, priority, object, *) end |
.add_proc(reason, klass, name, priority, proc_object = nil, &block)
Add a proc task to the Scheduler
273 274 |
# File 'docs/00700_Ajout_PSDK.rb', line 273 def add_proc(reason, klass, name, priority, proc_object = nil, &block) end |
.get_boot_scene ⇒ Object
Return the object of the Boot Scene (usually Scene_Title)
305 306 |
# File 'docs/00700_Ajout_PSDK.rb', line 305 def get_boot_scene end |
.init
Initialize the Scheduler with no task and nothing in the storage
227 228 |
# File 'docs/00700_Ajout_PSDK.rb', line 227 def init end |
.start(reason, klass = $scene.class)
Start tasks that are related to a specific reason
233 234 |
# File 'docs/00700_Ajout_PSDK.rb', line 233 def start(reason, klass = $scene.class) end |