|
|
|
|
|
|
|
|
return d; |
|
|
return d; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get chr(){ |
|
|
|
|
|
return new Uint8Array(this.__data); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
get base64(){ |
|
|
get base64(){ |
|
|
var b = "" |
|
|
var b = "" |
|
|
for (var i = 0; i < this.__data.length; i++) { |
|
|
for (var i = 0; i < this.__data.length; i++) { |
|
|
|
|
|
|
|
|
return t; |
|
|
return t; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
copy(t){ |
|
|
|
|
|
if (!(t instanceof NESTile)) |
|
|
|
|
|
throw new TypeError("Expected NESTile object."); |
|
|
|
|
|
this.__data.set(t.__data); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
isEq(tile){ |
|
|
isEq(tile){ |
|
|
if (!(tile instanceof NESTile)){ |
|
|
if (!(tile instanceof NESTile)){ |
|
|
throw new TypeError("Expected NESTile instance."); |
|
|
throw new TypeError("Expected NESTile instance."); |