Add namespace declarations to PlayerData.cs and TSServerPlayer.cs
This commit is contained in:
parent
069fd0cf9c
commit
b0e13454d5
2 changed files with 501 additions and 495 deletions
|
|
@ -1,8 +1,10 @@
|
||||||
using Terraria;
|
using Terraria;
|
||||||
using TShockAPI;
|
using TShockAPI;
|
||||||
|
|
||||||
public class PlayerData
|
namespace TShockAPI
|
||||||
{
|
{
|
||||||
|
public class PlayerData
|
||||||
|
{
|
||||||
public NetItem[] inventory = new NetItem[NetItem.MaxInventory];
|
public NetItem[] inventory = new NetItem[NetItem.MaxInventory];
|
||||||
public int health = TShock.ServerSideCharacterConfig.StartingHealth;
|
public int health = TShock.ServerSideCharacterConfig.StartingHealth;
|
||||||
public int maxHealth = TShock.ServerSideCharacterConfig.StartingHealth;
|
public int maxHealth = TShock.ServerSideCharacterConfig.StartingHealth;
|
||||||
|
|
@ -408,4 +410,5 @@ public class PlayerData
|
||||||
|
|
||||||
NetMessage.SendData(39, player.Index, -1, "", 400);
|
NetMessage.SendData(39, player.Index, -1, "", 400);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4,8 +4,10 @@ using Terraria;
|
||||||
using TShockAPI;
|
using TShockAPI;
|
||||||
using TShockAPI.DB;
|
using TShockAPI.DB;
|
||||||
|
|
||||||
public class TSServerPlayer : TSPlayer
|
namespace TShockAPI
|
||||||
{
|
{
|
||||||
|
public class TSServerPlayer : TSPlayer
|
||||||
|
{
|
||||||
public static string AccountName = "ServerConsole";
|
public static string AccountName = "ServerConsole";
|
||||||
|
|
||||||
public TSServerPlayer()
|
public TSServerPlayer()
|
||||||
|
|
@ -157,4 +159,5 @@ public class TSServerPlayer : TSPlayer
|
||||||
All.SendTileSquare((int)coords.X, (int)coords.Y, 3);
|
All.SendTileSquare((int)coords.X, (int)coords.Y, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue