Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Game Events #29

Merged
merged 24 commits into from
Jan 19, 2024
Merged

Implement Game Events #29

merged 24 commits into from
Jan 19, 2024

Conversation

antonpup
Copy link
Owner

@antonpup antonpup commented Jan 15, 2024

Game events provider broadcasts of game events based on the GameState.

This should allow library users to easily listen for specific game events without having to look through the GameState themselves.

Implemented Game Events

  • GameEvent The base game event, will fire for all other listed events.

Abilities Events

  • AbilitiesUpdated
  • AbilityDetailsChanged
  • AbilityAdded
  • AbilityRemoved
  • AbilityUpdated

Auth Events

  • AuthUpdated

Buildings Events

  • BuildingsUpdated
  • BuildingsLayoutUpdated
  • BuildingUpdated
  • TeamBuildingUpdated
  • TeamBuildingDestroyed
  • TowerUpdated
  • TowerDestroyed
  • RacksUpdated
  • RacksDestroyed
  • AncientUpdated
  • AncientDestroyed

Couriers Events

  • CouriersUpdated
  • CourierUpdated
  • TeamCourierUpdated
  • CourierItemAdded
  • CourierItemRemoved
  • CourierItemUpdated

Draft Events

  • DraftUpdated
  • TeamDraftDetailsUpdated

Gameplay Events

  • EventsUpdated
  • GameplayEvent
  • TeamGameplayEvent
  • PlayerGameplayEvent

Hero Events

  • HeroUpdated
  • HeroDetailsChanged
  • HeroLevelChanged
  • HeroHealthChanged
  • HeroDied
  • HeroRespawned
  • HeroTookDamage
  • HeroManaChanged
  • HeroStateChanged
  • HeroMuteStateChanged
  • HeroSelectedChanged
  • HeroTalentTreeChanged
  • HeroAttributesLevelChanged

Items Events

  • ItemsUpdated
  • ItemDetailsChanged
  • ItemUpdated
  • InventoryItemAdded
  • InventoryItemRemoved
  • InventoryItemUpdated
  • StashItemAdded
  • StashItemRemoved
  • StashItemUpdated

League Events

  • LeagueUpdated

Map Events

  • MapUpdated
  • TimeOfDayChanged
  • TeamScoreChanged
  • GameStateChanged
  • PauseStateChanged
  • GamePaused
  • GameResumed
  • TeamVictory
  • TeamDefeat
  • RoshanStateChanged

Minimap Events

  • MinimapUpdated
  • MinimapElementAdded
  • MinimapElementUpdated
  • MinimapElementRemoved
  • TeamMinimapElementUpdated

NeutralItems Events

  • NeutralItemsUpdated
  • TeamNeutralItemsUpdated

Player Events

  • PlayerUpdated
  • PlayerDetailsChanged
  • PlayerKillsChanged
  • PlayerDeathsChanged
  • PlayerAssistsChanged
  • PlayerLastHitsChanged
  • PlayerDeniesChanged
  • PlayerKillStreakChanged
  • PlayerGoldChanged
  • PlayerWardsPurchasedChanged
  • PlayerWardsPlacedChanged
  • PlayerWardsDestroyedChanged
  • PlayerRunesActivatedChanged
  • PlayerCampsStackedChanged

Provider Events

  • ProviderUpdated

Roshan Events

  • RoshanUpdated

Wearables Events

  • RoshanUpdated
  • WearablesUpdated
  • PlayerWearablesUpdated

@antonpup antonpup self-assigned this Jan 15, 2024
Dota2GSI/Dota2EventsInterface.cs Outdated Show resolved Hide resolved
Dota2GSI/Dota2EventsInterface.cs Outdated Show resolved Hide resolved
Dota2GSI/Dota2EventsInterface.cs Outdated Show resolved Hide resolved
Dota2GSI/EventDispatcher.cs Outdated Show resolved Hide resolved
Dota2GSI/StateHandlers/BuildingsHandler.cs Outdated Show resolved Hide resolved
Dota2GSI/StateHandlers/CouriersHandler.cs Outdated Show resolved Hide resolved
Dota2GSI/StateHandlers/ItemsHandler.cs Outdated Show resolved Hide resolved
Dota2GSI/StateHandlers/MapHandler.cs Outdated Show resolved Hide resolved
Dota2GSI/StateHandlers/MinimapHandler.cs Show resolved Hide resolved
@antonpup antonpup merged commit 6e484bc into master Jan 19, 2024
2 checks passed
@antonpup antonpup deleted the features/events_dispatcher branch January 19, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant