public MinerJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, ByteReader reader) : base(settings, position, type, reader)
        {
            ushort belowType = reader.ReadVariableUShort();

            MiningCooldown = -1f;
            if (ItemTypes.TryGetType(belowType, out ItemTypes.ItemType foundtype))
            {
                BlockTypeBelow = foundtype;
            }
        }
 public ScientistJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, ByteReader reader) : base(settings, position, type, reader)
 {
     if (reader == null || reader.AtEnd)
     {
         StoredItemCount = 0;
     }
     else
     {
         StoredItemCount = reader.ReadVariableInt();
     }
 }
 public AngryGuardJobInstance(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, Colony colony) : base(settings, position, type, colony)
 {
     this.eyePosition     = position.Vector;
     this.eyePosition[1] += 1;
 }
 public AngryGuardJobInstance(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, ByteReader reader) : base(settings, position, type, reader)
 {
     this.eyePosition     = position.Vector;
     this.eyePosition[1] += 1;
 }
Example #5
0
 public Artificer(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, Colony colony) :
     base(settings, position, type, colony)
 {
 }
Example #6
0
 public Artificer(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, ByteReader reader) :
     base(settings, position, type, reader)
 {
 }
 public MachinistNight(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, Colony colony) :
     base(settings, position, type, colony)
 {
 }
 public MachinistNight(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, ByteReader reader) :
     base(settings, position, type, reader)
 {
 }
Example #9
0
 public GeneratorJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, Colony colony) : base(settings, position, type, colony)
 {
 }
Example #10
0
 public GeneratorJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, ByteReader reader) : base(settings, position, type, reader)
 {
 }
Example #11
0
 public RoamingJob(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, Colony colony) :
     base(settings, position, type, colony)
 {
     OriginalPosition = position;
 }
Example #12
0
 public RoamingJob(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, ByteReader reader) :
     base(settings, position, type, reader)
 {
     OriginalPosition = position;
 }
 public MinerJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, Colony colony) : base(settings, position, type, colony)
 {
     BlockTypeBelow = null;
     MiningCooldown = -1f;
 }
Example #14
0
 public ConstructionJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, ByteReader reader) : base(settings, position, type, reader)
 {
     StoredItemCount = reader.ReadVariableInt();
 }