server time
parent
6f848bd96e
commit
441383e134
|
|
@ -17,6 +17,7 @@ local PLAYER_HEAD_FIELD = protobuf.FieldDescriptor();
|
||||||
local PLAYER_CURMAPID_FIELD = protobuf.FieldDescriptor();
|
local PLAYER_CURMAPID_FIELD = protobuf.FieldDescriptor();
|
||||||
local PLAYER_ENERGY_FIELD = protobuf.FieldDescriptor();
|
local PLAYER_ENERGY_FIELD = protobuf.FieldDescriptor();
|
||||||
local PLAYER_LASTUPDATEENERGYTIME_FIELD = protobuf.FieldDescriptor();
|
local PLAYER_LASTUPDATEENERGYTIME_FIELD = protobuf.FieldDescriptor();
|
||||||
|
local PLAYER_SERVERTIME_FIELD = protobuf.FieldDescriptor();
|
||||||
ITEM = protobuf.Descriptor();
|
ITEM = protobuf.Descriptor();
|
||||||
local ITEM_ITEMID_FIELD = protobuf.FieldDescriptor();
|
local ITEM_ITEMID_FIELD = protobuf.FieldDescriptor();
|
||||||
local ITEM_ITEMNUM_FIELD = protobuf.FieldDescriptor();
|
local ITEM_ITEMNUM_FIELD = protobuf.FieldDescriptor();
|
||||||
|
|
@ -240,11 +241,21 @@ PLAYER_LASTUPDATEENERGYTIME_FIELD.default_value = 0
|
||||||
PLAYER_LASTUPDATEENERGYTIME_FIELD.type = 5
|
PLAYER_LASTUPDATEENERGYTIME_FIELD.type = 5
|
||||||
PLAYER_LASTUPDATEENERGYTIME_FIELD.cpp_type = 1
|
PLAYER_LASTUPDATEENERGYTIME_FIELD.cpp_type = 1
|
||||||
|
|
||||||
|
PLAYER_SERVERTIME_FIELD.name = "serverTime"
|
||||||
|
PLAYER_SERVERTIME_FIELD.full_name = ".com.ljsd.jieling.protocols.Player.serverTime"
|
||||||
|
PLAYER_SERVERTIME_FIELD.number = 11
|
||||||
|
PLAYER_SERVERTIME_FIELD.index = 10
|
||||||
|
PLAYER_SERVERTIME_FIELD.label = 1
|
||||||
|
PLAYER_SERVERTIME_FIELD.has_default_value = false
|
||||||
|
PLAYER_SERVERTIME_FIELD.default_value = 0
|
||||||
|
PLAYER_SERVERTIME_FIELD.type = 5
|
||||||
|
PLAYER_SERVERTIME_FIELD.cpp_type = 1
|
||||||
|
|
||||||
PLAYER.name = "Player"
|
PLAYER.name = "Player"
|
||||||
PLAYER.full_name = ".com.ljsd.jieling.protocols.Player"
|
PLAYER.full_name = ".com.ljsd.jieling.protocols.Player"
|
||||||
PLAYER.nested_types = {}
|
PLAYER.nested_types = {}
|
||||||
PLAYER.enum_types = {}
|
PLAYER.enum_types = {}
|
||||||
PLAYER.fields = {PLAYER_UID_FIELD, PLAYER_NICKNAME_FIELD, PLAYER_LEVEL_FIELD, PLAYER_EXP_FIELD, PLAYER_VIPLEVEL_FIELD, PLAYER_FAMILYID_FIELD, PLAYER_HEAD_FIELD, PLAYER_CURMAPID_FIELD, PLAYER_ENERGY_FIELD, PLAYER_LASTUPDATEENERGYTIME_FIELD}
|
PLAYER.fields = {PLAYER_UID_FIELD, PLAYER_NICKNAME_FIELD, PLAYER_LEVEL_FIELD, PLAYER_EXP_FIELD, PLAYER_VIPLEVEL_FIELD, PLAYER_FAMILYID_FIELD, PLAYER_HEAD_FIELD, PLAYER_CURMAPID_FIELD, PLAYER_ENERGY_FIELD, PLAYER_LASTUPDATEENERGYTIME_FIELD, PLAYER_SERVERTIME_FIELD}
|
||||||
PLAYER.is_extendable = false
|
PLAYER.is_extendable = false
|
||||||
PLAYER.extensions = {}
|
PLAYER.extensions = {}
|
||||||
ITEM_ITEMID_FIELD.name = "itemId"
|
ITEM_ITEMID_FIELD.name = "itemId"
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@ option optimize_for = SPEED;
|
||||||
|
|
||||||
optional int32 energy = 9; //精力
|
optional int32 energy = 9; //精力
|
||||||
optional int32 lastUpdateEnergyTime = 10 ;// 上次更新精力时间,-1 代表在队伍中,不需要进行定时恢复。
|
optional int32 lastUpdateEnergyTime = 10 ;// 上次更新精力时间,-1 代表在队伍中,不需要进行定时恢复。
|
||||||
|
|
||||||
|
optional int32 serverTime = 11; //服务器时间
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue