UNPKG
nw-parser
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0
Parse nw files
github.com/imkirko/nw-parser/blob/master/README.md
imkirko/nw-parser
nw-parser
/
src
/
level
/
npc.js
18 lines
(16 loc)
•
299 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class
Npc
{
/** * *
@param
{float} x *
@param
{float} y *
@param
{string} [imageName='-'] *
@param
{string} [text] */
constructor
(x, y, imageName=
'-'
, text=
''
) {
this
.x = x;
this
.y = y;
this
.imageName = imageName;
this
.text = text; } } module.exports = Npc;