pre cw with probe and a bunch script to read game behavior

This commit is contained in:
CAtlas0784 committed 2026-10-21 20:40:13 +07:00
1 parent 5120219ae2
commit da8a32f60d
310 files changed
+219693 -872

No files matched your search

@@ -0,0 +1,22 @@
package gameserver
import "gac-hkrpg-go/internal/common"
// An entrance identifies a particular room even when several rooms share a
// floor. Its start anchor must take precedence over that floor's checkpoints.
func sceneEntranceAnchor(res *common.JsonConfig, entryID, floorID uint32) (common.AnchorItem, bool) {
entrance, exists := res.MapEntrances[entryID]
if !exists || entrance.FloorID != floorID {
return common.AnchorItem{}, false
}
if entrance.StartAnchorID == 0 {
anchor, exists := res.SceneDefaultAnchors[floorID]
return anchor, exists && anchor.ID != 0
}
for _, anchor := range res.SceneAnchors[entryID] {
if anchor.ID == entrance.StartAnchorID {
return anchor, true
}
}
return common.AnchorItem{}, false
}