|
Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
|
Gaming Event System. More...

Classes | |
| struct | GameEvent |
Public Member Functions | |
| void | simulate_gaming_scenario () |
Private Member Functions | |
| void | process_game_event (const GameEvent &event) |
| void | send_achievement_notification (const std::string &player_id, const std::string &achievement) |
| void | print_leaderboard () |
Private Attributes | |
| std::atomic< int > | events_processed_ {0} |
| std::atomic< int > | achievements_unlocked_ {0} |
| std::map< std::string, int > | player_scores_ |
| std::mutex | scores_mutex_ |
Gaming Event System.
Definition at line 314 of file real_world_scenarios.cpp.
|
inlineprivate |
Definition at line 457 of file real_world_scenarios.cpp.
References player_scores_, and scores_mutex_.
Referenced by simulate_gaming_scenario().

|
inlineprivate |
Definition at line 407 of file real_world_scenarios.cpp.
References achievements_unlocked_, scenarios::GamingEventSystem::GameEvent::event_data, scenarios::GamingEventSystem::GameEvent::event_type, scenarios::GamingEventSystem::GameEvent::player_id, player_scores_, scores_mutex_, send_achievement_notification(), and scenarios::GamingEventSystem::GameEvent::timestamp.
Referenced by simulate_gaming_scenario().


|
inlineprivate |
Definition at line 442 of file real_world_scenarios.cpp.
Referenced by process_game_event().

|
inline |
Definition at line 329 of file real_world_scenarios.cpp.
References achievements_unlocked_, scenarios::GamingEventSystem::GameEvent::event_type, events_processed_, scenarios::GamingEventSystem::GameEvent::player_id, print_leaderboard(), and process_game_event().
Referenced by main().


|
private |
Definition at line 324 of file real_world_scenarios.cpp.
Referenced by process_game_event(), and simulate_gaming_scenario().
|
private |
Definition at line 323 of file real_world_scenarios.cpp.
Referenced by simulate_gaming_scenario().
|
private |
Definition at line 325 of file real_world_scenarios.cpp.
Referenced by print_leaderboard(), and process_game_event().
|
private |
Definition at line 326 of file real_world_scenarios.cpp.
Referenced by print_leaderboard(), and process_game_event().