Andidy / engine-v2

1 stars 0 forks source link

Make Action system use string hashes #38

Closed Andidy closed 2 years ago

Andidy commented 3 years ago

String hashes allow decreasing the memory usage of systems that want to use strings in the game engine. Rather than having "Move Right" or "Attack Enemy" or "Move Menu Cursor Up", string hashes are just integers: 7189598797, 890457298, 234897. Making them much less costly to pass around and perform checks against. Lowering resource usage of the game.