classafFantomMappy::LayerData

sys::Obj
  afFantomMappy::LayerData

@Js

Represents the data in a Layer. It's essentially a 2D array of Ints.

get

Source

Int get(Int x, Int y)

Gets the data at the given coordinates. Throws ArgErr should the coordinates be out of bounds.

set

Source

Void set(Int x, Int y, Int val)

Sets the data at the given coordinates. Throws ArgErr should the coordinates be out of bounds.