Patrikkk / FakeManager

Plugin for creating zones with fake tiles and signs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FakeManager

About

Plugin for creating zones with fake tiles and signs.

Installing

Add FakeManager.dll to ServerPlugins directory.

FakeManager

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

FakeTileRectangle

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

Currently supported entities

Signs

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.

About

Plugin for creating zones with fake tiles and signs.

License:GNU General Public License v3.0


Languages

Language:C# 100.0%