Files
hk4e/gs/model/vehicle.go
flswld 0395dc0bc2 1.MongoDB、Redis兼容集群模式
2.离线数据接口化访问
2023-02-26 23:03:13 +08:00

17 lines
507 B
Go

package model
type VehicleInfo struct {
InVehicleEntityId uint32 // 玩家所在载具的实体Id
LastCreateTime int64 // 最后一次创建载具的时间
// TODO 玩家可以在其他世界创建载具 需要额外处理
LastCreateEntityIdMap map[uint32]uint32 // 最后一次创建载具的实体Id map[vehicleId]EntityId
}
func NewVehicleInfo() *VehicleInfo {
return &VehicleInfo{
InVehicleEntityId: 0,
LastCreateTime: 0,
LastCreateEntityIdMap: make(map[uint32]uint32),
}
}