mirror of
https://github.com/Rogiel/star-replay
synced 2025-12-06 06:32:46 +00:00
Initial commit
This commit is contained in:
34
src/Entity/AbstractEntity.php
Normal file
34
src/Entity/AbstractEntity.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Entity;
|
||||
|
||||
|
||||
class AbstractEntity implements Entity {
|
||||
|
||||
}
|
||||
85
src/Entity/Color.php
Normal file
85
src/Entity/Color.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Entity;
|
||||
|
||||
class Color extends AbstractEntity {
|
||||
|
||||
private $a;
|
||||
private $r;
|
||||
private $g;
|
||||
private $b;
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getAlpha() {
|
||||
return $this->a;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getRed() {
|
||||
return $this->r;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getGreen() {
|
||||
return $this->g;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getBlue() {
|
||||
return $this->b;
|
||||
}
|
||||
|
||||
public function toHTML() {
|
||||
$r = intval($this->r);
|
||||
$g = intval($this->g);
|
||||
$b = intval($this->b);
|
||||
$r = dechex($r<0?0:($r>255?255:$r));
|
||||
$g = dechex($g<0?0:($g>255?255:$g));
|
||||
$b = dechex($b<0?0:($b>255?255:$b));
|
||||
$color = (strlen($r) < 2?'0':'').$r;
|
||||
$color .= (strlen($g) < 2?'0':'').$g;
|
||||
$color .= (strlen($b) < 2?'0':'').$b;
|
||||
$color ='#'.$color;
|
||||
return $color;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return $this->toHTML();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
34
src/Entity/Entity.php
Normal file
34
src/Entity/Entity.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Entity;
|
||||
|
||||
|
||||
interface Entity {
|
||||
|
||||
}
|
||||
169
src/Entity/Player.php
Normal file
169
src/Entity/Player.php
Normal file
@@ -0,0 +1,169 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Entity;
|
||||
|
||||
class Player extends AbstractEntity {
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @var Toon
|
||||
*/
|
||||
private $toon;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $race;
|
||||
|
||||
/**
|
||||
* @var Color
|
||||
*/
|
||||
private $color;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
private $control;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
private $teamId;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
private $handicap;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*/
|
||||
private $observe;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*/
|
||||
private $result;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
private $workingSetSlotId;
|
||||
|
||||
/**
|
||||
* @var mixed
|
||||
*/
|
||||
private $hero;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Toon
|
||||
*/
|
||||
public function getToon() {
|
||||
return $this->toon;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRace() {
|
||||
return $this->race;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Color
|
||||
*/
|
||||
public function getColor() {
|
||||
return $this->color;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getControl() {
|
||||
return $this->control;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getTeamId() {
|
||||
return $this->teamId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getHandicap() {
|
||||
return $this->handicap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
*/
|
||||
public function isObserve() {
|
||||
return $this->observe;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
*/
|
||||
public function isResult() {
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getWorkingSetSlotId() {
|
||||
return $this->workingSetSlotId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getHero() {
|
||||
return $this->hero;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return "Player{ name = $this->name, race = $this->race, color = $this->color, teamID = $this->teamId }";
|
||||
}
|
||||
|
||||
}
|
||||
67
src/Entity/Point.php
Normal file
67
src/Entity/Point.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Entity;
|
||||
|
||||
|
||||
class Point extends AbstractEntity {
|
||||
|
||||
private $x;
|
||||
private $y;
|
||||
private $z = NULL;
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getX() {
|
||||
return $this->x;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getY() {
|
||||
return $this->y;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getZ() {
|
||||
return $this->z;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
if($this->z === NULL) {
|
||||
return "Point{ x = $this->x, y = $this->y }";
|
||||
} else {
|
||||
return "Point{ x = $this->x, y = $this->y, z = $this->z }";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
46
src/Entity/Thumbnail.php
Normal file
46
src/Entity/Thumbnail.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Entity;
|
||||
|
||||
|
||||
class Thumbnail extends AbstractEntity {
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $file;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFile() {
|
||||
return $this->file;
|
||||
}
|
||||
|
||||
}
|
||||
41
src/Entity/Toon.php
Normal file
41
src/Entity/Toon.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Entity;
|
||||
|
||||
|
||||
class Toon extends AbstractEntity {
|
||||
|
||||
private $region;
|
||||
private $programId;
|
||||
private $realm;
|
||||
private $id;
|
||||
|
||||
|
||||
|
||||
}
|
||||
56
src/Event/AbstractEvent.php
Normal file
56
src/Event/AbstractEvent.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event;
|
||||
|
||||
|
||||
use Rogiel\StarReplay\Metadata\Event\Header;
|
||||
|
||||
abstract class AbstractEvent implements Event {
|
||||
|
||||
/**
|
||||
* @var Header
|
||||
*/
|
||||
private $header;
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @return Header
|
||||
*/
|
||||
public function getHeader() {
|
||||
return $this->header;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Header $header
|
||||
*/
|
||||
public function setHeader($header) {
|
||||
$this->header = $header;
|
||||
}
|
||||
}
|
||||
41
src/Event/Event.php
Normal file
41
src/Event/Event.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event;
|
||||
|
||||
|
||||
use Rogiel\StarReplay\Metadata\Event\Header;
|
||||
|
||||
interface Event {
|
||||
|
||||
/**
|
||||
* @return Header
|
||||
*/
|
||||
public function getHeader();
|
||||
|
||||
}
|
||||
101
src/Event/Game/AICommunicateEvent.php
Normal file
101
src/Event/Game/AICommunicateEvent.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class AICommunicateEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $beacon;
|
||||
|
||||
/** @var integer */
|
||||
public $ally;
|
||||
|
||||
/** @var integer */
|
||||
public $flags;
|
||||
|
||||
/** @var integer */
|
||||
public $build;
|
||||
|
||||
/** @var integer */
|
||||
public $targetUnitTag;
|
||||
|
||||
/** @var integer */
|
||||
public $targetUnitSnapshotUnitLink;
|
||||
|
||||
/** @var integer */
|
||||
public $targetUnitSnapshotUpkeepPlayerId;
|
||||
|
||||
/** @var integer */
|
||||
public $targetUnitSnapshotControlPlayerId;
|
||||
|
||||
/** @var \Rogiel\StarReplay\Entity\Point */
|
||||
public $targetPoint;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SAICommunicateEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ beacon = $this->beacon, ally = $this->ally, flags = $this->flags, build = $this->build, targetUnitTag = $this->targetUnitTag, targetUnitSnapshotUnitLink = $this->targetUnitSnapshotUnitLink, targetUnitSnapshotUpkeepPlayerId = $this->targetUnitSnapshotUpkeepPlayerId, targetUnitSnapshotControlPlayerId = $this->targetUnitSnapshotControlPlayerId, targetPoint = $this->targetPoint }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getBeacon() { return $this->beacon; }
|
||||
|
||||
/** @return integer */
|
||||
public function getAlly() { return $this->ally; }
|
||||
|
||||
/** @return integer */
|
||||
public function getFlags() { return $this->flags; }
|
||||
|
||||
/** @return integer */
|
||||
public function getBuild() { return $this->build; }
|
||||
|
||||
/** @return integer */
|
||||
public function getTargetUnitTag() { return $this->targetUnitTag; }
|
||||
|
||||
/** @return integer */
|
||||
public function getTargetUnitSnapshotUnitLink() { return $this->targetUnitSnapshotUnitLink; }
|
||||
|
||||
/** @return integer */
|
||||
public function getTargetUnitSnapshotUpkeepPlayerId() { return $this->targetUnitSnapshotUpkeepPlayerId; }
|
||||
|
||||
/** @return integer */
|
||||
public function getTargetUnitSnapshotControlPlayerId() { return $this->targetUnitSnapshotControlPlayerId; }
|
||||
|
||||
/** @return \Rogiel\StarReplay\Entity\Point */
|
||||
public function getTargetPoint() { return $this->targetPoint; }
|
||||
|
||||
}
|
||||
35
src/Event/Game/AbstractGameEvent.php
Normal file
35
src/Event/Game/AbstractGameEvent.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
use Rogiel\StarReplay\Event\AbstractEvent;
|
||||
|
||||
class AbstractGameEvent extends AbstractEvent implements GameEvent {
|
||||
|
||||
}
|
||||
53
src/Event/Game/AchievementAwardedEvent.php
Normal file
53
src/Event/Game/AchievementAwardedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class AchievementAwardedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $achievementLink;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SAchievementAwardedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ achievementLink = $this->achievementLink }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getAchievementLink() { return $this->achievementLink; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/AddAbsoluteGameSpeedEvent.php
Normal file
53
src/Event/Game/AddAbsoluteGameSpeedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class AddAbsoluteGameSpeedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $delta;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SAddAbsoluteGameSpeedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ delta = $this->delta }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getDelta() { return $this->delta; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/AllianceEvent.php
Normal file
59
src/Event/Game/AllianceEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class AllianceEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $alliance;
|
||||
|
||||
/** @var integer */
|
||||
public $control;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SAllianceEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ alliance = $this->alliance, control = $this->control }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getAlliance() { return $this->alliance; }
|
||||
|
||||
/** @return integer */
|
||||
public function getControl() { return $this->control; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/BankFileEvent.php
Normal file
53
src/Event/Game/BankFileEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class BankFileEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var string */
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SBankFileEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ name = $this->name }";
|
||||
}
|
||||
|
||||
/** @return string */
|
||||
public function getName() { return $this->name; }
|
||||
|
||||
}
|
||||
65
src/Event/Game/BankKeyEvent.php
Normal file
65
src/Event/Game/BankKeyEvent.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class BankKeyEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var string */
|
||||
public $name;
|
||||
|
||||
/** @var integer */
|
||||
public $type;
|
||||
|
||||
/** @var string */
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SBankKeyEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ name = $this->name, type = $this->type, data = $this->data }";
|
||||
}
|
||||
|
||||
/** @return string */
|
||||
public function getName() { return $this->name; }
|
||||
|
||||
/** @return integer */
|
||||
public function getType() { return $this->type; }
|
||||
|
||||
/** @return string */
|
||||
public function getData() { return $this->data; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/BankSectionEvent.php
Normal file
53
src/Event/Game/BankSectionEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class BankSectionEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var string */
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SBankSectionEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ name = $this->name }";
|
||||
}
|
||||
|
||||
/** @return string */
|
||||
public function getName() { return $this->name; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/BankSignatureEvent.php
Normal file
59
src/Event/Game/BankSignatureEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class BankSignatureEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var \Rogiel\StarReplay\Event\Game\Entity\BankSignature */
|
||||
public $signature;
|
||||
|
||||
/** @var string */
|
||||
public $toonHandle;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SBankSignatureEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ signature = $this->signature, toonHandle = $this->toonHandle }";
|
||||
}
|
||||
|
||||
/** @return \Rogiel\StarReplay\Event\Game\Entity\BankSignature */
|
||||
public function getSignature() { return $this->signature; }
|
||||
|
||||
/** @return string */
|
||||
public function getToonHandle() { return $this->toonHandle; }
|
||||
|
||||
}
|
||||
65
src/Event/Game/BankValueEvent.php
Normal file
65
src/Event/Game/BankValueEvent.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class BankValueEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $type;
|
||||
|
||||
/** @var string */
|
||||
public $name;
|
||||
|
||||
/** @var string */
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SBankValueEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ type = $this->type, name = $this->name, data = $this->data }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getType() { return $this->type; }
|
||||
|
||||
/** @return string */
|
||||
public function getName() { return $this->name; }
|
||||
|
||||
/** @return string */
|
||||
public function getData() { return $this->data; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/BroadcastCheatEvent.php
Normal file
59
src/Event/Game/BroadcastCheatEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class BroadcastCheatEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var string */
|
||||
public $verb;
|
||||
|
||||
/** @var string */
|
||||
public $arguments;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SBroadcastCheatEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ verb = $this->verb, arguments = $this->arguments }";
|
||||
}
|
||||
|
||||
/** @return string */
|
||||
public function getVerb() { return $this->verb; }
|
||||
|
||||
/** @return string */
|
||||
public function getArguments() { return $this->arguments; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/CameraSaveEvent.php
Normal file
59
src/Event/Game/CameraSaveEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class CameraSaveEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $which;
|
||||
|
||||
/** @var \Rogiel\StarReplay\Entity\Point */
|
||||
public $target;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SCameraSaveEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ which = $this->which, target = $this->target }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getWhich() { return $this->which; }
|
||||
|
||||
/** @return \Rogiel\StarReplay\Entity\Point */
|
||||
public function getTarget() { return $this->target; }
|
||||
|
||||
}
|
||||
83
src/Event/Game/CameraUpdateEvent.php
Normal file
83
src/Event/Game/CameraUpdateEvent.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class CameraUpdateEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var null|\Rogiel\StarReplay\Entity\Point */
|
||||
public $target;
|
||||
|
||||
/** @var null|integer */
|
||||
public $distance;
|
||||
|
||||
/** @var null|integer */
|
||||
public $pitch;
|
||||
|
||||
/** @var null|integer */
|
||||
public $yaw;
|
||||
|
||||
/** @var null|integer */
|
||||
public $reason;
|
||||
|
||||
/** @var boolean */
|
||||
public $follow;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SCameraUpdateEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ target = $this->target, distance = $this->distance, pitch = $this->pitch, yaw = $this->yaw, reason = $this->reason, follow = $this->follow }";
|
||||
}
|
||||
|
||||
/** @return null|\Rogiel\StarReplay\Entity\Point */
|
||||
public function getTarget() { return $this->target; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getDistance() { return $this->distance; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getPitch() { return $this->pitch; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getYaw() { return $this->yaw; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getReason() { return $this->reason; }
|
||||
|
||||
/** @return boolean */
|
||||
public function getFollow() { return $this->follow; }
|
||||
|
||||
}
|
||||
71
src/Event/Game/CatalogModifyEvent.php
Normal file
71
src/Event/Game/CatalogModifyEvent.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class CatalogModifyEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $catalog;
|
||||
|
||||
/** @var integer */
|
||||
public $entry;
|
||||
|
||||
/** @var string */
|
||||
public $field;
|
||||
|
||||
/** @var string */
|
||||
public $value;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SCatalogModifyEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ catalog = $this->catalog, entry = $this->entry, field = $this->field, value = $this->value }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getCatalog() { return $this->catalog; }
|
||||
|
||||
/** @return integer */
|
||||
public function getEntry() { return $this->entry; }
|
||||
|
||||
/** @return string */
|
||||
public function getField() { return $this->field; }
|
||||
|
||||
/** @return string */
|
||||
public function getValue() { return $this->value; }
|
||||
|
||||
}
|
||||
83
src/Event/Game/CmdEvent.php
Normal file
83
src/Event/Game/CmdEvent.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class CmdEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $cmdFlags;
|
||||
|
||||
/** @var null|\Rogiel\StarReplay\Event\Game\Entity\Ability */
|
||||
public $abil;
|
||||
|
||||
/** @var null|\Rogiel\StarReplay\Entity\Point|\Rogiel\StarReplay\Event\Game\Entity\TargetUnit|integer */
|
||||
public $data;
|
||||
|
||||
/** @var integer */
|
||||
public $sequence;
|
||||
|
||||
/** @var null|integer */
|
||||
public $otherUnit;
|
||||
|
||||
/** @var null|integer */
|
||||
public $unitGroup;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SCmdEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ cmdFlags = $this->cmdFlags, abil = $this->abil, data = $this->data, sequence = $this->sequence, otherUnit = $this->otherUnit, unitGroup = $this->unitGroup }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getCmdFlags() { return $this->cmdFlags; }
|
||||
|
||||
/** @return null|\Rogiel\StarReplay\Event\Game\Entity\Ability */
|
||||
public function getAbil() { return $this->abil; }
|
||||
|
||||
/** @return null|\Rogiel\StarReplay\Entity\Point|\Rogiel\StarReplay\Event\Game\Entity\TargetUnit|integer */
|
||||
public function getData() { return $this->data; }
|
||||
|
||||
/** @return integer */
|
||||
public function getSequence() { return $this->sequence; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getOtherUnit() { return $this->otherUnit; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getUnitGroup() { return $this->unitGroup; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/CmdUpdateTargetPointEvent.php
Normal file
53
src/Event/Game/CmdUpdateTargetPointEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class CmdUpdateTargetPointEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var \Rogiel\StarReplay\Entity\Point */
|
||||
public $target;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SCmdUpdateTargetPointEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ target = $this->target }";
|
||||
}
|
||||
|
||||
/** @return \Rogiel\StarReplay\Entity\Point */
|
||||
public function getTarget() { return $this->target; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/CmdUpdateTargetUnitEvent.php
Normal file
53
src/Event/Game/CmdUpdateTargetUnitEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class CmdUpdateTargetUnitEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var \Rogiel\StarReplay\Event\Game\Entity\TargetUnit */
|
||||
public $target;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SCmdUpdateTargetUnitEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ target = $this->target }";
|
||||
}
|
||||
|
||||
/** @return \Rogiel\StarReplay\Event\Game\Entity\TargetUnit */
|
||||
public function getTarget() { return $this->target; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/CommandManagerResetEvent.php
Normal file
53
src/Event/Game/CommandManagerResetEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class CommandManagerResetEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $sequence;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SCommandManagerResetEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ sequence = $this->sequence }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getSequence() { return $this->sequence; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/CommandManagerStateEvent.php
Normal file
59
src/Event/Game/CommandManagerStateEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class CommandManagerStateEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $state;
|
||||
|
||||
/** @var null|integer */
|
||||
public $sequence;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SCommandManagerStateEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ state = $this->state, sequence = $this->sequence }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getState() { return $this->state; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getSequence() { return $this->sequence; }
|
||||
|
||||
}
|
||||
65
src/Event/Game/ControlGroupUpdateEvent.php
Normal file
65
src/Event/Game/ControlGroupUpdateEvent.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class ControlGroupUpdateEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $controlGroupIndex;
|
||||
|
||||
/** @var integer */
|
||||
public $controlGroupUpdate;
|
||||
|
||||
/** @var null|\Rogiel\StarReplay\Event\Game\Entity\ControlGroupUpdateMask|\Rogiel\StarReplay\Event\Game\Entity\ControlGroupUpdateZeroIndices|\Rogiel\StarReplay\Event\Game\Entity\ControlGroupUpdateZeroIndices */
|
||||
public $mask;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SControlGroupUpdateEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ controlGroupIndex = $this->controlGroupIndex, controlGroupUpdate = $this->controlGroupUpdate, mask = $this->mask }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getControlGroupIndex() { return $this->controlGroupIndex; }
|
||||
|
||||
/** @return integer */
|
||||
public function getControlGroupUpdate() { return $this->controlGroupUpdate; }
|
||||
|
||||
/** @return null|\Rogiel\StarReplay\Event\Game\Entity\ControlGroupUpdateMask|\Rogiel\StarReplay\Event\Game\Entity\ControlGroupUpdateZeroIndices|\Rogiel\StarReplay\Event\Game\Entity\ControlGroupUpdateZeroIndices */
|
||||
public function getMask() { return $this->mask; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/DecrementGameTimeRemainingEvent.php
Normal file
53
src/Event/Game/DecrementGameTimeRemainingEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class DecrementGameTimeRemainingEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $decrementMs;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SDecrementGameTimeRemainingEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ decrementMs = $this->decrementMs }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getDecrementMs() { return $this->decrementMs; }
|
||||
|
||||
}
|
||||
63
src/Event/Game/Entity/Ability.php
Normal file
63
src/Event/Game/Entity/Ability.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class Ability {
|
||||
|
||||
private $abilLink;
|
||||
private $abilCmdIndex;
|
||||
private $abilCmdData;
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getAbilLink() {
|
||||
return $this->abilLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getAbilCmdIndex() {
|
||||
return $this->abilCmdIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getAbilCmdData() {
|
||||
return $this->abilCmdData;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return "Ability { abilLink = $this->abilLink, getAbilCmdIndex = $this->abilCmdIndex, getAbilCmdData = $this->abilCmdData }";
|
||||
}
|
||||
|
||||
}
|
||||
54
src/Event/Game/Entity/BankSignature.php
Normal file
54
src/Event/Game/Entity/BankSignature.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class BankSignature {
|
||||
|
||||
private $signature;
|
||||
|
||||
/**
|
||||
* BankSignature constructor.
|
||||
* @param $signature
|
||||
*/
|
||||
public function __construct($signature) {
|
||||
$this->signature = $signature;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSignature() {
|
||||
return $this->signature;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return join('', array_map('dechex', $this->signature));
|
||||
}
|
||||
}
|
||||
49
src/Event/Game/Entity/ControlGroupUpdateMask.php
Normal file
49
src/Event/Game/Entity/ControlGroupUpdateMask.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class ControlGroupUpdateMask {
|
||||
|
||||
private $mask;
|
||||
|
||||
/**
|
||||
* ControlGroupUpdateMask constructor.
|
||||
* @param $mask
|
||||
*/
|
||||
public function __construct($mask) {
|
||||
$this->mask = $mask;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return "[ ". decbin($this->mask) ." ]";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
48
src/Event/Game/Entity/ControlGroupUpdateOneIndices.php
Normal file
48
src/Event/Game/Entity/ControlGroupUpdateOneIndices.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class ControlGroupUpdateOneIndices {
|
||||
|
||||
private $mask = array();
|
||||
|
||||
/**
|
||||
* ControlGroupUpdateMask constructor.
|
||||
* @param $mask
|
||||
*/
|
||||
public function __construct($mask) {
|
||||
$this->mask = $mask;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return "[ ". join(', ', $this->mask) ." ]";
|
||||
}
|
||||
|
||||
}
|
||||
48
src/Event/Game/Entity/ControlGroupUpdateZeroIndices.php
Normal file
48
src/Event/Game/Entity/ControlGroupUpdateZeroIndices.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class ControlGroupUpdateZeroIndices {
|
||||
|
||||
private $mask = array();
|
||||
|
||||
/**
|
||||
* ControlGroupUpdateMask constructor.
|
||||
* @param $mask
|
||||
*/
|
||||
public function __construct($mask) {
|
||||
$this->mask = $mask;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return "[ ". join(', ', $this->mask) ." ]";
|
||||
}
|
||||
|
||||
}
|
||||
76
src/Event/Game/Entity/ResourceRequest.php
Normal file
76
src/Event/Game/Entity/ResourceRequest.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class ResourceRequest {
|
||||
|
||||
const MINERALS = 0;
|
||||
const VESPENE = 1;
|
||||
const TERRAZINE = 2;
|
||||
const CUSTOM = 3;
|
||||
|
||||
private $resources;
|
||||
|
||||
/**
|
||||
* ResourceRequest constructor.
|
||||
* @param $resources
|
||||
*/
|
||||
public function __construct($resources) {
|
||||
$this->resources = $resources;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getResources() {
|
||||
return $this->resources;
|
||||
}
|
||||
|
||||
public function getMinerals() {
|
||||
return $this->resources[self::MINERALS];
|
||||
}
|
||||
|
||||
public function getVespene() {
|
||||
return $this->resources[self::VESPENE];
|
||||
}
|
||||
|
||||
public function getTerrazine() {
|
||||
return $this->resources[self::TERRAZINE];
|
||||
}
|
||||
|
||||
public function getCustom() {
|
||||
return $this->resources[self::CUSTOM];
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return "ResourceRequest{ minerals = ".$this->getMinerals().", vespene = ".$this->getVespene().", terrazine = ".$this->getTerrazine().", custom = ".$this->getCustom()." }";
|
||||
}
|
||||
|
||||
}
|
||||
75
src/Event/Game/Entity/SelectionDelta.php
Normal file
75
src/Event/Game/Entity/SelectionDelta.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class SelectionDelta {
|
||||
|
||||
private $subgroupIndex;
|
||||
private $removeMask;
|
||||
private $addSubgroups;
|
||||
private $addUnitTags;
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSubgroupIndex() {
|
||||
return $this->subgroupIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getRemoveMask() {
|
||||
return $this->removeMask;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getAddSubgroups() {
|
||||
return $this->addSubgroups;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getAddUnitTags() {
|
||||
return $this->addUnitTags;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
public function __toString() {
|
||||
return "SelectionDelta{ subgroupIndex = $this->subgroupIndex, removeMask = $this->removeMask, addSubgroups = " . join(', ', $this->addSubgroups) . ", addUnitTags = ".join(', ', $this->addUnitTags)." }";
|
||||
}
|
||||
|
||||
}
|
||||
60
src/Event/Game/Entity/SoundLengthSync.php
Normal file
60
src/Event/Game/Entity/SoundLengthSync.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class SoundLengthSync {
|
||||
|
||||
private $soundHash;
|
||||
private $length;
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSoundHash() {
|
||||
return $this->soundHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getLength() {
|
||||
return $this->length;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
public function __toString() {
|
||||
return 'SoundLengthSync { soundHash = [ '.join(', ', $this->soundHash) .
|
||||
' ], length = '.join(', ', $this->length).' }';
|
||||
}
|
||||
|
||||
}
|
||||
71
src/Event/Game/Entity/SubgroupUnit.php
Normal file
71
src/Event/Game/Entity/SubgroupUnit.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class SubgroupUnit {
|
||||
|
||||
private $unitLink;
|
||||
private $subgroupPriority;
|
||||
private $intraSubgroupPriority;
|
||||
private $count;
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getUnitLink() {
|
||||
return $this->unitLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSubgroupPriority() {
|
||||
return $this->subgroupPriority;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getIntraSubgroupPriority() {
|
||||
return $this->intraSubgroupPriority;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getCount() {
|
||||
return $this->count;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return "SubgroupUnit{ unitLink = $this->unitLink, subgroupPriority = $this->subgroupPriority, intraSubgroupPriority = $this->intraSubgroupPriority, count = $this->count }";
|
||||
}
|
||||
|
||||
}
|
||||
96
src/Event/Game/Entity/TargetUnit.php
Normal file
96
src/Event/Game/Entity/TargetUnit.php
Normal file
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game\Entity;
|
||||
|
||||
|
||||
class TargetUnit {
|
||||
|
||||
private $targetUnitFlags;
|
||||
private $timer;
|
||||
private $tag;
|
||||
private $snapshotUnitLink;
|
||||
private $snapshotControlPlayerId;
|
||||
private $snapshotUpkeepPlayerId;
|
||||
private $snapshotPoint;
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getTargetUnitFlags() {
|
||||
return $this->targetUnitFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getTimer() {
|
||||
return $this->timer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getTag() {
|
||||
return $this->tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSnapshotUnitLink() {
|
||||
return $this->snapshotUnitLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSnapshotControlPlayerId() {
|
||||
return $this->snapshotControlPlayerId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSnapshotUpkeepPlayerId() {
|
||||
return $this->snapshotUpkeepPlayerId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSnapshotPoint() {
|
||||
return $this->snapshotPoint;
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return "TargetUnit{ targetUnitFlags = $this->targetUnitFlags, timer = $this->timer, tag = $this->tag, snapshotUnitLink = $this->snapshotUnitLink, snapshotControlPlayerId = $this->snapshotControlPlayerId, snapshotUpkeepPlayerId = $this->snapshotUpkeepPlayerId, snapshotPoint = $this->snapshotPoint }";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
53
src/Event/Game/GameCheatEvent.php
Normal file
53
src/Event/Game/GameCheatEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class GameCheatEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var struct */
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SGameCheatEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ data = $this->data }";
|
||||
}
|
||||
|
||||
/** @return struct */
|
||||
public function getData() { return $this->data; }
|
||||
|
||||
}
|
||||
35
src/Event/Game/GameEvent.php
Normal file
35
src/Event/Game/GameEvent.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
use Rogiel\StarReplay\Event\Event;
|
||||
|
||||
interface GameEvent extends Event {
|
||||
|
||||
}
|
||||
89
src/Event/Game/GameUserJoinEvent.php
Normal file
89
src/Event/Game/GameUserJoinEvent.php
Normal file
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class GameUserJoinEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $observe;
|
||||
|
||||
/** @var string */
|
||||
public $name;
|
||||
|
||||
/** @var null|string */
|
||||
public $toonHandle;
|
||||
|
||||
/** @var null|string */
|
||||
public $clanTag;
|
||||
|
||||
/** @var null|string */
|
||||
public $clanLogo;
|
||||
|
||||
/** @var boolean */
|
||||
public $hijack;
|
||||
|
||||
/** @var null|integer */
|
||||
public $hijackCloneGameUserId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SGameUserJoinEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ observe = $this->observe, name = $this->name, toonHandle = $this->toonHandle, clanTag = $this->clanTag, clanLogo = $this->clanLogo, hijack = $this->hijack, hijackCloneGameUserId = $this->hijackCloneGameUserId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getObserve() { return $this->observe; }
|
||||
|
||||
/** @return string */
|
||||
public function getName() { return $this->name; }
|
||||
|
||||
/** @return null|string */
|
||||
public function getToonHandle() { return $this->toonHandle; }
|
||||
|
||||
/** @return null|string */
|
||||
public function getClanTag() { return $this->clanTag; }
|
||||
|
||||
/** @return null|string */
|
||||
public function getClanLogo() { return $this->clanLogo; }
|
||||
|
||||
/** @return boolean */
|
||||
public function getHijack() { return $this->hijack; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getHijackCloneGameUserId() { return $this->hijackCloneGameUserId; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/GameUserLeaveEvent.php
Normal file
53
src/Event/Game/GameUserLeaveEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class GameUserLeaveEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $leaveReason;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SGameUserLeaveEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ leaveReason = $this->leaveReason }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getLeaveReason() { return $this->leaveReason; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/HeroTalentTreeSelectedEvent.php
Normal file
53
src/Event/Game/HeroTalentTreeSelectedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class HeroTalentTreeSelectedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $index;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SHeroTalentTreeSelectedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ index = $this->index }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getIndex() { return $this->index; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/HeroTalentTreeSelectionPanelToggledEvent.php
Normal file
53
src/Event/Game/HeroTalentTreeSelectionPanelToggledEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class HeroTalentTreeSelectionPanelToggledEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var boolean */
|
||||
public $shown;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SHeroTalentTreeSelectionPanelToggledEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ shown = $this->shown }";
|
||||
}
|
||||
|
||||
/** @return boolean */
|
||||
public function getShown() { return $this->shown; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/HijackReplayGameEvent.php
Normal file
59
src/Event/Game/HijackReplayGameEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class HijackReplayGameEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var array */
|
||||
public $userInfos;
|
||||
|
||||
/** @var integer */
|
||||
public $method;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SHijackReplayGameEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ userInfos = $this->userInfos, method = $this->method }";
|
||||
}
|
||||
|
||||
/** @return array */
|
||||
public function getUserInfos() { return $this->userInfos; }
|
||||
|
||||
/** @return integer */
|
||||
public function getMethod() { return $this->method; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/LagMessageEvent.php
Normal file
53
src/Event/Game/LagMessageEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class LagMessageEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $laggingPlayerId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SLagMessageEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ laggingPlayerId = $this->laggingPlayerId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getLaggingPlayerId() { return $this->laggingPlayerId; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/LoadGameDoneEvent.php
Normal file
51
src/Event/Game/LoadGameDoneEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class LoadGameDoneEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SLoadGameDoneEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
51
src/Event/Game/PlayerLeaveEvent.php
Normal file
51
src/Event/Game/PlayerLeaveEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class PlayerLeaveEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SPlayerLeaveEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
53
src/Event/Game/ResourceRequestCancelEvent.php
Normal file
53
src/Event/Game/ResourceRequestCancelEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class ResourceRequestCancelEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $cancelRequestId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SResourceRequestCancelEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ cancelRequestId = $this->cancelRequestId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getCancelRequestId() { return $this->cancelRequestId; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/ResourceRequestEvent.php
Normal file
53
src/Event/Game/ResourceRequestEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class ResourceRequestEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var \Rogiel\StarReplay\Event\Game\Entity\ResourceRequest */
|
||||
public $resources;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SResourceRequestEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ resources = $this->resources }";
|
||||
}
|
||||
|
||||
/** @return \Rogiel\StarReplay\Event\Game\Entity\ResourceRequest */
|
||||
public function getResources() { return $this->resources; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/ResourceRequestFulfillEvent.php
Normal file
53
src/Event/Game/ResourceRequestFulfillEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class ResourceRequestFulfillEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $fulfillRequestId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SResourceRequestFulfillEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ fulfillRequestId = $this->fulfillRequestId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getFulfillRequestId() { return $this->fulfillRequestId; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/ResourceTradeEvent.php
Normal file
59
src/Event/Game/ResourceTradeEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class ResourceTradeEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $recipientId;
|
||||
|
||||
/** @var \Rogiel\StarReplay\Event\Game\Entity\ResourceRequest */
|
||||
public $resources;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SResourceTradeEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ recipientId = $this->recipientId, resources = $this->resources }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getRecipientId() { return $this->recipientId; }
|
||||
|
||||
/** @return \Rogiel\StarReplay\Event\Game\Entity\ResourceRequest */
|
||||
public function getResources() { return $this->resources; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/SaveGameDoneEvent.php
Normal file
51
src/Event/Game/SaveGameDoneEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class SaveGameDoneEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SSaveGameDoneEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
77
src/Event/Game/SaveGameEvent.php
Normal file
77
src/Event/Game/SaveGameEvent.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class SaveGameEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var string */
|
||||
public $fileName;
|
||||
|
||||
/** @var boolean */
|
||||
public $automatic;
|
||||
|
||||
/** @var boolean */
|
||||
public $overwrite;
|
||||
|
||||
/** @var string */
|
||||
public $name;
|
||||
|
||||
/** @var string */
|
||||
public $description;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SSaveGameEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ fileName = $this->fileName, automatic = $this->automatic, overwrite = $this->overwrite, name = $this->name, description = $this->description }";
|
||||
}
|
||||
|
||||
/** @return string */
|
||||
public function getFileName() { return $this->fileName; }
|
||||
|
||||
/** @return boolean */
|
||||
public function getAutomatic() { return $this->automatic; }
|
||||
|
||||
/** @return boolean */
|
||||
public function getOverwrite() { return $this->overwrite; }
|
||||
|
||||
/** @return string */
|
||||
public function getName() { return $this->name; }
|
||||
|
||||
/** @return string */
|
||||
public function getDescription() { return $this->description; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/SelectionDeltaEvent.php
Normal file
59
src/Event/Game/SelectionDeltaEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class SelectionDeltaEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $controlGroupId;
|
||||
|
||||
/** @var \Rogiel\StarReplay\Event\Game\Entity\SelectionDelta */
|
||||
public $delta;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SSelectionDeltaEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ controlGroupId = $this->controlGroupId, delta = $this->delta }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getControlGroupId() { return $this->controlGroupId; }
|
||||
|
||||
/** @return \Rogiel\StarReplay\Event\Game\Entity\SelectionDelta */
|
||||
public function getDelta() { return $this->delta; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/SelectionSyncCheckEvent.php
Normal file
59
src/Event/Game/SelectionSyncCheckEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class SelectionSyncCheckEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $controlGroupId;
|
||||
|
||||
/** @var struct */
|
||||
public $selectionSyncData;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SSelectionSyncCheckEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ controlGroupId = $this->controlGroupId, selectionSyncData = $this->selectionSyncData }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getControlGroupId() { return $this->controlGroupId; }
|
||||
|
||||
/** @return struct */
|
||||
public function getSelectionSyncData() { return $this->selectionSyncData; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/SetAbsoluteGameSpeedEvent.php
Normal file
53
src/Event/Game/SetAbsoluteGameSpeedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class SetAbsoluteGameSpeedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $speed;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.SSetAbsoluteGameSpeedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ speed = $this->speed }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getSpeed() { return $this->speed; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerAbortMissionEvent.php
Normal file
51
src/Event/Game/TriggerAbortMissionEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerAbortMissionEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerAbortMissionEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
65
src/Event/Game/TriggerAnimLengthQueryByNameEvent.php
Normal file
65
src/Event/Game/TriggerAnimLengthQueryByNameEvent.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerAnimLengthQueryByNameEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $queryId;
|
||||
|
||||
/** @var integer */
|
||||
public $lengthMs;
|
||||
|
||||
/** @var integer */
|
||||
public $finishGameLoop;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerAnimLengthQueryByNameEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ queryId = $this->queryId, lengthMs = $this->lengthMs, finishGameLoop = $this->finishGameLoop }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getQueryId() { return $this->queryId; }
|
||||
|
||||
/** @return integer */
|
||||
public function getLengthMs() { return $this->lengthMs; }
|
||||
|
||||
/** @return integer */
|
||||
public function getFinishGameLoop() { return $this->finishGameLoop; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/TriggerAnimLengthQueryByPropsEvent.php
Normal file
59
src/Event/Game/TriggerAnimLengthQueryByPropsEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerAnimLengthQueryByPropsEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $queryId;
|
||||
|
||||
/** @var integer */
|
||||
public $lengthMs;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerAnimLengthQueryByPropsEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ queryId = $this->queryId, lengthMs = $this->lengthMs }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getQueryId() { return $this->queryId; }
|
||||
|
||||
/** @return integer */
|
||||
public function getLengthMs() { return $this->lengthMs; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerAnimOffsetEvent.php
Normal file
53
src/Event/Game/TriggerAnimOffsetEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerAnimOffsetEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $animWaitQueryId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerAnimOffsetEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ animWaitQueryId = $this->animWaitQueryId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getAnimWaitQueryId() { return $this->animWaitQueryId; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerBattleReportPanelExitEvent.php
Normal file
51
src/Event/Game/TriggerBattleReportPanelExitEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerBattleReportPanelExitEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerBattleReportPanelExitEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
59
src/Event/Game/TriggerBattleReportPanelPlayMissionEvent.php
Normal file
59
src/Event/Game/TriggerBattleReportPanelPlayMissionEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerBattleReportPanelPlayMissionEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $battleReportId;
|
||||
|
||||
/** @var integer */
|
||||
public $difficultyLevel;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerBattleReportPanelPlayMissionEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ battleReportId = $this->battleReportId, difficultyLevel = $this->difficultyLevel }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getBattleReportId() { return $this->battleReportId; }
|
||||
|
||||
/** @return integer */
|
||||
public function getDifficultyLevel() { return $this->difficultyLevel; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerBattleReportPanelPlaySceneEvent.php
Normal file
53
src/Event/Game/TriggerBattleReportPanelPlaySceneEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerBattleReportPanelPlaySceneEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $battleReportId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerBattleReportPanelPlaySceneEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ battleReportId = $this->battleReportId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getBattleReportId() { return $this->battleReportId; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerBattleReportPanelSelectionChangedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $battleReportId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerBattleReportPanelSelectionChangedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ battleReportId = $this->battleReportId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getBattleReportId() { return $this->battleReportId; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerButtonPressedEvent.php
Normal file
53
src/Event/Game/TriggerButtonPressedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerButtonPressedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $button;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerButtonPressedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ button = $this->button }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getButton() { return $this->button; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerCameraMoveEvent.php
Normal file
53
src/Event/Game/TriggerCameraMoveEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerCameraMoveEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var array */
|
||||
public $reason;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerCameraMoveEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ reason = $this->reason }";
|
||||
}
|
||||
|
||||
/** @return array */
|
||||
public function getReason() { return $this->reason; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerChatMessageEvent.php
Normal file
53
src/Event/Game/TriggerChatMessageEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerChatMessageEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var string */
|
||||
public $chatMessage;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerChatMessageEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ chatMessage = $this->chatMessage }";
|
||||
}
|
||||
|
||||
/** @return string */
|
||||
public function getChatMessage() { return $this->chatMessage; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/TriggerCommandErrorEvent.php
Normal file
59
src/Event/Game/TriggerCommandErrorEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerCommandErrorEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $error;
|
||||
|
||||
/** @var null|\Rogiel\StarReplay\Event\Game\Entity\Ability */
|
||||
public $abil;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerCommandErrorEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ error = $this->error, abil = $this->abil }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getError() { return $this->error; }
|
||||
|
||||
/** @return null|\Rogiel\StarReplay\Event\Game\Entity\Ability */
|
||||
public function getAbil() { return $this->abil; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerConversationSkippedEvent.php
Normal file
53
src/Event/Game/TriggerConversationSkippedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerConversationSkippedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $skipType;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerConversationSkippedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ skipType = $this->skipType }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getSkipType() { return $this->skipType; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerCustomDialogDismissedEvent.php
Normal file
53
src/Event/Game/TriggerCustomDialogDismissedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerCustomDialogDismissedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $result;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerCustomDialogDismissedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ result = $this->result }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getResult() { return $this->result; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/TriggerCutsceneBookmarkFiredEvent.php
Normal file
59
src/Event/Game/TriggerCutsceneBookmarkFiredEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerCutsceneBookmarkFiredEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $cutsceneId;
|
||||
|
||||
/** @var string */
|
||||
public $bookmarkName;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerCutsceneBookmarkFiredEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ cutsceneId = $this->cutsceneId, bookmarkName = $this->bookmarkName }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getCutsceneId() { return $this->cutsceneId; }
|
||||
|
||||
/** @return string */
|
||||
public function getBookmarkName() { return $this->bookmarkName; }
|
||||
|
||||
}
|
||||
65
src/Event/Game/TriggerCutsceneConversationLineEvent.php
Normal file
65
src/Event/Game/TriggerCutsceneConversationLineEvent.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerCutsceneConversationLineEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $cutsceneId;
|
||||
|
||||
/** @var string */
|
||||
public $conversationLine;
|
||||
|
||||
/** @var string */
|
||||
public $altConversationLine;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerCutsceneConversationLineEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ cutsceneId = $this->cutsceneId, conversationLine = $this->conversationLine, altConversationLine = $this->altConversationLine }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getCutsceneId() { return $this->cutsceneId; }
|
||||
|
||||
/** @return string */
|
||||
public function getConversationLine() { return $this->conversationLine; }
|
||||
|
||||
/** @return string */
|
||||
public function getAltConversationLine() { return $this->altConversationLine; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerCutsceneConversationLineMissingEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $cutsceneId;
|
||||
|
||||
/** @var string */
|
||||
public $conversationLine;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerCutsceneConversationLineMissingEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ cutsceneId = $this->cutsceneId, conversationLine = $this->conversationLine }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getCutsceneId() { return $this->cutsceneId; }
|
||||
|
||||
/** @return string */
|
||||
public function getConversationLine() { return $this->conversationLine; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerCutsceneEndSceneFiredEvent.php
Normal file
53
src/Event/Game/TriggerCutsceneEndSceneFiredEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerCutsceneEndSceneFiredEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $cutsceneId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerCutsceneEndSceneFiredEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ cutsceneId = $this->cutsceneId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getCutsceneId() { return $this->cutsceneId; }
|
||||
|
||||
}
|
||||
65
src/Event/Game/TriggerDialogControlEvent.php
Normal file
65
src/Event/Game/TriggerDialogControlEvent.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerDialogControlEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $controlId;
|
||||
|
||||
/** @var integer */
|
||||
public $eventType;
|
||||
|
||||
/** @var null|boolean|integer|integer|string|integer */
|
||||
public $eventData;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerDialogControlEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ controlId = $this->controlId, eventType = $this->eventType, eventData = $this->eventData }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getControlId() { return $this->controlId; }
|
||||
|
||||
/** @return integer */
|
||||
public function getEventType() { return $this->eventType; }
|
||||
|
||||
/** @return null|boolean|integer|integer|string|integer */
|
||||
public function getEventData() { return $this->eventData; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerGameCreditsFinishedEvent.php
Normal file
51
src/Event/Game/TriggerGameCreditsFinishedEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerGameCreditsFinishedEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerGameCreditsFinishedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerGameMenuItemSelectedEvent.php
Normal file
53
src/Event/Game/TriggerGameMenuItemSelectedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerGameMenuItemSelectedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $gameMenuItemIndex;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerGameMenuItemSelectedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ gameMenuItemIndex = $this->gameMenuItemIndex }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getGameMenuItemIndex() { return $this->gameMenuItemIndex; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/TriggerHotkeyPressedEvent.php
Normal file
59
src/Event/Game/TriggerHotkeyPressedEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerHotkeyPressedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $hotkey;
|
||||
|
||||
/** @var boolean */
|
||||
public $down;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerHotkeyPressedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ hotkey = $this->hotkey, down = $this->down }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getHotkey() { return $this->hotkey; }
|
||||
|
||||
/** @return boolean */
|
||||
public function getDown() { return $this->down; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/TriggerKeyPressedEvent.php
Normal file
59
src/Event/Game/TriggerKeyPressedEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerKeyPressedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $key;
|
||||
|
||||
/** @var integer */
|
||||
public $flags;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerKeyPressedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ key = $this->key, flags = $this->flags }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getKey() { return $this->key; }
|
||||
|
||||
/** @return integer */
|
||||
public function getFlags() { return $this->flags; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerMercenaryPanelExitEvent.php
Normal file
51
src/Event/Game/TriggerMercenaryPanelExitEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerMercenaryPanelExitEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerMercenaryPanelExitEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerMercenaryPanelPurchaseEvent.php
Normal file
51
src/Event/Game/TriggerMercenaryPanelPurchaseEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerMercenaryPanelPurchaseEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerMercenaryPanelPurchaseEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerMercenaryPanelSelectionChangedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $mercenaryId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerMercenaryPanelSelectionChangedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ mercenaryId = $this->mercenaryId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getMercenaryId() { return $this->mercenaryId; }
|
||||
|
||||
}
|
||||
77
src/Event/Game/TriggerMouseClickedEvent.php
Normal file
77
src/Event/Game/TriggerMouseClickedEvent.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerMouseClickedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $button;
|
||||
|
||||
/** @var boolean */
|
||||
public $down;
|
||||
|
||||
/** @var \Rogiel\StarReplay\Entity\Point */
|
||||
public $posUI;
|
||||
|
||||
/** @var \Rogiel\StarReplay\Entity\Point */
|
||||
public $posWorld;
|
||||
|
||||
/** @var integer */
|
||||
public $flags;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerMouseClickedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ button = $this->button, down = $this->down, posUI = $this->posUI, posWorld = $this->posWorld, flags = $this->flags }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getButton() { return $this->button; }
|
||||
|
||||
/** @return boolean */
|
||||
public function getDown() { return $this->down; }
|
||||
|
||||
/** @return \Rogiel\StarReplay\Entity\Point */
|
||||
public function getPosUI() { return $this->posUI; }
|
||||
|
||||
/** @return \Rogiel\StarReplay\Entity\Point */
|
||||
public function getPosWorld() { return $this->posWorld; }
|
||||
|
||||
/** @return integer */
|
||||
public function getFlags() { return $this->flags; }
|
||||
|
||||
}
|
||||
65
src/Event/Game/TriggerMouseMovedEvent.php
Normal file
65
src/Event/Game/TriggerMouseMovedEvent.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerMouseMovedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var \Rogiel\StarReplay\Entity\Point */
|
||||
public $posUI;
|
||||
|
||||
/** @var \Rogiel\StarReplay\Entity\Point */
|
||||
public $posWorld;
|
||||
|
||||
/** @var integer */
|
||||
public $flags;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerMouseMovedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ posUI = $this->posUI, posWorld = $this->posWorld, flags = $this->flags }";
|
||||
}
|
||||
|
||||
/** @return \Rogiel\StarReplay\Entity\Point */
|
||||
public function getPosUI() { return $this->posUI; }
|
||||
|
||||
/** @return \Rogiel\StarReplay\Entity\Point */
|
||||
public function getPosWorld() { return $this->posWorld; }
|
||||
|
||||
/** @return integer */
|
||||
public function getFlags() { return $this->flags; }
|
||||
|
||||
}
|
||||
59
src/Event/Game/TriggerMouseWheelEvent.php
Normal file
59
src/Event/Game/TriggerMouseWheelEvent.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerMouseWheelEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $wheelSpin;
|
||||
|
||||
/** @var integer */
|
||||
public $flags;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerMouseWheelEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ wheelSpin = $this->wheelSpin, flags = $this->flags }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getWheelSpin() { return $this->wheelSpin; }
|
||||
|
||||
/** @return integer */
|
||||
public function getFlags() { return $this->flags; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerMovieFinishedEvent.php
Normal file
51
src/Event/Game/TriggerMovieFinishedEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerMovieFinishedEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerMovieFinishedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerMovieFunctionEvent.php
Normal file
53
src/Event/Game/TriggerMovieFunctionEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerMovieFunctionEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var string */
|
||||
public $functionName;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerMovieFunctionEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ functionName = $this->functionName }";
|
||||
}
|
||||
|
||||
/** @return string */
|
||||
public function getFunctionName() { return $this->functionName; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerMovieStartedEvent.php
Normal file
51
src/Event/Game/TriggerMovieStartedEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerMovieStartedEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerMovieStartedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
101
src/Event/Game/TriggerPingEvent.php
Normal file
101
src/Event/Game/TriggerPingEvent.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerPingEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var \Rogiel\StarReplay\Entity\Point */
|
||||
public $point;
|
||||
|
||||
/** @var integer */
|
||||
public $unit;
|
||||
|
||||
/** @var integer */
|
||||
public $unitLink;
|
||||
|
||||
/** @var null|integer */
|
||||
public $unitControlPlayerId;
|
||||
|
||||
/** @var null|integer */
|
||||
public $unitUpkeepPlayerId;
|
||||
|
||||
/** @var \Rogiel\StarReplay\Entity\Point */
|
||||
public $unitPosition;
|
||||
|
||||
/** @var boolean */
|
||||
public $unitIsUnderConstruction;
|
||||
|
||||
/** @var boolean */
|
||||
public $pingedMinimap;
|
||||
|
||||
/** @var integer */
|
||||
public $option;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerPingEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ point = $this->point, unit = $this->unit, unitLink = $this->unitLink, unitControlPlayerId = $this->unitControlPlayerId, unitUpkeepPlayerId = $this->unitUpkeepPlayerId, unitPosition = $this->unitPosition, unitIsUnderConstruction = $this->unitIsUnderConstruction, pingedMinimap = $this->pingedMinimap, option = $this->option }";
|
||||
}
|
||||
|
||||
/** @return \Rogiel\StarReplay\Entity\Point */
|
||||
public function getPoint() { return $this->point; }
|
||||
|
||||
/** @return integer */
|
||||
public function getUnit() { return $this->unit; }
|
||||
|
||||
/** @return integer */
|
||||
public function getUnitLink() { return $this->unitLink; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getUnitControlPlayerId() { return $this->unitControlPlayerId; }
|
||||
|
||||
/** @return null|integer */
|
||||
public function getUnitUpkeepPlayerId() { return $this->unitUpkeepPlayerId; }
|
||||
|
||||
/** @return \Rogiel\StarReplay\Entity\Point */
|
||||
public function getUnitPosition() { return $this->unitPosition; }
|
||||
|
||||
/** @return boolean */
|
||||
public function getUnitIsUnderConstruction() { return $this->unitIsUnderConstruction; }
|
||||
|
||||
/** @return boolean */
|
||||
public function getPingedMinimap() { return $this->pingedMinimap; }
|
||||
|
||||
/** @return integer */
|
||||
public function getOption() { return $this->option; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerPlanetMissionLaunchedEvent.php
Normal file
53
src/Event/Game/TriggerPlanetMissionLaunchedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerPlanetMissionLaunchedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $difficultyLevel;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerPlanetMissionLaunchedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ difficultyLevel = $this->difficultyLevel }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getDifficultyLevel() { return $this->difficultyLevel; }
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerPlanetMissionSelectedEvent.php
Normal file
53
src/Event/Game/TriggerPlanetMissionSelectedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerPlanetMissionSelectedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $planetId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerPlanetMissionSelectedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ planetId = $this->planetId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getPlanetId() { return $this->planetId; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerPlanetPanelBirthCompleteEvent.php
Normal file
51
src/Event/Game/TriggerPlanetPanelBirthCompleteEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerPlanetPanelBirthCompleteEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerPlanetPanelBirthCompleteEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerPlanetPanelCanceledEvent.php
Normal file
51
src/Event/Game/TriggerPlanetPanelCanceledEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerPlanetPanelCanceledEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerPlanetPanelCanceledEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerPlanetPanelDeathCompleteEvent.php
Normal file
51
src/Event/Game/TriggerPlanetPanelDeathCompleteEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerPlanetPanelDeathCompleteEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerPlanetPanelDeathCompleteEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerPlanetPanelReplayEvent.php
Normal file
51
src/Event/Game/TriggerPlanetPanelReplayEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerPlanetPanelReplayEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerPlanetPanelReplayEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
53
src/Event/Game/TriggerPortraitLoadedEvent.php
Normal file
53
src/Event/Game/TriggerPortraitLoadedEvent.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerPortraitLoadedEvent extends AbstractGameEvent {
|
||||
|
||||
/** @var integer */
|
||||
public $portraitId;
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerPortraitLoadedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ portraitId = $this->portraitId }";
|
||||
}
|
||||
|
||||
/** @return integer */
|
||||
public function getPortraitId() { return $this->portraitId; }
|
||||
|
||||
}
|
||||
51
src/Event/Game/TriggerProfilerLoggingFinishedEvent.php
Normal file
51
src/Event/Game/TriggerProfilerLoggingFinishedEvent.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2016, Rogiel Sulzbach
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Rogiel\StarReplay\Event\Game;
|
||||
|
||||
class TriggerProfilerLoggingFinishedEvent extends AbstractGameEvent {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return string the event name
|
||||
*/
|
||||
public function getEventName() {
|
||||
return "NNet.Game.STriggerProfilerLoggingFinishedEvent";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a string representation of the event
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->getEventName()."{ }";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user