예제 #1
0
 public void readFromNbt(NbtCompound tag)
 {
     this.changeLayer(tag.getInt("layer"), false);
     this.setZoom(tag.getInt("zoomLevel", this.minZoom));
     this.setCameraPos(tag.getVector2("cameraPos"));
     this.inCreativeMode = tag.getBool("inCreativeMode");
 }
예제 #2
0
 public virtual void readFromNbt(NbtCompound tag)
 {
     this.transform.position = tag.getVector2("position");
     this.depth    = tag.getInt("depth");
     this.rotation = Rotation.ALL[Mathf.Clamp(tag.getInt("facing"), 0, 3)];
     this.guid     = tag.getGuid("guid");
 }