Added TSPlayer class to contain variables that are player specific
This commit is contained in:
parent
947540cb1f
commit
39bc48968a
3 changed files with 31 additions and 6 deletions
23
TShockAPI/TSPlayer.cs
Normal file
23
TShockAPI/TSPlayer.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace TShockAPI
|
||||
{
|
||||
class TSPlayer
|
||||
{
|
||||
public uint tileThreshold;
|
||||
private int player;
|
||||
|
||||
public TSPlayer(int ply)
|
||||
{
|
||||
player = ply;
|
||||
}
|
||||
|
||||
public Terraria.Player GetPlayer()
|
||||
{
|
||||
return Terraria.Main.player[player];
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue