class TerminalRender::Handler

Defined in:

render/terminal.cr

Constant Summary

LOCALE_PLACEHOLDER = /%%(\d)/
VARIANT_PLACEHOLDER = /%!(\d)\{((?:(?:\w+ \w+\|)*(?:\w+ \w+))?)\}/

Constructors

Instance Method Summary

Instance methods inherited from class Stelios::IO::Interface

abort abort, diagnostic : String diagnostic, elapsed elapsed, identifier : String identifier, output(badge : Badge) output

Constructor methods inherited from class Stelios::IO::Interface

new(locale : Locale::Entry) 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(locale : Stelios::IO::Locale::Entry) #

[View source]

Instance Method Detail

def abort #
Description copied from class Stelios::IO::Interface

Run when the game runs into an unhandled exception. The renderer should unload everything here.


[View source]
def diagnostic : String #
Description copied from class Stelios::IO::Interface

Additional expanded debug info, if relevant


[View source]
def identifier : String #
Description copied from class Stelios::IO::Interface

Provide a short identifing string about the type of renderer being run.


[View source]
def output(badge : B) #
Description copied from class Stelios::IO::Interface

Provides a Badge for the renderer to output to the user. What do actually do with it is up to the renderer.


[View source]