I have a TiledMap where I want to store the .tmx-File on a Server. When a Player is connecting he should recieve the .tmx file as a "Class"/"Ressource"(?) and then load the Map with the .tmx file.
My Problem is, in which Object can i store the .tmx file to send it over and then load the Map?
E.g.:
On Server:
InputStream is = TiledMap.class.getResourceAsStream("map.tmx");
Then a player connects, he recieve this Object via my Kryo Engine and load the Map:
TiledMap map = new TmxMapLoader().load(>>THE OBJECT RECIEVED<<);
Hope that someone can help, thanks in advance :)