mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-24 22:44:30 +02:00
Add getNPCsCount
This commit is contained in:
parent
ae847ff9a6
commit
7d435ff643
@ -219,11 +219,16 @@ class OTS_InfoRespond extends DOMDocument
|
|||||||
* @return int Count of monsters.
|
* @return int Count of monsters.
|
||||||
* @throws DOMException On DOM operation error.
|
* @throws DOMException On DOM operation error.
|
||||||
*/
|
*/
|
||||||
public function getMonstersCount()
|
public function getMonstersCount(): int
|
||||||
{
|
{
|
||||||
return (int) $this->documentElement->getElementsByTagName('monsters')->item(0)->getAttribute('total');
|
return (int) $this->documentElement->getElementsByTagName('monsters')->item(0)->getAttribute('total');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getNPCsCount(): int
|
||||||
|
{
|
||||||
|
return (int) $this->documentElement->getElementsByTagName('npcs')->item(0)->getAttribute('total');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns map name.
|
* Returns map name.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user