Module: Scheduler
- Defined in:
- docs/0_Dependencies.rb,
docs/9_Loaded_Last.rb,
docs/4_Systems_003_Map_Engine.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)
173 174 |
# File 'docs/0_Dependencies.rb', line 173 def __add_task(reason, klass, task) end |
.__remove_task(reason, klass, name, priority)
Remove a task
167 168 |
# File 'docs/0_Dependencies.rb', line 167 def __remove_task(reason, klass, name, priority) end |
.add_message(reason, klass, name, priority, object, *message)
Add a message task to the Scheduler
228 229 |
# File 'docs/0_Dependencies.rb', line 228 def (reason, klass, name, priority, object, *) end |
.add_proc(reason, klass, name, priority, proc_object = nil, &block)
Add a proc task to the Scheduler
200 201 |
# File 'docs/0_Dependencies.rb', line 200 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)
232 233 |
# File 'docs/0_Dependencies.rb', line 232 def get_boot_scene end |
.init
Initialize the Scheduler with no task and nothing in the storage
154 155 |
# File 'docs/0_Dependencies.rb', line 154 def init end |
.start(reason, klass = $scene.class)
Start tasks that are related to a specific reason
160 161 |
# File 'docs/0_Dependencies.rb', line 160 def start(reason, klass = $scene.class) end |