| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <?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.PetLifeSkill</code>
- */
- class PetLifeSkill extends \Google\Protobuf\Internal\Message
- {
- /**
- * 技能ID
- *
- * Generated from protobuf field <code>int32 skill_id = 1;</code>
- */
- protected $skill_id = 0;
- /**
- *是否可以使用
- *
- * Generated from protobuf field <code>bool canuse = 2;</code>
- */
- protected $canuse = false;
- /**
- *剩余时间
- *
- * Generated from protobuf field <code>int64 curnum = 3;</code>
- */
- protected $curnum = 0;
- /**
- *技能最大时间
- *
- * Generated from protobuf field <code>int64 maxnum = 4;</code>
- */
- protected $maxnum = 0;
- /**
- * 技能到期 时间戳
- *
- * Generated from protobuf field <code>int64 end_times = 5;</code>
- */
- protected $end_times = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $skill_id
- * 技能ID
- * @type bool $canuse
- * 是否可以使用
- * @type int|string $curnum
- * 剩余时间
- * @type int|string $maxnum
- * 技能最大时间
- * @type int|string $end_times
- * 技能到期 时间戳
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Proto\Game::initOnce();
- parent::__construct($data);
- }
- /**
- * 技能ID
- *
- * Generated from protobuf field <code>int32 skill_id = 1;</code>
- * @return int
- */
- public function getSkillId()
- {
- return $this->skill_id;
- }
- /**
- * 技能ID
- *
- * Generated from protobuf field <code>int32 skill_id = 1;</code>
- * @param int $var
- * @return $this
- */
- public function setSkillId($var)
- {
- GPBUtil::checkInt32($var);
- $this->skill_id = $var;
- return $this;
- }
- /**
- *是否可以使用
- *
- * Generated from protobuf field <code>bool canuse = 2;</code>
- * @return bool
- */
- public function getCanuse()
- {
- return $this->canuse;
- }
- /**
- *是否可以使用
- *
- * Generated from protobuf field <code>bool canuse = 2;</code>
- * @param bool $var
- * @return $this
- */
- public function setCanuse($var)
- {
- GPBUtil::checkBool($var);
- $this->canuse = $var;
- return $this;
- }
- /**
- *剩余时间
- *
- * Generated from protobuf field <code>int64 curnum = 3;</code>
- * @return int|string
- */
- public function getCurnum()
- {
- return $this->curnum;
- }
- /**
- *剩余时间
- *
- * Generated from protobuf field <code>int64 curnum = 3;</code>
- * @param int|string $var
- * @return $this
- */
- public function setCurnum($var)
- {
- GPBUtil::checkInt64($var);
- $this->curnum = $var;
- return $this;
- }
- /**
- *技能最大时间
- *
- * Generated from protobuf field <code>int64 maxnum = 4;</code>
- * @return int|string
- */
- public function getMaxnum()
- {
- return $this->maxnum;
- }
- /**
- *技能最大时间
- *
- * Generated from protobuf field <code>int64 maxnum = 4;</code>
- * @param int|string $var
- * @return $this
- */
- public function setMaxnum($var)
- {
- GPBUtil::checkInt64($var);
- $this->maxnum = $var;
- return $this;
- }
- /**
- * 技能到期 时间戳
- *
- * Generated from protobuf field <code>int64 end_times = 5;</code>
- * @return int|string
- */
- public function getEndTimes()
- {
- return $this->end_times;
- }
- /**
- * 技能到期 时间戳
- *
- * Generated from protobuf field <code>int64 end_times = 5;</code>
- * @param int|string $var
- * @return $this
- */
- public function setEndTimes($var)
- {
- GPBUtil::checkInt64($var);
- $this->end_times = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(PetLifeSkill::class, \Uraus\Kku\Common_PetLifeSkill::class);
|