Upload from upload_mods.ps1
This commit is contained in:
41
Scripts/TileEntity/TileEntityChickenCoopRebirth.cs
Normal file
41
Scripts/TileEntity/TileEntityChickenCoopRebirth.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
public class TileEntityChickenCoopRebirth : TileEntity
|
||||
{
|
||||
public ulong GameTimerTicks = 0UL;
|
||||
public ulong AccumulatedTicks = 0UL;
|
||||
public bool hasNest = false;
|
||||
public bool bUpdating = false;
|
||||
|
||||
public TileEntityChickenCoopRebirth(Chunk _chunk) : base(_chunk)
|
||||
{
|
||||
this.GameTimerTicks = GameTimer.Instance.ticks;
|
||||
}
|
||||
|
||||
public override TileEntityType GetTileEntityType()
|
||||
{
|
||||
return (TileEntityType)RebirthUtilities.TileEntityRebirth.TileEntityChickenCoopRebirth;
|
||||
}
|
||||
|
||||
public override void read(PooledBinaryReader _br, TileEntity.StreamModeRead _eStreamMode)
|
||||
{
|
||||
base.read(_br, _eStreamMode);
|
||||
this.GameTimerTicks = _br.ReadUInt64();
|
||||
this.AccumulatedTicks = _br.ReadUInt64();
|
||||
this.hasNest = _br.ReadBoolean();
|
||||
try
|
||||
{
|
||||
this.bUpdating = _br.ReadBoolean();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public override void write(PooledBinaryWriter stream, TileEntity.StreamModeWrite _eStreamMode)
|
||||
{
|
||||
base.write(stream, _eStreamMode);
|
||||
stream.Write(this.GameTimerTicks);
|
||||
stream.Write(this.AccumulatedTicks);
|
||||
stream.Write(this.hasNest);
|
||||
stream.Write(this.bUpdating);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user