feat(cache): 添加复合键缓存操作支持 添加了基于 uint32+string 组合键的缓存操作方法,包括 GetByCompoundKey、SetByCompoundKey、DelByCompoundKey 和 ContainsByCompoundKey 方法,用于处理用户ID和会话ID的组合缓存场景 fix(vscode): 添加 cSpell 配置支持 struc 词汇 refactor(session): 移除过时的会话管理方法 移除了基于单一字符串键的会话管理方法,因为已迁移到使用 复合键的缓存操作方式 ```
42 lines
994 B
Go
42 lines
994 B
Go
package space
|
||
|
||
import (
|
||
"blazing/logic/service/common"
|
||
"blazing/modules/player/model"
|
||
)
|
||
|
||
type ListMapPlayerInboundInfo struct {
|
||
Head common.TomeeHeader `cmd:"2003" struc:"skip"` //切换地图
|
||
}
|
||
|
||
type AttackBossInboundInfo struct {
|
||
Head common.TomeeHeader `cmd:"2412" struc:"skip"` //切换地图
|
||
}
|
||
type LeaveMapInboundInfo struct {
|
||
Head common.TomeeHeader `cmd:"2002" struc:"skip"` //切换地图
|
||
}
|
||
|
||
type InInfo struct {
|
||
Head common.TomeeHeader `cmd:"2001" struc:"skip"` //切换地图
|
||
// 地图类型
|
||
MapType uint32
|
||
|
||
MapId uint32
|
||
// Point: 直接给坐标x,y
|
||
Point model.Pos `fieldDesc:"直接给坐标x,y"`
|
||
|
||
// Reverse2: 暂定 占位字符2
|
||
//Reverse2 string `struc:"[2]byte"`
|
||
}
|
||
type WalkInInfo struct {
|
||
Head common.TomeeHeader `cmd:"2101" struc:"skip"` //走路包
|
||
// Flag: 0为走,1为飞行模式,@UInt long
|
||
Flag uint32
|
||
|
||
// Point: 直接给坐标x,y
|
||
Point model.Pos `fieldDesc:"直接给坐标x,y"`
|
||
|
||
PathLen uint32 `struc:"sizeof=Path" `
|
||
Path string
|
||
}
|