class Stelios::StatUnion

Included Modules

Extended Modules

Defined in:

engine/stat.cr

Constructors

Instance Method Summary

Instance methods inherited from module SBAN::Serializable

to_sban(sban : SBAN::Encoder) to_sban

Constructor methods inherited from module SBAN::Serializable

new(*, __decoder_for_sban_serializable decoder : SBAN::Decoder) new

Instance methods inherited from class Object

to_sban(io : IO)
to_sban(encoder : SBAN::Encoder)
to_sban : Bytes
to_sban

Class methods inherited from class Object

from_sban(string_or_io) from_sban

Constructor Detail

def self.new(base : Stelios::StatHash, volatile : Stelios::StatHash) #

[View source]
def self.new(decoder : SBAN::Decoder) #

[View source]

Instance Method Detail

def [](key : Stat) #

[View source]
def []=(key : Stat, val : UInt16) #

[View source]
def []=(key : Symbol | String, val : UInt16) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]