Switch to Barotrauma & too many misc changes to remember

This commit is contained in:
Regalis
2015-10-16 18:11:58 +03:00
parent 2bb5d41836
commit 838022fcd5
203 changed files with 540 additions and 419 deletions

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Subsurface
namespace Barotrauma
{
static class MathUtils
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Subsurface
namespace Barotrauma
{
static class Rand
{

View File

@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace Subsurface
namespace Barotrauma
{
public class SaveUtil
{
@@ -32,11 +32,11 @@ namespace Subsurface
{
if (Submarine.Loaded!=null)
{
Submarine.Loaded.SaveAs(Path.Combine(tempPath, "map.gz"));
Submarine.Loaded.SaveAs(Path.Combine(tempPath, "map.sub"));
}
else
{
File.Copy(GameMain.GameSession.Submarine.FilePath, Path.Combine(tempPath, "map.gz"));
File.Copy(GameMain.GameSession.Submarine.FilePath, Path.Combine(tempPath, "map.sub"));
}
}
catch (Exception e)
@@ -72,7 +72,7 @@ namespace Subsurface
DecompressToDirectory(filePath, tempPath, null);
Submarine selectedMap = new Submarine(Path.Combine(tempPath, "map.gz"), "");// Submarine.Load();
Submarine selectedMap = new Submarine(Path.Combine(tempPath, "map.sub"), "");// Submarine.Load();
GameMain.GameSession = new GameSession(selectedMap, fileName, Path.Combine(tempPath, "gamesession.xml"));
//Directory.Delete(tempPath, true);

View File

@@ -6,7 +6,7 @@ using Color = Microsoft.Xna.Framework.Color;
using System;
using Microsoft.Xna.Framework;
namespace Subsurface
namespace Barotrauma
{
/// <summary>
/// Based on http://jakepoz.com/jake_poznanski__background_load_xna.html

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Xml;
using System.Xml.Linq;
namespace Subsurface
namespace Barotrauma
{
public static class ToolBox
{

View File

@@ -6,7 +6,7 @@ using System.Security.Cryptography;
using System.Text;
using System.Xml.Linq;
namespace Subsurface
namespace Barotrauma
{
public static class UpdaterUtil
{