class Rosegold::Chat

Included Modules

Defined in:

rosegold/models/chat.cr

Constant Summary

TRANSLATIONS = Hash(String, String).from_json(Rosegold.read_game_asset("language.json"))

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(text : String) #

[View source]

Instance Method Detail

def bold : Bool | Nil #

[View source]
def bold=(bold : Bool | Nil) #

[View source]
def click_event : JSON::Any | Nil #

[View source]
def click_event=(click_event : JSON::Any | Nil) #

[View source]
def color : String | Nil #

[View source]
def color=(color : String | Nil) #

[View source]
def extra : Array(Rosegold::Chat) | Nil #

[View source]
def extra=(extra : Array(Rosegold::Chat) | Nil) #

[View source]
def extra_text #

[View source]
def hover_event : JSON::Any | Nil #

[View source]
def hover_event=(hover_event : JSON::Any | Nil) #

[View source]
def insertion : String | Nil #

[View source]
def insertion=(insertion : String | Nil) #

[View source]
def italic : Bool | Nil #

[View source]
def italic=(italic : Bool | Nil) #

[View source]
def obfuscated : Bool | Nil #

[View source]
def obfuscated=(obfuscated : Bool | Nil) #

[View source]
def strikethrough : Bool | Nil #

[View source]
def strikethrough=(strikethrough : Bool | Nil) #

[View source]
def text : String | Nil #

[View source]
def text=(text : String | Nil) #

[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def translate : String | Nil #

[View source]
def translate=(translate : String | Nil) #

[View source]
def underlined : Bool | Nil #

[View source]
def underlined=(underlined : Bool | Nil) #

[View source]
def with : Array(Chat | String) | Nil #

[View source]
def with=(with __arg0 : Array(Chat | String) | Nil) #

[View source]