Answer the question
In order to leave comments, you need to log in
Which design pattern to choose?
There is a small map,
you can build buildings on it by clicking on free cells with the mouse.
When the map is initialized, a list of already built knowledge comes from the server:
"buildings": {
"1": {
"position": [2, 1],
"type": "barrack"
},
"2": {
"position": [2, 2],
"type": "hospital"
},
"3": {
"position": [0, 0],
"type": "school",
"size": 4
},
}
size
equal to 4
- this means that the building occupies 4 cells. id
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question