| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: proto/game.proto
- namespace Uraus\Kku\Common;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * 宠物状态简单版
- *
- * Generated from protobuf message <code>uraus.kku.Common.DataPetSimple</code>
- */
- class DataPetSimple extends \Google\Protobuf\Internal\Message
- {
- /**
- * 宠物唯一id
- *
- * Generated from protobuf field <code>int64 id = 1;</code>
- */
- protected $id = 0;
- /**
- *宠物名称
- *
- * Generated from protobuf field <code>string name = 3;</code>
- */
- protected $name = '';
- /**
- *宠物等级
- *
- * Generated from protobuf field <code>int64 level = 4;</code>
- */
- protected $level = 0;
- /**
- *宠物经验值
- *
- * Generated from protobuf field <code>int64 exp = 5;</code>
- */
- protected $exp = 0;
- /**
- *宠物体力
- *
- * Generated from protobuf field <code>int64 power = 6;</code>
- */
- protected $power = 0;
- /**
- * 宠物状态
- *
- * Generated from protobuf field <code>int64 status = 10;</code>
- */
- protected $status = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $id
- * 宠物唯一id
- * @type string $name
- * 宠物名称
- * @type int|string $level
- * 宠物等级
- * @type int|string $exp
- * 宠物经验值
- * @type int|string $power
- * 宠物体力
- * @type int|string $status
- * 宠物状态
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Proto\Game::initOnce();
- parent::__construct($data);
- }
- /**
- * 宠物唯一id
- *
- * Generated from protobuf field <code>int64 id = 1;</code>
- * @return int|string
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * 宠物唯一id
- *
- * Generated from protobuf field <code>int64 id = 1;</code>
- * @param int|string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkInt64($var);
- $this->id = $var;
- return $this;
- }
- /**
- *宠物名称
- *
- * Generated from protobuf field <code>string name = 3;</code>
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- *宠物名称
- *
- * Generated from protobuf field <code>string name = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
- return $this;
- }
- /**
- *宠物等级
- *
- * Generated from protobuf field <code>int64 level = 4;</code>
- * @return int|string
- */
- public function getLevel()
- {
- return $this->level;
- }
- /**
- *宠物等级
- *
- * Generated from protobuf field <code>int64 level = 4;</code>
- * @param int|string $var
- * @return $this
- */
- public function setLevel($var)
- {
- GPBUtil::checkInt64($var);
- $this->level = $var;
- return $this;
- }
- /**
- *宠物经验值
- *
- * Generated from protobuf field <code>int64 exp = 5;</code>
- * @return int|string
- */
- public function getExp()
- {
- return $this->exp;
- }
- /**
- *宠物经验值
- *
- * Generated from protobuf field <code>int64 exp = 5;</code>
- * @param int|string $var
- * @return $this
- */
- public function setExp($var)
- {
- GPBUtil::checkInt64($var);
- $this->exp = $var;
- return $this;
- }
- /**
- *宠物体力
- *
- * Generated from protobuf field <code>int64 power = 6;</code>
- * @return int|string
- */
- public function getPower()
- {
- return $this->power;
- }
- /**
- *宠物体力
- *
- * Generated from protobuf field <code>int64 power = 6;</code>
- * @param int|string $var
- * @return $this
- */
- public function setPower($var)
- {
- GPBUtil::checkInt64($var);
- $this->power = $var;
- return $this;
- }
- /**
- * 宠物状态
- *
- * Generated from protobuf field <code>int64 status = 10;</code>
- * @return int|string
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * 宠物状态
- *
- * Generated from protobuf field <code>int64 status = 10;</code>
- * @param int|string $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkInt64($var);
- $this->status = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(DataPetSimple::class, \Uraus\Kku\Common_DataPetSimple::class);
|