| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: proto/game.proto
- namespace Uraus\Kku\Common;
- use UnexpectedValueException;
- /**
- * 种子阶段(生长周期)
- *
- * Protobuf type <code>uraus.kku.Common.SEED_STATUS</code>
- */
- class SEED_STATUS
- {
- /**
- * 默认
- *
- * Generated from protobuf enum <code>SEED_STATUS_NODE = 0;</code>
- */
- const SEED_STATUS_NODE = 0;
- /**
- * 种子期
- *
- * Generated from protobuf enum <code>SEEN_STAGE = 1;</code>
- */
- const SEEN_STAGE = 1;
- /**
- * 发芽
- *
- * Generated from protobuf enum <code>SPROUTING_STAGE = 20;</code>
- */
- const SPROUTING_STAGE = 20;
- /**
- * 成长
- *
- * Generated from protobuf enum <code>GROWING_STAGE = 30;</code>
- */
- const GROWING_STAGE = 30;
- /**
- * 成熟
- *
- * Generated from protobuf enum <code>MATURE_STAGE = 40;</code>
- */
- const MATURE_STAGE = 40;
- /**
- * 枯萎
- *
- * Generated from protobuf enum <code>WITHERED_STAGE = 50;</code>
- */
- const WITHERED_STAGE = 50;
- private static $valueToName = [
- self::SEED_STATUS_NODE => 'SEED_STATUS_NODE',
- self::SEEN_STAGE => 'SEEN_STAGE',
- self::SPROUTING_STAGE => 'SPROUTING_STAGE',
- self::GROWING_STAGE => 'GROWING_STAGE',
- self::MATURE_STAGE => 'MATURE_STAGE',
- self::WITHERED_STAGE => 'WITHERED_STAGE',
- ];
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(SEED_STATUS::class, \Uraus\Kku\Common_SEED_STATUS::class);
|