Plugin for creating zones with fake tiles and signs.
Add FakeManager.dll to ServerPlugins directory.
You can create a new fake zone using method FakeManager.Common.Add():
FakeTileRectangle Add(object Key, int X, int Y,
int Width, int Height, ITileCollection CopyFrom);
Parameters (click here to expand)
- object Key
- Unique identifier.
- [ITileCollection CopyFrom]
- Tiles to copy from if specified.
And remove it:
bool Remove(object Key);
Clear all fake zones:
void Clear();
Place fake zone on top of all others:
void SetTop(object Key);
Object of class FakeTileRectangle is equivalent to ITileCollection (or ITile[,]).
You can access tile at relative coordinates (X, Y) with operator[,]:
ITile this[int X, int Y];
Parameters (click here to expand)
- int X
- Horizontal coordinate relative to left border of rectangle.
- int Y
- Vertical coordinate relative to top border of rectangle.
Update position and size of fake zone:
void SetXYWH(int X, int Y, int Width, int Height);
Add (or replace) fake sign:
void AddSign(Sign Sign, bool Replace = true);
For example: AddSign(new Sign() { x=10, y=5, text='kek' });
Remove:
bool RemoveSign(Sign Sign);
bool RemoveSign(int X, int Y);
This plugin uses modified version of Tiled.