This commit is contained in:
GameHerobrine 2022-12-31 21:59:40 +03:00
parent 0f72601891
commit 2573e4f90d
14 changed files with 65 additions and 57 deletions

View file

@ -24,6 +24,10 @@ class PathTileXYZ extends PathTile
return new Vector3($this->x, $this->y, $this->z);
}
public function asArray(){
return ["x" => $this->x, "y" => $this->y, "z" => $this->z];
}
public function addOffset($offset){
$this->x += $offset[0];
$this->y += $offset[1];