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;
 }
예제 #5
0
 public Artificer(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, Colony colony) :
     base(settings, position, type, colony)
 {
 }
예제 #6
0
 public Artificer(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, ByteReader reader) :
     base(settings, position, type, reader)
 {
 }
예제 #7
0
 public MachinistNight(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, Colony colony) :
     base(settings, position, type, colony)
 {
 }
예제 #8
0
 public MachinistNight(IBlockJobSettings settings, Pipliz.Vector3Int position, ItemTypes.ItemType type, ByteReader reader) :
     base(settings, position, type, reader)
 {
 }
예제 #9
0
 public GeneratorJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, Colony colony) : base(settings, position, type, colony)
 {
 }
예제 #10
0
 public GeneratorJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, ByteReader reader) : base(settings, position, type, reader)
 {
 }
예제 #11
0
 public RoamingJob(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, Colony colony) :
     base(settings, position, type, colony)
 {
     OriginalPosition = position;
 }
예제 #12
0
 public RoamingJob(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, ByteReader reader) :
     base(settings, position, type, reader)
 {
     OriginalPosition = position;
 }
예제 #13
0
 public MinerJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, Colony colony) : base(settings, position, type, colony)
 {
     BlockTypeBelow = null;
     MiningCooldown = -1f;
 }
예제 #14
0
 public ConstructionJobInstance(IBlockJobSettings settings, Vector3Int position, ItemTypes.ItemType type, ByteReader reader) : base(settings, position, type, reader)
 {
     StoredItemCount = reader.ReadVariableInt();
 }