Add number versions of structureType


  • Culture

    String comparisons are pretty expensive in JS and when you have 500+ structures to a room checking what each one is becomes very expensive.

    If there was something like structureTypeNum that acts the same way as structureType these comparisons could be sped up a lot for results from Room.find(FIND_STRUCTURES) and the like.

    Off the top of my head I can't think of other places to add this that are so noticeable.