public function __construct(WorldEditArt $main, \mysqli $db) { parent::__construct($main); $this->db = $db; $this->db->query("CREATE TABLE IF NOT EXISTS macros (\n\t\t\t\tname VARCHAR(65536) PRIMARY KEY,\n\t\t\t\tauthor VARCHAR(65536),\n\t\t\t\tdescription VARCHAR(65536)\n\t\t\t\t);"); $this->db->query("CREATE TABLE IF NOT EXISTS macros_deltas (\n\t\t\t\towner VARCHAR(65536),\n\t\t\t\toffset INT UNSIGNED,\n\t\t\t\tdelta INT UNSIGNED\n\t\t\t\t);"); $this->db->query("CREATE TABLE IF NOT EXISTS macros_ops (\n\t\t\t\towner VARCHAR(65536),\n\t\t\t\toffset INT UNSIGNED,\n\t\t\t\tx BIGINT SIGNED,\n\t\t\t\ty SMALLINT SIGNED,\n\t\t\t\tz BIGINT SIGNED,\n\t\t\t\tid TINYINT UNSIGNED,\n\t\t\t\tdamage TINYINT\n\t\t\t\t)"); }
public function __construct(WorldEditArt $main, $path) { parent::__construct($main); $this->path = $path; }