Module: Draco::Periodic
- Defined in:
- lib/draco/periodic.rb
Overview
Public: A library for the Draco ECS system that allows the definition of Systems that run every n ticks.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
9 10 11 12 13 |
# File 'lib/draco/periodic.rb', line 9 def self.included(mod) mod.extend(ClassMethods) mod.prepend(InstanceMethods) mod.instance_variable_set(:@period, 1) end |