예제 #1
0
 public Candidate(NbtCompound tag)
 {
     this.info = new WorkerInfo(tag.getCompound("info"));
     this.type = Main.instance.workerTypeRegistry.getElement(tag.getInt("type"));
     this.endAvailabilityTime = tag.getDouble("endAvailabilityTime");
 }
예제 #2
0
 public void readFromNbt(NbtCompound tag)
 {
     this.lastPayTime = tag.getDouble("lastPayTime");
 }
예제 #3
0
 public void readFromNbt(NbtCompound tag)
 {
     this._time           = tag.getDouble("time");
     this.multiplyerIndex = Mathf.Clamp(tag.getInt("multiplyerIndex"), 0, this._timeMultipliers.Length - 1);
 }