struct Shatter::Data::Entity::Modifier
- Shatter::Data::Entity::Modifier
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
shatter/data/entity.crConstructors
- .from_io(io : IO) : Modifier
- .new(uuid : UUID, amount : Float64, operation : ModifierOperation)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #amount : Float64
- #clone
- #copy_with(uuid _uuid = @uuid, amount _amount = @amount, operation _operation = @operation)
-
#inspect(io : IO)
Appends this struct's name and instance variables names and values to the given IO.
- #operation : ModifierOperation
- #uuid : UUID
Constructor Detail
Instance Method Detail
def copy_with(uuid _uuid = @uuid, amount _amount = @amount, operation _operation = @operation)
#
Description copied from struct Struct
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"