| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584 |
- <?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.DataLand</code>
- */
- class DataLand extends \Google\Protobuf\Internal\Message
- {
- /**
- *土地ID
- *
- * Generated from protobuf field <code>int64 id = 1;</code>
- */
- protected $id = 0;
- /**
- * 土地索引(几号地块)
- *
- * Generated from protobuf field <code>int64 index = 2;</code>
- */
- protected $index = 0;
- /**
- *是否需要 除草
- *
- * Generated from protobuf field <code>bool need_weed = 3;</code>
- */
- protected $need_weed = false;
- /**
- *是否需要 除虫
- *
- * Generated from protobuf field <code>bool need_pest_control = 4;</code>
- */
- protected $need_pest_control = false;
- /**
- *是否需要 浇水
- *
- * Generated from protobuf field <code>bool need_watering = 5;</code>
- */
- protected $need_watering = false;
- /**
- *土地的等级
- *
- * Generated from protobuf field <code>int64 level = 6;</code>
- */
- protected $level = 0;
- /**
- * 土地阶段
- *
- * Generated from protobuf field <code>.uraus.kku.Common.LAND_STATUS status = 7;</code>
- */
- protected $status = 0;
- /**
- * 是否可以施肥
- *
- * Generated from protobuf field <code>bool can_fertilization = 8;</code>
- */
- protected $can_fertilization = false;
- /**
- * 降级时间,时间戳
- *
- * Generated from protobuf field <code>int64 downgrade_time = 9;</code>
- */
- protected $downgrade_time = 0;
- /**
- * 种子 start
- * 种子种下的时间
- *
- * Generated from protobuf field <code>int64 seed_planting_times = 30;</code>
- */
- protected $seed_planting_times = 0;
- /**
- * 种子ID
- *
- * Generated from protobuf field <code>int64 seed_id = 31;</code>
- */
- protected $seed_id = 0;
- /**
- * 果实ID
- *
- * Generated from protobuf field <code>int64 fruit_id = 32;</code>
- */
- protected $fruit_id = 0;
- /**
- * 植株ID
- *
- * Generated from protobuf field <code>int64 plant_id = 33;</code>
- */
- protected $plant_id = 0;
- /**
- * 种子状态
- *
- * Generated from protobuf field <code>.uraus.kku.Common.SEED_STATUS seed_status = 34;</code>
- */
- protected $seed_status = 0;
- /**
- * 当前阶段开始时间
- *
- * Generated from protobuf field <code>int64 stage_start_times = 35;</code>
- */
- protected $stage_start_times = 0;
- /**
- * 当前阶段结束时间
- *
- * Generated from protobuf field <code>int64 stage_next_times = 36;</code>
- */
- protected $stage_next_times = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $id
- * 土地ID
- * @type int|string $index
- * 土地索引(几号地块)
- * @type bool $need_weed
- * 是否需要 除草
- * @type bool $need_pest_control
- * 是否需要 除虫
- * @type bool $need_watering
- * 是否需要 浇水
- * @type int|string $level
- * 土地的等级
- * @type int $status
- * 土地阶段
- * @type bool $can_fertilization
- * 是否可以施肥
- * @type int|string $downgrade_time
- * 降级时间,时间戳
- * @type int|string $seed_planting_times
- * 种子 start
- * 种子种下的时间
- * @type int|string $seed_id
- * 种子ID
- * @type int|string $fruit_id
- * 果实ID
- * @type int|string $plant_id
- * 植株ID
- * @type int $seed_status
- * 种子状态
- * @type int|string $stage_start_times
- * 当前阶段开始时间
- * @type int|string $stage_next_times
- * 当前阶段结束时间
- * }
- */
- 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>int64 index = 2;</code>
- * @return int|string
- */
- public function getIndex()
- {
- return $this->index;
- }
- /**
- * 土地索引(几号地块)
- *
- * Generated from protobuf field <code>int64 index = 2;</code>
- * @param int|string $var
- * @return $this
- */
- public function setIndex($var)
- {
- GPBUtil::checkInt64($var);
- $this->index = $var;
- return $this;
- }
- /**
- *是否需要 除草
- *
- * Generated from protobuf field <code>bool need_weed = 3;</code>
- * @return bool
- */
- public function getNeedWeed()
- {
- return $this->need_weed;
- }
- /**
- *是否需要 除草
- *
- * Generated from protobuf field <code>bool need_weed = 3;</code>
- * @param bool $var
- * @return $this
- */
- public function setNeedWeed($var)
- {
- GPBUtil::checkBool($var);
- $this->need_weed = $var;
- return $this;
- }
- /**
- *是否需要 除虫
- *
- * Generated from protobuf field <code>bool need_pest_control = 4;</code>
- * @return bool
- */
- public function getNeedPestControl()
- {
- return $this->need_pest_control;
- }
- /**
- *是否需要 除虫
- *
- * Generated from protobuf field <code>bool need_pest_control = 4;</code>
- * @param bool $var
- * @return $this
- */
- public function setNeedPestControl($var)
- {
- GPBUtil::checkBool($var);
- $this->need_pest_control = $var;
- return $this;
- }
- /**
- *是否需要 浇水
- *
- * Generated from protobuf field <code>bool need_watering = 5;</code>
- * @return bool
- */
- public function getNeedWatering()
- {
- return $this->need_watering;
- }
- /**
- *是否需要 浇水
- *
- * Generated from protobuf field <code>bool need_watering = 5;</code>
- * @param bool $var
- * @return $this
- */
- public function setNeedWatering($var)
- {
- GPBUtil::checkBool($var);
- $this->need_watering = $var;
- return $this;
- }
- /**
- *土地的等级
- *
- * Generated from protobuf field <code>int64 level = 6;</code>
- * @return int|string
- */
- public function getLevel()
- {
- return $this->level;
- }
- /**
- *土地的等级
- *
- * Generated from protobuf field <code>int64 level = 6;</code>
- * @param int|string $var
- * @return $this
- */
- public function setLevel($var)
- {
- GPBUtil::checkInt64($var);
- $this->level = $var;
- return $this;
- }
- /**
- * 土地阶段
- *
- * Generated from protobuf field <code>.uraus.kku.Common.LAND_STATUS status = 7;</code>
- * @return int
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * 土地阶段
- *
- * Generated from protobuf field <code>.uraus.kku.Common.LAND_STATUS status = 7;</code>
- * @param int $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkEnum($var, \Uraus\Kku\Common\LAND_STATUS::class);
- $this->status = $var;
- return $this;
- }
- /**
- * 是否可以施肥
- *
- * Generated from protobuf field <code>bool can_fertilization = 8;</code>
- * @return bool
- */
- public function getCanFertilization()
- {
- return $this->can_fertilization;
- }
- /**
- * 是否可以施肥
- *
- * Generated from protobuf field <code>bool can_fertilization = 8;</code>
- * @param bool $var
- * @return $this
- */
- public function setCanFertilization($var)
- {
- GPBUtil::checkBool($var);
- $this->can_fertilization = $var;
- return $this;
- }
- /**
- * 降级时间,时间戳
- *
- * Generated from protobuf field <code>int64 downgrade_time = 9;</code>
- * @return int|string
- */
- public function getDowngradeTime()
- {
- return $this->downgrade_time;
- }
- /**
- * 降级时间,时间戳
- *
- * Generated from protobuf field <code>int64 downgrade_time = 9;</code>
- * @param int|string $var
- * @return $this
- */
- public function setDowngradeTime($var)
- {
- GPBUtil::checkInt64($var);
- $this->downgrade_time = $var;
- return $this;
- }
- /**
- * 种子 start
- * 种子种下的时间
- *
- * Generated from protobuf field <code>int64 seed_planting_times = 30;</code>
- * @return int|string
- */
- public function getSeedPlantingTimes()
- {
- return $this->seed_planting_times;
- }
- /**
- * 种子 start
- * 种子种下的时间
- *
- * Generated from protobuf field <code>int64 seed_planting_times = 30;</code>
- * @param int|string $var
- * @return $this
- */
- public function setSeedPlantingTimes($var)
- {
- GPBUtil::checkInt64($var);
- $this->seed_planting_times = $var;
- return $this;
- }
- /**
- * 种子ID
- *
- * Generated from protobuf field <code>int64 seed_id = 31;</code>
- * @return int|string
- */
- public function getSeedId()
- {
- return $this->seed_id;
- }
- /**
- * 种子ID
- *
- * Generated from protobuf field <code>int64 seed_id = 31;</code>
- * @param int|string $var
- * @return $this
- */
- public function setSeedId($var)
- {
- GPBUtil::checkInt64($var);
- $this->seed_id = $var;
- return $this;
- }
- /**
- * 果实ID
- *
- * Generated from protobuf field <code>int64 fruit_id = 32;</code>
- * @return int|string
- */
- public function getFruitId()
- {
- return $this->fruit_id;
- }
- /**
- * 果实ID
- *
- * Generated from protobuf field <code>int64 fruit_id = 32;</code>
- * @param int|string $var
- * @return $this
- */
- public function setFruitId($var)
- {
- GPBUtil::checkInt64($var);
- $this->fruit_id = $var;
- return $this;
- }
- /**
- * 植株ID
- *
- * Generated from protobuf field <code>int64 plant_id = 33;</code>
- * @return int|string
- */
- public function getPlantId()
- {
- return $this->plant_id;
- }
- /**
- * 植株ID
- *
- * Generated from protobuf field <code>int64 plant_id = 33;</code>
- * @param int|string $var
- * @return $this
- */
- public function setPlantId($var)
- {
- GPBUtil::checkInt64($var);
- $this->plant_id = $var;
- return $this;
- }
- /**
- * 种子状态
- *
- * Generated from protobuf field <code>.uraus.kku.Common.SEED_STATUS seed_status = 34;</code>
- * @return int
- */
- public function getSeedStatus()
- {
- return $this->seed_status;
- }
- /**
- * 种子状态
- *
- * Generated from protobuf field <code>.uraus.kku.Common.SEED_STATUS seed_status = 34;</code>
- * @param int $var
- * @return $this
- */
- public function setSeedStatus($var)
- {
- GPBUtil::checkEnum($var, \Uraus\Kku\Common\SEED_STATUS::class);
- $this->seed_status = $var;
- return $this;
- }
- /**
- * 当前阶段开始时间
- *
- * Generated from protobuf field <code>int64 stage_start_times = 35;</code>
- * @return int|string
- */
- public function getStageStartTimes()
- {
- return $this->stage_start_times;
- }
- /**
- * 当前阶段开始时间
- *
- * Generated from protobuf field <code>int64 stage_start_times = 35;</code>
- * @param int|string $var
- * @return $this
- */
- public function setStageStartTimes($var)
- {
- GPBUtil::checkInt64($var);
- $this->stage_start_times = $var;
- return $this;
- }
- /**
- * 当前阶段结束时间
- *
- * Generated from protobuf field <code>int64 stage_next_times = 36;</code>
- * @return int|string
- */
- public function getStageNextTimes()
- {
- return $this->stage_next_times;
- }
- /**
- * 当前阶段结束时间
- *
- * Generated from protobuf field <code>int64 stage_next_times = 36;</code>
- * @param int|string $var
- * @return $this
- */
- public function setStageNextTimes($var)
- {
- GPBUtil::checkInt64($var);
- $this->stage_next_times = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(DataLand::class, \Uraus\Kku\Common_DataLand::class);
|