public bool LoadWorld(string worldpath)
{
ScrollingWorld world;
if (worldpath!=null)
{
//world = Serializer.DeSerialize(worldpath);
world = new ScrollingWorld(worldpath, true);
cwname = worldpath;
}
else
{
return false;
}
if (world != null)
{
//this.world = world;
currentWorld = world;
//world.LoadContent(Content);
currentWorld.reloadNonSerializedAssets();
//Bug: When reloading a game, player starts at last known rotation, but kicking
//box is always redrawn from initial rotaion. (So kicking box is offset)
//Solution: Always create a new player, only transferring state. (No one will notice/care)
//****//
//world.player.Rotation = world.player.OriginalRotation;
return true;
}
return false;
}