调整角色场景实体相关协议
This commit is contained in:
1 parent
346b583f64
commit
d8a3af9fc8
15 files changed
+245
-225
No files matched your search
@@ -15,7 +15,6 @@ type DbScene struct {
|
||||
UnlockPointMap map[uint32]bool
|
||||
UnHidePointMap map[uint32]bool
|
||||
SceneGroupMap map[uint32]*DbSceneGroup
|
||||
VehicleMap map[uint32]*DbVehicle
|
||||
}
|
||||
|
||||
type DbSceneGroup struct {
|
||||
@@ -24,13 +23,6 @@ type DbSceneGroup struct {
|
||||
GadgetStateMap map[uint32]uint8
|
||||
}
|
||||
|
||||
type DbVehicle struct {
|
||||
VehicleId uint32 // 载具Id
|
||||
OwnerUid uint32 // 所有者Id
|
||||
Pos *Vector // 位置
|
||||
Rot *Vector // 旋转
|
||||
}
|
||||
|
||||
type MapMark struct {
|
||||
SceneId uint32
|
||||
Pos *Vector
|
||||
@@ -76,9 +68,6 @@ func (w *DbWorld) GetSceneById(sceneId uint32) *DbScene {
|
||||
if scene.SceneGroupMap == nil {
|
||||
scene.SceneGroupMap = make(map[uint32]*DbSceneGroup)
|
||||
}
|
||||
if scene.VehicleMap == nil {
|
||||
scene.VehicleMap = make(map[uint32]*DbVehicle)
|
||||
}
|
||||
return scene
|
||||
}
|
||||
|
||||
@@ -170,12 +159,3 @@ func (g *DbSceneGroup) CheckGadgetExist(configId uint32) bool {
|
||||
_, exist := g.GadgetStateMap[configId]
|
||||
return exist
|
||||
}
|
||||
|
||||
func (s *DbScene) AddVehicle(vehicleId uint32, ownerId uint32, pos *Vector, rot *Vector) {
|
||||
s.VehicleMap[vehicleId] = &DbVehicle{
|
||||
VehicleId: vehicleId,
|
||||
OwnerUid: ownerId,
|
||||
Pos: pos,
|
||||
Rot: rot,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user