abstract class Scar::Component

Overview

Base class for Components

Components add data to an Entity.

Example usage:

class MyComponent < Scar::Component
  property name : String

  def initialize(@name)
  end
end

myEntity = Scar::Entity.new("my_entity", MyComponent.new("Bob"))

Direct Known Subclasses

Defined in:

scar/component.cr