Changed the TSPlayer class.
This commit is contained in:
parent
17b2ed7eea
commit
c3bf304c0c
5 changed files with 53 additions and 58 deletions
|
|
@ -22,27 +22,22 @@ namespace TShockAPI
|
|||
{
|
||||
public class TSPlayer
|
||||
{
|
||||
public uint tileThreshold;
|
||||
public Dictionary<TShock.Position, Tile> tilesDestroyed = new Dictionary<TShock.Position, Tile>();
|
||||
public bool syncHP;
|
||||
public bool syncMP;
|
||||
public Group group;
|
||||
public bool receivedInfo;
|
||||
private int player;
|
||||
public uint TileThreshold { get; set; }
|
||||
public Dictionary<TShock.Position, Tile> TilesDestroyed { get; set; }
|
||||
public bool SyncHP { get; set; }
|
||||
public bool SyncMP { get; set; }
|
||||
public Group Group { get; set; }
|
||||
public bool ReceivedInfo { get; set; }
|
||||
|
||||
public int Index {get;private set;}
|
||||
public Player Player
|
||||
{
|
||||
get { return Main.player[Index]; }
|
||||
}
|
||||
|
||||
public TSPlayer(int ply)
|
||||
{
|
||||
player = ply;
|
||||
}
|
||||
|
||||
public Player GetPlayer()
|
||||
{
|
||||
return Main.player[player];
|
||||
}
|
||||
|
||||
public int GetPlayerID()
|
||||
{
|
||||
return player;
|
||||
TilesDestroyed = new Dictionary<TShock.Position, Tile>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue