actually we store every movement the position data into the CharacterObject to read the values on userRemove to store in the database. to reduce serverload only get position data from the player of the room data and then store it to db. Maybe a timer or event every x seconds a security position save in db if the server crash or something else.
actually we store every movement the position data into the CharacterObject to read the values on userRemove to store in the database. to reduce serverload only get position data from the player of the room data and then store it to db. Maybe a timer or event every x seconds a security position save in db if the server crash or something else.