Zack Piispanen
b5504d2319
Z index based regions
2012-04-15 15:39:09 -04:00
stevenh
41dbd31aac
Converted all files to LF line endings
2012-02-21 15:56:34 +00:00
k0rd
217d001baf
option to overload Region.InArea() with x,y for more accurate Region detection.
2012-02-04 18:00:33 -05:00
darkunderdog
6079d84c9e
Updated Regions.InAreaRegion.Name to allow overlapping regions - For plugins that use this it will require updating the code
2012-01-04 20:11:22 -06:00
Lucas Nicodemus
bf9d0137f1
Added any missing license headers to all files
2012-01-01 03:06:48 -07:00
Lucas Nicodemus
2bfdaaaabc
Remove flat file conversion code
2012-01-01 02:48:15 -07:00
Lucas Nicodemus
c6abbfe4d2
ReSharper code reformat to match naming conventions and stuff
2011-12-30 14:38:04 -07:00
Lucas Nicodemus
1147788154
ReSharper redundant code cleanup
2011-12-30 14:32:05 -07:00
Zack Piispanen
4c468b7f3c
Item bans now have a group component. Adding a group to an item ban will allow that group to use the item.
...
Also fixed chests/items in chests being null when we truncate stack sizes.
Added code to let anyone with manageregion permission to modify regions...make sense.
2011-12-27 19:14:42 -05:00
Zack
d92537fd87
Moved the else from Midas' commit that reset the groups allowed in the event of an error, we can just ignore it instead of resetting. Move initialization of the list to the constructor.
2011-12-27 09:40:45 -05:00
Justin
f9b1af1b19
fixed null pointer exceptions during save and initializing regions
2011-12-26 12:53:16 -07:00
Zack Piispanen
d0a9b47f2f
You can now add entire groups to a region. You can define as many groups as you want to a region, just like users. The new commands are /region allowg group region and /region removeg group region.
...
Any player in the group has build rights in the region.
2011-12-24 15:21:16 -05:00
Lucas Nicodemus
bb711f8e1d
Merge pull request #296 from erikive/patch-3
...
Added a method for resizing a region.
2011-11-01 18:05:00 -07:00
high
b2f47f57ac
Updated to new binary (with the api merged).
...
Removed System.Drawing dependency
2011-09-24 18:30:19 -04:00
erikive
c190943f88
Edited TShockAPI/DB/RegionManager.cs via GitHub
2011-09-23 19:13:45 -05:00
Zack Piispanen
7a57a8073c
Added method for region SINCE THE FUCKING UNIT TESTS RELIED ON IT AND NO ONE FUCKING FIXED IT
...
Region unit tests work again.
2011-09-03 02:13:19 -04:00
Lucas Nicodemus
301a6dfadd
Attempting to fix UnitTests/RegionManagerTest.orderedtest
2011-09-02 23:59:04 -06:00
Lucas Nicodemus
442a5b4202
Stuff
2011-09-02 23:21:01 -06:00
high
a9a153ddb6
Fixed AddRegion returning false when the region does not exist.
2011-08-20 18:16:33 -04:00
high
625bab753b
Fixed getRegion not returning null (functions using it were expecting null too)
...
Disabled noclip check. (general-devel is not general-test)
Added null check to /region info (Don't commit shit that you know is broken)
2011-08-20 13:04:24 -04:00
Lucas Nicodemus
e3dc989387
Fixed #86
...
RegionManager now returns false on GetRegionByName if the region already exists in the database.
Fixed coding convention fuckup
ReSharper code cleanup
2011-08-19 21:35:56 -06:00
high
b06ec57819
Permission magic strings removed
2011-08-18 21:10:39 -04:00
high
4dae27001c
Regions can now be defined in any direction.
...
Fixed column names are now in the insert. This should fix any weirdness with column order.
2011-08-17 18:21:32 -04:00
Zack Piispanen
ec63e61e1f
regions should work, and load from db at start.
...
regions also have remove syntax, /region remove user region which removes them from the list, if they exist.
2011-08-15 18:18:35 -04:00
Zack Piispanen
e0d509982f
Regions will be less borked now, we hope.
...
Unit test is now included for group( simple one )
2011-08-15 17:27:17 -04:00
darkunderdog
8d2d41d0c9
Adding getting region name for region messages
2011-08-12 00:03:43 -05:00
high
8d2a90cee3
Misc changes
2011-08-08 00:13:08 -04:00
high
56eca71853
Fixed SCA warnings
2011-08-06 16:49:40 -04:00
high
1a801b268c
All managers now use querybuilder for creating tables to make for easy changes.
2011-08-03 19:55:23 -04:00
Lycaonj
b103725422
Added sanity checks when loading UserIds from the Regions table. Fixes small gotcha when using the .NET Split() function.
2011-08-01 19:11:29 -05:00
Lucas Nicodemus
37146adb4c
Resharper code cleanup, including:
...
- Optimized using statements
- Removal of redundant code
2011-07-26 23:37:06 -06:00
high
e8a5e7fb58
Now uses Query/QueryReader
2011-07-24 12:33:00 -04:00
high
d39d9e5127
Reapplied my region changes that were lost from a bad conflict merge
2011-07-24 11:27:00 -04:00
high
57a2d082ef
Added query function for easier queries.
...
Normalized method names in GroupManager.cs
2011-07-24 10:12:18 -04:00
Zack Piispanen
d515616f72
A few more tests
2011-07-23 22:27:21 -04:00
Lucas Nicodemus
5c59ebf71a
Merge remote-tracking branch 'remotes/origin/general-devel'
...
Conflicts:
TShockAPI/Commands.cs
TShockAPI/DB/GroupManager.cs
TShockAPI/DB/RegionManager.cs
TShockAPI/Properties/AssemblyInfo.cs
Terraria.sln
2011-07-23 17:25:20 -06:00
Zack Piispanen
732121bdf5
region basic tests added
2011-07-23 18:07:15 -04:00
Zack
1468bbaa85
width + x1 = x2...
2011-07-22 23:18:59 -07:00
Lucas Nicodemus
219f5a8cfb
WorldIDs
2011-07-22 23:35:21 -06:00
Zack Piispanen
727ae2322b
Added new commands to allow users in game to create, delete, modify groups.
...
Added new methods to create, delete, modify groups.
Uhhh....dunno why RegionManager.cs was conflicted.
Added permission for accessing group commands
2011-07-22 23:14:56 -04:00
high
64ca3e7148
Region list now uses the new code that warps use too.
2011-07-22 22:00:18 -04:00
Lucas Nicodemus
e1cd87f487
Fixed regions
...
Added /convert
2011-07-22 17:38:51 -06:00
Lucas Nicodemus
92d6e7b9fb
No longer spam users to login.
2011-07-22 16:18:28 -06:00
Lucas Nicodemus
3291195af8
Fixed regions not working.
2011-07-22 16:15:34 -06:00
Lucas Nicodemus
b5a27052a1
Updates to RM
2011-07-22 14:10:38 -06:00
Lucas Nicodemus
b98614946d
Changed every instance of Main.worldID.ToString() to Main.worldName. You broke backwards compatibility with all other warp and region files by doing that.
2011-07-21 15:03:15 -06:00
Lucas Nicodemus
0aea895a59
Import system now imports UserIDs
2011-07-21 12:31:11 -06:00
Lucas Nicodemus
cd018fed8d
Regions are now UserID based.
2011-07-21 12:25:57 -06:00
Zack Piispanen
e5826fbc0a
Converts Warps to db files, and fixes a bug in region code.
...
Currently, the program fails to copy the old xml files to the new directory, so you may want to manually do that.
2011-07-19 19:30:07 -04:00
Zack Piispanen
12674c3ce2
regions now convert from xml to db
2011-07-19 18:40:46 -04:00