Skip to content

Use static mezhods #5

@BunnyNabbit

Description

@BunnyNabbit

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions