Skip to content

Commit

Permalink
update gold market info parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
phendryx committed Oct 28, 2024
1 parent 04f8701 commit 7d01590
Show file tree
Hide file tree
Showing 5 changed files with 1,013 additions and 959 deletions.
4 changes: 2 additions & 2 deletions client/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func decodeRequest(params map[uint8]interface{}) (operation operation, err error
case opGetClusterMapInfo:
operation = &operationGetClusterMapInfo{}
// case opGoldMarketGetAverageInfo:
case opGoldMarketCreateSellOrder:
case opGoldMarketGetAverageInfo:
operation = &operationGoldMarketGetAverageInfo{}
case opRealEstateGetAuctionData:
operation = &operationRealEstateGetAuctionData{}
Expand Down Expand Up @@ -67,7 +67,7 @@ func decodeResponse(params map[uint8]interface{}) (operation operation, err erro
case opGetClusterMapInfo:
operation = &operationGetClusterMapInfoResponse{}
// case opGoldMarketGetAverageInfo:
case opGoldMarketCreateSellOrder:
case opGoldMarketGetAverageInfo:
operation = &operationGoldMarketGetAverageInfoResponse{}
case opRealEstateGetAuctionData:
operation = &operationRealEstateGetAuctionDataResponse{}
Expand Down
25 changes: 24 additions & 1 deletion client/events.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package client

//EventType used to identify event types
// EventType used to identify event types
//
//go:generate stringer -type=EventType
type EventType uint16

Expand All @@ -12,6 +13,7 @@ const (
evTeleport
evChangeEquipment
evHealthUpdate
evHealthUpdates
evEnergyUpdate
evDamageShieldUpdate
evCraftingFocusUpdate
Expand All @@ -32,6 +34,7 @@ const (
evAttackBuilding
evInventoryPutItem
evInventoryDeleteItem
evInventoryState
evNewCharacter
evNewEquipmentItem
evNewSiegeBannerItem
Expand Down Expand Up @@ -66,6 +69,7 @@ const (
evHarvestCancel
evHarvestFinished
evTakeSilver
evRemoveSilver
evActionOnBuildingStart
evActionOnBuildingCancel
evActionOnBuildingFinished
Expand Down Expand Up @@ -112,6 +116,7 @@ const (
evUpdateMatchDetails
evObjectEvent
evNewMonolithObject
evMonolithHasBannersPlacedUpdate
evNewOrbObject
evNewCastleObject
evNewSpellEffectArea
Expand Down Expand Up @@ -242,6 +247,7 @@ const (
evPartyOnClusterPartyJoined
evPartySetRoleFlag
evPartyInviteOrJoinPlayerEquipmentInfo
evPartyReadyCheckUpdate
evSpellCooldownUpdate
evNewHellgateExitPortal
evNewExpeditionExit
Expand Down Expand Up @@ -499,6 +505,7 @@ const (
evPartyStartHuntRequest
evPartyStartHuntRequested
evPartyStartHuntRequestAnswer
evPartyPlayerLeaveScheduled
evGuildInviteDeclined
evCancelMultiSpellSlots
evNewVisualEventObject
Expand Down Expand Up @@ -580,6 +587,22 @@ const (
evMonolithFortificationPointsUpdate
evFortificationBuildingUpgradeInfo
evFortificationBuildingsDamageStateUpdate
evSiegeNotificationEvent
evUpdateEnemyWarBannerActive
evTerritoryAnnouncePlayerEjection
evCastleGateSwitchUseStarted
evCastleGateSwitchUseFinished
evFortificationBuildingWillDowngrade
evBotCommand
evJournalAchievementProgressUpdate
evJournalClaimableRewardUpdate
evKeySync
evLocalQuestAreaGone
evDynamicTemplate
evDynamicTemplateForcedStateChange
evNewOutlandsTeleportationPortal
evNewOutlandsTeleportationReturnPortal
evOutlandsTeleportationBindingCleared
evOutlandsTeleportationReturnPortalUpdateEvent
evPlayerUsedOutlandsTeleportationPortal
)
Loading

0 comments on commit 7d01590

Please sign in to comment.