Upload from upload_mods.ps1
This commit is contained in:
41
TormentedEmu/NetPackagePrintDebug_TE.cs
Normal file
41
TormentedEmu/NetPackagePrintDebug_TE.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
public class NetPackagePrintDebug_TE : NetPackage
|
||||
{
|
||||
private int entity;
|
||||
|
||||
public NetPackagePrintDebug_TE Setup(int _entity)
|
||||
{
|
||||
this.entity = _entity;
|
||||
return this;
|
||||
}
|
||||
|
||||
public override void read(PooledBinaryReader _br)
|
||||
{
|
||||
this.entity = _br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void write(PooledBinaryWriter _bw)
|
||||
{
|
||||
base.write(_bw);
|
||||
_bw.Write(this.entity);
|
||||
}
|
||||
|
||||
public override int GetLength()
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
|
||||
public override void ProcessPackage(World _world, GameManager _callbacks)
|
||||
{
|
||||
//Log.Out("NetPackagePrintDebug_TE-ProcessPackage START");
|
||||
if (_world == null)
|
||||
{
|
||||
//Log.Out("NetPackagePrintDebug_TE-ProcessPackage 1");
|
||||
return;
|
||||
}
|
||||
|
||||
EntityPlayer myEntity = (EntityPlayer)_world.GetEntity(this.entity);
|
||||
|
||||
ConsoleCmdPrintDebug_TE.PrintInfo(myEntity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user