using static WeatherManager; public class TileEntityPlantGrowingRebirth : TileEntity { public ulong GameTimerTicks; public ulong AccumulatedTicks = 0UL; public bool bUpdating = false; public bool bWatered = false; //public int biome = -1; public TileEntityPlantGrowingRebirth(Chunk _chunk) : base(_chunk) { this.GameTimerTicks = GameTimer.Instance.ticks; } public override TileEntityType GetTileEntityType() { return (TileEntityType)RebirthUtilities.TileEntityRebirth.TileEntityPlantGrowingRebirth; } public override void read(PooledBinaryReader _br, TileEntity.StreamModeRead _eStreamMode) { base.read(_br, _eStreamMode); this.GameTimerTicks = _br.ReadUInt64(); this.AccumulatedTicks = _br.ReadUInt64(); try { this.bUpdating = _br.ReadBoolean(); } catch (Exception) { } /*try { this.biome = _br.ReadInt32(); } 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.bUpdating); //stream.Write(this.biome); } }