Sha256: f0bf237829fbff887b0b4cd03b7615e4a884498461de27ec6b6f3342f09f42ce
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
module Darkholme class IteratingSystem < System def update(delta) before_processing entities.each do |entity| process(entity, delta) end after_processing end def process(entity, delta) raise NotImplementedError.new("You must override #process(entity, delta)") end def before_processing end def after_processing end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
darkholme-0.9.1 | lib/darkholme/iterating_system.rb |