abstract class Scar::Component
- Scar::Component
- Reference
- Object
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"))