Files
bd2/go/internal/server/events/skin_handler.go
T
Flechazo d8771caef2 feat(all): add hunting and events, commerce and rewards, binary calendars, GameData caching and login diagnostics
Implement hunting AP and progress, event tasks, exchanges, games, stories and actions; connect battle and reward handling.

Add CashShop plugin and installation, server purchases and entitlements, recharge rules and plugin version metadata.

Distribute binary calendars independently; cache GameData in memory and fix single-connection query deadlocks.

Improve automatic login and recovery diagnostics; document configuration and release flows.
2026-10-05 11:50:31 +08:00

12 lines
417 B
Go

package events
// SkinHandler restores skin ownership through the client's dedicated query.
type SkinHandler struct{ Economy *Economy }
func (h SkinHandler) Handle(path string, request []byte) (int, []byte, bool, error) {
if code, response, handled, err := h.Economy.OwnedItemInfo(path, request); handled || err != nil {
return code, response, handled, err
}
return h.Economy.PrestigeSkinInfo(path, request)
}