project uses tabs instead of spaces(as in CONTRIBUTING.md)

This commit is contained in:
GameHerobrine 2022-12-26 07:01:28 +03:00
parent f00318b6ed
commit 62571f26cd
115 changed files with 2291 additions and 2364 deletions

View file

@ -2,37 +2,37 @@
class PathTileXYZ extends PathTile
{
public $x, $y, $z;
/**
* @var Level
*/
public $level;
public function __construct($x, $y, $z, $level){
$this->x = floor($x);
$this->y = floor($y);
$this->z = floor($z);
$this->level = $level;
}
public function equals(PathTile $t){
return $t->x === $this->x && $t->y === $this->y && $t->z === $this->z;
}
public function asVector(){
return new Vector3($this->x, $this->y, $this->z);
}
public function addOffset($offset){
$this->x += $offset[0];
$this->y += $offset[1];
$this->z += $offset[2];
return $this;
}
public function __toString(){
return $this->x.":".$this->y.":".$this->z;
}
public $x, $y, $z;
/**
* @var Level
*/
public $level;
public function __construct($x, $y, $z, $level){
$this->x = floor($x);
$this->y = floor($y);
$this->z = floor($z);
$this->level = $level;
}
public function equals(PathTile $t){
return $t->x === $this->x && $t->y === $this->y && $t->z === $this->z;
}
public function asVector(){
return new Vector3($this->x, $this->y, $this->z);
}
public function addOffset($offset){
$this->x += $offset[0];
$this->y += $offset[1];
$this->z += $offset[2];
return $this;
}
public function __toString(){
return $this->x.":".$this->y.":".$this->z;
}
}