class SK::Component

Attributes

game_object[RW]
layer[RW]
order_in_layer[RW]

Public Class Methods

new() click to toggle source
# File lib/shirokuro/ecs/component.rb, line 6
def initialize
        @game_object = nil
        @layer = 0
        @order_in_layer = 0
end

Public Instance Methods

draw(context) click to toggle source
# File lib/shirokuro/ecs/component.rb, line 34
def draw context
end
get_component(type) click to toggle source
# File lib/shirokuro/ecs/component.rb, line 12
def get_component type
        @game_object.get_component type
end
physics() click to toggle source
# File lib/shirokuro/ecs/component.rb, line 24
def physics
        @game_object.physics
end
remove(component) click to toggle source
# File lib/shirokuro/ecs/component.rb, line 16
def remove component
        @game_object.remove_component component
end
start() click to toggle source
# File lib/shirokuro/ecs/component.rb, line 28
def start
end
transform() click to toggle source
# File lib/shirokuro/ecs/component.rb, line 20
def transform
        @game_object.transform
end
update(dt) click to toggle source
# File lib/shirokuro/ecs/component.rb, line 31
def update dt
end