From eba1714644c9afedb196bf73a5292fa54b39de98 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Wed, 13 Jul 2011 22:42:26 -0600 Subject: [PATCH] This code is like opening up a cereal box and finding more and more useless bits of plastic each time you open the same box. --- TShockAPI/Commands.cs | 2 +- TShockAPI/{Region.cs => RegionStore.cs} | 10 +++++----- TShockAPI/TShockAPI.csproj | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename TShockAPI/{Region.cs => RegionStore.cs} (80%) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 41b11c18..0c8a93f0 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1443,7 +1443,7 @@ namespace TShockAPI int.TryParse(args.Parameters[1], out page); var sb = new StringBuilder(); - List Regions = TShock.Regions.ListAllRegions(); + List Regions = TShock.Regions.ListAllRegions(); if (Regions.Count > (15 * (page - 1))) { diff --git a/TShockAPI/Region.cs b/TShockAPI/RegionStore.cs similarity index 80% rename from TShockAPI/Region.cs rename to TShockAPI/RegionStore.cs index c64dfe5a..4a67442b 100644 --- a/TShockAPI/Region.cs +++ b/TShockAPI/RegionStore.cs @@ -6,7 +6,7 @@ using TShockAPI.DB; namespace TShockAPI { - class Region + class RegionStore { public int X1; public int X2; @@ -14,7 +14,7 @@ namespace TShockAPI public int Y2; public int IsProtected; public string[] UserIDs; - public Region(string tX1, string tX2, string tY1, string tY2, int tIsProtected, string[] tUserIDs) + public RegionStore(string tX1, string tX2, string tY1, string tY2, int tIsProtected, string[] tUserIDs) { X1 = Convert.ToInt32(tX1); X2 = Convert.ToInt32(tX2); @@ -24,7 +24,7 @@ namespace TShockAPI UserIDs = tUserIDs; } - public Region(int tX1, int tX2, int tY1, int tY2, int tIsProtected, string[] tUserIDs) + public RegionStore(int tX1, int tX2, int tY1, int tY2, int tIsProtected, string[] tUserIDs) { X1 = Convert.ToInt32(tX1); X2 = Convert.ToInt32(tX2); @@ -34,7 +34,7 @@ namespace TShockAPI UserIDs = tUserIDs; } - public Region(string tX1, string tX2, string tY1, string tY2) + public RegionStore(string tX1, string tX2, string tY1, string tY2) { X1 = Convert.ToInt32(tX1); X2 = Convert.ToInt32(tX2); @@ -42,7 +42,7 @@ namespace TShockAPI Y2 = Convert.ToInt32(tY2); } - public Region(int tX1, int tX2, int tY1, int tY2) + public RegionStore(int tX1, int tX2, int tY1, int tY2) { X1 = Convert.ToInt32(tX1); X2 = Convert.ToInt32(tX2); diff --git a/TShockAPI/TShockAPI.csproj b/TShockAPI/TShockAPI.csproj index 2524864c..5f2addef 100644 --- a/TShockAPI/TShockAPI.csproj +++ b/TShockAPI/TShockAPI.csproj @@ -100,7 +100,7 @@ - + True