class Shatter::Data::Entity

Included Modules

Defined in:

shatter/data/entity.cr:18
shatter/data/entity.cr:80

Constructors

Instance Method Summary

Constructor Detail

def self.new(eid : UInt32, uuid : UUID, type : String, data : Int32 | Nil, x : Float64 = 0.0, y : Float64 = 0.0, z : Float64 = 0.0, yaw : Float64 = 0.0, pitch : Float64 = 0.0, vx : Float64 = 0.0, vy : Float64 = 0.0, vz : Float64 = 0.0) #

[View source]
def self.new(eid : UInt32, uuid : UUID, type : String, x : Float64 = 0.0, y : Float64 = 0.0, z : Float64 = 0.0, yaw : Float64 = 0.0, pitch : Float64 = 0.0, head : Float64 | Nil = 0.0, vx : Float64 = 0.0, vy : Float64 = 0.0, vz : Float64 = 0.0) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def data : Int32 | Nil #

[View source]
def data=(data : Int32 | Nil) #

[View source]
def eid : UInt32 #

[View source]
def eid=(eid : UInt32) #

[View source]
def head : Float64 | Nil #

[View source]
def head=(head : Float64 | Nil) #

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

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

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

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>

[View source]
def pitch : Float64 #

[View source]
def pitch=(pitch : Float64) #

[View source]
def player_name : String | Nil #

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

[View source]
def properties : Hash(String, Property) #

[View source]
def properties=(properties : Hash(String, Property)) #

[View source]
def to_s(io : IO) #
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 type : String #

[View source]
def type=(type : String) #

[View source]
def uuid : UUID #

[View source]
def uuid=(uuid : UUID) #

[View source]
def vx : Float64 #

[View source]
def vx=(vx : Float64) #

[View source]
def vy : Float64 #

[View source]
def vy=(vy : Float64) #

[View source]
def vz : Float64 #

[View source]
def vz=(vz : Float64) #

[View source]
def x : Float64 #

[View source]
def x=(x : Float64) #

[View source]
def y : Float64 #

[View source]
def y=(y : Float64) #

[View source]
def yaw : Float64 #

[View source]
def yaw=(yaw : Float64) #

[View source]
def z : Float64 #

[View source]
def z=(z : Float64) #

[View source]