OpenKeeper
OpenKeeper copied to clipboard
Feature 155
Need some help. Method isSellable(SelectionArea ... in class PlayerInteractionState (method getColorIndicator()) not working. Problem with access in other thread. Property roomCoordinates is empty in class MapController, but should not
Rooms are not yet transferred to the client. The reason being also that I was unsure what is the smartest way to do this. Currently it is just that raw map data as read only data on the client.
Clients can parse these from the map data they have yes. But in addition to that, the clients need some information about the room usages and whatnots in the tooltip. Clients do also kinda have this information, but it needs a lot of processing. Like they know that when an entity is stored/using some room. Also they can calculate room capacities and all that....
One idea was that rooms are also entities. And the map has references to entityIDs. Server can preprocess the usage data to components. This would be really easy solution and allow the rooms to work fully via ES network structure.
That also brings the idea of map tiles being entities as well. Updating and all that would also then be like with the others.
o prevent possible cheats, we should not transmit all data about other players, if the current player does not see other players. In this regard, each client machine should not contain relevant information about rooms and tiles. Only Server should have all information