Upload from upload_mods.ps1
This commit is contained in:
25
Scripts/TileEntity/TileEntitySpawnPoint.cs
Normal file
25
Scripts/TileEntity/TileEntitySpawnPoint.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
public class TileEntitySpawnPoint : TileEntity
|
||||
{
|
||||
public int used = 0;
|
||||
|
||||
public TileEntitySpawnPoint(Chunk _chunk) : base(_chunk)
|
||||
{
|
||||
}
|
||||
|
||||
public override TileEntityType GetTileEntityType()
|
||||
{
|
||||
return (TileEntityType)RebirthUtilities.TileEntityRebirth.TileEntitySpawnPoint;
|
||||
}
|
||||
|
||||
public override void read(PooledBinaryReader _br, TileEntity.StreamModeRead _eStreamMode)
|
||||
{
|
||||
base.read(_br, _eStreamMode);
|
||||
this.used = _br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void write(PooledBinaryWriter stream, TileEntity.StreamModeWrite _eStreamMode)
|
||||
{
|
||||
base.write(stream, _eStreamMode);
|
||||
stream.Write(this.used);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user