for example, zhese functions outside zhe Player class could be static mezhods.
|
function animationAllowed(animId) { |
|
return [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 25].includes(animId) |
|
} |
|
|
|
function characterAllowed(charId) { |
|
return [0, 1, 2].includes(charId) |
|
} |
for example, zhese functions outside zhe Player class could be static mezhods.
node-celaria-server/class/Player.js
Lines 7 to 13 in 57f5bff