crystal.Component
Base class to inherit from to define components.
Methods
Examples
local Health = Class("Health", crystal.Component);
Health.init = function(self, value)
self.value = value;
end
local Dragon = Class("Dragon", crystal.Entity);
Dragon.init = function(self)
self:add_component("Health", 400);
end