Skip to content

Commit

Permalink
Formatting and unused using directives
Browse files Browse the repository at this point in the history
  • Loading branch information
Majiir committed Sep 3, 2014
1 parent 048b216 commit 1a81a68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
13 changes: 6 additions & 7 deletions Plugin/KethaneData.cs
Expand Up @@ -28,7 +28,7 @@ public static KethaneData Current
}
}

private Dictionary<string, ResourceData> resources = new Dictionary<string,ResourceData>();
private Dictionary<string, ResourceData> resources = new Dictionary<string, ResourceData>();

public ResourceData this[string resourceName]
{
Expand All @@ -38,10 +38,14 @@ public static KethaneData Current
public ICellResource GetCellDeposit(string resourceName, CelestialBody body, Cell cell)
{
if (resourceName == null || body == null || !resources.ContainsKey(resourceName)) { return null; }

return resources[resourceName][body].GetCellDeposit(cell);
}

public void ResetGeneratorConfig(ResourceDefinition resource)
{
resources[resource.Resource] = Kethane.ResourceData.Load(resource, new ConfigNode());
}

public override void OnLoad(ConfigNode config)
{
var timer = System.Diagnostics.Stopwatch.StartNew();
Expand All @@ -61,11 +65,6 @@ public override void OnLoad(ConfigNode config)
Debug.LogWarning(String.Format("Kethane deposits loaded ({0}ms)", timer.ElapsedMilliseconds));
}

public void ResetGeneratorConfig(ResourceDefinition resource)
{
resources[resource.Resource] = Kethane.ResourceData.Load(resource, new ConfigNode());
}

public override void OnSave(ConfigNode configNode)
{
var timer = System.Diagnostics.Stopwatch.StartNew();
Expand Down
1 change: 0 additions & 1 deletion Plugin/ResourceData.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace Kethane
Expand Down
6 changes: 1 addition & 5 deletions Plugin/ResourceDefinition.cs
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine;

namespace Kethane
{
Expand Down

0 comments on commit 1a81a68

Please sign in to comment.