Closed Butanium closed 2 years ago
I'm confused, this does not happen. I must misundertand your example. If you keep setting x to 10 over and over, the game.json will be practivally empty
When I get back to clash of bots I'll tell you if I can reproduce it, maybe I misunderstood the game.json when I read it
When I get back to clash of bots I'll tell you if I can reproduce it, maybe I misunderstood the game.json when I read it
Sure, keep me posted, will be happy to help
Hello, I was wondering why you don't check if an attribute is actually the same before changing it.
For example if
myEntity
is already inx = 10
why doesmyEntity.setX(10)
update the entity state in thegame.json
? A simpleWould save some space in
game.json
or line of code for those who have big games and have to be careful about what they add ingame.json
https://github.com/CodinGame/codingame-game-engine/blob/9a9e9718c7f346c67808e5d221eee1d6c9c8e397/engine/modules/entities/src/main/java/com/codingame/gameengine/module/entities/Entity.java#L93