Added TSPlayer class to contain variables that are player specific

This commit is contained in:
Maverick Motherfucker 2011-06-02 21:26:07 -07:00
parent 947540cb1f
commit 39bc48968a
3 changed files with 31 additions and 6 deletions

23
TShockAPI/TSPlayer.cs Normal file
View 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];
}
}
}