This commit is contained in:
ArkQuark 2023-03-03 19:45:29 +03:00
parent 546ca07d95
commit ee72ec2b27
7 changed files with 13 additions and 13 deletions

View file

@ -10,13 +10,13 @@ abstract class Structure{
const LEVEL_RSV1 = 1;
private static $structure, $tmpStructure;
private $map;
public $api, $pm, $width, $lenght, $name;
public $api, $pm, $width, $length, $name;
public function __construct($width = 0, $lenght = 0, $name = "Unknown", $map = []){
public function __construct($width = 0, $length = 0, $name = "Unknown", $map = []){
$this->pm = ServerAPI::request();
$this->api = $this->pm->api;
$this->width = $width;
$this->lenght = $lenght;
$this->length = $length;
$this->name = $name;
$this->map = $map;
}

View file

@ -2,7 +2,7 @@
class StrongholdLibraryStructure{
public static $width = 14;
public static $lenght = 15;
public static $length = 15;
public static $tmpStructure;
public static $structure = [
-1 => [

View file

@ -2,7 +2,7 @@
class StrongholdPortalRoomStructure{
public static $width = 11;
public static $lenght = 16;
public static $length = 16;
public static $tmpStructure = [];
public static $structure = [
-1 => [

View file

@ -2,7 +2,7 @@
class SmallFarmStructure extends Structure{
public $width = 7;
public $lenght = 9;
public $length = 9;
public $name = "Small Farm";
private static $tmpStructure;
private static $structure = [
@ -94,7 +94,7 @@ class SmallFarmStructure extends Structure{
}
public function __construct(){
parent::__construct($this->width, $this->lenght, $this->name, $this->map);
parent::__construct($this->width, $this->length, $this->name, $this->map);
}
public function build($level, $x, $y, $z, $structure = 0){

View file

@ -2,7 +2,7 @@
class SmallHouseStructure extends Structure{
public $width = 5;
public $lenght = 5;
public $length = 5;
public $name = "Small House";
private static $tmpStructure;
private static $structure = [
@ -54,7 +54,7 @@ class SmallHouseStructure extends Structure{
];
public function __construct(){
parent::__construct($this->width, $this->lenght, $this->name, $this->map);
parent::__construct($this->width, $this->length, $this->name, $this->map);
}
private function generateFence(){

View file

@ -2,7 +2,7 @@
class VillageLibraryStructure extends Structure{
public $width = 9;
public $lenght = 8;
public $length = 8;
public $name = "Library";
private static $structure = [
0 => [
@ -115,7 +115,7 @@ class VillageLibraryStructure extends Structure{
];
public function __construct(){
parent::__construct($this->width, $this->lenght, $this->name, $this->map);
parent::__construct($this->width, $this->length, $this->name, $this->map);
}
public function build($level, $x, $y, $z, $structure = 0){

View file

@ -2,7 +2,7 @@
class WoodHutStructure extends Structure{
public $width = 4;
public $lenght = 6;
public $length = 6;
public $name = "Wood Hut";
private static $tmpStructure;
private static $structure = [
@ -94,7 +94,7 @@ class WoodHutStructure extends Structure{
}
public function __construct(){
parent::__construct($this->width, $this->lenght, $this->name, $this->map);
parent::__construct($this->width, $this->length, $this->name, $this->map);
}
public function build($level, $x, $y, $z, $structure = 0){