角色死亡与复活功能

This commit is contained in:
flswld committed 2023-09-10 23:07:53 +08:00
1 parent 6c0826138f
commit d4bb36b02f
20 files changed
+598 -422

No files matched your search

+1
View File
@@ -68,6 +68,7 @@ type Player struct {
Pause bool `bson:"-" msgpack:"-"` // 暂停状态
SceneJump bool `bson:"-" msgpack:"-"` // 是否场景切换
SceneLoadState int `bson:"-" msgpack:"-"` // 场景加载状态
SceneEnterReason uint32 `bson:"-" msgpack:"-"` // 场景进入原因
CoopApplyMap map[uint32]int64 `bson:"-" msgpack:"-"` // 敲门申请的玩家uid及时间
StaminaInfo *StaminaInfo `bson:"-" msgpack:"-"` // 耐力在线数据
VehicleInfo *VehicleInfo `bson:"-" msgpack:"-"` // 载具在线数据
-1
View File
@@ -11,7 +11,6 @@ type StaminaInfo struct {
RestoreDelay uint8 // 玩家耐力回复延时
LastSkillTime int64 // 最后释放技能的时间
LastCostStaminaTime int64 // 最后执行技能耐力消耗的时间
DrownBackDelay uint8 // 溺水返回安全点延时
}
func NewStaminaInfo() *StaminaInfo {