nkrisztian89 / interstellar-armada

A Javascript-WebGL 3D space combat game under development.

Home Page:http://nkrisztian89.github.io/interstellar-armada

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use numbers in enums instead of string

nkrisztian89 opened this issue · comments

numbers are way faster
settings.json, data files, mission files should be parsed with a new function (or the function utils.getSafeEnumValue be modified) that checks for the property keys (use the opposite of utils.constantName)
thruster uses should be handled as an array, with the enum values specifying indices