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.

This commit is contained in:
Lucas Nicodemus 2011-07-13 22:42:26 -06:00
parent bddca1bc73
commit eba1714644
3 changed files with 7 additions and 7 deletions

View file

@ -1443,7 +1443,7 @@ namespace TShockAPI
int.TryParse(args.Parameters[1], out page);
var sb = new StringBuilder();
List<Region> Regions = TShock.Regions.ListAllRegions();
List<RegionStore> Regions = TShock.Regions.ListAllRegions();
if (Regions.Count > (15 * (page - 1)))
{

View file

@ -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);

View file

@ -100,7 +100,7 @@
<Compile Include="Net\WorldInfoMsg.cs" />
<Compile Include="DB\RegionManager.cs" />
<Compile Include="RconHandler.cs" />
<Compile Include="Region.cs" />
<Compile Include="RegionStore.cs" />
<Compile Include="RememberPosManager.cs" />
<Compile Include="Resources.Designer.cs">
<AutoGen>True</AutoGen>