Showing preview only (3,716K chars total). Download the full file or copy to clipboard to get everything.
Repository: retroroyale/ClashRoyale
Branch: master
Commit: a633b3c87ac1
Files: 662
Total size: 3.0 MB
Directory structure:
gitextract_cw6qygp5/
├── .gitattributes
├── .github/
│ └── workflows/
│ └── dotnetcore.yml
├── .gitignore
├── LICENSE
├── README.md
├── random.txt
└── src/
├── .dockerignore
├── ClashRoyale/
│ ├── ClashRoyale.csproj
│ ├── ClashRoyale.csproj.DotSettings
│ ├── Core/
│ │ ├── Cluster/
│ │ │ ├── Node.cs
│ │ │ ├── NodeInfo.cs
│ │ │ ├── NodeManager.cs
│ │ │ └── Protocol/
│ │ │ ├── ClusterMessage.cs
│ │ │ ├── ClusterMessageFactory.cs
│ │ │ └── Messages/
│ │ │ ├── Client/
│ │ │ │ ├── BattleFinishedMessage.cs
│ │ │ │ ├── ConnectionCheckMessage.cs
│ │ │ │ └── ServerInfoMessage.cs
│ │ │ └── Server/
│ │ │ ├── ConnectionFailedMessage.cs
│ │ │ └── ConnectionOkMessage.cs
│ │ ├── Configuration.cs
│ │ ├── Leaderboards/
│ │ │ └── Leaderboard.cs
│ │ ├── Network/
│ │ │ ├── Handlers/
│ │ │ │ ├── Cluster/
│ │ │ │ │ ├── ClusterPacketEncoder.cs
│ │ │ │ │ └── ClusterPacketHandler.cs
│ │ │ │ ├── PacketEncoder.cs
│ │ │ │ └── PacketHandler.cs
│ │ │ ├── NettyService.cs
│ │ │ └── Throttler.cs
│ │ └── SentryReport.cs
│ ├── Database/
│ │ ├── AllianceDb.cs
│ │ ├── Cache/
│ │ │ ├── Alliances.cs
│ │ │ ├── Battles.cs
│ │ │ ├── DuoBattles.cs
│ │ │ └── Players.cs
│ │ ├── ObjectCache.cs
│ │ └── PlayerDb.cs
│ ├── Extensions/
│ │ ├── CustomWriter.cs
│ │ └── Utils/
│ │ └── CompressionUtils.cs
│ ├── Files/
│ │ ├── Csv.Files.cs
│ │ ├── Csv.cs
│ │ ├── CsvClient/
│ │ │ ├── BackgroundDecos.cs
│ │ │ ├── BillingPackages.cs
│ │ │ ├── ClientGlobals.cs
│ │ │ ├── Credits.cs
│ │ │ ├── Effects.cs
│ │ │ ├── EventOutput.cs
│ │ │ ├── HealthBars.cs
│ │ │ ├── Helpshift.cs
│ │ │ ├── Hints.cs
│ │ │ ├── Music.cs
│ │ │ ├── News.cs
│ │ │ ├── ParticleEmitters.cs
│ │ │ ├── Sounds.cs
│ │ │ ├── Texts.cs
│ │ │ └── TextsPatch.cs
│ │ ├── CsvHelpers/
│ │ │ ├── Data.cs
│ │ │ ├── DataTable.cs
│ │ │ └── GlobalId.cs
│ │ ├── CsvLogic/
│ │ │ ├── Abilities.cs
│ │ │ ├── Achievements.cs
│ │ │ ├── AllianceBadges.cs
│ │ │ ├── AllianceRoles.cs
│ │ │ ├── AreaEffectObjects.cs
│ │ │ ├── Arenas.cs
│ │ │ ├── Buildings.cs
│ │ │ ├── CharacterBuffs.cs
│ │ │ ├── Characters.cs
│ │ │ ├── ChestOrder.cs
│ │ │ ├── ConfigurationDefinitions.cs
│ │ │ ├── ContentTests.cs
│ │ │ ├── Decos.cs
│ │ │ ├── DraftDeck.cs
│ │ │ ├── EventCategories.cs
│ │ │ ├── EventCategoryDefinitions.cs
│ │ │ ├── EventCategoryEnums.cs
│ │ │ ├── EventCategoryObjectDefinitions.cs
│ │ │ ├── EventTargetingDefinitions.cs
│ │ │ ├── ExpLevels.cs
│ │ │ ├── GambleChests.cs
│ │ │ ├── GameModes.cs
│ │ │ ├── Globals.cs
│ │ │ ├── Heroes.cs
│ │ │ ├── Locales.cs
│ │ │ ├── Locations.cs
│ │ │ ├── Npcs.cs
│ │ │ ├── PredefinedDecks.cs
│ │ │ ├── Projectiles.cs
│ │ │ ├── PveBoss.cs
│ │ │ ├── PveGamemodes.cs
│ │ │ ├── PveWaves.cs
│ │ │ ├── QuestOrder.cs
│ │ │ ├── Rarities.cs
│ │ │ ├── Regions.cs
│ │ │ ├── ResourcePacks.cs
│ │ │ ├── Resources.cs
│ │ │ ├── Shop.cs
│ │ │ ├── Skins.cs
│ │ │ ├── SpellSets.cs
│ │ │ ├── SpellsBuildings.cs
│ │ │ ├── SpellsCharacters.cs
│ │ │ ├── SpellsHeroes.cs
│ │ │ ├── SpellsOther.cs
│ │ │ ├── SurvivalModes.cs
│ │ │ ├── Taunts.cs
│ │ │ ├── TournamentTiers.cs
│ │ │ ├── TreasureChests.cs
│ │ │ ├── TutorialChestOrder.cs
│ │ │ ├── TutorialsHome.cs
│ │ │ ├── TutorialsNpc.cs
│ │ │ └── TveGamemodes.cs
│ │ ├── CsvReader/
│ │ │ ├── Column.cs
│ │ │ ├── Gamefiles.cs
│ │ │ ├── Row.cs
│ │ │ └── Table.cs
│ │ ├── Fingerprint.cs
│ │ └── UpdateManager.cs
│ ├── GameAssets/
│ │ ├── csv_client/
│ │ │ ├── background_decos.csv
│ │ │ ├── billing_packages.csv
│ │ │ ├── client_globals.csv
│ │ │ ├── credits.csv
│ │ │ ├── effects.csv
│ │ │ ├── event_output.csv
│ │ │ ├── health_bars.csv
│ │ │ ├── helpshift.csv
│ │ │ ├── hints.csv
│ │ │ ├── music.csv
│ │ │ ├── news.csv
│ │ │ ├── particle_emitters.csv
│ │ │ ├── sounds.csv
│ │ │ ├── texts.csv
│ │ │ └── texts_patch.csv
│ │ ├── csv_logic/
│ │ │ ├── abilities.csv
│ │ │ ├── achievements.csv
│ │ │ ├── alliance_badges.csv
│ │ │ ├── alliance_roles.csv
│ │ │ ├── area_effect_objects.csv
│ │ │ ├── arenas.csv
│ │ │ ├── buildings.csv
│ │ │ ├── character_buffs.csv
│ │ │ ├── characters.csv
│ │ │ ├── chest_order.csv
│ │ │ ├── configuration_definitions.csv
│ │ │ ├── content_tests.csv
│ │ │ ├── decos.csv
│ │ │ ├── draft_deck.csv
│ │ │ ├── event_categories.csv
│ │ │ ├── event_category_definitions.csv
│ │ │ ├── event_category_enums.csv
│ │ │ ├── event_category_object_definitions.csv
│ │ │ ├── event_targeting_definitions.csv
│ │ │ ├── exp_levels.csv
│ │ │ ├── gamble_chests.csv
│ │ │ ├── game_modes.csv
│ │ │ ├── globals.csv
│ │ │ ├── heroes.csv
│ │ │ ├── locales.csv
│ │ │ ├── locations.csv
│ │ │ ├── npcs.csv
│ │ │ ├── predefined_decks.csv
│ │ │ ├── projectiles.csv
│ │ │ ├── pve_boss.csv
│ │ │ ├── pve_gamemodes.csv
│ │ │ ├── pve_waves.csv
│ │ │ ├── quest_order.csv
│ │ │ ├── rarities.csv
│ │ │ ├── regions.csv
│ │ │ ├── resource_packs.csv
│ │ │ ├── resources.csv
│ │ │ ├── shop.csv
│ │ │ ├── skins.csv
│ │ │ ├── spell_sets.csv
│ │ │ ├── spells_buildings.csv
│ │ │ ├── spells_characters.csv
│ │ │ ├── spells_heroes.csv
│ │ │ ├── spells_other.csv
│ │ │ ├── survival_modes.csv
│ │ │ ├── taunts.csv
│ │ │ ├── tournament_tiers.csv
│ │ │ ├── treasure_chests.csv
│ │ │ ├── tutorial_chest_order.csv
│ │ │ ├── tutorials_home.csv
│ │ │ ├── tutorials_npc.csv
│ │ │ └── tve_gamemodes.csv
│ │ ├── database.sql
│ │ ├── fingerprint.json
│ │ ├── locations/
│ │ │ ├── barbarian_arena.csv
│ │ │ ├── barbarian_arena_2v2.csv
│ │ │ ├── bone_arena.csv
│ │ │ ├── bone_arena_2v2.csv
│ │ │ ├── builder_arena.csv
│ │ │ ├── builder_arena_2v2.csv
│ │ │ ├── champion_arena.csv
│ │ │ ├── champion_arena_2v2.csv
│ │ │ ├── dark_arena.csv
│ │ │ ├── dark_arena_2v2.csv
│ │ │ ├── goblin_arena.csv
│ │ │ ├── goblin_arena_2v2.csv
│ │ │ ├── ice_arena.csv
│ │ │ ├── ice_arena_2v2.csv
│ │ │ ├── jungle_arena.csv
│ │ │ ├── jungle_arena_2v2.csv
│ │ │ ├── legendary_arena.csv
│ │ │ ├── legendary_arena_2v2.csv
│ │ │ ├── royal_arena.csv
│ │ │ ├── royal_arena_2v2.csv
│ │ │ ├── spell_arena.csv
│ │ │ ├── spell_arena_2v2.csv
│ │ │ ├── tilemap_pve.csv
│ │ │ ├── titan_arena.csv
│ │ │ ├── training_arena.csv
│ │ │ ├── training_arena_pve.csv
│ │ │ ├── training_arena_pve1.csv
│ │ │ └── training_arena_tve.csv
│ │ ├── sc/
│ │ │ ├── arena_training.sc
│ │ │ ├── arena_training_tex.sc
│ │ │ ├── building_barbarian_hut.sc
│ │ │ ├── building_barbarian_hut_highres_tex.sc
│ │ │ ├── building_barbarian_hut_lowres_tex.sc
│ │ │ ├── building_basic_cannon.sc
│ │ │ ├── building_basic_cannon_highres_tex.sc
│ │ │ ├── building_basic_cannon_lowres_tex.sc
│ │ │ ├── building_bomb_tower.sc
│ │ │ ├── building_bomb_tower_highres_tex.sc
│ │ │ ├── building_bomb_tower_lowres_tex.sc
│ │ │ ├── building_elixir_collector.sc
│ │ │ ├── building_elixir_collector_highres_tex.sc
│ │ │ ├── building_elixir_collector_lowres_tex.sc
│ │ │ ├── building_firespirit_hut.sc
│ │ │ ├── building_firespirit_hut_highres_tex.sc
│ │ │ ├── building_firespirit_hut_lowres_tex.sc
│ │ │ ├── building_goblin_hut.sc
│ │ │ ├── building_goblin_hut_tex.sc
│ │ │ ├── building_inferno_tower.sc
│ │ │ ├── building_inferno_tower_highres_tex.sc
│ │ │ ├── building_inferno_tower_lowres_tex.sc
│ │ │ ├── building_mega_bomb.sc
│ │ │ ├── building_mega_bomb_tex.sc
│ │ │ ├── building_mortar.sc
│ │ │ ├── building_mortar_highres_tex.sc
│ │ │ ├── building_mortar_lowres_tex.sc
│ │ │ ├── building_rage_bottle.sc
│ │ │ ├── building_rage_bottle_tex.sc
│ │ │ ├── building_tesla.sc
│ │ │ ├── building_tesla_highres_tex.sc
│ │ │ ├── building_tesla_lowres_tex.sc
│ │ │ ├── building_tombstone.sc
│ │ │ ├── building_tombstone_highres_tex.sc
│ │ │ ├── building_tombstone_lowres_tex.sc
│ │ │ ├── building_tower.sc
│ │ │ ├── building_tower_tex.sc
│ │ │ ├── building_xbow.sc
│ │ │ ├── building_xbow_highres_tex.sc
│ │ │ ├── building_xbow_lowres_tex.sc
│ │ │ ├── chr_archer.sc
│ │ │ ├── chr_archer_tex.sc
│ │ │ ├── chr_axe_man.sc
│ │ │ ├── chr_axe_man_highres_tex.sc
│ │ │ ├── chr_axe_man_lowres_tex.sc
│ │ │ ├── chr_baby_dragon.sc
│ │ │ ├── chr_baby_dragon_tex.sc
│ │ │ ├── chr_balloon.sc
│ │ │ ├── chr_balloon_highres_tex.sc
│ │ │ ├── chr_balloon_lowres_tex.sc
│ │ │ ├── chr_bandit.sc
│ │ │ ├── chr_bandit_tex.sc
│ │ │ ├── chr_barbarian.sc
│ │ │ ├── chr_barbarian_highres_tex.sc
│ │ │ ├── chr_barbarian_lowres_tex.sc
│ │ │ ├── chr_bats.sc
│ │ │ ├── chr_bats_tex.sc
│ │ │ ├── chr_battle_ram.sc
│ │ │ ├── chr_battle_ram_highres_tex.sc
│ │ │ ├── chr_battle_ram_lowres_tex.sc
│ │ │ ├── chr_black_knight.sc
│ │ │ ├── chr_black_knight_highres_tex.sc
│ │ │ ├── chr_black_knight_lowres_tex.sc
│ │ │ ├── chr_bomber.sc
│ │ │ ├── chr_bomber_tex.sc
│ │ │ ├── chr_bowler.sc
│ │ │ ├── chr_bowler_highres_tex.sc
│ │ │ ├── chr_bowler_lowres_tex.sc
│ │ │ ├── chr_dark_witch.sc
│ │ │ ├── chr_dark_witch_highres_tex.sc
│ │ │ ├── chr_dark_witch_lowres_tex.sc
│ │ │ ├── chr_electro_wizard.sc
│ │ │ ├── chr_electro_wizard_highres_tex.sc
│ │ │ ├── chr_electro_wizard_lowres_tex.sc
│ │ │ ├── chr_fire_firespirit.sc
│ │ │ ├── chr_fire_firespirit_tex.sc
│ │ │ ├── chr_flying_machine.sc
│ │ │ ├── chr_flying_machine_highres_tex.sc
│ │ │ ├── chr_flying_machine_lowres_tex.sc
│ │ │ ├── chr_giant.sc
│ │ │ ├── chr_giant_skeleton.sc
│ │ │ ├── chr_giant_skeleton_tex.sc
│ │ │ ├── chr_giant_tex.sc
│ │ │ ├── chr_goblin.sc
│ │ │ ├── chr_goblin_archer.sc
│ │ │ ├── chr_goblin_archer_tex.sc
│ │ │ ├── chr_goblin_blowdart.sc
│ │ │ ├── chr_goblin_blowdart_highres_tex.sc
│ │ │ ├── chr_goblin_blowdart_lowres_tex.sc
│ │ │ ├── chr_goblin_tex.sc
│ │ │ ├── chr_golem.sc
│ │ │ ├── chr_golem_highres_tex.sc
│ │ │ ├── chr_golem_lowres_tex.sc
│ │ │ ├── chr_golemite.sc
│ │ │ ├── chr_golemite_highres_tex.sc
│ │ │ ├── chr_golemite_lowres_tex.sc
│ │ │ ├── chr_hog_rider.sc
│ │ │ ├── chr_hog_rider_highres_tex.sc
│ │ │ ├── chr_hog_rider_lowres_tex.sc
│ │ │ ├── chr_ice_spirits.sc
│ │ │ ├── chr_ice_spirits_tex.sc
│ │ │ ├── chr_ice_wizard.sc
│ │ │ ├── chr_ice_wizard_tex.sc
│ │ │ ├── chr_knight.sc
│ │ │ ├── chr_knight_tex.sc
│ │ │ ├── chr_lava_hound.sc
│ │ │ ├── chr_lava_hound_tex.sc
│ │ │ ├── chr_lava_pups.sc
│ │ │ ├── chr_lava_pups_tex.sc
│ │ │ ├── chr_mega_knight.sc
│ │ │ ├── chr_mega_knight_highres_tex.sc
│ │ │ ├── chr_mega_knight_lowres_tex.sc
│ │ │ ├── chr_mega_minion.sc
│ │ │ ├── chr_mega_minion_highres_tex.sc
│ │ │ ├── chr_mega_minion_lowres_tex.sc
│ │ │ ├── chr_miner.sc
│ │ │ ├── chr_miner_tex.sc
│ │ │ ├── chr_mini_pekka.sc
│ │ │ ├── chr_mini_pekka_tex.sc
│ │ │ ├── chr_minion.sc
│ │ │ ├── chr_minion_tex.sc
│ │ │ ├── chr_movingcannon.sc
│ │ │ ├── chr_movingcannon_highres_tex.sc
│ │ │ ├── chr_movingcannon_lowres_tex.sc
│ │ │ ├── chr_musketeer.sc
│ │ │ ├── chr_musketeer_tex.sc
│ │ │ ├── chr_pekka.sc
│ │ │ ├── chr_pekka_tex.sc
│ │ │ ├── chr_prince.sc
│ │ │ ├── chr_prince_tex.sc
│ │ │ ├── chr_princess.sc
│ │ │ ├── chr_princess_highres_tex.sc
│ │ │ ├── chr_princess_lowres_tex.sc
│ │ │ ├── chr_rage_barbarian.sc
│ │ │ ├── chr_rage_barbarian_highres_tex.sc
│ │ │ ├── chr_rage_barbarian_lowres_tex.sc
│ │ │ ├── chr_royal_giant.sc
│ │ │ ├── chr_royal_giant_highres_tex.sc
│ │ │ ├── chr_royal_giant_lowres_tex.sc
│ │ │ ├── chr_skeleton.sc
│ │ │ ├── chr_skeleton_balloon.sc
│ │ │ ├── chr_skeleton_balloon_highres_tex.sc
│ │ │ ├── chr_skeleton_balloon_lowres_tex.sc
│ │ │ ├── chr_skeleton_tex.sc
│ │ │ ├── chr_skeleton_warrior.sc
│ │ │ ├── chr_skeleton_warrior_highres_tex.sc
│ │ │ ├── chr_skeleton_warrior_lowres_tex.sc
│ │ │ ├── chr_snowman.sc
│ │ │ ├── chr_snowman_tex.sc
│ │ │ ├── chr_valkyrie.sc
│ │ │ ├── chr_valkyrie_tex.sc
│ │ │ ├── chr_witch.sc
│ │ │ ├── chr_witch_tex.sc
│ │ │ ├── chr_wizard.sc
│ │ │ ├── chr_wizard_tex.sc
│ │ │ ├── chr_zap_machine.sc
│ │ │ ├── chr_zap_machine_tex.sc
│ │ │ ├── debug.sc
│ │ │ ├── debug_tex.sc
│ │ │ ├── effects.sc
│ │ │ ├── effects_tex.sc
│ │ │ ├── level_barbarian_arena.sc
│ │ │ ├── level_barbarian_arena_tex.sc
│ │ │ ├── level_bone_arena.sc
│ │ │ ├── level_bone_arena_tex.sc
│ │ │ ├── level_builder_arena.sc
│ │ │ ├── level_builder_arena_tex.sc
│ │ │ ├── level_champion_arena.sc
│ │ │ ├── level_champion_arena_tex.sc
│ │ │ ├── level_dark_arena.sc
│ │ │ ├── level_dark_arena_tex.sc
│ │ │ ├── level_decos.sc
│ │ │ ├── level_decos_tex.sc
│ │ │ ├── level_goblin_arena.sc
│ │ │ ├── level_goblin_arena_tex.sc
│ │ │ ├── level_ice_arena.sc
│ │ │ ├── level_ice_arena_tex.sc
│ │ │ ├── level_jungle_arena.sc
│ │ │ ├── level_jungle_arena_tex.sc
│ │ │ ├── level_legendary_arena.sc
│ │ │ ├── level_legendary_arena_tex.sc
│ │ │ ├── level_royal_arena.sc
│ │ │ ├── level_royal_arena_tex.sc
│ │ │ ├── level_spell_arena.sc
│ │ │ ├── level_spell_arena_tex.sc
│ │ │ ├── loading.sc
│ │ │ ├── loading_tex.sc
│ │ │ ├── spell_goblin_barrel.sc
│ │ │ ├── spell_goblin_barrel_tex.sc
│ │ │ ├── tutorial.sc
│ │ │ ├── tutorial_tex.sc
│ │ │ ├── ui.sc
│ │ │ ├── ui_arena.sc
│ │ │ ├── ui_arena_tex.sc
│ │ │ ├── ui_battle_end.sc
│ │ │ ├── ui_battle_end_tex.sc
│ │ │ ├── ui_chest.sc
│ │ │ ├── ui_chest_tex.sc
│ │ │ ├── ui_spells.sc
│ │ │ ├── ui_spells_tex.sc
│ │ │ └── ui_tex.sc
│ │ └── tilemaps/
│ │ ├── tilemap.csv
│ │ ├── tilemap_2v2.csv
│ │ ├── tilemap_pve.csv
│ │ ├── tilemap_pve1.csv
│ │ └── tilemap_tve.csv
│ ├── Logger.cs
│ ├── Logic/
│ │ ├── Battle/
│ │ │ ├── LogicBattle.cs
│ │ │ ├── LogicBattleLog.cs
│ │ │ └── LogicBattleLogPlayer.cs
│ │ ├── Clan/
│ │ │ ├── Alliance.cs
│ │ │ ├── AllianceInfo.cs
│ │ │ ├── AllianceMember.cs
│ │ │ └── StreamEntry/
│ │ │ ├── AllianceStreamEntry.cs
│ │ │ └── Entries/
│ │ │ ├── AllianceEventStreamEntry.cs
│ │ │ ├── ChallengeStreamEntry.cs
│ │ │ ├── ChatStreamEntry.cs
│ │ │ ├── DonateStreamEntry.cs
│ │ │ └── JoinRequestAllianceStreamEntry.cs
│ │ ├── Device.cs
│ │ ├── Home/
│ │ │ ├── Arena.cs
│ │ │ ├── Chests/
│ │ │ │ ├── Chests.cs
│ │ │ │ └── Items/
│ │ │ │ └── Chest.cs
│ │ │ ├── Decks/
│ │ │ │ ├── Cards.cs
│ │ │ │ ├── Deck.cs
│ │ │ │ └── Items/
│ │ │ │ └── Card.cs
│ │ │ ├── Home.cs
│ │ │ ├── Shop/
│ │ │ │ ├── Items/
│ │ │ │ │ └── SpellShopItem.cs
│ │ │ │ ├── Shop.cs
│ │ │ │ └── ShopItem.cs
│ │ │ └── StreamEntry/
│ │ │ ├── AvatarStreamEntry.cs
│ │ │ └── Entries/
│ │ │ ├── AllianceMailAvatarStreamEntry.cs
│ │ │ └── DonationReceivedStreamEntry.cs
│ │ ├── Player.cs
│ │ ├── Sessions/
│ │ │ ├── Location.cs
│ │ │ └── Session.cs
│ │ └── Time/
│ │ ├── LogicTime.cs
│ │ └── LogicTimer.cs
│ ├── NLog.config
│ ├── Program.cs
│ ├── Properties/
│ │ └── launchSettings.json
│ ├── Protocol/
│ │ ├── Commands/
│ │ │ ├── Client/
│ │ │ │ ├── LogicBuyChestCommand.cs
│ │ │ │ ├── LogicBuyResourcePackCommand.cs
│ │ │ │ ├── LogicBuyResourcesCommand.cs
│ │ │ │ ├── LogicBuySpellCommand.cs
│ │ │ │ ├── LogicChallengeCommand.cs
│ │ │ │ ├── LogicChestNextCardCommand.cs
│ │ │ │ ├── LogicCollectCrownChestCommand.cs
│ │ │ │ ├── LogicCollectFreeChestCommand.cs
│ │ │ │ ├── LogicCopyDeckCommand.cs
│ │ │ │ ├── LogicFreeWorkerCommand.cs
│ │ │ │ ├── LogicFuseSpellsCommand.cs
│ │ │ │ ├── LogicKickAllianceMemberCommand.cs
│ │ │ │ ├── LogicSelectDeckCommand.cs
│ │ │ │ ├── LogicSwapSpellsCommand.cs
│ │ │ │ ├── StartMatchmakeCommand.cs
│ │ │ │ └── UnknownCommand.cs
│ │ │ └── Server/
│ │ │ ├── ChestDataCommand.cs
│ │ │ ├── DoSpellCommand.cs
│ │ │ ├── LogicAllianceSettingsChangedCommand.cs
│ │ │ ├── LogicChangeAllianceRoleCommand.cs
│ │ │ ├── LogicChangeNameCommand.cs
│ │ │ ├── LogicDiamondsAddedCommand.cs
│ │ │ ├── LogicJoinAllianceCommand.cs
│ │ │ └── LogicLeaveAllianceCommand.cs
│ │ ├── LogicCommand.cs
│ │ ├── LogicCommandManager.cs
│ │ ├── LogicScrollMessageFactory.cs
│ │ ├── Messages/
│ │ │ ├── Client/
│ │ │ │ ├── Alliance/
│ │ │ │ │ ├── AcceptChallengeMessage.cs
│ │ │ │ │ ├── AskForAllianceDataMessage.cs
│ │ │ │ │ ├── AskForAllianceRankingListMessage.cs
│ │ │ │ │ ├── AskForAllianceStreamMessage.cs
│ │ │ │ │ ├── AskForJoinableAlliancesListMessage.cs
│ │ │ │ │ ├── CancelChallengeMessage.cs
│ │ │ │ │ ├── ChangeAllianceMemberRoleMessage.cs
│ │ │ │ │ ├── ChangeAllianceSettingsMessage.cs
│ │ │ │ │ ├── ChatToAllianceStreamMessage.cs
│ │ │ │ │ ├── CreateAllianceMessage.cs
│ │ │ │ │ ├── JoinAllianceMessage.cs
│ │ │ │ │ ├── LeaveAllianceMessage.cs
│ │ │ │ │ ├── RequestJoinAllianceMessage.cs
│ │ │ │ │ ├── RespondToAllianceJoinRequestMessage.cs
│ │ │ │ │ ├── SearchAlliancesMessage.cs
│ │ │ │ │ └── SendAllianceInvitationMessage.cs
│ │ │ │ ├── EndClientTurnMessage.cs
│ │ │ │ ├── Home/
│ │ │ │ │ ├── AskForAvatarLocalRankingListMessage.cs
│ │ │ │ │ ├── AskForAvatarRankingListMessage.cs
│ │ │ │ │ ├── AskForAvatarStreamMessage.cs
│ │ │ │ │ ├── AskForBattleReplayStreamMessage.cs
│ │ │ │ │ ├── AskForPlayingInvitedFriendsListMessage.cs
│ │ │ │ │ ├── AskForTvContentMessage.cs
│ │ │ │ │ ├── AvatarNameCheckRequestMessage.cs
│ │ │ │ │ ├── BindGoogleServiceAccountMessage.cs
│ │ │ │ │ ├── ChangeAvatarNameMessage.cs
│ │ │ │ │ ├── ClientCapabilitiesMessage.cs
│ │ │ │ │ ├── GoHomeMessage.cs
│ │ │ │ │ ├── HomeBattleReplayMessage.cs
│ │ │ │ │ ├── InboxOpenedMessage.cs
│ │ │ │ │ ├── SetDeviceTokenMessage.cs
│ │ │ │ │ └── VisitHomeMessage.cs
│ │ │ │ ├── Login/
│ │ │ │ │ ├── ClientHelloMessage.cs
│ │ │ │ │ ├── KeepAliveMessage.cs
│ │ │ │ │ └── LoginMessage.cs
│ │ │ │ ├── Sector/
│ │ │ │ │ ├── CancelMatchmakeMessage.cs
│ │ │ │ │ ├── RequestSectorStateMessage.cs
│ │ │ │ │ ├── SectorCommandMessage.cs
│ │ │ │ │ ├── SendBattleEventMessage.cs
│ │ │ │ │ └── StartMissionMessage.cs
│ │ │ │ └── Tournament/
│ │ │ │ └── AskForTournamentListMessage.cs
│ │ │ └── Server/
│ │ │ ├── Alliance/
│ │ │ │ ├── AllianceCreateFailedMessag.cs
│ │ │ │ ├── AllianceDataMessage.cs
│ │ │ │ ├── AllianceFullEntryUpdateMessage.cs
│ │ │ │ ├── AllianceInvitationSendFailedMessage.cs
│ │ │ │ ├── AllianceInvitationSentOkMessage.cs
│ │ │ │ ├── AllianceJoinFailedMessage.cs
│ │ │ │ ├── AllianceJoinRequestFailedMessage.cs
│ │ │ │ ├── AllianceJoinRequestOkMessage.cs
│ │ │ │ ├── AllianceListMessage.cs
│ │ │ │ ├── AllianceOnlineStatusUpdatedMessage.cs
│ │ │ │ ├── AllianceRankingListMessage.cs
│ │ │ │ ├── AllianceStreamEntryMessage.cs
│ │ │ │ ├── AllianceStreamEntryRemovedMessage.cs
│ │ │ │ ├── AllianceStreamMessage.cs
│ │ │ │ ├── ChatAccountBanStatusMessage.cs
│ │ │ │ └── JoinableAllianceListMessage.cs
│ │ │ ├── AvailableServerCommand.cs
│ │ │ ├── AvatarLocalRankingListMessage.cs
│ │ │ ├── DisconnectedMessage.cs
│ │ │ ├── FacebookAccountBoundMessage.cs
│ │ │ ├── FacebookAccountUnboundMessage.cs
│ │ │ ├── Home/
│ │ │ │ ├── AvatarNameCheckResponseMessage.cs
│ │ │ │ ├── AvatarRankingListMessage.cs
│ │ │ │ ├── AvatarStreamEntryMessage.cs
│ │ │ │ ├── AvatarStreamEntryRemovedMessage.cs
│ │ │ │ ├── AvatarStreamMessage.cs
│ │ │ │ ├── InboxListMessage.cs
│ │ │ │ ├── OwnHomeDataMessage.cs
│ │ │ │ ├── ReportUserStatusMessage.cs
│ │ │ │ ├── RoyalTvContentMessage.cs
│ │ │ │ ├── StopHomeLogicMessage.cs
│ │ │ │ └── VisitedHomeDataMessage.cs
│ │ │ ├── Login/
│ │ │ │ ├── KeepAliveOkMessage.cs
│ │ │ │ ├── LoginFailedMessage.cs
│ │ │ │ ├── LoginOkMessage.cs
│ │ │ │ └── UnlockAccountFailedMessage.cs
│ │ │ ├── Matchmake/
│ │ │ │ ├── CancelChallengeDoneMessage.cs
│ │ │ │ ├── CancelMatchmakeDoneMessage.cs
│ │ │ │ ├── MatchmakeFailedMessage.cs
│ │ │ │ ├── MatchmakeInfoMessage.cs
│ │ │ │ ├── PvpMatchmakeNotificationMessage.cs
│ │ │ │ └── UdpConnectionInfoMessage.cs
│ │ │ ├── OutOfSyncMessage.cs
│ │ │ ├── Sector/
│ │ │ │ ├── BattleEventMessage.cs
│ │ │ │ ├── BattleResultMessage.cs
│ │ │ │ ├── HomeBattleReplayDataMessage.cs
│ │ │ │ ├── NpcSectorStateMessage.cs
│ │ │ │ ├── OpponentLeftMatchNotificationMessage.cs
│ │ │ │ ├── OpponentRejoinsMatchNotificationMessage.cs
│ │ │ │ ├── SectorHearbeatMessage.cs
│ │ │ │ └── SectorStateMessage.cs
│ │ │ ├── ServerErrorMessage.cs
│ │ │ ├── ShutdownStartedMessage.cs
│ │ │ └── Tournament/
│ │ │ ├── TournamentJoinedFailedMessage.cs
│ │ │ └── TournamentListMessage.cs
│ │ └── PiranhaMessage.cs
│ └── Resources.cs
├── ClashRoyale.Battles/
│ ├── ClashRoyale.Battles.csproj
│ ├── Core/
│ │ ├── Configuration.cs
│ │ ├── Network/
│ │ │ ├── Cluster/
│ │ │ │ ├── ClusterClient.cs
│ │ │ │ ├── Handlers/
│ │ │ │ │ ├── ClusterPacketEncoder.cs
│ │ │ │ │ └── ClusterPacketHandler.cs
│ │ │ │ ├── NettyClient.cs
│ │ │ │ └── Protocol/
│ │ │ │ ├── ClusterMessage.cs
│ │ │ │ ├── ClusterMessageFactory.cs
│ │ │ │ └── Messages/
│ │ │ │ ├── Client/
│ │ │ │ │ ├── BattleFinishedMessage.cs
│ │ │ │ │ ├── ConnectionCheckMessage.cs
│ │ │ │ │ └── ServerInfoMessage.cs
│ │ │ │ └── Server/
│ │ │ │ ├── ConnectionFailedMessage.cs
│ │ │ │ └── ConnectionOkMessage.cs
│ │ │ ├── Handlers/
│ │ │ │ └── PacketHandler.cs
│ │ │ └── NettyService.cs
│ │ └── Sessions.cs
│ ├── Logger.cs
│ ├── Logic/
│ │ ├── Battle/
│ │ │ └── LogicBattle.cs
│ │ ├── Session/
│ │ │ ├── Session.cs
│ │ │ └── SessionContext.cs
│ │ └── UdpMessageProcessor.cs
│ ├── NLog.config
│ ├── Program.cs
│ ├── Protocol/
│ │ ├── Commands/
│ │ │ └── DoSpellCommand.cs
│ │ ├── LogicCommand.cs
│ │ ├── LogicCommandManager.cs
│ │ ├── LogicMessageFactory.cs
│ │ ├── Messages/
│ │ │ ├── Client/
│ │ │ │ ├── SectorCommandMessage.cs
│ │ │ │ └── UdpCheckConnectionMessage.cs
│ │ │ └── Server/
│ │ │ └── SectorHearbeatMessage.cs
│ │ └── PiranhaMessage.cs
│ └── Resources.cs
├── ClashRoyale.CsvConverter/
│ ├── ClashRoyale.CsvConverter.csproj
│ ├── CsWriter.cs
│ ├── Extensions/
│ │ └── Prefixed.cs
│ └── Program.cs
├── ClashRoyale.Management/
│ ├── App.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── ClashRoyale.Management.csproj
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ └── Properties/
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── ClashRoyale.Simulator/
│ ├── Battle.cs
│ ├── Cards/
│ │ └── Knight.cs
│ ├── ClashRoyale.Simulator.csproj
│ ├── Program.cs
│ └── Types/
│ ├── Troop.cs
│ └── TroopContext.cs
├── ClashRoyale.Utilities/
│ ├── ClashRoyale.Utilities.csproj
│ ├── Compression/
│ │ └── ZLib/
│ │ ├── CRC32.cs
│ │ ├── Deflate.cs
│ │ ├── DeflateStream.cs
│ │ ├── GZipStream.cs
│ │ ├── InfTree.cs
│ │ ├── Inflate.cs
│ │ ├── Iso8859Dash1Encoding.cs
│ │ ├── ParallelDeflateOutputStream.cs
│ │ ├── Tree.cs
│ │ ├── Zlib.cs
│ │ ├── ZlibBaseStream.cs
│ │ ├── ZlibCodec.cs
│ │ ├── ZlibConstants.cs
│ │ └── ZlibStream.cs
│ ├── Crypto/
│ │ └── Rc4.cs
│ ├── Extensions.cs
│ ├── LogicRandom.cs
│ ├── Models/
│ │ └── Battle/
│ │ ├── LogicBattleAvatar.cs
│ │ ├── LogicBattleCommand.cs
│ │ ├── LogicBattleCommandStorage.cs
│ │ ├── LogicBattleEvent.cs
│ │ ├── LogicBattleInfo.cs
│ │ ├── LogicBattleSpell.cs
│ │ └── Replay/
│ │ └── LogicReplay.cs
│ ├── Netty/
│ │ ├── Reader.cs
│ │ └── Writer.cs
│ └── Utils/
│ ├── GameUtils.cs
│ ├── ServerUtils.cs
│ └── TimeUtils.cs
└── ClashRoyale.sln
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitattributes
================================================
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
================================================
FILE: .github/workflows/dotnetcore.yml
================================================
name: .NET Core
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Build with dotnet
run: dotnet build ./src/ClashRoyale/ --configuration Release
================================================
FILE: .gitignore
================================================
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# ASP.NET Core default setup: bower directory is configured as wwwroot/lib/ and bower restore is true
**/wwwroot/lib/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- Backup*.rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# JetBrains Rider
.idea/
*.sln.iml
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Server configuration file
config.json
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
================================================
FILE: README.md
================================================
# ClashRoyale (2017)
[](https://clash-royale.en.uptodown.com/android/download/1632865)
[](https://www.gnu.org/licenses/gpl-3.0)

## make sure to checkout my [latest project](https://github.com/Incr3dible/sc-utility)
#### A .NET Core Clash Royale Server (v1.9)
##### Need help? Join our [Discord](https://discord.gg/8cHkNE6)
## Battles
The server supports battles, for those a patched client is neccessary.
[See the wiki for a tutorial](https://github.com/retroroyale/ClashRoyale/wiki/Patch-for-battles)
## How to start
#### Requirements:
- [.NET Core SDK 3.1](https://dotnet.microsoft.com/download/dotnet-core/3.1)
- MySql Database (on Debian i suggest LAMP with PhpMyAdmin)
for Ubuntu use these commands to set it up:
###### Main Server:
```
mkdir ClashRoyale
git clone https://github.com/retroroyale/ClashRoyale.git && cd ClashRoyale/src/ClashRoyale
dotnet publish "ClashRoyale.csproj" -c Release -o app
```
###### Battle Server:
```
mkdir ClashRoyaleBattles
git clone https://github.com/retroroyale/ClashRoyale.git ClashRoyaleBattles && cd ClashRoyaleBattles/src/ClashRoyale.Battles
dotnet publish "ClashRoyale.Battles.csproj" -c Release -o app
```
To configurate your server, such as the database you have to edit the ```config.json``` file.
#### Run the server:
###### Main Server:
```dotnet app/ClashRoyale.dll```
###### Battle Server:
```dotnet app/ClashRoyale.Battles.dll```
#### Update the server:
###### Main Server:
```git pull && dotnet publish "ClashRoyale.csproj" -c Release -o app && dotnet app/ClashRoyale.dll```
###### Battle Server:
```git pull && dotnet publish "ClashRoyale.Battles.csproj" -c Release -o app && dotnet app/ClashRoyale.Battles.dll```
## Need help?
Contact me on Discord (Incredible#2109) or open an issue.
================================================
FILE: random.txt
================================================
RND: -237100689
!!DECK 0!!
JSON:
1: 26000021 // Hogrider
2: 28000008 // Zap
3: 28000011 // Log
4: 26000046 // Bandit
5: 26000043 // Angrybarbarians
6: 26000015 // Babydragon
7: 26000039 // Megaminion
8: 26000041 // Goblingang
REPLAY:
1: 26000021 // Hogrider
2: 26000043 // Angrybarbarians
3: 26000041 // Goblingang
4: 26000039 // Megaminion
5: 26000046 // Bandit
6: 26000015 // Babydragon
7: 28000008 // Zap
8: 28000011 // Log
1. SAME
2. will be 7
3. will be 8
4. will be 5
5. will be 2
6. SAME
7. will be 4
8. will be 3
================================================
FILE: src/.dockerignore
================================================
.dockerignore
.env
.git
.gitignore
.vs
.vscode
*/bin
*/obj
**/.toolstarget
================================================
FILE: src/ClashRoyale/ClashRoyale.csproj
================================================
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<LangVersion>7.3</LangVersion>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotNetty.Buffers" Version="0.6.0" />
<PackageReference Include="DotNetty.Common" Version="0.6.0" />
<PackageReference Include="DotNetty.Handlers" Version="0.6.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="3.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.9.10" />
<PackageReference Include="MySql.Data" Version="8.0.19" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="NLog" Version="4.6.8" />
<PackageReference Include="SharpRaven" Version="2.4.0" />
<PackageReference Include="LZMA-SDK" Version="18.1.0" />
</ItemGroup>
<ItemGroup>
<None Update="GameAssets\csv_client\background_decos.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\billing_packages.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\client_globals.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\credits.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\effects.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\event_output.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\health_bars.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\helpshift.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\hints.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\music.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\news.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\particle_emitters.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\sounds.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\texts.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_client\texts_patch.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\abilities.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\achievements.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\alliance_badges.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\alliance_roles.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\area_effect_objects.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\arenas.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\buildings.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\characters.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\character_buffs.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\chest_order.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\configuration_definitions.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\content_tests.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\decos.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\draft_deck.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\event_categories.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\event_category_definitions.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\event_category_enums.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\event_category_object_definitions.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\event_targeting_definitions.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\exp_levels.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\gamble_chests.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\game_modes.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\globals.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\heroes.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\locales.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\locations.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\npcs.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\predefined_decks.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\projectiles.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\pve_boss.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\pve_gamemodes.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\pve_waves.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\quest_order.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\rarities.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\regions.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\resources.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\resource_packs.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\shop.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\skins.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\spells_buildings.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\spells_characters.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\spells_heroes.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\spells_other.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\spell_sets.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\survival_modes.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\taunts.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\tournament_tiers.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\treasure_chests.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\tutorials_home.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\tutorials_npc.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\tutorial_chest_order.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\csv_logic\tve_gamemodes.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\database.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\fingerprint.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\barbarian_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\barbarian_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\bone_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\bone_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\builder_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\builder_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\champion_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\champion_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\dark_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\dark_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\goblin_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\goblin_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\ice_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\ice_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\jungle_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\jungle_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\legendary_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\legendary_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\royal_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\royal_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\spell_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\spell_arena_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\tilemap_pve.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\titan_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\training_arena.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\training_arena_pve.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\training_arena_pve1.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\locations\training_arena_tve.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\arena_training.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\arena_training_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_barbarian_hut.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_barbarian_hut_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_barbarian_hut_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_basic_cannon.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_basic_cannon_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_basic_cannon_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_bomb_tower.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_bomb_tower_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_bomb_tower_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_elixir_collector.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_elixir_collector_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_elixir_collector_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_firespirit_hut.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_firespirit_hut_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_firespirit_hut_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_goblin_hut.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_goblin_hut_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_inferno_tower.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_inferno_tower_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_inferno_tower_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_mega_bomb.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_mega_bomb_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_mortar.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_mortar_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_mortar_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_rage_bottle.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_rage_bottle_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_tesla.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_tesla_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_tesla_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_tombstone.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_tombstone_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_tombstone_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_tower.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_tower_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_xbow.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_xbow_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\building_xbow_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_archer.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_archer_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_axe_man.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_axe_man_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_axe_man_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_baby_dragon.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_baby_dragon_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_balloon.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_balloon_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_balloon_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_bandit.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_bandit_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_barbarian.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_barbarian_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_barbarian_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_bats.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_bats_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_battle_ram.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_battle_ram_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_battle_ram_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_black_knight.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_black_knight_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_black_knight_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_bomber.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_bomber_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_bowler.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_bowler_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_bowler_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_dark_witch.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_dark_witch_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_dark_witch_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_electro_wizard.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_electro_wizard_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_electro_wizard_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_fire_firespirit.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_fire_firespirit_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_flying_machine.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_flying_machine_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_flying_machine_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_giant.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_giant_skeleton.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_giant_skeleton_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_giant_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_goblin.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_goblin_archer.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_goblin_archer_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_goblin_blowdart.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_goblin_blowdart_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_goblin_blowdart_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_goblin_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_golem.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_golemite.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_golemite_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_golemite_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_golem_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_golem_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_hog_rider.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_hog_rider_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_hog_rider_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_ice_spirits.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_ice_spirits_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_ice_wizard.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_ice_wizard_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_knight.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_knight_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_lava_hound.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_lava_hound_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_lava_pups.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_lava_pups_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_mega_knight.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_mega_knight_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_mega_knight_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_mega_minion.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_mega_minion_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_mega_minion_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_miner.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_miner_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_minion.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_minion_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_mini_pekka.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_mini_pekka_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_movingcannon.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_movingcannon_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_movingcannon_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_musketeer.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_musketeer_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_pekka.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_pekka_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_prince.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_princess.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_princess_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_princess_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_prince_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_rage_barbarian.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_rage_barbarian_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_rage_barbarian_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_royal_giant.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_royal_giant_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_royal_giant_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_skeleton.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_skeleton_balloon.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_skeleton_balloon_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_skeleton_balloon_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_skeleton_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_skeleton_warrior.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_skeleton_warrior_highres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_skeleton_warrior_lowres_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_snowman.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_snowman_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_valkyrie.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_valkyrie_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_witch.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_witch_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_wizard.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_wizard_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_zap_machine.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\chr_zap_machine_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\debug.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\debug_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\effects.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\effects_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_barbarian_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_barbarian_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_bone_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_bone_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_builder_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_builder_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_champion_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_champion_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_dark_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_dark_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_decos.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_decos_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_goblin_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_goblin_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_ice_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_ice_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_jungle_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_jungle_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_legendary_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_legendary_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_royal_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_royal_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_spell_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\level_spell_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\loading.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\loading_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\spell_goblin_barrel.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\spell_goblin_barrel_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\tutorial.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\tutorial_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui_arena.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui_arena_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui_battle_end.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui_battle_end_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui_chest.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui_chest_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui_spells.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui_spells_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sc\ui_tex.sc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\10_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\1st_crown_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\1_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\2nd_crown_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\2v2_matchmake_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\2v2_matchmake_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\2v2_matchmake_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\2v2_matchmake_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\2_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\3rd_crown_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\3_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\4_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\5_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\60_sec_warn_02_v2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\6_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\7_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\8_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\9_cd_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\achievement_unlock_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\archer_attack_07.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\archer_queen_attack_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\archer_step_06.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\archer_tower_fire_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\arctic_arena_jingle_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\arrow_hit_13.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\arrow_norm_impact_06.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\attack_button_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\axeswing_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\axe_impact_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\babydragon_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\babydragon_wing_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\baby_dragon_deploy_end_11.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\baby_dragon_fireball_08.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bad_drop_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\balloon_fly_loop_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bandit_atk_vo_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bandit_atk_vo_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bandit_bat_hit_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bandit_dash_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bandit_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bandit_slam_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bandit_sneaky_laugh_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bandit_step_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barbarian_attack_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barbarian_attack_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barbarian_attack_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barbarian_attack_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barbarian_attack_06.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barbarian_attack_07.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barbarian_attack_08.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barbarian_jingle_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barb_footstep_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barb_footstep_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barb_footstep_03_no_vo.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barb_footstep_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barb_footstep_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barb_footstep_06.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barrel_drawback_14.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\barrel_explosion_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\battleram_charge_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\battleram_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bat_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bat_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bat_fly_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\big_horn_end_02_v2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\big_horn_start_02_v2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\big_skeleton_hit_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\big_skeleton_summon_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\big_skeleton_walk_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\blowdart_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\blowdart_goblin_atk_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\blowdart_gob_jump_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\blowdart_hit_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\blu_walk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\blu_walk_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\board_slide_in_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bomb_drop_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bomb_skeleton_01v3.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bomb_skeleton_atk_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bone_pit_arena_jingle_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bonus_1.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bonus_2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bonus_3.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bonus_4.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\boulder_impact_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bowler_deploy_vo_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bowler_step_01v2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bowl_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bowl_atk_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bowl_atk_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bowl_atk_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\bowl_atk_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\builder_arena_new_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\building_destroyed_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\building_explode_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\building_place_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\button_click_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\buy_common_card_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\buy_epic_card_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\buy_gems_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\buy_legnedary_card_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\buy_rare_card_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\b_knight_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\b_knight_atk_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\b_knight_atk_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\b_knight_atk_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\b_knight_atk_charge_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\b_knight_atk_charge_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\b_knight_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\b_knight_deploy_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\b_knight_deploy_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\cannon_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\cannon_fire_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\card_fly_in_06.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\card_ready_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\card_upgrade_counter_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\card_upgrade_hit_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\card_upgrade_stat_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\cemetary_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\champions_chest_land_open_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\champions_chest_tap_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\chest_fly_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\chest_land_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\chest_loop_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\claim_achievement_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\clash_archer_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\clone_spell_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\count_cards_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\count_gems_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\count_gold_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\crown_appear_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dark_arena_jingle_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dark_prince_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dark_prince_atk_hit_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dark_prince_charge_jing_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dark_prince_death_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dark_prince_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dark_prince_shield_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dark_prince_shield_lost_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dark_prince_step_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\demon_step_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\deploy_balloon_06.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\deploy_barbarians_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\deploy_executioner_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\deploy_ice_golem_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\deploy_lava_hound_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\deploy_skeleton_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\deploy_timer_ding_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\deploy_timer_tick_01v4.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\deploy_wizard_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\donate_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\drop_bomb_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dummy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dw_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\dw_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\electro_wiz_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\electro_wiz_atk_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\electro_wiz_atk_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\electro_wiz_atk_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\electro_wiz_atk_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\electro_wiz_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\elite_barbs_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\elixir_collector_place_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\end_card_count_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\enemy_deploy_timer_ding_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\enemy_deploy_timer_tick_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\enemy_summon_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\enemy_tower_attacked_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\executioner_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\executioner_footstep_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\explosion_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\extratime_jingle_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fireball_hit_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_ball_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_ball_explo_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_hut_place_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_spirit_attack_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_spirit_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_spirit_deploy_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_spirit_step_sfx_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_spirit_step_vo_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_spirit_step_vo_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\fire_spirit_step_vo_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\flamearch_step_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\flying_machine_loop_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\footman_attack_hit_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\footman_attack_hit_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\footman_attack_hit_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\footman_attack_hit_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\freeze_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_bonus_card_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_card_comon_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_card_gems_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_card_gold_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_card_rare_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_chest_card_overview_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_crown_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_diamonds_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_elixir_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_epic_rare_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_gold_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_legendary_card_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_mana_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_star_equence_01boo.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_star_equence_01_v2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\get_xp_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\giant_attack_swing_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\giant_attack_swing_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\giant_attack_swing_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\giant_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\giant_hit_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\giant_skelly_dep_vo_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\goblin_arena_jingle_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\goblin_deploy_14.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\gob_attack_01v2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\gob_attack_02v2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\gob_attack_03v2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\gob_step_01_v1.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\gob_step_01_v2.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\gob_step_01_v3.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\gob_step_01_v4.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\gob_step_01_v5.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\golden_chest_land_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\gold_chest_open_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\golem_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\golem_atk_hit_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\golem_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\golem_die_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\golem_walk_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\grabcard_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\heal_magic_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\hogrider_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\hogrider_atk_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\hogrider_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\hogrider_deploy_end_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\hogrider_step_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\hog_arena_jingle_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\horse_blow_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\horse_gallop_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\horse_gallop_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\hugewooden_land_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\hugewooden_land_open_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\huge_magical_chest_tap_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\huge_magical_land_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\icemage_attack_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_golem_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_mage_impact_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_sp_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_sp_deploy_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_atk_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_atk_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_atk_03.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_atk_05.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_atk_07.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_atk_08.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_deploy_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_dep_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_dep_04.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_footstep_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\ice_wiz_land_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\inferno_dragon_fireloop_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\iron_chest_land_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\iron_chest_open_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\jungle_arena_jingle_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\kill_enemy_big_summon_02.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\sfx\king_activate_01.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\tilemaps\tilemap.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\tilemaps\tilemap_2v2.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\tilemaps\tilemap_pve.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\tilemaps\tilemap_pve1.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="GameAssets\tilemaps\tilemap_tve.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="NLog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ClashRoyale.Utilities\ClashRoyale.Utilities.csproj" />
</ItemGroup>
</Project>
================================================
FILE: src/ClashRoyale/ClashRoyale.csproj.DotSettings
================================================
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=protocol_005Cmessages_005Cserver_005Calliance/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=protocol_005Cmessages_005Cserver_005Chome/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=protocol_005Cmessages_005Cserver_005Clogin/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=protocol_005Cmessages_005Cserver_005Cmatchmake/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=protocol_005Cmessages_005Cserver_005Csector/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=protocol_005Cmessages_005Cserver_005Ctournament/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
================================================
FILE: src/ClashRoyale/Core/Cluster/Node.cs
================================================
using System;
using System.Net;
using ClashRoyale.Core.Cluster.Protocol;
using ClashRoyale.Core.Network.Handlers.Cluster;
using ClashRoyale.Utilities.Crypto;
using DotNetty.Buffers;
using SharpRaven.Data;
namespace ClashRoyale.Core.Cluster
{
public class Node
{
public Node(ClusterPacketHandler handler)
{
Handler = handler;
}
/// <summary>
/// Process the buffer sent by the client
/// </summary>
/// <param name="buffer"></param>
public void Process(IByteBuffer buffer)
{
var id = buffer.ReadUnsignedShort();
var length = buffer.ReadMedium();
if (id < 10000 || id >= 20000) return;
if (!ClusterMessageFactory.Messages.ContainsKey(id))
{
Logger.Log($"Message ID: {id}, L: {length} is not known.", GetType(),
ErrorLevel.Warning);
return;
}
if (!(Activator.CreateInstance(ClusterMessageFactory.Messages[id], this, buffer) is ClusterMessage
message)) return;
try
{
message.Id = id;
message.Length = length;
message.Decrypt();
message.Decode();
message.Process();
Logger.Log($"[C] Message {id} ({message.GetType().Name}) handled.", GetType(),
ErrorLevel.Debug);
}
catch (Exception exception)
{
Logger.Log($"Failed to process {id}: " + exception, GetType(), ErrorLevel.Error);
}
}
/// <summary>
/// Returns the Ipv4 Address of the client
/// </summary>
/// <returns></returns>
public string GetIp()
{
return ((IPEndPoint) Handler.Channel.RemoteAddress).Address.MapToIPv4().ToString();
}
#region Objects
public ClusterPacketHandler Handler { get; set; }
public Rc4Core Rc4 = new Rc4Core(Resources.Configuration.ClusterKey, Resources.Configuration.ClusterNonce);
public NodeInfo NodeInfo { get; set; }
#endregion Objects
}
}
================================================
FILE: src/ClashRoyale/Core/Cluster/NodeInfo.cs
================================================
using System.Text;
namespace ClashRoyale.Core.Cluster
{
public class NodeInfo
{
public string Ip { get; set; }
public int Port { get; set; }
public string Nonce { get; set; }
public int BattlesRunning { get; set; }
public int MaxBattles { get; set; }
public override string ToString()
{
var sb = new StringBuilder();
sb.AppendLine($"IP: {Ip}");
sb.AppendLine($"Port: {Port}");
sb.AppendLine($"Nonce: {Nonce}");
sb.AppendLine($"Active Battles: {BattlesRunning}");
sb.AppendLine($"Max Battles: {MaxBattles}");
return sb.ToString();
}
}
}
================================================
FILE: src/ClashRoyale/Core/Cluster/NodeManager.cs
================================================
using System.Collections.Generic;
using System.Linq;
namespace ClashRoyale.Core.Cluster
{
public class NodeManager : Dictionary<string, NodeInfo>
{
private readonly object _syncLock = new object();
/// <summary>
/// Add a new server
/// </summary>
/// <param name="host"></param>
/// <param name="info"></param>
public new void Add(string host, NodeInfo info)
{
lock (_syncLock)
{
if (host.Contains(':')) base.Add(host, info);
}
}
/// <summary>
/// Remove a server by the host
/// </summary>
/// <param name="host"></param>
public new void Remove(string host)
{
lock (_syncLock)
{
if (!host.Contains(':')) return;
if (ContainsKey(host)) base.Remove(host);
}
}
/// <summary>
/// Returns a server if available with the lowest battles running
/// </summary>
/// <returns></returns>
public NodeInfo GetServer()
{
lock (_syncLock)
{
var server = Values.FirstOrDefault(x => x.BattlesRunning < x.MaxBattles);
return server;
}
}
}
}
================================================
FILE: src/ClashRoyale/Core/Cluster/Protocol/ClusterMessage.cs
================================================
using System;
using System.Threading.Tasks;
using DotNetty.Buffers;
using SharpRaven.Data;
namespace ClashRoyale.Core.Cluster.Protocol
{
public class ClusterMessage
{
/// <summary>
/// Client Message
/// </summary>
/// <param name="server"></param>
public ClusterMessage(Node server)
{
Server = server;
Writer = PooledByteBufferAllocator.Default.Buffer();
}
/// <summary>
/// Server Message
/// </summary>
/// <param name="server"></param>
/// <param name="buffer"></param>
public ClusterMessage(Node server, IByteBuffer buffer)
{
Server = server;
Reader = buffer;
}
public IByteBuffer Writer { get; set; }
public IByteBuffer Reader { get; set; }
public Node Server { get; set; }
public ushort Id { get; set; }
public int Length { get; set; }
/// <summary>
/// Decrypts the current message
/// </summary>
public virtual void Decrypt()
{
if (Length <= 0) return;
var buffer = Reader.ReadBytes(Length);
Server.Rc4.Decrypt(ref buffer);
Reader = buffer;
Length = buffer.ReadableBytes;
}
/// <summary>
/// Encrypts the current message
/// </summary>
public virtual void Encrypt()
{
if (Writer.ReadableBytes <= 0) return;
var buffer = Writer;
Server.Rc4.Encrypt(ref buffer);
Length = buffer.ReadableBytes;
}
/// <summary>
/// Decodes the current message
/// </summary>
public virtual void Decode()
{
}
/// <summary>
/// Encodes the current message
/// </summary>
public virtual void Encode()
{
}
/// <summary>
/// Processes the current message
/// </summary>
public virtual void Process()
{
}
/// <summary>
/// Writes this message to the clients channel
/// </summary>
/// <returns></returns>
public async Task SendAsync()
{
try
{
await Server.Handler.Channel.WriteAndFlushAsync(this);
Logger.Log($"[S] Message {Id} ({GetType().Name}) sent.", GetType(), ErrorLevel.Debug);
}
catch (Exception)
{
Logger.Log($"[S] Failed to send {Id}.", GetType(), ErrorLevel.Debug);
}
}
}
}
================================================
FILE: src/ClashRoyale/Core/Cluster/Protocol/ClusterMessageFactory.cs
================================================
using System;
using System.Collections.Generic;
using ClashRoyale.Core.Cluster.Protocol.Messages.Client;
namespace ClashRoyale.Core.Cluster.Protocol
{
public class ClusterMessageFactory
{
public static Dictionary<int, Type> Messages;
static ClusterMessageFactory()
{
Messages = new Dictionary<int, Type>
{
{10101, typeof(ConnectionCheckMessage)},
{11000, typeof(BattleFinishedMessage)},
{12000, typeof(ServerInfoMessage)}
};
}
}
}
================================================
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Client/BattleFinishedMessage.cs
================================================
using ClashRoyale.Utilities.Netty;
using DotNetty.Buffers;
namespace ClashRoyale.Core.Cluster.Protocol.Messages.Client
{
public class BattleFinishedMessage : ClusterMessage
{
public BattleFinishedMessage(Node server, IByteBuffer buffer) : base(server, buffer)
{
Id = 11000;
}
public long SessionId { get; set; }
public byte Gamemode { get; set; }
public byte Index { get; set; }
public string ReplayJson { get; set; }
public override void Decode()
{
SessionId = Reader.ReadLong();
Gamemode = Reader.ReadByte();
Index = Reader.ReadByte();
ReplayJson = Reader.ReadScString();
}
public override void Process()
{
if (Gamemode == 0)
{
var battle = Resources.Battles.Get(SessionId);
if (battle == null) return;
/*var replay = JsonConvert.DeserializeObject<LogicReplay>(ReplayJson);
battle.Replay.Commands = replay.Commands;
battle.Replay.RandomSeed = replay.RandomSeed;
battle.Replay.Time = replay.Time;
battle.Replay.EndTick = replay.EndTick;*/
battle.Stop(Index);
}
// TODO: DUO
}
}
}
================================================
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Client/ConnectionCheckMessage.cs
================================================
using ClashRoyale.Core.Cluster.Protocol.Messages.Server;
using ClashRoyale.Utilities.Netty;
using DotNetty.Buffers;
using SharpRaven.Data;
namespace ClashRoyale.Core.Cluster.Protocol.Messages.Client
{
public class ConnectionCheckMessage : ClusterMessage
{
public ConnectionCheckMessage(Node server, IByteBuffer buffer) : base(server, buffer)
{
Id = 10101;
}
public string Nonce { get; set; }
public int Port { get; set; }
public int MaxBattles { get; set; }
public bool CryptoFailed { get; set; }
public override void Decode()
{
CryptoFailed = Reader.ReadBoolean();
if (CryptoFailed) return;
Nonce = Reader.ReadScString();
Port = Reader.ReadVInt();
MaxBattles = Reader.ReadVInt();
}
public override async void Process()
{
if (CryptoFailed)
{
Logger.Log($"Failed to decrypt packet of battle server {Server.GetIp()}.", GetType(),
ErrorLevel.Warning);
await new ConnectionFailedMessage(Server)
{
Error = 1
}.SendAsync();
return;
}
var ip = Server.GetIp();
var info = new NodeInfo
{
Ip = ip,
Port = Port,
Nonce = Nonce,
MaxBattles = MaxBattles
};
Resources.NodeManager.Add(ip + ":" + Port, info);
Server.NodeInfo = info;
await new ConnectionOkMessage(Server).SendAsync();
}
}
}
================================================
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Client/ServerInfoMessage.cs
================================================
using ClashRoyale.Utilities.Netty;
using DotNetty.Buffers;
namespace ClashRoyale.Core.Cluster.Protocol.Messages.Client
{
public class ServerInfoMessage : ClusterMessage
{
public ServerInfoMessage(Node server, IByteBuffer buffer) : base(server, buffer)
{
Id = 12000;
}
public int BattlesRunning { get; set; }
public int MaxBattles { get; set; }
public override void Decode()
{
BattlesRunning = Reader.ReadVInt();
MaxBattles = Reader.ReadVInt();
}
public override void Process()
{
var info = Server.NodeInfo;
info.MaxBattles = MaxBattles;
info.BattlesRunning = BattlesRunning;
}
}
}
================================================
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Server/ConnectionFailedMessage.cs
================================================
using ClashRoyale.Utilities.Netty;
namespace ClashRoyale.Core.Cluster.Protocol.Messages.Server
{
public class ConnectionFailedMessage : ClusterMessage
{
public ConnectionFailedMessage(Node server) : base(server)
{
Id = 20103;
}
public int Error { get; set; }
// Codes:
// 1 = Crypto Error
public override void Encode()
{
Writer.WriteVInt(Error);
}
}
}
================================================
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Server/ConnectionOkMessage.cs
================================================
namespace ClashRoyale.Core.Cluster.Protocol.Messages.Server
{
public class ConnectionOkMessage : ClusterMessage
{
public ConnectionOkMessage(Node server) : base(server)
{
Id = 20104;
}
}
}
================================================
FILE: src/ClashRoyale/Core/Configuration.cs
================================================
using System;
using System.IO;
using Newtonsoft.Json;
namespace ClashRoyale.Core
{
public class Configuration
{
[JsonIgnore] public static JsonSerializerSettings JsonSettings = new JsonSerializerSettings
{
ObjectCreationHandling = ObjectCreationHandling.Reuse,
MissingMemberHandling = MissingMemberHandling.Ignore,
DefaultValueHandling = DefaultValueHandling.Ignore,
NullValueHandling = NullValueHandling.Ignore,
TypeNameHandling = TypeNameHandling.Auto,
Formatting = Formatting.None
};
// Make sure to edit these on prod
[JsonProperty("cluster_encryption_key")]
public string ClusterKey = "15uvmi8qnyuj9tm53ipaavvytltm582yatecyjzb";
[JsonProperty("cluster_encryption_nonce")]
public string ClusterNonce = "nonce";
[JsonProperty("cluster_server_port")] public int ClusterServerPort = 9876;
[JsonProperty("encryption_key")] public string EncryptionKey = "fhsd6f86f67rt8fw78fw789we78r9789wer6re";
[JsonProperty("mysql_database")] public string MySqlDatabase = "rrdb";
[JsonProperty("mysql_password")] public string MySqlPassword = "";
[JsonProperty("mysql_server")] public string MySqlServer = "127.0.0.1";
[JsonProperty("mysql_user")] public string MySqlUserId = "root";
[JsonProperty("patch_url")] public string PatchUrl = "";
[JsonProperty("sentry_api")] public string SentryApiUrl = "";
[JsonProperty("server_port")] public int ServerPort = 9339;
[JsonProperty("update_url")] public string UpdateUrl = "https://github.com/retroroyale/ClashRoyale";
[JsonProperty("use_content_patch")] public bool UseContentPatch;
[JsonProperty("use_udp")] public bool UseUdp;
/// <summary>
/// Loads the configuration
/// </summary>
public void Initialize()
{
if (File.Exists("config.json"))
try
{
var config = JsonConvert.DeserializeObject<Configuration>(File.ReadAllText("config.json"));
EncryptionKey = config.EncryptionKey;
SentryApiUrl = config.SentryApiUrl;
MySqlUserId = config.MySqlUserId;
MySqlServer = config.MySqlServer;
MySqlPassword = config.MySqlPassword;
MySqlDatabase = config.MySqlDatabase;
PatchUrl = config.PatchUrl;
UseContentPatch = config.UseContentPatch;
ServerPort = config.ServerPort;
UpdateUrl = config.UpdateUrl;
UseUdp = config.UseUdp;
ClusterServerPort = config.ClusterServerPort;
ClusterKey = config.ClusterKey;
ClusterNonce = config.ClusterNonce;
}
catch (Exception)
{
Console.WriteLine("Couldn't load configuration.");
Console.ReadKey(true);
Environment.Exit(0);
}
else
try
{
Save();
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine("Server configuration has been created. Restart the server now.");
Console.ReadKey();
Environment.Exit(0);
}
catch (Exception)
{
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.WriteLine("Couldn't create config file.");
Console.ReadKey();
Environment.Exit(0);
}
}
public void Save()
{
File.WriteAllText("config.json", JsonConvert.SerializeObject(this, Formatting.Indented));
}
}
}
================================================
FILE: src/ClashRoyale/Core/Leaderboards/Leaderboard.cs
================================================
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Timers;
using ClashRoyale.Database;
using ClashRoyale.Files;
using ClashRoyale.Files.CsvLogic;
using ClashRoyale.Logic;
using ClashRoyale.Logic.Clan;
using ClashRoyale.Utilities;
using SharpRaven.Data;
namespace ClashRoyale.Core.Leaderboards
{
public class Leaderboard
{
private readonly Timer _timer = new Timer(20000);
public List<Alliance> GlobalAllianceRanking = new List<Alliance>(200);
public List<Player> GlobalPlayerRanking = new List<Player>(200);
public Dictionary<string, List<Player>> LocalPlayerRanking = new Dictionary<string, List<Player>>(18);
public Leaderboard()
{
_timer.Elapsed += Update;
_timer.Start();
foreach (var locales in Csv.Tables.Get(Csv.Files.Locales).GetDatas())
LocalPlayerRanking.Add(((Locales) locales).Name, new List<Player>(200));
Update(null, null);
}
/// <summary>
/// Update all Leaderboards
/// </summary>
/// <param name="state"></param>
/// <param name="args"></param>
public async void Update(object state, ElapsedEventArgs args)
{
await Task.Run(async () =>
{
try
{
var currentGlobalPlayerRanking = await PlayerDb.GetGlobalPlayerRankingAsync();
for (var i = 0; i < currentGlobalPlayerRanking.Count; i++)
GlobalPlayerRanking.UpdateOrInsert(i, currentGlobalPlayerRanking[i]);
foreach (var (key, value) in LocalPlayerRanking)
{
var currentLocalPlayerRanking = await PlayerDb.GetLocalPlayerRankingAsync(key);
for (var i = 0; i < currentLocalPlayerRanking.Count; i++)
value.UpdateOrInsert(i, currentLocalPlayerRanking[i]);
}
var currentGlobalAllianceRanking = await AllianceDb.GetGlobalAlliancesAsync();
for (var i = 0; i < currentGlobalAllianceRanking.Count; i++)
GlobalAllianceRanking.UpdateOrInsert(i, currentGlobalAllianceRanking[i]);
}
catch (Exception exception)
{
Logger.Log($"Error while updating leaderboads {exception}", GetType(), ErrorLevel.Error);
}
});
}
}
}
================================================
FILE: src/ClashRoyale/Core/Network/Handlers/Cluster/ClusterPacketEncoder.cs
================================================
using System.Threading.Tasks;
using ClashRoyale.Core.Cluster.Protocol;
using DotNetty.Buffers;
using DotNetty.Transport.Channels;
namespace ClashRoyale.Core.Network.Handlers.Cluster
{
public class ClusterPacketEncoder : ChannelHandlerAdapter
{
public override Task WriteAsync(IChannelHandlerContext context, object msg)
{
if (!(msg is ClusterMessage message)) return base.WriteAsync(context, null);
message.Encode();
if (message.Id != 20103)
message.Encrypt();
var header = PooledByteBufferAllocator.Default.Buffer(5);
header.WriteUnsignedShort(message.Id);
header.WriteMedium(message.Length);
base.WriteAsync(context, header);
return base.WriteAsync(context, message.Writer);
}
}
}
================================================
FILE: src/ClashRoyale/Core/Network/Handlers/Cluster/ClusterPacketHandler.cs
================================================
using System;
using System.Net;
using System.Net.Sockets;
using ClashRoyale.Core.Cluster;
using DotNetty.Buffers;
using DotNetty.Handlers.Timeout;
using DotNetty.Transport.Channels;
using SharpRaven.Data;
namespace ClashRoyale.Core.Network.Handlers.Cluster
{
public class ClusterPacketHandler : ChannelHandlerAdapter
{
public ClusterPacketHandler()
{
Node = new Node(this);
}
public IChannel Channel { get; set; }
public Node Node { get; set; }
public override void ChannelRead(IChannelHandlerContext context, object message)
{
var buffer = (IByteBuffer) message;
if (buffer == null) return;
Node.Process(buffer);
}
public override void ChannelReadComplete(IChannelHandlerContext context)
{
context.Flush();
}
public override void ChannelRegistered(IChannelHandlerContext context)
{
Channel = context.Channel;
var remoteAddress = (IPEndPoint) Channel.RemoteAddress;
Logger.Log($"Server {remoteAddress.Address.MapToIPv4()}:{remoteAddress.Port} connected.", GetType(),
ErrorLevel.Debug);
base.ChannelRegistered(context);
}
public override void ChannelUnregistered(IChannelHandlerContext context)
{
if (Node.NodeInfo != null)
Resources.NodeManager.Remove($"{Node.NodeInfo.Ip}:{Node.NodeInfo.Port}");
var remoteAddress = (IPEndPoint) Channel.RemoteAddress;
Logger.Log($"Server {remoteAddress.Address.MapToIPv4()}:{remoteAddress.Port} disconnected.", GetType(),
ErrorLevel.Debug);
base.ChannelUnregistered(context);
}
public override void ExceptionCaught(IChannelHandlerContext context, Exception exception)
{
if (exception.GetType() != typeof(ReadTimeoutException) &&
exception.GetType() != typeof(WriteTimeoutException) &&
exception.GetType() != typeof(SocketException))
Logger.Log(exception, GetType(), ErrorLevel.Error);
context.CloseAsync();
}
}
}
================================================
FILE: src/ClashRoyale/Core/Network/Handlers/PacketEncoder.cs
================================================
using System.Threading.Tasks;
using ClashRoyale.Protocol;
using DotNetty.Buffers;
using DotNetty.Transport.Channels;
namespace ClashRoyale.Core.Network.Handlers
{
public class PacketEncoder : ChannelHandlerAdapter
{
public override Task WriteAsync(IChannelHandlerContext context, object msg)
{
if (!(msg is PiranhaMessage message)) return base.WriteAsync(context, null);
message.Encode();
message.Encrypt();
var header = PooledByteBufferAllocator.Default.Buffer(7);
header.WriteUnsignedShort(message.Id);
header.WriteMedium(message.Writer.WriterIndex);
header.WriteUnsignedShort(message.Version);
base.WriteAsync(context, header);
return base.WriteAsync(context, message.Writer);
}
}
}
================================================
FILE: src/ClashRoyale/Core/Network/Handlers/PacketHandler.cs
================================================
using System;
using System.Net;
using ClashRoyale.Logic;
using DotNetty.Buffers;
using DotNetty.Handlers.Timeout;
using DotNetty.Transport.Channels;
using SharpRaven.Data;
namespace ClashRoyale.Core.Network.Handlers
{
public class PacketHandler : ChannelHandlerAdapter
{
public PacketHandler()
{
Throttler = new Throttler(10, 500);
Device = new Device(this);
}
public Device Device { get; set; }
public IChannel Channel { get; set; }
public Throttler Throttler { get; set; }
public override void ChannelRead(IChannelHandlerContext context, object message)
{
var buffer = (IByteBuffer) message;
if (buffer == null) return;
if (Throttler.CanProcess())
{
Device.Process(buffer);
}
else
{
Logger.Log("Client reached ratelimit. Disconnecting...", GetType(), ErrorLevel.Warning);
Device.Disconnect();
}
}
public override void ChannelReadComplete(IChannelHandlerContext context)
{
context.Flush();
}
public override void ChannelRegistered(IChannelHandlerContext context)
{
Channel = context.Channel;
var remoteAddress = (IPEndPoint) Channel.RemoteAddress;
Logger.Log($"Client {remoteAddress.Address.MapToIPv4()}:{remoteAddress.Port} connected.", GetType(),
ErrorLevel.Debug);
base.ChannelRegistered(context);
}
public override async void ChannelUnregistered(IChannelHandlerContext context)
{
if (Device?.Player?.Home != null)
{
var player = await Resources.Players.GetPlayerAsync(Device.Player.Home.Id, true);
if (player != null)
if (player.Device.Session.SessionId == Device.Session.SessionId)
{
Resources.Players.LogoutById(player.Home.Id);
if (player.Home.AllianceInfo.HasAlliance)
{
var alliance = await Resources.Alliances.GetAllianceAsync(player.Home.AllianceInfo.Id);
if (alliance != null)
{
var entry = alliance.Stream.Find(e =>
e.SenderId == player.Home.Id && e.StreamEntryType == 10);
if (entry != null) alliance.RemoveEntry(entry);
if (alliance.Online < 1)
Resources.Alliances.Remove(alliance.Id);
/*Logger.Log($"Uncached Clan {alliance.Id} because no member is online.", GetType(),
ErrorLevel.Debug);*/
else alliance.UpdateOnlineCount();
}
}
}
}
var remoteAddress = (IPEndPoint) Channel.RemoteAddress;
Logger.Log($"Client {remoteAddress.Address.MapToIPv4()}:{remoteAddress.Port} disconnected.", GetType(),
ErrorLevel.Debug);
base.ChannelUnregistered(context);
}
public override void ExceptionCaught(IChannelHandlerContext context, Exception exception)
{
if (exception.GetType() != typeof(ReadTimeoutException) &&
exception.GetType() != typeof(WriteTimeoutException))
Logger.Log(exception, GetType(), ErrorLevel.Error);
context.CloseAsync();
}
}
}
================================================
FILE: src/ClashRoyale/Core/Network/NettyService.cs
================================================
using System.Net;
using System.Threading.Tasks;
using ClashRoyale.Core.Network.Handlers;
using ClashRoyale.Core.Network.Handlers.Cluster;
using DotNetty.Codecs;
using DotNetty.Handlers.Logging;
using DotNetty.Handlers.Timeout;
using DotNetty.Transport.Bootstrapping;
using DotNetty.Transport.Channels;
using DotNetty.Transport.Channels.Sockets;
namespace ClashRoyale.Core.Network
{
public class NettyService
{
public MultithreadEventLoopGroup BossGroup { get; set; }
public MultithreadEventLoopGroup WorkerGroup { get; set; }
public MultithreadEventLoopGroup ClusterBossGroup { get; set; }
public MultithreadEventLoopGroup ClusterWorkerGroup { get; set; }
public ServerBootstrap ServerBootstrap { get; set; }
public ServerBootstrap ClusterBootstrap { get; set; }
public IChannel ServerChannel { get; set; }
public IChannel ClusterServerChannel { get; set; }
/// <summary>
/// Run the server and optionally the cluster server
/// </summary>
/// <returns></returns>
public async Task RunServerAsync()
{
BossGroup = new MultithreadEventLoopGroup();
WorkerGroup = new MultithreadEventLoopGroup();
ClusterBossGroup = new MultithreadEventLoopGroup();
ClusterWorkerGroup = new MultithreadEventLoopGroup();
// Main Server
{
ServerBootstrap = new ServerBootstrap();
ServerBootstrap.Group(BossGroup, WorkerGroup);
ServerBootstrap.Channel<TcpServerSocketChannel>();
ServerBootstrap
.Option(ChannelOption.SoBacklog, 100)
.Option(ChannelOption.TcpNodelay, true)
.Option(ChannelOption.SoKeepalive, true)
.Handler(new LoggingHandler("SRV-ICR"))
.ChildHandler(new ActionChannelInitializer<IChannel>(channel =>
{
var pipeline = channel.Pipeline;
pipeline.AddFirst("FrameDecoder", new LengthFieldBasedFrameDecoder(512, 2, 3, 2, 0));
pipeline.AddLast("ReadTimeoutHandler", new ReadTimeoutHandler(30));
pipeline.AddLast("WriteTimeoutHandler", new WriteTimeoutHandler(30));
pipeline.AddLast("PacketHandler", new PacketHandler());
pipeline.AddLast("PacketEncoder", new PacketEncoder());
}));
}
// Cluster Server
{
ClusterBootstrap = new ServerBootstrap();
ClusterBootstrap.Group(ClusterBossGroup, ClusterWorkerGroup);
ClusterBootstrap.Channel<TcpServerSocketChannel>();
ClusterBootstrap
.Option(ChannelOption.SoBacklog, 100)
.Option(ChannelOption.TcpNodelay, true)
.Option(ChannelOption.SoKeepalive, true)
.Handler(new LoggingHandler("SRV-ICR"))
.ChildHandler(new ActionChannelInitializer<IChannel>(channel =>
{
var pipeline = channel.Pipeline;
pipeline.AddFirst("FrameDecoder", new LengthFieldBasedFrameDecoder(short.MaxValue, 2, 3, 0, 0));
//pipeline.AddLast("ReadTimeoutHandler", new ReadTimeoutHandler(60));
//pipeline.AddLast("WriteTimeoutHandler", new WriteTimeoutHandler(60));
pipeline.AddLast("ClusterPacketHandler", new ClusterPacketHandler());
pipeline.AddLast("ClusterPacketEncoder", new ClusterPacketEncoder());
}));
}
if (Resources.Configuration.UseUdp)
{
ClusterServerChannel = await ClusterBootstrap.BindAsync(Resources.Configuration.ClusterServerPort);
var clusterEndpoint = (IPEndPoint) ClusterServerChannel.LocalAddress;
Logger.Log(
$"Cluster started on {clusterEndpoint.Address.MapToIPv4()}:{clusterEndpoint.Port}.",
GetType());
}
ServerChannel = await ServerBootstrap.BindAsync(Resources.Configuration.ServerPort);
var endpoint = (IPEndPoint) ServerChannel.LocalAddress;
Logger.Log(
$"Listening on {endpoint.Address.MapToIPv4()}:{endpoint.Port}. Let's play ClashRoyale!",
GetType());
}
/// <summary>
/// Close all channels and disconnects clients
/// </summary>
/// <returns></returns>
public async Task Shutdown()
{
await ServerChannel.CloseAsync();
if (Resources.Configuration.UseUdp)
await ClusterServerChannel.CloseAsync();
}
/// <summary>
/// Shutdown all workers of netty
/// </summary>
/// <returns></returns>
public async Task ShutdownWorkers()
{
await WorkerGroup.ShutdownGracefullyAsync();
await BossGroup.ShutdownGracefullyAsync();
await ClusterWorkerGroup.ShutdownGracefullyAsync();
await ClusterBossGroup.ShutdownGracefullyAsync();
}
}
}
================================================
FILE: src/ClashRoyale/Core/Network/Throttler.cs
================================================
using System;
namespace ClashRoyale.Core.Network
{
public class Throttler
{
private readonly int _interval;
private readonly int _maxPackets;
private int _count;
private DateTime _lastReset = DateTime.UtcNow;
/// <summary>
/// Throttle packets by checking if we can process it or if the ratelimit is reached
/// </summary>
/// <param name="maxPackets"></param>
/// <param name="interval"></param>
public Throttler(int maxPackets, int interval)
{
_maxPackets = maxPackets;
_interval = interval;
}
public bool CanProcess()
{
if (_count++ < _maxPackets) return true;
if (GetMillisecondsSinceLastReset() < _interval) return false;
_count = 1;
_lastReset = DateTime.UtcNow;
return true;
}
private int GetMillisecondsSinceLastReset()
{
return (int) DateTime.UtcNow.Subtract(_lastReset).TotalMilliseconds;
}
}
}
================================================
FILE: src/ClashRoyale/Core/SentryReport.cs
================================================
using System;
using SharpRaven;
using SharpRaven.Data;
namespace ClashRoyale.Core
{
public class SentryReport
{
public SentryReport()
{
if (string.IsNullOrEmpty(Resources.Configuration.SentryApiUrl)) return;
Client = new RavenClient(Resources.Configuration.SentryApiUrl)
{
Logger = "ClashRoyale",
IgnoreBreadcrumbs = true,
ErrorOnCapture = e =>
{
// ignore
}
};
Client.Tags.Add("contentVersion", Resources.Fingerprint.GetVersion);
}
private RavenClient Client { get; }
/// <summary>
/// Capture an event triggered by an error
/// </summary>
/// <param name="message"></param>
/// <param name="type"></param>
/// <param name="level"></param>
public async void Report(string message, Type type, ErrorLevel level)
{
if (Client == null)
return;
try
{
var sentryEvent = new SentryEvent(message)
{
Level = level
};
sentryEvent.Tags.Add("className", type.Name);
await Client.CaptureAsync(sentryEvent);
}
catch (Exception)
{
// ignore
}
}
}
}
================================================
FILE: src/ClashRoyale/Database/AllianceDb.cs
================================================
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using ClashRoyale.Core;
using ClashRoyale.Logic.Clan;
using MySql.Data.MySqlClient;
using Newtonsoft.Json;
using SharpRaven.Data;
namespace ClashRoyale.Database
{
public class AllianceDb
{
private const string Name = "clan";
private static string _connectionString;
private static long _allianceSeed;
public AllianceDb()
{
_connectionString = new MySqlConnectionStringBuilder
{
Server = Resources.Configuration.MySqlServer,
Database = Resources.Configuration.MySqlDatabase,
UserID = Resources.Configuration.MySqlUserId,
Password = Resources.Configuration.MySqlPassword,
SslMode = MySqlSslMode.None,
MinimumPoolSize = 4,
MaximumPoolSize = 20,
CharacterSet = "utf8mb4"
}.ToString();
_allianceSeed = MaxAllianceId();
if (_allianceSeed > -1) return;
Logger.Log($"MysqlConnection for clans failed [{Resources.Configuration.MySqlServer}]!", GetType());
Program.Exit();
}
public static async Task ExecuteAsync(MySqlCommand cmd)
{
#region Execute
try
{
cmd.Connection = new MySqlConnection(_connectionString);
await cmd.Connection.OpenAsync();
await cmd.ExecuteNonQueryAsync();
}
catch (MySqlException exception)
{
Logger.Log(exception, null, ErrorLevel.Error);
}
finally
{
cmd.Connection?.Close();
}
#endregion
}
public static long MaxAllianceId()
{
#region MaxId
try
{
long seed;
using (var connection = new MySqlConnection(_connectionString))
{
connection.Open();
using (var cmd = new MySqlCommand($"SELECT coalesce(MAX(Id), 0) FROM {Name}", connection))
{
seed = Convert.ToInt64(cmd.ExecuteScalar());
}
connection.Close();
}
return seed;
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Fatal);
return -1;
}
#endregion
}
public static async Task<long> CountAsync()
{
#region Count
try
{
long seed;
using (var connection = new MySqlConnection(_connectionString))
{
await connection.OpenAsync();
using (var cmd = new MySqlCommand($"SELECT COUNT(*) FROM {Name}", connection))
{
seed = Convert.ToInt64(await cmd.ExecuteScalarAsync());
}
await connection.CloseAsync();
}
return seed;
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Error);
return 0;
}
#endregion
}
public static async Task<Alliance> CreateAsync()
{
#region Create
try
{
var id = _allianceSeed++;
if (id <= -1)
return null;
var alliance = new Alliance(id + 1);
using (var cmd =
new MySqlCommand(
$"INSERT INTO {Name} (`Id`, `Trophies`, `RequiredTrophies`, `Type`, `Region`, `Data`) VALUES ({id + 1}, {alliance.Score}, {alliance.RequiredScore}, {alliance.Type}, {alliance.Region}, @data)")
)
{
#pragma warning disable 618
cmd.Parameters?.AddWithValue("@data",
JsonConvert.SerializeObject(alliance, Configuration.JsonSettings));
#pragma warning restore 618
await ExecuteAsync(cmd);
}
return alliance;
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Error);
return null;
}
#endregion
}
public static async Task<Alliance> GetAsync(long id)
{
#region Get
try
{
using (var connection = new MySqlConnection(_connectionString))
{
await connection.OpenAsync();
Alliance alliance = null;
using (var cmd = new MySqlCommand($"SELECT * FROM {Name} WHERE Id = '{id}'", connection))
{
var reader = await cmd.ExecuteReaderAsync();
while (await reader.ReadAsync())
{
alliance = JsonConvert.DeserializeObject<Alliance>((string) reader["Data"],
Configuration.JsonSettings);
break;
}
}
await connection.CloseAsync();
return alliance;
}
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Fatal);
return null;
}
#endregion
}
public static async Task SaveAsync(Alliance alliance)
{
#region Save
try
{
using (var cmd =
new MySqlCommand(
$"UPDATE {Name} SET `Trophies`='{alliance.Score}', `RequiredTrophies`='{alliance.RequiredScore}', `Type`='{alliance.Type}', `Region`='{alliance.Region}', `Data`=@data WHERE Id = '{alliance.Id}'")
)
{
#pragma warning disable 618
cmd.Parameters?.AddWithValue("@data",
JsonConvert.SerializeObject(alliance, Configuration.JsonSettings));
#pragma warning restore 618
await ExecuteAsync(cmd);
}
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Error);
}
#endregion
}
public static async Task DeleteAsync(long id)
{
#region Delete
try
{
using (var cmd = new MySqlCommand(
$"DELETE FROM {Name} WHERE Id = '{id}'")
)
{
await ExecuteAsync(cmd);
}
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Error);
}
#endregion
}
public static async Task<List<Alliance>> GetGlobalAlliancesAsync()
{
#region Global
var list = new List<Alliance>();
try
{
using (var connection = new MySqlConnection(_connectionString))
{
await connection.OpenAsync();
using (var cmd = new MySqlCommand($"SELECT * FROM {Name} ORDER BY `Trophies` DESC LIMIT 200",
connection))
{
var reader = await cmd.ExecuteReaderAsync();
while (await reader.ReadAsync())
list.Add(JsonConvert.DeserializeObject<Alliance>((string) reader["Data"],
Configuration.JsonSettings));
}
await connection.CloseAsync();
}
return list;
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Error);
return list;
}
#endregion
}
}
}
================================================
FILE: src/ClashRoyale/Database/Cache/Alliances.cs
================================================
using System.Collections.Generic;
using System.Threading.Tasks;
using ClashRoyale.Logic.Clan;
using SharpRaven.Data;
namespace ClashRoyale.Database.Cache
{
public class Alliances : Dictionary<long, Alliance>
{
private readonly object _syncObject = new object();
/// <summary>
/// Add an alliance to the server
/// </summary>
/// <param name="alliance"></param>
public void Add(Alliance alliance)
{
lock (_syncObject)
{
if (!ContainsKey(alliance.Id)) Add(alliance.Id, alliance);
}
}
/// <summary>
/// Remove an alliance from the server and save it
/// </summary>
/// <param name="allianceId"></param>
public new void Remove(long allianceId)
{
lock (_syncObject)
{
if (ContainsKey(allianceId))
{
var alliance = this[allianceId];
alliance.Save();
var result = base.Remove(allianceId);
if (!result) Logger.Log($"Couldn't remove alliance {allianceId}", GetType(), ErrorLevel.Error);
}
}
}
/// <summary>
/// Get an alliance from cache or database
/// </summary>
/// <param name="allianceId"></param>
/// <param name="onlineOnly"></param>
/// <returns></returns>
public async Task<Alliance> GetAllianceAsync(long allianceId, bool onlineOnly = false)
{
lock (_syncObject)
{
if (ContainsKey(allianceId))
return this[allianceId];
}
if (onlineOnly) return null;
var alliance = Resources.ObjectCache.GetCachedAlliance(allianceId);
if (alliance != null) return alliance;
alliance = await AllianceDb.GetAsync(allianceId);
Resources.ObjectCache.CacheAlliance(alliance);
return alliance;
}
}
}
================================================
FILE: src/ClashRoyale/Database/Cache/Battles.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using ClashRoyale.Logic;
using ClashRoyale.Logic.Battle;
using ClashRoyale.Protocol.Messages.Server;
namespace ClashRoyale.Database.Cache
{
public class Battles : Dictionary<long, LogicBattle>
{
private readonly List<Player> _playerQueue = new List<Player>();
private readonly Random _random = new Random();
private long _seed = 1;
/// <summary>
/// Get a player from the queue and remove it
/// </summary>
public Player Dequeue
{
get
{
Player player;
lock (_playerQueue)
{
if (_playerQueue.Count <= 0) return null;
player = _playerQueue[0];
_playerQueue.RemoveAt(0);
if (!player.Device.IsConnected)
return null;
}
return player;
}
}
/// <summary>
/// Adds a player to the queue and sends the estimated time
/// </summary>
/// <param name="player"></param>
public async void Enqueue(Player player)
{
var players = Resources.Players;
var playerCount = players.Count;
lock (_playerQueue)
{
if (_playerQueue.Contains(player)) return;
_playerQueue.Add(player);
var estimatedTime = _random.Next(601, 901);
if (playerCount > 0)
if (playerCount > 5)
if (playerCount > 25)
estimatedTime = playerCount > _random.Next(61, 101) ? 5 : _random.Next(6, 16);
else
estimatedTime = _random.Next(30, 61);
else
estimatedTime = _random.Next(101, 601);
SendInfo(player.Device, estimatedTime);
}
if (playerCount > 100) return;
// Notify other players
foreach (var p in players.Values.ToList())
if (p.Device.IsConnected && p.Home.Id != player.Home.Id)
await new PvpMatchmakeNotificationMessage(p.Device).SendAsync();
}
/// <summary>
/// Sends MatchmakeInfoMessage
/// </summary>
/// <param name="device"></param>
/// <param name="estimatedDuration"></param>
public async void SendInfo(Device device, int estimatedDuration)
{
await new MatchmakeInfoMessage(device)
{
EstimatedDuration = estimatedDuration
}.SendAsync();
}
/// <summary>
/// Remove a player from queue and returns true wether he has been removed
/// </summary>
/// <param name="player"></param>
/// <returns></returns>
public bool Cancel(Player player)
{
lock (_playerQueue)
{
if (!_playerQueue.Contains(player)) return false;
_playerQueue.Remove(player);
return true;
}
}
/// <summary>
/// Adds a battle to the list
/// </summary>
/// <param name="battle"></param>
public void Add(LogicBattle battle)
{
battle.BattleId = _seed++;
if (!ContainsKey(battle.BattleId))
Add(battle.BattleId, battle);
}
/// <summary>
/// Remove a battle with the id
/// </summary>
/// <param name="id"></param>
public new void Remove(long id)
{
if (ContainsKey(id))
base.Remove(id);
}
/// <summary>
/// Get a battle by it's id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public LogicBattle Get(long id)
{
return ContainsKey(id) ? this[id] : null;
}
}
}
================================================
FILE: src/ClashRoyale/Database/Cache/DuoBattles.cs
================================================
using System.Collections.Generic;
using System.Linq;
using ClashRoyale.Logic;
using ClashRoyale.Logic.Battle;
using ClashRoyale.Protocol.Messages.Server;
namespace ClashRoyale.Database.Cache
{
public class DuoBattles : Dictionary<long, LogicBattle>
{
private readonly List<Player> _duoPlayerQueue = new List<Player>();
private long _seed = 1;
/// <summary>
/// Get 3 players from the duo queue and remove them
/// </summary>
public List<Player> Dequeue
{
get
{
lock (_duoPlayerQueue)
{
if (_duoPlayerQueue.Count < 3) return null;
var players = new List<Player>();
for (var i = 0; i < 3; i++)
{
var player = _duoPlayerQueue[0];
_duoPlayerQueue.RemoveAt(0);
players.Add(player);
}
return players;
}
}
}
/// <summary>
/// Adds a player to the queue and sends the estimated time
/// </summary>
/// <param name="player"></param>
public async void Enqueue(Player player)
{
var players = Resources.Players;
var playerCount = players.Count;
lock (_duoPlayerQueue)
{
if (_duoPlayerQueue.Contains(player)) return;
_duoPlayerQueue.Add(player);
}
// TODO SEND INFO TO PLAYERS IN QUEUE
if (playerCount > 100) return;
// Notify other players
foreach (var p in players.Values.ToList())
if (p.Device.IsConnected && p.Home.Id != player.Home.Id)
await new PvpMatchmakeNotificationMessage(p.Device).SendAsync();
}
/// <summary>
/// Remove a player from queue and returns true wether he has been removed
/// </summary>
/// <param name="player"></param>
/// <returns></returns>
public bool Cancel(Player player)
{
lock (_duoPlayerQueue)
{
if (!_duoPlayerQueue.Contains(player)) return false;
_duoPlayerQueue.Remove(player);
return true;
}
}
/// <summary>
/// Adds a battle to the list
/// </summary>
/// <param name="battle"></param>
public void Add(LogicBattle battle)
{
battle.BattleId = _seed++;
if (!ContainsKey(battle.BattleId))
Add(battle.BattleId, battle);
}
/// <summary>
/// Remove a battle with the id
/// </summary>
/// <param name="id"></param>
public new void Remove(long id)
{
if (ContainsKey(id))
base.Remove(id);
}
}
}
================================================
FILE: src/ClashRoyale/Database/Cache/Players.cs
================================================
using System.Collections.Generic;
using System.Threading.Tasks;
using ClashRoyale.Logic;
using SharpRaven.Data;
namespace ClashRoyale.Database.Cache
{
public class Players : Dictionary<long, Player>
{
public readonly object SyncObject = new object();
/// <summary>
/// Login a player
/// </summary>
/// <param name="userId"></param>
/// <param name="token"></param>
public async Task<Player> Login(long userId, string token)
{
Player player;
if (userId <= 0 && string.IsNullOrEmpty(token))
{
player = await PlayerDb.CreateAsync();
}
else
{
var p = Resources.ObjectCache.GetCachedPlayer(userId);
if (p != null)
player = p;
else
player = await PlayerDb.GetAsync(userId);
if (player == null) return null;
if (player.Home.UserToken != token) return null;
}
lock (SyncObject)
{
if (player == null) return null;
Logout(ref player);
var result = TryAdd(player.Home.Id, player);
if (!result) return null;
//Logger.Log($"User {player.Home.Id} logged in.", GetType(), ErrorLevel.Debug);
return player;
}
}
/// <summary>
/// Called when a player logs out
/// </summary>
/// <param name="player"></param>
public void Logout(ref Player player)
{
lock (SyncObject)
{
if (!ContainsKey(player.Home.Id)) return;
var p = this[player.Home.Id];
p.ValidateSession();
Resources.Battles.Cancel(player);
Resources.DuoBattles.Cancel(player);
p.Save();
player = p;
var result = Remove(p.Home.Id);
if (!result) Logger.Log($"Couldn't logout player {p.Home.Id}", GetType(), ErrorLevel.Error);
//else Logger.Log($"User {player.UserId} logged out.", GetType(), ErrorLevel.Debug);
}
}
/// <summary>
/// Log out a player by the UserId
/// </summary>
/// <param name="userId"></param>
/// <returns></returns>
public bool LogoutById(long userId)
{
lock (SyncObject)
{
if (!ContainsKey(userId)) return true;
var player = this[userId];
player.ValidateSession();
Resources.Battles.Cancel(player);
Resources.DuoBattles.Cancel(player);
player.Save();
var result = Remove(userId);
if (!result) Logger.Log($"Couldn't logout player {userId}", GetType(), ErrorLevel.Error);
return result;
}
}
/// <summary>
/// Get a player from cache or database
/// </summary>
/// <param name="userId"></param>
/// <param name="onlineOnly"></param>
/// <returns></returns>
public async Task<Player> GetPlayerAsync(long userId, bool onlineOnly = false)
{
lock (SyncObject)
{
if (ContainsKey(userId))
return this[userId];
}
if (onlineOnly) return null;
var player = Resources.ObjectCache.GetCachedPlayer(userId);
if (player != null) return player;
player = await PlayerDb.GetAsync(userId);
Resources.ObjectCache.CachePlayer(player);
return player;
}
}
}
================================================
FILE: src/ClashRoyale/Database/ObjectCache.cs
================================================
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using ClashRoyale.Logic;
using ClashRoyale.Logic.Clan;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Logging.Abstractions;
using SharpRaven.Data;
namespace ClashRoyale.Database
{
public class ObjectCache
{
private readonly TimeSpan _expirationTimeSpan;
private readonly MemoryCache _playerCache;
private readonly MemoryCache _allianceCache;
public ObjectCache()
{
var options = new MemoryCacheOptions
{
ExpirationScanFrequency = TimeSpan.FromMinutes(5)
};
_expirationTimeSpan = TimeSpan.FromHours(2);
_playerCache = new MemoryCache(options, new NullLoggerFactory());
_allianceCache = new MemoryCache(options, new NullLoggerFactory());
Logger.Log("Successfully loaded caches", null);
}
/// <summary>
/// Cache a player to access it from memory
/// </summary>
/// <param name="player"></param>
public void CachePlayer(Player player)
{
try
{
var playerEntry = _playerCache.CreateEntry(player.Home.Id);
playerEntry.Value = player;
_playerCache.Set(player.Home.Id, playerEntry, _expirationTimeSpan);
}
catch (Exception)
{
Logger.Log("Failed to cache player.", GetType(), ErrorLevel.Error);
}
}
/// <summary>
/// Cache a clan to access it from memory
/// </summary>
/// <param name="alliance"></param>
public void CacheAlliance(Alliance alliance)
{
try
{
var allianceEntry = _allianceCache.CreateEntry(alliance.Id);
allianceEntry.Value = alliance;
_allianceCache.Set(alliance.Id, allianceEntry, _expirationTimeSpan);
}
catch (Exception)
{
Logger.Log("Failed to cache player.", GetType(), ErrorLevel.Error);
}
}
public Player GetCachedPlayer(long id)
{
try
{
var st = new Stopwatch();
st.Start();
if (_playerCache.Get(id) is ICacheEntry playerEntry)
{
if (playerEntry.Value is Player player)
{
st.Stop();
Logger.Log($"Successfully got player {id} from cache in {st.ElapsedMilliseconds}ms", null,
ErrorLevel.Debug);
return player;
}
}
}
catch (Exception)
{
Logger.Log("Failed to fetch player from cache.", GetType(), ErrorLevel.Error);
}
return null;
}
public Alliance GetCachedAlliance(long id)
{
try
{
var st = new Stopwatch();
st.Start();
if (_allianceCache.Get(id) is ICacheEntry allianceEntry)
{
if (allianceEntry.Value is Alliance alliance)
{
st.Stop();
Logger.Log($"Successfully got alliance {id} from cache in {st.ElapsedMilliseconds}ms", null,
ErrorLevel.Debug);
return alliance;
}
}
}
catch (Exception)
{
Logger.Log("Failed to fetch alliance from cache.", GetType(), ErrorLevel.Error);
}
return null;
}
public void UncacheAlliance(long id)
{
_allianceCache.Remove(id);
}
public long CachedPlayers()
{
return _playerCache.Count;
}
public long CachedClans()
{
return _allianceCache.Count;
}
}
}
================================================
FILE: src/ClashRoyale/Database/PlayerDb.cs
================================================
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using ClashRoyale.Core;
using ClashRoyale.Logic;
using ClashRoyale.Logic.Sessions;
using MySql.Data.MySqlClient;
using Newtonsoft.Json;
using SharpRaven.Data;
namespace ClashRoyale.Database
{
public class PlayerDb
{
private const string Name = "player";
private static string _connectionString;
private static long _playerSeed;
public PlayerDb()
{
_connectionString = new MySqlConnectionStringBuilder
{
Server = Resources.Configuration.MySqlServer,
Database = Resources.Configuration.MySqlDatabase,
UserID = Resources.Configuration.MySqlUserId,
Password = Resources.Configuration.MySqlPassword,
SslMode = MySqlSslMode.None,
MinimumPoolSize = 4,
MaximumPoolSize = 20,
CharacterSet = "utf8mb4"
}.ToString();
_playerSeed = MaxPlayerId();
if (_playerSeed > -1) return;
Logger.Log($"MysqlConnection for players failed [{Resources.Configuration.MySqlServer}]!", GetType());
Program.Exit();
}
public static async Task ExecuteAsync(MySqlCommand cmd)
{
#region Execute
try
{
cmd.Connection = new MySqlConnection(_connectionString);
await cmd.Connection.OpenAsync();
await cmd.ExecuteNonQueryAsync();
}
catch (MySqlException exception)
{
Logger.Log(exception, null, ErrorLevel.Error);
}
finally
{
cmd.Connection?.Close();
}
#endregion
}
public static long MaxPlayerId()
{
#region MaxId
try
{
long seed;
using (var connection = new MySqlConnection(_connectionString))
{
connection.Open();
using (var cmd = new MySqlCommand($"SELECT coalesce(MAX(Id), 0) FROM {Name}", connection))
{
seed = Convert.ToInt64(cmd.ExecuteScalar());
}
connection.Close();
}
return seed;
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Fatal);
return -1;
}
#endregion
}
public static async Task<long> CountAsync()
{
#region Count
try
{
long seed;
using (var connection = new MySqlConnection(_connectionString))
{
await connection.OpenAsync();
using (var cmd = new MySqlCommand($"SELECT COUNT(*) FROM {Name}", connection))
{
seed = Convert.ToInt64(await cmd.ExecuteScalarAsync());
}
await connection.CloseAsync();
}
return seed;
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Error);
return 0;
}
#endregion
}
public static async Task<Player> CreateAsync()
{
#region Create
try
{
var id = _playerSeed++;
if (id <= -1)
return null;
var player = new Player(id + 1);
using (var cmd =
new MySqlCommand(
$"INSERT INTO {Name} (`Id`, `Trophies`, `Language`, `FacebookId`, `Home`, `Sessions`) VALUES ({id + 1}, {player.Home.Arena.Trophies}, @language, @fb, @home, @sessions)")
)
{
#pragma warning disable 618
cmd.Parameters?.AddWithValue("@language", player.Home.PreferredDeviceLanguage);
cmd.Parameters?.AddWithValue("@fb", player.Home.FacebookId);
cmd.Parameters?.AddWithValue("@home",
JsonConvert.SerializeObject(player, Configuration.JsonSettings));
cmd.Parameters?.AddWithValue("@sessions",
JsonConvert.SerializeObject(player.Home.Sessions, Configuration.JsonSettings));
#pragma warning restore 618
await ExecuteAsync(cmd);
}
return player;
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Error);
return null;
}
#endregion
}
public static async Task<Player> GetAsync(long id)
{
#region Get
try
{
using (var connection = new MySqlConnection(_connectionString))
{
await connection.OpenAsync();
Player player = null;
using (var cmd = new MySqlCommand($"SELECT * FROM {Name} WHERE Id = '{id}'", connection))
{
var reader = await cmd.ExecuteReaderAsync();
while (await reader.ReadAsync())
{
player = JsonConvert.DeserializeObject<Player>((string) reader["Home"],
Configuration.JsonSettings);
player.Home.Sessions = JsonConvert.DeserializeObject<List<Session>>(
(string) reader["Sessions"],
Configuration.JsonSettings) ?? new List<Session>(50);
break;
}
}
await connection.CloseAsync();
return player;
}
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Fatal);
return null;
}
#endregion
}
public static async Task<Player> GetAsync(string facebookId)
{
#region Get
try
{
using (var connection = new MySqlConnection(_connectionString))
{
await connection.OpenAsync();
Player player = null;
using (var cmd = new MySqlCommand($"SELECT * FROM {Name} WHERE FacebookId = '{facebookId}'",
connection))
{
var reader = await cmd.ExecuteReaderAsync();
while (await reader.ReadAsync())
player = JsonConvert.DeserializeObject<Player>((string) reader["Home"],
Configuration.JsonSettings);
}
await connection.CloseAsync();
return player;
}
}
catch (Exception exception)
{
Logger.Log(exception, null, ErrorLevel.Fatal);
return null;
}
#endregion
}
public static async Task SaveAsync(Player player)
{
#region Save
try
{
using (var cmd =
new MySqlCommand(
$"UPDATE {Name} SET `Trophies`='{player.Home.Arena.Trophies}', `Language`=@language, `FacebookId`=@fb, `Home`=@home, `Sessions`=@sessions WHERE Id = '{player.Home.Id}'")
)
{
#pragma warning disable 618
cmd.Parameters?.AddWithValue("@language", player.Home.PreferredDeviceLanguage);
cmd.Parameters?.AddWithValue("@fb", player.Home.FacebookId);
cmd.Parameters?.AddWithValue("@home",
JsonConvert.SerializeObject(player, Configuration.JsonSettings));
cmd.Parameters?.AddWithValue("@sessions",
JsonConvert.SerializeObject
gitextract_cw6qygp5/
├── .gitattributes
├── .github/
│ └── workflows/
│ └── dotnetcore.yml
├── .gitignore
├── LICENSE
├── README.md
├── random.txt
└── src/
├── .dockerignore
├── ClashRoyale/
│ ├── ClashRoyale.csproj
│ ├── ClashRoyale.csproj.DotSettings
│ ├── Core/
│ │ ├── Cluster/
│ │ │ ├── Node.cs
│ │ │ ├── NodeInfo.cs
│ │ │ ├── NodeManager.cs
│ │ │ └── Protocol/
│ │ │ ├── ClusterMessage.cs
│ │ │ ├── ClusterMessageFactory.cs
│ │ │ └── Messages/
│ │ │ ├── Client/
│ │ │ │ ├── BattleFinishedMessage.cs
│ │ │ │ ├── ConnectionCheckMessage.cs
│ │ │ │ └── ServerInfoMessage.cs
│ │ │ └── Server/
│ │ │ ├── ConnectionFailedMessage.cs
│ │ │ └── ConnectionOkMessage.cs
│ │ ├── Configuration.cs
│ │ ├── Leaderboards/
│ │ │ └── Leaderboard.cs
│ │ ├── Network/
│ │ │ ├── Handlers/
│ │ │ │ ├── Cluster/
│ │ │ │ │ ├── ClusterPacketEncoder.cs
│ │ │ │ │ └── ClusterPacketHandler.cs
│ │ │ │ ├── PacketEncoder.cs
│ │ │ │ └── PacketHandler.cs
│ │ │ ├── NettyService.cs
│ │ │ └── Throttler.cs
│ │ └── SentryReport.cs
│ ├── Database/
│ │ ├── AllianceDb.cs
│ │ ├── Cache/
│ │ │ ├── Alliances.cs
│ │ │ ├── Battles.cs
│ │ │ ├── DuoBattles.cs
│ │ │ └── Players.cs
│ │ ├── ObjectCache.cs
│ │ └── PlayerDb.cs
│ ├── Extensions/
│ │ ├── CustomWriter.cs
│ │ └── Utils/
│ │ └── CompressionUtils.cs
│ ├── Files/
│ │ ├── Csv.Files.cs
│ │ ├── Csv.cs
│ │ ├── CsvClient/
│ │ │ ├── BackgroundDecos.cs
│ │ │ ├── BillingPackages.cs
│ │ │ ├── ClientGlobals.cs
│ │ │ ├── Credits.cs
│ │ │ ├── Effects.cs
│ │ │ ├── EventOutput.cs
│ │ │ ├── HealthBars.cs
│ │ │ ├── Helpshift.cs
│ │ │ ├── Hints.cs
│ │ │ ├── Music.cs
│ │ │ ├── News.cs
│ │ │ ├── ParticleEmitters.cs
│ │ │ ├── Sounds.cs
│ │ │ ├── Texts.cs
│ │ │ └── TextsPatch.cs
│ │ ├── CsvHelpers/
│ │ │ ├── Data.cs
│ │ │ ├── DataTable.cs
│ │ │ └── GlobalId.cs
│ │ ├── CsvLogic/
│ │ │ ├── Abilities.cs
│ │ │ ├── Achievements.cs
│ │ │ ├── AllianceBadges.cs
│ │ │ ├── AllianceRoles.cs
│ │ │ ├── AreaEffectObjects.cs
│ │ │ ├── Arenas.cs
│ │ │ ├── Buildings.cs
│ │ │ ├── CharacterBuffs.cs
│ │ │ ├── Characters.cs
│ │ │ ├── ChestOrder.cs
│ │ │ ├── ConfigurationDefinitions.cs
│ │ │ ├── ContentTests.cs
│ │ │ ├── Decos.cs
│ │ │ ├── DraftDeck.cs
│ │ │ ├── EventCategories.cs
│ │ │ ├── EventCategoryDefinitions.cs
│ │ │ ├── EventCategoryEnums.cs
│ │ │ ├── EventCategoryObjectDefinitions.cs
│ │ │ ├── EventTargetingDefinitions.cs
│ │ │ ├── ExpLevels.cs
│ │ │ ├── GambleChests.cs
│ │ │ ├── GameModes.cs
│ │ │ ├── Globals.cs
│ │ │ ├── Heroes.cs
│ │ │ ├── Locales.cs
│ │ │ ├── Locations.cs
│ │ │ ├── Npcs.cs
│ │ │ ├── PredefinedDecks.cs
│ │ │ ├── Projectiles.cs
│ │ │ ├── PveBoss.cs
│ │ │ ├── PveGamemodes.cs
│ │ │ ├── PveWaves.cs
│ │ │ ├── QuestOrder.cs
│ │ │ ├── Rarities.cs
│ │ │ ├── Regions.cs
│ │ │ ├── ResourcePacks.cs
│ │ │ ├── Resources.cs
│ │ │ ├── Shop.cs
│ │ │ ├── Skins.cs
│ │ │ ├── SpellSets.cs
│ │ │ ├── SpellsBuildings.cs
│ │ │ ├── SpellsCharacters.cs
│ │ │ ├── SpellsHeroes.cs
│ │ │ ├── SpellsOther.cs
│ │ │ ├── SurvivalModes.cs
│ │ │ ├── Taunts.cs
│ │ │ ├── TournamentTiers.cs
│ │ │ ├── TreasureChests.cs
│ │ │ ├── TutorialChestOrder.cs
│ │ │ ├── TutorialsHome.cs
│ │ │ ├── TutorialsNpc.cs
│ │ │ └── TveGamemodes.cs
│ │ ├── CsvReader/
│ │ │ ├── Column.cs
│ │ │ ├── Gamefiles.cs
│ │ │ ├── Row.cs
│ │ │ └── Table.cs
│ │ ├── Fingerprint.cs
│ │ └── UpdateManager.cs
│ ├── GameAssets/
│ │ ├── csv_client/
│ │ │ ├── background_decos.csv
│ │ │ ├── billing_packages.csv
│ │ │ ├── client_globals.csv
│ │ │ ├── credits.csv
│ │ │ ├── effects.csv
│ │ │ ├── event_output.csv
│ │ │ ├── health_bars.csv
│ │ │ ├── helpshift.csv
│ │ │ ├── hints.csv
│ │ │ ├── music.csv
│ │ │ ├── news.csv
│ │ │ ├── particle_emitters.csv
│ │ │ ├── sounds.csv
│ │ │ ├── texts.csv
│ │ │ └── texts_patch.csv
│ │ ├── csv_logic/
│ │ │ ├── abilities.csv
│ │ │ ├── achievements.csv
│ │ │ ├── alliance_badges.csv
│ │ │ ├── alliance_roles.csv
│ │ │ ├── area_effect_objects.csv
│ │ │ ├── arenas.csv
│ │ │ ├── buildings.csv
│ │ │ ├── character_buffs.csv
│ │ │ ├── characters.csv
│ │ │ ├── chest_order.csv
│ │ │ ├── configuration_definitions.csv
│ │ │ ├── content_tests.csv
│ │ │ ├── decos.csv
│ │ │ ├── draft_deck.csv
│ │ │ ├── event_categories.csv
│ │ │ ├── event_category_definitions.csv
│ │ │ ├── event_category_enums.csv
│ │ │ ├── event_category_object_definitions.csv
│ │ │ ├── event_targeting_definitions.csv
│ │ │ ├── exp_levels.csv
│ │ │ ├── gamble_chests.csv
│ │ │ ├── game_modes.csv
│ │ │ ├── globals.csv
│ │ │ ├── heroes.csv
│ │ │ ├── locales.csv
│ │ │ ├── locations.csv
│ │ │ ├── npcs.csv
│ │ │ ├── predefined_decks.csv
│ │ │ ├── projectiles.csv
│ │ │ ├── pve_boss.csv
│ │ │ ├── pve_gamemodes.csv
│ │ │ ├── pve_waves.csv
│ │ │ ├── quest_order.csv
│ │ │ ├── rarities.csv
│ │ │ ├── regions.csv
│ │ │ ├── resource_packs.csv
│ │ │ ├── resources.csv
│ │ │ ├── shop.csv
│ │ │ ├── skins.csv
│ │ │ ├── spell_sets.csv
│ │ │ ├── spells_buildings.csv
│ │ │ ├── spells_characters.csv
│ │ │ ├── spells_heroes.csv
│ │ │ ├── spells_other.csv
│ │ │ ├── survival_modes.csv
│ │ │ ├── taunts.csv
│ │ │ ├── tournament_tiers.csv
│ │ │ ├── treasure_chests.csv
│ │ │ ├── tutorial_chest_order.csv
│ │ │ ├── tutorials_home.csv
│ │ │ ├── tutorials_npc.csv
│ │ │ └── tve_gamemodes.csv
│ │ ├── database.sql
│ │ ├── fingerprint.json
│ │ ├── locations/
│ │ │ ├── barbarian_arena.csv
│ │ │ ├── barbarian_arena_2v2.csv
│ │ │ ├── bone_arena.csv
│ │ │ ├── bone_arena_2v2.csv
│ │ │ ├── builder_arena.csv
│ │ │ ├── builder_arena_2v2.csv
│ │ │ ├── champion_arena.csv
│ │ │ ├── champion_arena_2v2.csv
│ │ │ ├── dark_arena.csv
│ │ │ ├── dark_arena_2v2.csv
│ │ │ ├── goblin_arena.csv
│ │ │ ├── goblin_arena_2v2.csv
│ │ │ ├── ice_arena.csv
│ │ │ ├── ice_arena_2v2.csv
│ │ │ ├── jungle_arena.csv
│ │ │ ├── jungle_arena_2v2.csv
│ │ │ ├── legendary_arena.csv
│ │ │ ├── legendary_arena_2v2.csv
│ │ │ ├── royal_arena.csv
│ │ │ ├── royal_arena_2v2.csv
│ │ │ ├── spell_arena.csv
│ │ │ ├── spell_arena_2v2.csv
│ │ │ ├── tilemap_pve.csv
│ │ │ ├── titan_arena.csv
│ │ │ ├── training_arena.csv
│ │ │ ├── training_arena_pve.csv
│ │ │ ├── training_arena_pve1.csv
│ │ │ └── training_arena_tve.csv
│ │ ├── sc/
│ │ │ ├── arena_training.sc
│ │ │ ├── arena_training_tex.sc
│ │ │ ├── building_barbarian_hut.sc
│ │ │ ├── building_barbarian_hut_highres_tex.sc
│ │ │ ├── building_barbarian_hut_lowres_tex.sc
│ │ │ ├── building_basic_cannon.sc
│ │ │ ├── building_basic_cannon_highres_tex.sc
│ │ │ ├── building_basic_cannon_lowres_tex.sc
│ │ │ ├── building_bomb_tower.sc
│ │ │ ├── building_bomb_tower_highres_tex.sc
│ │ │ ├── building_bomb_tower_lowres_tex.sc
│ │ │ ├── building_elixir_collector.sc
│ │ │ ├── building_elixir_collector_highres_tex.sc
│ │ │ ├── building_elixir_collector_lowres_tex.sc
│ │ │ ├── building_firespirit_hut.sc
│ │ │ ├── building_firespirit_hut_highres_tex.sc
│ │ │ ├── building_firespirit_hut_lowres_tex.sc
│ │ │ ├── building_goblin_hut.sc
│ │ │ ├── building_goblin_hut_tex.sc
│ │ │ ├── building_inferno_tower.sc
│ │ │ ├── building_inferno_tower_highres_tex.sc
│ │ │ ├── building_inferno_tower_lowres_tex.sc
│ │ │ ├── building_mega_bomb.sc
│ │ │ ├── building_mega_bomb_tex.sc
│ │ │ ├── building_mortar.sc
│ │ │ ├── building_mortar_highres_tex.sc
│ │ │ ├── building_mortar_lowres_tex.sc
│ │ │ ├── building_rage_bottle.sc
│ │ │ ├── building_rage_bottle_tex.sc
│ │ │ ├── building_tesla.sc
│ │ │ ├── building_tesla_highres_tex.sc
│ │ │ ├── building_tesla_lowres_tex.sc
│ │ │ ├── building_tombstone.sc
│ │ │ ├── building_tombstone_highres_tex.sc
│ │ │ ├── building_tombstone_lowres_tex.sc
│ │ │ ├── building_tower.sc
│ │ │ ├── building_tower_tex.sc
│ │ │ ├── building_xbow.sc
│ │ │ ├── building_xbow_highres_tex.sc
│ │ │ ├── building_xbow_lowres_tex.sc
│ │ │ ├── chr_archer.sc
│ │ │ ├── chr_archer_tex.sc
│ │ │ ├── chr_axe_man.sc
│ │ │ ├── chr_axe_man_highres_tex.sc
│ │ │ ├── chr_axe_man_lowres_tex.sc
│ │ │ ├── chr_baby_dragon.sc
│ │ │ ├── chr_baby_dragon_tex.sc
│ │ │ ├── chr_balloon.sc
│ │ │ ├── chr_balloon_highres_tex.sc
│ │ │ ├── chr_balloon_lowres_tex.sc
│ │ │ ├── chr_bandit.sc
│ │ │ ├── chr_bandit_tex.sc
│ │ │ ├── chr_barbarian.sc
│ │ │ ├── chr_barbarian_highres_tex.sc
│ │ │ ├── chr_barbarian_lowres_tex.sc
│ │ │ ├── chr_bats.sc
│ │ │ ├── chr_bats_tex.sc
│ │ │ ├── chr_battle_ram.sc
│ │ │ ├── chr_battle_ram_highres_tex.sc
│ │ │ ├── chr_battle_ram_lowres_tex.sc
│ │ │ ├── chr_black_knight.sc
│ │ │ ├── chr_black_knight_highres_tex.sc
│ │ │ ├── chr_black_knight_lowres_tex.sc
│ │ │ ├── chr_bomber.sc
│ │ │ ├── chr_bomber_tex.sc
│ │ │ ├── chr_bowler.sc
│ │ │ ├── chr_bowler_highres_tex.sc
│ │ │ ├── chr_bowler_lowres_tex.sc
│ │ │ ├── chr_dark_witch.sc
│ │ │ ├── chr_dark_witch_highres_tex.sc
│ │ │ ├── chr_dark_witch_lowres_tex.sc
│ │ │ ├── chr_electro_wizard.sc
│ │ │ ├── chr_electro_wizard_highres_tex.sc
│ │ │ ├── chr_electro_wizard_lowres_tex.sc
│ │ │ ├── chr_fire_firespirit.sc
│ │ │ ├── chr_fire_firespirit_tex.sc
│ │ │ ├── chr_flying_machine.sc
│ │ │ ├── chr_flying_machine_highres_tex.sc
│ │ │ ├── chr_flying_machine_lowres_tex.sc
│ │ │ ├── chr_giant.sc
│ │ │ ├── chr_giant_skeleton.sc
│ │ │ ├── chr_giant_skeleton_tex.sc
│ │ │ ├── chr_giant_tex.sc
│ │ │ ├── chr_goblin.sc
│ │ │ ├── chr_goblin_archer.sc
│ │ │ ├── chr_goblin_archer_tex.sc
│ │ │ ├── chr_goblin_blowdart.sc
│ │ │ ├── chr_goblin_blowdart_highres_tex.sc
│ │ │ ├── chr_goblin_blowdart_lowres_tex.sc
│ │ │ ├── chr_goblin_tex.sc
│ │ │ ├── chr_golem.sc
│ │ │ ├── chr_golem_highres_tex.sc
│ │ │ ├── chr_golem_lowres_tex.sc
│ │ │ ├── chr_golemite.sc
│ │ │ ├── chr_golemite_highres_tex.sc
│ │ │ ├── chr_golemite_lowres_tex.sc
│ │ │ ├── chr_hog_rider.sc
│ │ │ ├── chr_hog_rider_highres_tex.sc
│ │ │ ├── chr_hog_rider_lowres_tex.sc
│ │ │ ├── chr_ice_spirits.sc
│ │ │ ├── chr_ice_spirits_tex.sc
│ │ │ ├── chr_ice_wizard.sc
│ │ │ ├── chr_ice_wizard_tex.sc
│ │ │ ├── chr_knight.sc
│ │ │ ├── chr_knight_tex.sc
│ │ │ ├── chr_lava_hound.sc
│ │ │ ├── chr_lava_hound_tex.sc
│ │ │ ├── chr_lava_pups.sc
│ │ │ ├── chr_lava_pups_tex.sc
│ │ │ ├── chr_mega_knight.sc
│ │ │ ├── chr_mega_knight_highres_tex.sc
│ │ │ ├── chr_mega_knight_lowres_tex.sc
│ │ │ ├── chr_mega_minion.sc
│ │ │ ├── chr_mega_minion_highres_tex.sc
│ │ │ ├── chr_mega_minion_lowres_tex.sc
│ │ │ ├── chr_miner.sc
│ │ │ ├── chr_miner_tex.sc
│ │ │ ├── chr_mini_pekka.sc
│ │ │ ├── chr_mini_pekka_tex.sc
│ │ │ ├── chr_minion.sc
│ │ │ ├── chr_minion_tex.sc
│ │ │ ├── chr_movingcannon.sc
│ │ │ ├── chr_movingcannon_highres_tex.sc
│ │ │ ├── chr_movingcannon_lowres_tex.sc
│ │ │ ├── chr_musketeer.sc
│ │ │ ├── chr_musketeer_tex.sc
│ │ │ ├── chr_pekka.sc
│ │ │ ├── chr_pekka_tex.sc
│ │ │ ├── chr_prince.sc
│ │ │ ├── chr_prince_tex.sc
│ │ │ ├── chr_princess.sc
│ │ │ ├── chr_princess_highres_tex.sc
│ │ │ ├── chr_princess_lowres_tex.sc
│ │ │ ├── chr_rage_barbarian.sc
│ │ │ ├── chr_rage_barbarian_highres_tex.sc
│ │ │ ├── chr_rage_barbarian_lowres_tex.sc
│ │ │ ├── chr_royal_giant.sc
│ │ │ ├── chr_royal_giant_highres_tex.sc
│ │ │ ├── chr_royal_giant_lowres_tex.sc
│ │ │ ├── chr_skeleton.sc
│ │ │ ├── chr_skeleton_balloon.sc
│ │ │ ├── chr_skeleton_balloon_highres_tex.sc
│ │ │ ├── chr_skeleton_balloon_lowres_tex.sc
│ │ │ ├── chr_skeleton_tex.sc
│ │ │ ├── chr_skeleton_warrior.sc
│ │ │ ├── chr_skeleton_warrior_highres_tex.sc
│ │ │ ├── chr_skeleton_warrior_lowres_tex.sc
│ │ │ ├── chr_snowman.sc
│ │ │ ├── chr_snowman_tex.sc
│ │ │ ├── chr_valkyrie.sc
│ │ │ ├── chr_valkyrie_tex.sc
│ │ │ ├── chr_witch.sc
│ │ │ ├── chr_witch_tex.sc
│ │ │ ├── chr_wizard.sc
│ │ │ ├── chr_wizard_tex.sc
│ │ │ ├── chr_zap_machine.sc
│ │ │ ├── chr_zap_machine_tex.sc
│ │ │ ├── debug.sc
│ │ │ ├── debug_tex.sc
│ │ │ ├── effects.sc
│ │ │ ├── effects_tex.sc
│ │ │ ├── level_barbarian_arena.sc
│ │ │ ├── level_barbarian_arena_tex.sc
│ │ │ ├── level_bone_arena.sc
│ │ │ ├── level_bone_arena_tex.sc
│ │ │ ├── level_builder_arena.sc
│ │ │ ├── level_builder_arena_tex.sc
│ │ │ ├── level_champion_arena.sc
│ │ │ ├── level_champion_arena_tex.sc
│ │ │ ├── level_dark_arena.sc
│ │ │ ├── level_dark_arena_tex.sc
│ │ │ ├── level_decos.sc
│ │ │ ├── level_decos_tex.sc
│ │ │ ├── level_goblin_arena.sc
│ │ │ ├── level_goblin_arena_tex.sc
│ │ │ ├── level_ice_arena.sc
│ │ │ ├── level_ice_arena_tex.sc
│ │ │ ├── level_jungle_arena.sc
│ │ │ ├── level_jungle_arena_tex.sc
│ │ │ ├── level_legendary_arena.sc
│ │ │ ├── level_legendary_arena_tex.sc
│ │ │ ├── level_royal_arena.sc
│ │ │ ├── level_royal_arena_tex.sc
│ │ │ ├── level_spell_arena.sc
│ │ │ ├── level_spell_arena_tex.sc
│ │ │ ├── loading.sc
│ │ │ ├── loading_tex.sc
│ │ │ ├── spell_goblin_barrel.sc
│ │ │ ├── spell_goblin_barrel_tex.sc
│ │ │ ├── tutorial.sc
│ │ │ ├── tutorial_tex.sc
│ │ │ ├── ui.sc
│ │ │ ├── ui_arena.sc
│ │ │ ├── ui_arena_tex.sc
│ │ │ ├── ui_battle_end.sc
│ │ │ ├── ui_battle_end_tex.sc
│ │ │ ├── ui_chest.sc
│ │ │ ├── ui_chest_tex.sc
│ │ │ ├── ui_spells.sc
│ │ │ ├── ui_spells_tex.sc
│ │ │ └── ui_tex.sc
│ │ └── tilemaps/
│ │ ├── tilemap.csv
│ │ ├── tilemap_2v2.csv
│ │ ├── tilemap_pve.csv
│ │ ├── tilemap_pve1.csv
│ │ └── tilemap_tve.csv
│ ├── Logger.cs
│ ├── Logic/
│ │ ├── Battle/
│ │ │ ├── LogicBattle.cs
│ │ │ ├── LogicBattleLog.cs
│ │ │ └── LogicBattleLogPlayer.cs
│ │ ├── Clan/
│ │ │ ├── Alliance.cs
│ │ │ ├── AllianceInfo.cs
│ │ │ ├── AllianceMember.cs
│ │ │ └── StreamEntry/
│ │ │ ├── AllianceStreamEntry.cs
│ │ │ └── Entries/
│ │ │ ├── AllianceEventStreamEntry.cs
│ │ │ ├── ChallengeStreamEntry.cs
│ │ │ ├── ChatStreamEntry.cs
│ │ │ ├── DonateStreamEntry.cs
│ │ │ └── JoinRequestAllianceStreamEntry.cs
│ │ ├── Device.cs
│ │ ├── Home/
│ │ │ ├── Arena.cs
│ │ │ ├── Chests/
│ │ │ │ ├── Chests.cs
│ │ │ │ └── Items/
│ │ │ │ └── Chest.cs
│ │ │ ├── Decks/
│ │ │ │ ├── Cards.cs
│ │ │ │ ├── Deck.cs
│ │ │ │ └── Items/
│ │ │ │ └── Card.cs
│ │ │ ├── Home.cs
│ │ │ ├── Shop/
│ │ │ │ ├── Items/
│ │ │ │ │ └── SpellShopItem.cs
│ │ │ │ ├── Shop.cs
│ │ │ │ └── ShopItem.cs
│ │ │ └── StreamEntry/
│ │ │ ├── AvatarStreamEntry.cs
│ │ │ └── Entries/
│ │ │ ├── AllianceMailAvatarStreamEntry.cs
│ │ │ └── DonationReceivedStreamEntry.cs
│ │ ├── Player.cs
│ │ ├── Sessions/
│ │ │ ├── Location.cs
│ │ │ └── Session.cs
│ │ └── Time/
│ │ ├── LogicTime.cs
│ │ └── LogicTimer.cs
│ ├── NLog.config
│ ├── Program.cs
│ ├── Properties/
│ │ └── launchSettings.json
│ ├── Protocol/
│ │ ├── Commands/
│ │ │ ├── Client/
│ │ │ │ ├── LogicBuyChestCommand.cs
│ │ │ │ ├── LogicBuyResourcePackCommand.cs
│ │ │ │ ├── LogicBuyResourcesCommand.cs
│ │ │ │ ├── LogicBuySpellCommand.cs
│ │ │ │ ├── LogicChallengeCommand.cs
│ │ │ │ ├── LogicChestNextCardCommand.cs
│ │ │ │ ├── LogicCollectCrownChestCommand.cs
│ │ │ │ ├── LogicCollectFreeChestCommand.cs
│ │ │ │ ├── LogicCopyDeckCommand.cs
│ │ │ │ ├── LogicFreeWorkerCommand.cs
│ │ │ │ ├── LogicFuseSpellsCommand.cs
│ │ │ │ ├── LogicKickAllianceMemberCommand.cs
│ │ │ │ ├── LogicSelectDeckCommand.cs
│ │ │ │ ├── LogicSwapSpellsCommand.cs
│ │ │ │ ├── StartMatchmakeCommand.cs
│ │ │ │ └── UnknownCommand.cs
│ │ │ └── Server/
│ │ │ ├── ChestDataCommand.cs
│ │ │ ├── DoSpellCommand.cs
│ │ │ ├── LogicAllianceSettingsChangedCommand.cs
│ │ │ ├── LogicChangeAllianceRoleCommand.cs
│ │ │ ├── LogicChangeNameCommand.cs
│ │ │ ├── LogicDiamondsAddedCommand.cs
│ │ │ ├── LogicJoinAllianceCommand.cs
│ │ │ └── LogicLeaveAllianceCommand.cs
│ │ ├── LogicCommand.cs
│ │ ├── LogicCommandManager.cs
│ │ ├── LogicScrollMessageFactory.cs
│ │ ├── Messages/
│ │ │ ├── Client/
│ │ │ │ ├── Alliance/
│ │ │ │ │ ├── AcceptChallengeMessage.cs
│ │ │ │ │ ├── AskForAllianceDataMessage.cs
│ │ │ │ │ ├── AskForAllianceRankingListMessage.cs
│ │ │ │ │ ├── AskForAllianceStreamMessage.cs
│ │ │ │ │ ├── AskForJoinableAlliancesListMessage.cs
│ │ │ │ │ ├── CancelChallengeMessage.cs
│ │ │ │ │ ├── ChangeAllianceMemberRoleMessage.cs
│ │ │ │ │ ├── ChangeAllianceSettingsMessage.cs
│ │ │ │ │ ├── ChatToAllianceStreamMessage.cs
│ │ │ │ │ ├── CreateAllianceMessage.cs
│ │ │ │ │ ├── JoinAllianceMessage.cs
│ │ │ │ │ ├── LeaveAllianceMessage.cs
│ │ │ │ │ ├── RequestJoinAllianceMessage.cs
│ │ │ │ │ ├── RespondToAllianceJoinRequestMessage.cs
│ │ │ │ │ ├── SearchAlliancesMessage.cs
│ │ │ │ │ └── SendAllianceInvitationMessage.cs
│ │ │ │ ├── EndClientTurnMessage.cs
│ │ │ │ ├── Home/
│ │ │ │ │ ├── AskForAvatarLocalRankingListMessage.cs
│ │ │ │ │ ├── AskForAvatarRankingListMessage.cs
│ │ │ │ │ ├── AskForAvatarStreamMessage.cs
│ │ │ │ │ ├── AskForBattleReplayStreamMessage.cs
│ │ │ │ │ ├── AskForPlayingInvitedFriendsListMessage.cs
│ │ │ │ │ ├── AskForTvContentMessage.cs
│ │ │ │ │ ├── AvatarNameCheckRequestMessage.cs
│ │ │ │ │ ├── BindGoogleServiceAccountMessage.cs
│ │ │ │ │ ├── ChangeAvatarNameMessage.cs
│ │ │ │ │ ├── ClientCapabilitiesMessage.cs
│ │ │ │ │ ├── GoHomeMessage.cs
│ │ │ │ │ ├── HomeBattleReplayMessage.cs
│ │ │ │ │ ├── InboxOpenedMessage.cs
│ │ │ │ │ ├── SetDeviceTokenMessage.cs
│ │ │ │ │ └── VisitHomeMessage.cs
│ │ │ │ ├── Login/
│ │ │ │ │ ├── ClientHelloMessage.cs
│ │ │ │ │ ├── KeepAliveMessage.cs
│ │ │ │ │ └── LoginMessage.cs
│ │ │ │ ├── Sector/
│ │ │ │ │ ├── CancelMatchmakeMessage.cs
│ │ │ │ │ ├── RequestSectorStateMessage.cs
│ │ │ │ │ ├── SectorCommandMessage.cs
│ │ │ │ │ ├── SendBattleEventMessage.cs
│ │ │ │ │ └── StartMissionMessage.cs
│ │ │ │ └── Tournament/
│ │ │ │ └── AskForTournamentListMessage.cs
│ │ │ └── Server/
│ │ │ ├── Alliance/
│ │ │ │ ├── AllianceCreateFailedMessag.cs
│ │ │ │ ├── AllianceDataMessage.cs
│ │ │ │ ├── AllianceFullEntryUpdateMessage.cs
│ │ │ │ ├── AllianceInvitationSendFailedMessage.cs
│ │ │ │ ├── AllianceInvitationSentOkMessage.cs
│ │ │ │ ├── AllianceJoinFailedMessage.cs
│ │ │ │ ├── AllianceJoinRequestFailedMessage.cs
│ │ │ │ ├── AllianceJoinRequestOkMessage.cs
│ │ │ │ ├── AllianceListMessage.cs
│ │ │ │ ├── AllianceOnlineStatusUpdatedMessage.cs
│ │ │ │ ├── AllianceRankingListMessage.cs
│ │ │ │ ├── AllianceStreamEntryMessage.cs
│ │ │ │ ├── AllianceStreamEntryRemovedMessage.cs
│ │ │ │ ├── AllianceStreamMessage.cs
│ │ │ │ ├── ChatAccountBanStatusMessage.cs
│ │ │ │ └── JoinableAllianceListMessage.cs
│ │ │ ├── AvailableServerCommand.cs
│ │ │ ├── AvatarLocalRankingListMessage.cs
│ │ │ ├── DisconnectedMessage.cs
│ │ │ ├── FacebookAccountBoundMessage.cs
│ │ │ ├── FacebookAccountUnboundMessage.cs
│ │ │ ├── Home/
│ │ │ │ ├── AvatarNameCheckResponseMessage.cs
│ │ │ │ ├── AvatarRankingListMessage.cs
│ │ │ │ ├── AvatarStreamEntryMessage.cs
│ │ │ │ ├── AvatarStreamEntryRemovedMessage.cs
│ │ │ │ ├── AvatarStreamMessage.cs
│ │ │ │ ├── InboxListMessage.cs
│ │ │ │ ├── OwnHomeDataMessage.cs
│ │ │ │ ├── ReportUserStatusMessage.cs
│ │ │ │ ├── RoyalTvContentMessage.cs
│ │ │ │ ├── StopHomeLogicMessage.cs
│ │ │ │ └── VisitedHomeDataMessage.cs
│ │ │ ├── Login/
│ │ │ │ ├── KeepAliveOkMessage.cs
│ │ │ │ ├── LoginFailedMessage.cs
│ │ │ │ ├── LoginOkMessage.cs
│ │ │ │ └── UnlockAccountFailedMessage.cs
│ │ │ ├── Matchmake/
│ │ │ │ ├── CancelChallengeDoneMessage.cs
│ │ │ │ ├── CancelMatchmakeDoneMessage.cs
│ │ │ │ ├── MatchmakeFailedMessage.cs
│ │ │ │ ├── MatchmakeInfoMessage.cs
│ │ │ │ ├── PvpMatchmakeNotificationMessage.cs
│ │ │ │ └── UdpConnectionInfoMessage.cs
│ │ │ ├── OutOfSyncMessage.cs
│ │ │ ├── Sector/
│ │ │ │ ├── BattleEventMessage.cs
│ │ │ │ ├── BattleResultMessage.cs
│ │ │ │ ├── HomeBattleReplayDataMessage.cs
│ │ │ │ ├── NpcSectorStateMessage.cs
│ │ │ │ ├── OpponentLeftMatchNotificationMessage.cs
│ │ │ │ ├── OpponentRejoinsMatchNotificationMessage.cs
│ │ │ │ ├── SectorHearbeatMessage.cs
│ │ │ │ └── SectorStateMessage.cs
│ │ │ ├── ServerErrorMessage.cs
│ │ │ ├── ShutdownStartedMessage.cs
│ │ │ └── Tournament/
│ │ │ ├── TournamentJoinedFailedMessage.cs
│ │ │ └── TournamentListMessage.cs
│ │ └── PiranhaMessage.cs
│ └── Resources.cs
├── ClashRoyale.Battles/
│ ├── ClashRoyale.Battles.csproj
│ ├── Core/
│ │ ├── Configuration.cs
│ │ ├── Network/
│ │ │ ├── Cluster/
│ │ │ │ ├── ClusterClient.cs
│ │ │ │ ├── Handlers/
│ │ │ │ │ ├── ClusterPacketEncoder.cs
│ │ │ │ │ └── ClusterPacketHandler.cs
│ │ │ │ ├── NettyClient.cs
│ │ │ │ └── Protocol/
│ │ │ │ ├── ClusterMessage.cs
│ │ │ │ ├── ClusterMessageFactory.cs
│ │ │ │ └── Messages/
│ │ │ │ ├── Client/
│ │ │ │ │ ├── BattleFinishedMessage.cs
│ │ │ │ │ ├── ConnectionCheckMessage.cs
│ │ │ │ │ └── ServerInfoMessage.cs
│ │ │ │ └── Server/
│ │ │ │ ├── ConnectionFailedMessage.cs
│ │ │ │ └── ConnectionOkMessage.cs
│ │ │ ├── Handlers/
│ │ │ │ └── PacketHandler.cs
│ │ │ └── NettyService.cs
│ │ └── Sessions.cs
│ ├── Logger.cs
│ ├── Logic/
│ │ ├── Battle/
│ │ │ └── LogicBattle.cs
│ │ ├── Session/
│ │ │ ├── Session.cs
│ │ │ └── SessionContext.cs
│ │ └── UdpMessageProcessor.cs
│ ├── NLog.config
│ ├── Program.cs
│ ├── Protocol/
│ │ ├── Commands/
│ │ │ └── DoSpellCommand.cs
│ │ ├── LogicCommand.cs
│ │ ├── LogicCommandManager.cs
│ │ ├── LogicMessageFactory.cs
│ │ ├── Messages/
│ │ │ ├── Client/
│ │ │ │ ├── SectorCommandMessage.cs
│ │ │ │ └── UdpCheckConnectionMessage.cs
│ │ │ └── Server/
│ │ │ └── SectorHearbeatMessage.cs
│ │ └── PiranhaMessage.cs
│ └── Resources.cs
├── ClashRoyale.CsvConverter/
│ ├── ClashRoyale.CsvConverter.csproj
│ ├── CsWriter.cs
│ ├── Extensions/
│ │ └── Prefixed.cs
│ └── Program.cs
├── ClashRoyale.Management/
│ ├── App.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── ClashRoyale.Management.csproj
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ └── Properties/
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── ClashRoyale.Simulator/
│ ├── Battle.cs
│ ├── Cards/
│ │ └── Knight.cs
│ ├── ClashRoyale.Simulator.csproj
│ ├── Program.cs
│ └── Types/
│ ├── Troop.cs
│ └── TroopContext.cs
├── ClashRoyale.Utilities/
│ ├── ClashRoyale.Utilities.csproj
│ ├── Compression/
│ │ └── ZLib/
│ │ ├── CRC32.cs
│ │ ├── Deflate.cs
│ │ ├── DeflateStream.cs
│ │ ├── GZipStream.cs
│ │ ├── InfTree.cs
│ │ ├── Inflate.cs
│ │ ├── Iso8859Dash1Encoding.cs
│ │ ├── ParallelDeflateOutputStream.cs
│ │ ├── Tree.cs
│ │ ├── Zlib.cs
│ │ ├── ZlibBaseStream.cs
│ │ ├── ZlibCodec.cs
│ │ ├── ZlibConstants.cs
│ │ └── ZlibStream.cs
│ ├── Crypto/
│ │ └── Rc4.cs
│ ├── Extensions.cs
│ ├── LogicRandom.cs
│ ├── Models/
│ │ └── Battle/
│ │ ├── LogicBattleAvatar.cs
│ │ ├── LogicBattleCommand.cs
│ │ ├── LogicBattleCommandStorage.cs
│ │ ├── LogicBattleEvent.cs
│ │ ├── LogicBattleInfo.cs
│ │ ├── LogicBattleSpell.cs
│ │ └── Replay/
│ │ └── LogicReplay.cs
│ ├── Netty/
│ │ ├── Reader.cs
│ │ └── Writer.cs
│ └── Utils/
│ ├── GameUtils.cs
│ ├── ServerUtils.cs
│ └── TimeUtils.cs
└── ClashRoyale.sln
SYMBOL INDEX (1382 symbols across 336 files)
FILE: src/ClashRoyale.Battles/Core/Configuration.cs
class Configuration (line 7) | public class Configuration
method Initialize (line 32) | public void Initialize()
method Save (line 71) | public void Save()
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/ClusterClient.cs
class ClusterClient (line 11) | public class ClusterClient
method Process (line 13) | public void Process(IByteBuffer buffer)
method Login (line 50) | public async void Login()
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/Handlers/ClusterPacketEncoder.cs
class ClusterPacketEncoder (line 8) | public class ClusterPacketEncoder : ChannelHandlerAdapter
method WriteAsync (line 10) | public override Task WriteAsync(IChannelHandlerContext context, object...
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/Handlers/ClusterPacketHandler.cs
class ClusterPacketHandler (line 11) | public class ClusterPacketHandler : ChannelHandlerAdapter
method ClusterPacketHandler (line 13) | public ClusterPacketHandler()
method ChannelRead (line 20) | public override void ChannelRead(IChannelHandlerContext context, objec...
method ChannelReadComplete (line 28) | public override void ChannelReadComplete(IChannelHandlerContext context)
method ChannelRegistered (line 33) | public override void ChannelRegistered(IChannelHandlerContext context)
method ChannelUnregistered (line 40) | public override async void ChannelUnregistered(IChannelHandlerContext ...
method ExceptionCaught (line 51) | public override void ExceptionCaught(IChannelHandlerContext context, E...
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/NettyClient.cs
class NettyClient (line 13) | public class NettyClient
method RunClientAsync (line 18) | public async Task RunClientAsync()
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/Protocol/ClusterMessage.cs
class ClusterMessage (line 8) | public class ClusterMessage
method ClusterMessage (line 10) | public ClusterMessage()
method ClusterMessage (line 15) | public ClusterMessage(IByteBuffer buffer)
method Decrypt (line 25) | public virtual void Decrypt()
method Encrypt (line 37) | public virtual void Encrypt()
method Decode (line 48) | public virtual void Decode()
method Encode (line 52) | public virtual void Encode()
method Process (line 56) | public virtual void Process()
method SendAsync (line 64) | public async Task SendAsync()
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/Protocol/ClusterMessageFactory.cs
class ClusterMessageFactory (line 7) | public class ClusterMessageFactory
method ClusterMessageFactory (line 11) | static ClusterMessageFactory()
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/Protocol/Messages/Client/BattleFinishedMessage.cs
class BattleFinishedMessage (line 5) | public class BattleFinishedMessage : ClusterMessage
method BattleFinishedMessage (line 7) | public BattleFinishedMessage()
method Encode (line 17) | public override void Encode()
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/Protocol/Messages/Client/ConnectionCheckMessage.cs
class ConnectionCheckMessage (line 5) | public class ConnectionCheckMessage : ClusterMessage
method ConnectionCheckMessage (line 7) | public ConnectionCheckMessage()
method Encode (line 12) | public override void Encode()
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/Protocol/Messages/Client/ServerInfoMessage.cs
class ServerInfoMessage (line 5) | public class ServerInfoMessage : ClusterMessage
method ServerInfoMessage (line 7) | public ServerInfoMessage()
method Encode (line 12) | public override void Encode()
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/Protocol/Messages/Server/ConnectionFailedMessage.cs
class ConnectionFailedMessage (line 7) | public class ConnectionFailedMessage : ClusterMessage
method ConnectionFailedMessage (line 9) | public ConnectionFailedMessage(IByteBuffer buffer) : base(buffer)
method Decode (line 16) | public override void Decode()
method Process (line 21) | public override void Process()
FILE: src/ClashRoyale.Battles/Core/Network/Cluster/Protocol/Messages/Server/ConnectionOkMessage.cs
class ConnectionOkMessage (line 5) | public class ConnectionOkMessage : ClusterMessage
method ConnectionOkMessage (line 7) | public ConnectionOkMessage(IByteBuffer buffer) : base(buffer)
FILE: src/ClashRoyale.Battles/Core/Network/Handlers/PacketHandler.cs
class PacketHandler (line 10) | public class PacketHandler : SimpleChannelInboundHandler<DatagramPacket>
method ChannelRead0 (line 12) | protected override void ChannelRead0(IChannelHandlerContext ctx, Datag...
method ChannelReadComplete (line 20) | public override void ChannelReadComplete(IChannelHandlerContext context)
method ExceptionCaught (line 25) | public override void ExceptionCaught(IChannelHandlerContext context, E...
FILE: src/ClashRoyale.Battles/Core/Network/NettyService.cs
class NettyService (line 11) | public class NettyService
method RunServerAsync (line 16) | public async Task RunServerAsync()
FILE: src/ClashRoyale.Battles/Core/Sessions.cs
class Sessions (line 10) | public class Sessions : Dictionary<long, Session>
method Sessions (line 15) | public Sessions()
method Add (line 21) | public void Add(SessionContext ctx, long sessionId)
method Remove (line 56) | public new void Remove(long sessionId)
method Get (line 64) | public Session Get(long sessionId)
method TimerCallback (line 72) | public void TimerCallback(object state, ElapsedEventArgs args)
FILE: src/ClashRoyale.Battles/Logger.cs
class Logger (line 8) | public class Logger
method Logger (line 16) | public Logger()
method Log (line 23) | public static void Log(object message, Type type, ErrorLevel logType =...
FILE: src/ClashRoyale.Battles/Logic/Battle/LogicBattle.cs
class LogicBattle (line 14) | public class LogicBattle
method LogicBattle (line 16) | public LogicBattle(Session.Session session)
method Start (line 29) | public void Start()
method Stop (line 39) | public void Stop()
method Tick (line 45) | public async void Tick(object sender, ElapsedEventArgs args)
method GetEnemyQueue (line 86) | public Queue<byte[]> GetEnemyQueue(EndPoint endpoint)
method GetOwnQueue (line 91) | public Queue<byte[]> GetOwnQueue(EndPoint endpoint)
FILE: src/ClashRoyale.Battles/Logic/Session/Session.cs
class Session (line 7) | public class Session : List<SessionContext>
method Session (line 11) | public Session()
method Add (line 19) | public new void Add(SessionContext ctx)
method Remove (line 31) | public new void Remove(SessionContext ctx)
method Get (line 43) | public SessionContext Get(EndPoint endPoint)
FILE: src/ClashRoyale.Battles/Logic/Session/SessionContext.cs
class SessionContext (line 14) | public class SessionContext
method Process (line 34) | public async void Process(IByteBuffer reader, IChannel channel)
type GameModes (line 123) | public enum GameModes
FILE: src/ClashRoyale.Battles/Logic/UdpMessageProcessor.cs
class UdpMessageProcessor (line 8) | public class UdpMessageProcessor
method Process (line 10) | public static async void Process(IChannelHandlerContext ctx, DatagramP...
FILE: src/ClashRoyale.Battles/Program.cs
class Program (line 5) | public class Program
method Main (line 7) | private static void Main(string[] args)
FILE: src/ClashRoyale.Battles/Protocol/Commands/DoSpellCommand.cs
class DoSpellCommand (line 9) | public class DoSpellCommand : LogicCommand
method DoSpellCommand (line 11) | public DoSpellCommand(SessionContext ctx, IByteBuffer buffer) : base(c...
method Decode (line 28) | public override void Decode()
method Encode (line 52) | public override void Encode()
method Process (line 73) | public override void Process()
FILE: src/ClashRoyale.Battles/Protocol/LogicCommand.cs
class LogicCommand (line 7) | public class LogicCommand
method LogicCommand (line 9) | public LogicCommand(SessionContext sessionContext)
method LogicCommand (line 15) | public LogicCommand(SessionContext sessionContext, IByteBuffer buffer)
method Decode (line 29) | public virtual void Decode()
method Encode (line 35) | public virtual void Encode()
method Process (line 39) | public virtual void Process()
FILE: src/ClashRoyale.Battles/Protocol/LogicCommandManager.cs
class LogicCommandManager (line 7) | public class LogicCommandManager
method LogicCommandManager (line 11) | static LogicCommandManager()
FILE: src/ClashRoyale.Battles/Protocol/LogicMessageFactory.cs
class LogicMessageFactory (line 7) | public class LogicMessageFactory
method LogicMessageFactory (line 11) | static LogicMessageFactory()
FILE: src/ClashRoyale.Battles/Protocol/Messages/Client/SectorCommandMessage.cs
class SectorCommandMessage (line 9) | public class SectorCommandMessage : PiranhaMessage
method SectorCommandMessage (line 11) | public SectorCommandMessage(SessionContext ctx, IByteBuffer reader) : ...
method Decode (line 19) | public override void Decode()
method Process (line 26) | public override void Process()
FILE: src/ClashRoyale.Battles/Protocol/Messages/Client/UdpCheckConnectionMessage.cs
class UdpCheckConnectionMessage (line 6) | public class UdpCheckConnectionMessage : PiranhaMessage
method UdpCheckConnectionMessage (line 8) | public UdpCheckConnectionMessage(SessionContext ctx, IByteBuffer reade...
FILE: src/ClashRoyale.Battles/Protocol/Messages/Server/SectorHearbeatMessage.cs
class SectorHearbeatMessage (line 7) | public class SectorHearbeatMessage : PiranhaMessage
method SectorHearbeatMessage (line 9) | public SectorHearbeatMessage(SessionContext ctx) : base(ctx)
method Encode (line 17) | public override void Encode()
FILE: src/ClashRoyale.Battles/Protocol/PiranhaMessage.cs
class PiranhaMessage (line 11) | public class PiranhaMessage
method PiranhaMessage (line 13) | public PiranhaMessage(SessionContext sessionContext)
method PiranhaMessage (line 19) | public PiranhaMessage(SessionContext sessionContext, IByteBuffer buffer)
method Decrypt (line 31) | public virtual void Decrypt()
method Encrypt (line 43) | public virtual void Encrypt()
method Decode (line 54) | public virtual void Decode()
method Encode (line 58) | public virtual void Encode()
method Process (line 62) | public virtual void Process()
method SendAsync (line 70) | public async Task SendAsync()
FILE: src/ClashRoyale.Battles/Resources.cs
class Resources (line 10) | public static class Resources
method Initialize (line 19) | public static async void Initialize()
FILE: src/ClashRoyale.CsvConverter/CsWriter.cs
class CsWriter (line 6) | public class CsWriter
method CsWriter (line 8) | internal CsWriter(string name, IReadOnlyList<string> header, string[] ...
method Uppercase (line 40) | internal string Uppercase(string _string)
FILE: src/ClashRoyale.CsvConverter/Extensions/Prefixed.cs
class Prefixed (line 7) | internal class Prefixed : TextWriter
method Prefixed (line 11) | public Prefixed()
method Write (line 18) | public override void Write(string text)
method WriteLine (line 23) | public override void WriteLine(string text)
method Write (line 28) | public override void Write(char text)
method WriteLine (line 33) | public override void WriteLine()
FILE: src/ClashRoyale.CsvConverter/Program.cs
class Program (line 8) | public class Program
method Main (line 10) | public static void Main()
FILE: src/ClashRoyale.Management/App.xaml.cs
class App (line 14) | public partial class App : Application
FILE: src/ClashRoyale.Management/MainWindow.xaml.cs
class MainWindow (line 21) | public partial class MainWindow : Window
method MainWindow (line 23) | public MainWindow()
FILE: src/ClashRoyale.Management/Properties/Resources.Designer.cs
class Resources (line 22) | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resource...
method Resources (line 32) | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Mic...
FILE: src/ClashRoyale.Management/Properties/Settings.Designer.cs
class Settings (line 15) | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
FILE: src/ClashRoyale.Simulator/Battle.cs
class Battle (line 9) | public class Battle
method Battle (line 22) | public Battle()
method Start (line 29) | public void Start()
method Tick (line 35) | public void Tick(object sender, ElapsedEventArgs args)
FILE: src/ClashRoyale.Simulator/Cards/Knight.cs
class Knight (line 5) | public class Knight : Troop
method Knight (line 7) | public Knight()
FILE: src/ClashRoyale.Simulator/Program.cs
class Program (line 5) | public class Program
method Main (line 11) | public static void Main(string[] args)
FILE: src/ClashRoyale.Simulator/Types/Troop.cs
class Troop (line 3) | public class Troop
type Target (line 26) | public enum Target
FILE: src/ClashRoyale.Simulator/Types/TroopContext.cs
class TroopContext (line 7) | public class TroopContext
method Tick (line 12) | public void Tick()
method Move (line 45) | public void Move(int x, int y)
method Create (line 55) | public static TroopContext Create(int id, int x, int y)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/CRC32.cs
class Crc32 (line 7) | [Interop.Guid("ebc25cf6-9120-4283-b972-0e5520d0000C")]
method Crc32 (line 22) | public Crc32() : this(false)
method Crc32 (line 26) | public Crc32(bool reverseBits) :
method Crc32 (line 31) | public Crc32(int polynomial, bool reverseBits)
method GetCrc32 (line 42) | public int GetCrc32(Stream input)
method GetCrc32AndCopy (line 47) | public int GetCrc32AndCopy(Stream input, Stream output)
method ComputeCrc32 (line 72) | public int ComputeCrc32(int w, byte b)
method InternalComputeCrc32 (line 77) | public int InternalComputeCrc32(uint w, byte b)
method SlurpBlock (line 82) | public void SlurpBlock(byte[] block, int offset, int count)
method UpdateCrc (line 106) | public void UpdateCrc(byte b)
method UpdateCrc (line 120) | public void UpdateCrc(byte b, int n)
method ReverseBits (line 135) | private static uint ReverseBits(uint data)
method ReverseBits (line 148) | private static byte ReverseBits(byte data)
method GenerateLookupTable (line 160) | private void GenerateLookupTable()
method Gf2_matrix_times (line 179) | private uint Gf2_matrix_times(uint[] matrix, uint vec)
method Gf2_matrix_square (line 194) | private void Gf2_matrix_square(uint[] square, uint[] mat)
method Combine (line 200) | public void Combine(int crc, int length)
method Reset (line 246) | public void Reset()
class CrcCalculatorStream (line 252) | public class CrcCalculatorStream : Stream, IDisposable
method CrcCalculatorStream (line 259) | public CrcCalculatorStream(Stream stream)
method CrcCalculatorStream (line 264) | public CrcCalculatorStream(Stream stream, bool leaveOpen)
method CrcCalculatorStream (line 269) | public CrcCalculatorStream(Stream stream, long length)
method CrcCalculatorStream (line 276) | public CrcCalculatorStream(Stream stream, long length, bool leaveOpen)
method CrcCalculatorStream (line 283) | public CrcCalculatorStream(Stream stream, long length, bool leaveOpen,
method CrcCalculatorStream (line 291) | private CrcCalculatorStream
method Dispose (line 314) | void IDisposable.Dispose()
method Read (line 319) | public override int Read(byte[] buffer, int offset, int count)
method Write (line 339) | public override void Write(byte[] buffer, int offset, int count)
method Flush (line 346) | public override void Flush()
method Seek (line 351) | public override long Seek(long offset, SeekOrigin origin)
method SetLength (line 356) | public override void SetLength(long value)
method Close (line 361) | public override void Close()
FILE: src/ClashRoyale.Utilities/Compression/ZLib/Deflate.cs
type BlockState (line 5) | internal enum BlockState
type DeflateFlavor (line 13) | internal enum DeflateFlavor
class DeflateManager (line 20) | internal sealed class DeflateManager
class Config (line 27) | internal class Config
method Config (line 37) | static Config()
method Config (line 54) | private Config(int goodLength, int maxLazy, int niceLength, int maxC...
method Lookup (line 63) | public static Config Lookup(CompressionLevel level)
method DeflateManager (line 185) | internal DeflateManager()
method _InitializeLazyMatch (line 192) | private void _InitializeLazyMatch()
method InitializeTreeData (line 209) | private void InitializeTreeData()
method InitializeBlocks (line 227) | internal void InitializeBlocks()
method Pqdownheap (line 241) | internal void Pqdownheap(short[] tree, int k)
method IsSmaller (line 259) | internal static bool IsSmaller(short[] tree, int n, int m, sbyte[] depth)
method Scan_tree (line 266) | internal void Scan_tree(short[] tree, int maxCode)
method Build_bl_tree (line 328) | internal int Build_bl_tree()
method Send_all_trees (line 346) | internal void Send_all_trees(int lcodes, int dcodes, int blcodes)
method Send_tree (line 358) | internal void Send_tree(short[] tree, int maxCode)
method Put_bytes (line 428) | private void Put_bytes(byte[] p, int start, int len)
method Send_code (line 434) | internal void Send_code(int c, short[] tree)
method Send_bits (line 440) | internal void Send_bits(int value, int length)
method Tr_align (line 462) | internal void Tr_align()
method Tr_tally (line 479) | internal bool Tr_tally(int dist, int lc)
method send_compressed_block (line 513) | internal void send_compressed_block(short[] ltree, short[] dtree)
method Set_data_type (line 559) | internal void Set_data_type()
method Bi_flush (line 585) | internal void Bi_flush()
method Bi_windup (line 602) | internal void Bi_windup()
method Copy_block (line 618) | internal void Copy_block(int buf, int len, bool header)
method Flush_block_only (line 635) | internal void Flush_block_only(bool eof)
method DeflateNone (line 642) | internal BlockState DeflateNone(FlushType flush)
method Tr_stored_block (line 688) | internal void Tr_stored_block(int buf, int storedLen, bool eof)
method Tr_flush_block (line 694) | internal void Tr_flush_block(int buf, int storedLen, bool eof)
method FillWindow (line 741) | private void FillWindow()
method DeflateFast (line 802) | internal BlockState DeflateFast(FlushType flush)
method DeflateSlow (line 880) | internal BlockState DeflateSlow(FlushType flush)
method Longest_match (line 978) | internal int Longest_match(int curMatch)
method Initialize (line 1042) | internal int Initialize(ZlibCodec codec, CompressionLevel level)
method Initialize (line 1047) | internal int Initialize(ZlibCodec codec, CompressionLevel level, int b...
method Initialize (line 1052) | internal int Initialize(ZlibCodec codec, CompressionLevel level, int b...
method Initialize (line 1058) | internal int Initialize(ZlibCodec codec, CompressionLevel level, int w...
method Reset (line 1098) | internal void Reset()
method End (line 1117) | internal int End()
method SetDeflater (line 1129) | private void SetDeflater()
method SetParams (line 1147) | internal int SetParams(CompressionLevel level, CompressionStrategy str...
method SetDictionary (line 1168) | internal int SetDictionary(byte[] dictionary)
method Deflate (line 1204) | internal int Deflate(FlushType flush)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/DeflateStream.cs
class DeflateStream (line 6) | public class DeflateStream : Stream
method Dispose (line 10) | protected override void Dispose(bool disposing)
method DeflateStream (line 29) | public DeflateStream(Stream stream, CompressionMode mode)
method DeflateStream (line 34) | public DeflateStream(Stream stream, CompressionMode mode, CompressionL...
method DeflateStream (line 39) | public DeflateStream(Stream stream, CompressionMode mode, bool leaveOpen)
method DeflateStream (line 44) | public DeflateStream(Stream stream, CompressionMode mode, CompressionL...
method CompressBuffer (line 138) | public static byte[] CompressBuffer(byte[] b)
method CompressString (line 148) | public static byte[] CompressString(string s)
method UncompressBuffer (line 157) | public static byte[] UncompressBuffer(byte[] compressed)
method UncompressString (line 166) | public static string UncompressString(byte[] compressed)
method Flush (line 175) | public override void Flush()
method Read (line 183) | public override int Read(byte[] buffer, int offset, int count)
method Seek (line 191) | public override long Seek(long offset, SeekOrigin origin)
method SetLength (line 196) | public override void SetLength(long value)
method Write (line 201) | public override void Write(byte[] buffer, int offset, int count)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/GZipStream.cs
class GZipStream (line 7) | public class GZipStream : Stream
method GZipStream (line 53) | public GZipStream(Stream stream, CompressionMode mode)
method GZipStream (line 58) | public GZipStream(Stream stream, CompressionMode mode, CompressionLeve...
method GZipStream (line 63) | public GZipStream(Stream stream, CompressionMode mode, bool leaveOpen)
method GZipStream (line 68) | public GZipStream(Stream stream, CompressionMode mode, CompressionLeve...
method Dispose (line 106) | protected override void Dispose(bool disposing)
method Flush (line 150) | public override void Flush()
method Read (line 178) | public override int Read(byte[] buffer, int offset, int count)
method Seek (line 194) | public override long Seek(long offset, SeekOrigin origin)
method SetLength (line 199) | public override void SetLength(long value)
method Write (line 204) | public override void Write(byte[] buffer, int offset, int count)
method EmitHeader (line 222) | private int EmitHeader()
method CompressString (line 283) | public static byte[] CompressString(string s)
method CompressBuffer (line 292) | public static byte[] CompressBuffer(byte[] b)
method UncompressString (line 302) | public static string UncompressString(byte[] compressed)
method UncompressBuffer (line 309) | public static byte[] UncompressBuffer(byte[] compressed)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/InfTree.cs
class InfTree (line 6) | internal sealed class InfTree
method Inflate_trees_fixed (line 129) | internal static int Inflate_trees_fixed(int[] bl, int[] bd, int[][] tl...
method Inflate_trees_bits (line 138) | internal int Inflate_trees_bits(int[] c, int[] bb, int[] tb, int[] hp,...
method Inflate_trees_dynamic (line 157) | internal int Inflate_trees_dynamic(int nl, int nd, int[] c, int[] bl, ...
method Huft_build (line 207) | private int Huft_build(IReadOnlyList<int> b, int bindex, int n, int s,...
method InitWorkArea (line 365) | private void InitWorkArea(int vsize)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/Inflate.cs
class InternalInflateConstants (line 5) | internal static class InternalInflateConstants
class InflateBlocks (line 16) | internal sealed class InflateBlocks
method InflateBlocks (line 43) | internal InflateBlocks(ZlibCodec codec, object checkfn, int w)
method Flush (line 54) | internal int Flush(int r)
method Free (line 102) | internal void Free()
method Process (line 109) | internal int Process(int r)
method Reset (line 637) | internal uint Reset()
method SetDictionary (line 650) | internal void SetDictionary(byte[] d, int start, int n)
method SyncPoint (line 656) | internal int SyncPoint()
type InflateBlockMode (line 661) | private enum InflateBlockMode
class InflateCodes (line 676) | internal sealed class InflateCodes
method InflateFast (line 704) | internal int InflateFast(int bl, int bd, int[] tl, int tlIndex, int[] ...
method Init (line 951) | internal void Init(int bl, int bd, int[] tl, int tlIndex, int[] td, in...
method Process (line 963) | internal int Process(InflateBlocks blocks, int r)
class InflateManager (line 1368) | internal sealed class InflateManager
type InflateManagerMode (line 1372) | private enum InflateManagerMode
method InflateManager (line 1406) | public InflateManager()
method InflateManager (line 1410) | public InflateManager(bool expectRfc1950HeaderBytes)
method End (line 1415) | internal int End()
method Inflate (line 1422) | internal int Inflate(FlushType flush)
method Initialize (line 1621) | internal int Initialize(ZlibCodec codec, int w)
method Reset (line 1643) | internal int Reset()
method SetDictionary (line 1652) | internal int SetDictionary(byte[] dictionary)
method Sync (line 1675) | internal int Sync()
method SyncPoint (line 1716) | internal int SyncPoint(ZlibCodec z)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/Iso8859Dash1Encoding.cs
class Iso8859Dash1Encoding (line 6) | public class Iso8859Dash1Encoding : Encoding
method GetByteCount (line 12) | public override int GetByteCount(char[] chars, int index, int count)
method GetBytes (line 17) | public override int GetBytes(char[] chars, int start, int count, byte[...
method GetCharCount (line 49) | public override int GetCharCount(byte[] bytes, int index, int count)
method GetChars (line 54) | public override int GetChars(byte[] bytes, int start, int count, char[...
method GetMaxByteCount (line 79) | public override int GetMaxByteCount(int charCount)
method GetMaxCharCount (line 84) | public override int GetMaxCharCount(int byteCount)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/ParallelDeflateOutputStream.cs
class WorkItem (line 8) | internal class WorkItem
method WorkItem (line 19) | public WorkItem(int size,
class ParallelDeflateOutputStream (line 35) | public class ParallelDeflateOutputStream : Stream
method ParallelDeflateOutputStream (line 76) | public ParallelDeflateOutputStream(Stream stream)
method ParallelDeflateOutputStream (line 81) | public ParallelDeflateOutputStream(Stream stream, CompressionLevel level)
method ParallelDeflateOutputStream (line 86) | public ParallelDeflateOutputStream(Stream stream, bool leaveOpen)
method ParallelDeflateOutputStream (line 91) | public ParallelDeflateOutputStream(Stream stream, CompressionLevel lev...
method ParallelDeflateOutputStream (line 96) | public ParallelDeflateOutputStream(Stream stream,
method InitializePoolOfWorkItems (line 140) | private void InitializePoolOfWorkItems()
method Write (line 161) | public override void Write(byte[] buffer, int offset, int count)
method FlushFinish (line 238) | private void FlushFinish()
method Flush (line 266) | private void Flush(bool lastInput)
method Flush (line 292) | public override void Flush()
method Close (line 308) | public override void Close()
method Dispose (line 332) | public new void Dispose()
method Reset (line 339) | public void Reset(Stream stream)
method EmitPendingBuffers (line 363) | private void EmitPendingBuffers(bool doAll, bool mustWait)
method DeflateOne (line 438) | private void DeflateOne(object wi)
method DeflateOneSegment (line 474) | private void DeflateOneSegment(WorkItem workitem)
type TraceBits (line 494) | [Flags]
method Read (line 531) | public override int Read(byte[] buffer, int offset, int count)
method Seek (line 536) | public override long Seek(long offset, SeekOrigin origin)
method SetLength (line 541) | public override void SetLength(long value)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/Tree.cs
class Tree (line 5) | internal sealed class Tree
method Bi_reverse (line 99) | internal static int Bi_reverse(int code, int len)
method DistanceCode (line 112) | internal static int DistanceCode(int dist)
method Gen_codes (line 119) | internal static void Gen_codes(short[] tree, int maxCode, short[] blCo...
method Build_tree (line 142) | internal void Build_tree(DeflateManager s)
method Gen_bitlen (line 205) | internal void Gen_bitlen(DeflateManager s)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/Zlib.cs
type FlushType (line 8) | public enum FlushType
type CompressionLevel (line 17) | public enum CompressionLevel
type CompressionStrategy (line 35) | public enum CompressionStrategy
type CompressionMode (line 42) | public enum CompressionMode
class ZlibException (line 48) | [Guid("ebc25cf6-9120-4283-b972-0e5520d0000E")]
method ZlibException (line 51) | public ZlibException()
method ZlibException (line 55) | public ZlibException(string s)
class SharedUtils (line 61) | internal class SharedUtils
method UrShift (line 63) | public static int UrShift(int number, int bits)
method URShift (line 75) | public static long URShift(long number, int bits)
method ReadInput (line 93) | public static int ReadInput(TextReader sourceTextReader, byte[] target...
method ToByteArray (line 112) | internal static byte[] ToByteArray(string sourceString)
method ToCharArray (line 117) | internal static char[] ToCharArray(byte[] byteArray)
class InternalConstants (line 123) | internal static class InternalConstants
class StaticTree (line 145) | internal sealed class StaticTree
method StaticTree (line 205) | static StaticTree()
method StaticTree (line 215) | private StaticTree(short[] treeCodes, int[] extraBits, int extraBase, ...
class Adler (line 234) | public sealed class Adler
method Adler32 (line 258) | public static uint Adler32(uint adler, byte[] buf, int index, int len)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/ZlibBaseStream.cs
type ZlibStreamFlavor (line 8) | internal enum ZlibStreamFlavor
class ZlibBaseStream (line 15) | internal class ZlibBaseStream : Stream
method ZlibBaseStream (line 41) | public ZlibBaseStream(Stream stream,
method Write (line 82) | public override void Write(byte[] buffer, int offset, int count)
method Finish (line 118) | private void Finish()
method End (line 225) | private void End()
method Close (line 235) | public override void Close()
method Flush (line 253) | public override void Flush()
method Seek (line 258) | public override long Seek(long offset, SeekOrigin origin)
method SetLength (line 263) | public override void SetLength(long value)
method ReadZeroTerminatedString (line 270) | private string ReadZeroTerminatedString()
method ReadAndValidateGzipHeader (line 290) | private int ReadAndValidateGzipHeader()
method Read (line 332) | public override int Read(byte[] buffer, int offset, int count)
type StreamMode (line 433) | internal enum StreamMode
method CompressString (line 440) | public static void CompressString(string s, Stream compressor)
method CompressBuffer (line 449) | public static void CompressBuffer(byte[] b, Stream compressor)
method UncompressString (line 457) | public static string UncompressString(byte[] compressed, Stream decomp...
method UncompressBuffer (line 473) | public static byte[] UncompressBuffer(byte[] compressed, Stream decomp...
FILE: src/ClashRoyale.Utilities/Compression/ZLib/ZlibCodec.cs
class ZlibCodec (line 6) | [Interop.Guid("ebc25cf6-9120-4283-b972-0e5520d0000D")]
method ZlibCodec (line 40) | public ZlibCodec()
method ZlibCodec (line 44) | public ZlibCodec(CompressionMode mode)
method InitializeInflate (line 73) | public int InitializeInflate()
method InitializeInflate (line 78) | public int InitializeInflate(bool expectRfc1950Header)
method InitializeInflate (line 83) | public int InitializeInflate(int windowBits)
method InitializeInflate (line 89) | public int InitializeInflate(int windowBits, bool expectRfc1950Header)
method Inflate (line 99) | public int Inflate(FlushType flush)
method EndInflate (line 107) | public int EndInflate()
method SyncInflate (line 117) | public int SyncInflate()
method InitializeDeflate (line 125) | public int InitializeDeflate()
method InitializeDeflate (line 130) | public int InitializeDeflate(CompressionLevel level)
method InitializeDeflate (line 136) | public int InitializeDeflate(CompressionLevel level, bool wantRfc1950H...
method InitializeDeflate (line 142) | public int InitializeDeflate(CompressionLevel level, int bits)
method InitializeDeflate (line 149) | public int InitializeDeflate(CompressionLevel level, int bits, bool wa...
method _InternalInitializeDeflate (line 156) | private int _InternalInitializeDeflate(bool wantRfc1950Header)
method Deflate (line 166) | public int Deflate(FlushType flush)
method EndDeflate (line 174) | public int EndDeflate()
method ResetDeflate (line 183) | public void ResetDeflate()
method SetDeflateParams (line 191) | public int SetDeflateParams(CompressionLevel level, CompressionStrateg...
method SetDictionary (line 199) | public int SetDictionary(byte[] dictionary)
method Flush_pending (line 210) | internal void Flush_pending()
method Read_buf (line 236) | internal int Read_buf(byte[] buf, int start, int size)
FILE: src/ClashRoyale.Utilities/Compression/ZLib/ZlibConstants.cs
class ZlibConstants (line 3) | public static class ZlibConstants
FILE: src/ClashRoyale.Utilities/Compression/ZLib/ZlibStream.cs
class ZlibStream (line 6) | public class ZlibStream : Stream
method ZlibStream (line 11) | public ZlibStream(Stream stream, CompressionMode mode)
method ZlibStream (line 16) | public ZlibStream(Stream stream, CompressionMode mode, CompressionLeve...
method ZlibStream (line 21) | public ZlibStream(Stream stream, CompressionMode mode, bool leaveOpen)
method ZlibStream (line 26) | public ZlibStream(Stream stream, CompressionMode mode, CompressionLeve...
method Dispose (line 108) | protected override void Dispose(bool disposing)
method CompressBuffer (line 124) | public static byte[] CompressBuffer(byte[] b, CompressionLevel compres...
method CompressString (line 134) | public static byte[] CompressString(string s, CompressionLevel compres...
method UncompressBuffer (line 143) | public static byte[] UncompressBuffer(byte[] compressed)
method UncompressString (line 152) | public static string UncompressString(byte[] compressed)
method Flush (line 161) | public override void Flush()
method Read (line 169) | public override int Read(byte[] buffer, int offset, int count)
method Seek (line 177) | public override long Seek(long offset, SeekOrigin origin)
method SetLength (line 182) | public override void SetLength(long value)
method Write (line 188) | public override void Write(byte[] buffer, int offset, int count)
FILE: src/ClashRoyale.Utilities/Crypto/Rc4.cs
class Rc4 (line 7) | public class Rc4
method Rc4 (line 9) | public Rc4(byte[] key)
method Prga (line 18) | public byte Prga()
method Ksa (line 30) | public static byte[] Ksa(byte[] key)
class Rc4Core (line 52) | public class Rc4Core
method Rc4Core (line 54) | public Rc4Core(string key, string nonce)
method Encrypt (line 74) | public void Encrypt(ref IByteBuffer data)
method Decrypt (line 83) | public void Decrypt(ref IByteBuffer data)
method Encrypt (line 92) | public void Encrypt(ref byte[] data)
method Decrypt (line 101) | public void Decrypt(ref byte[] data)
method InitializeCiphers (line 110) | public void InitializeCiphers(byte[] key)
FILE: src/ClashRoyale.Utilities/Extensions.cs
class ExtensionMethods (line 7) | public static class ExtensionMethods
method UpdateOrInsert (line 9) | public static void UpdateOrInsert<T>(this List<T> list, int index, T i...
method ToReadableString (line 17) | public static string ToReadableString(this TimeSpan span)
FILE: src/ClashRoyale.Utilities/LogicRandom.cs
class LogicRandom (line 3) | public class LogicRandom
method Rand (line 7) | public int Rand(int a2)
method SetIteratedRandomSeed (line 28) | public void SetIteratedRandomSeed(int rndSeed)
FILE: src/ClashRoyale.Utilities/Models/Battle/LogicBattleAvatar.cs
class LogicBattleAvatar (line 5) | public class LogicBattleAvatar
FILE: src/ClashRoyale.Utilities/Models/Battle/LogicBattleCommand.cs
class LogicBattleCommand (line 5) | public class LogicBattleCommand
FILE: src/ClashRoyale.Utilities/Models/Battle/LogicBattleCommandStorage.cs
class LogicBattleCommandStorage (line 5) | public class LogicBattleCommandStorage
FILE: src/ClashRoyale.Utilities/Models/Battle/LogicBattleEvent.cs
class LogicBattleEvent (line 6) | public class LogicBattleEvent
FILE: src/ClashRoyale.Utilities/Models/Battle/LogicBattleInfo.cs
class LogicBattleInfo (line 6) | public class LogicBattleInfo
FILE: src/ClashRoyale.Utilities/Models/Battle/LogicBattleSpell.cs
class LogicBattleSpell (line 5) | public class LogicBattleSpell
FILE: src/ClashRoyale.Utilities/Models/Battle/Replay/LogicReplay.cs
class LogicReplay (line 7) | public class LogicReplay
method AddEvent (line 24) | public void AddEvent(int type, int highId, int lowId, int tick, int pa...
method AddCommand (line 45) | public void AddCommand(int type, int tick, int tick2, int highId, int ...
FILE: src/ClashRoyale.Utilities/Netty/Reader.cs
class Reader (line 9) | public static class Reader
method ReadScString (line 16) | public static string ReadScString(this IByteBuffer byteBuffer)
method ReadVInt (line 31) | public static int ReadVInt(this IByteBuffer byteBuffer)
FILE: src/ClashRoyale.Utilities/Netty/Writer.cs
class Writer (line 12) | public static class Writer
method WriteScString (line 19) | public static void WriteScString(this IByteBuffer buffer, string value)
method WriteVInt (line 43) | public static void WriteVInt(this IByteBuffer buffer, int value)
method WriteNullVInt (line 71) | public static void WriteNullVInt(this IByteBuffer buffer, int count = 1)
method WriteCompressedString (line 82) | public static void WriteCompressedString(this IByteBuffer buffer, stri...
method WriteHex (line 98) | public static void WriteHex(this IByteBuffer buffer, string value)
FILE: src/ClashRoyale.Utilities/Utils/GameUtils.cs
class GameUtils (line 5) | public class GameUtils
method IsHigherRoleThan (line 21) | public static bool IsHigherRoleThan(int role, int roleToCompare)
method Id (line 28) | public static int Id(int classId, int instanceId)
FILE: src/ClashRoyale.Utilities/Utils/ServerUtils.cs
class ServerUtils (line 9) | public class ServerUtils
method GetOsName (line 11) | public static string GetOsName()
method IsLinux (line 23) | public static bool IsLinux()
method GetChecksum (line 28) | public static string GetChecksum(string text)
method GetChecksum (line 35) | public static string GetChecksum(byte[] data)
FILE: src/ClashRoyale.Utilities/Utils/TimeUtils.cs
class TimeUtils (line 5) | public class TimeUtils
FILE: src/ClashRoyale/Core/Cluster/Node.cs
class Node (line 11) | public class Node
method Node (line 13) | public Node(ClusterPacketHandler handler)
method Process (line 22) | public void Process(IByteBuffer buffer)
method GetIp (line 61) | public string GetIp()
FILE: src/ClashRoyale/Core/Cluster/NodeInfo.cs
class NodeInfo (line 5) | public class NodeInfo
method ToString (line 13) | public override string ToString()
FILE: src/ClashRoyale/Core/Cluster/NodeManager.cs
class NodeManager (line 6) | public class NodeManager : Dictionary<string, NodeInfo>
method Add (line 15) | public new void Add(string host, NodeInfo info)
method Remove (line 27) | public new void Remove(string host)
method GetServer (line 41) | public NodeInfo GetServer()
FILE: src/ClashRoyale/Core/Cluster/Protocol/ClusterMessage.cs
class ClusterMessage (line 8) | public class ClusterMessage
method ClusterMessage (line 14) | public ClusterMessage(Node server)
method ClusterMessage (line 25) | public ClusterMessage(Node server, IByteBuffer buffer)
method Decrypt (line 40) | public virtual void Decrypt()
method Encrypt (line 55) | public virtual void Encrypt()
method Decode (line 69) | public virtual void Decode()
method Encode (line 76) | public virtual void Encode()
method Process (line 83) | public virtual void Process()
method SendAsync (line 91) | public async Task SendAsync()
FILE: src/ClashRoyale/Core/Cluster/Protocol/ClusterMessageFactory.cs
class ClusterMessageFactory (line 7) | public class ClusterMessageFactory
method ClusterMessageFactory (line 11) | static ClusterMessageFactory()
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Client/BattleFinishedMessage.cs
class BattleFinishedMessage (line 6) | public class BattleFinishedMessage : ClusterMessage
method BattleFinishedMessage (line 8) | public BattleFinishedMessage(Node server, IByteBuffer buffer) : base(s...
method Decode (line 18) | public override void Decode()
method Process (line 26) | public override void Process()
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Client/ConnectionCheckMessage.cs
class ConnectionCheckMessage (line 8) | public class ConnectionCheckMessage : ClusterMessage
method ConnectionCheckMessage (line 10) | public ConnectionCheckMessage(Node server, IByteBuffer buffer) : base(...
method Decode (line 20) | public override void Decode()
method Process (line 31) | public override async void Process()
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Client/ServerInfoMessage.cs
class ServerInfoMessage (line 6) | public class ServerInfoMessage : ClusterMessage
method ServerInfoMessage (line 8) | public ServerInfoMessage(Node server, IByteBuffer buffer) : base(serve...
method Decode (line 16) | public override void Decode()
method Process (line 22) | public override void Process()
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Server/ConnectionFailedMessage.cs
class ConnectionFailedMessage (line 5) | public class ConnectionFailedMessage : ClusterMessage
method ConnectionFailedMessage (line 7) | public ConnectionFailedMessage(Node server) : base(server)
method Encode (line 17) | public override void Encode()
FILE: src/ClashRoyale/Core/Cluster/Protocol/Messages/Server/ConnectionOkMessage.cs
class ConnectionOkMessage (line 3) | public class ConnectionOkMessage : ClusterMessage
method ConnectionOkMessage (line 5) | public ConnectionOkMessage(Node server) : base(server)
FILE: src/ClashRoyale/Core/Configuration.cs
class Configuration (line 7) | public class Configuration
method Initialize (line 47) | public void Initialize()
method Save (line 99) | public void Save()
FILE: src/ClashRoyale/Core/Leaderboards/Leaderboard.cs
class Leaderboard (line 15) | public class Leaderboard
method Leaderboard (line 23) | public Leaderboard()
method Update (line 39) | public async void Update(object state, ElapsedEventArgs args)
FILE: src/ClashRoyale/Core/Network/Handlers/Cluster/ClusterPacketEncoder.cs
class ClusterPacketEncoder (line 8) | public class ClusterPacketEncoder : ChannelHandlerAdapter
method WriteAsync (line 10) | public override Task WriteAsync(IChannelHandlerContext context, object...
FILE: src/ClashRoyale/Core/Network/Handlers/Cluster/ClusterPacketHandler.cs
class ClusterPacketHandler (line 12) | public class ClusterPacketHandler : ChannelHandlerAdapter
method ClusterPacketHandler (line 14) | public ClusterPacketHandler()
method ChannelRead (line 22) | public override void ChannelRead(IChannelHandlerContext context, objec...
method ChannelReadComplete (line 30) | public override void ChannelReadComplete(IChannelHandlerContext context)
method ChannelRegistered (line 35) | public override void ChannelRegistered(IChannelHandlerContext context)
method ChannelUnregistered (line 47) | public override void ChannelUnregistered(IChannelHandlerContext context)
method ExceptionCaught (line 60) | public override void ExceptionCaught(IChannelHandlerContext context, E...
FILE: src/ClashRoyale/Core/Network/Handlers/PacketEncoder.cs
class PacketEncoder (line 8) | public class PacketEncoder : ChannelHandlerAdapter
method WriteAsync (line 10) | public override Task WriteAsync(IChannelHandlerContext context, object...
FILE: src/ClashRoyale/Core/Network/Handlers/PacketHandler.cs
class PacketHandler (line 11) | public class PacketHandler : ChannelHandlerAdapter
method PacketHandler (line 13) | public PacketHandler()
method ChannelRead (line 23) | public override void ChannelRead(IChannelHandlerContext context, objec...
method ChannelReadComplete (line 39) | public override void ChannelReadComplete(IChannelHandlerContext context)
method ChannelRegistered (line 44) | public override void ChannelRegistered(IChannelHandlerContext context)
method ChannelUnregistered (line 56) | public override async void ChannelUnregistered(IChannelHandlerContext ...
method ExceptionCaught (line 93) | public override void ExceptionCaught(IChannelHandlerContext context, E...
FILE: src/ClashRoyale/Core/Network/NettyService.cs
class NettyService (line 14) | public class NettyService
method RunServerAsync (line 32) | public async Task RunServerAsync()
method Shutdown (line 106) | public async Task Shutdown()
method ShutdownWorkers (line 118) | public async Task ShutdownWorkers()
FILE: src/ClashRoyale/Core/Network/Throttler.cs
class Throttler (line 5) | public class Throttler
method Throttler (line 17) | public Throttler(int maxPackets, int interval)
method CanProcess (line 23) | public bool CanProcess()
method GetMillisecondsSinceLastReset (line 33) | private int GetMillisecondsSinceLastReset()
FILE: src/ClashRoyale/Core/SentryReport.cs
class SentryReport (line 7) | public class SentryReport
method SentryReport (line 9) | public SentryReport()
method Report (line 34) | public async void Report(string message, Type type, ErrorLevel level)
FILE: src/ClashRoyale/Database/AllianceDb.cs
class AllianceDb (line 12) | public class AllianceDb
method AllianceDb (line 18) | public AllianceDb()
method ExecuteAsync (line 40) | public static async Task ExecuteAsync(MySqlCommand cmd)
method MaxAllianceId (line 62) | public static long MaxAllianceId()
method CountAsync (line 94) | public static async Task<long> CountAsync()
method CreateAsync (line 126) | public static async Task<Alliance> CreateAsync()
method GetAsync (line 163) | public static async Task<Alliance> GetAsync(long id)
method SaveAsync (line 202) | public static async Task SaveAsync(Alliance alliance)
method DeleteAsync (line 229) | public static async Task DeleteAsync(long id)
method GetGlobalAlliancesAsync (line 250) | public static async Task<List<Alliance>> GetGlobalAlliancesAsync()
FILE: src/ClashRoyale/Database/Cache/Alliances.cs
class Alliances (line 8) | public class Alliances : Dictionary<long, Alliance>
method Add (line 16) | public void Add(Alliance alliance)
method Remove (line 28) | public new void Remove(long allianceId)
method GetAllianceAsync (line 51) | public async Task<Alliance> GetAllianceAsync(long allianceId, bool onl...
FILE: src/ClashRoyale/Database/Cache/Battles.cs
class Battles (line 10) | public class Battles : Dictionary<long, LogicBattle>
method Enqueue (line 45) | public async void Enqueue(Player player)
method SendInfo (line 83) | public async void SendInfo(Device device, int estimatedDuration)
method Cancel (line 96) | public bool Cancel(Player player)
method Add (line 112) | public void Add(LogicBattle battle)
method Remove (line 124) | public new void Remove(long id)
method Get (line 135) | public LogicBattle Get(long id)
FILE: src/ClashRoyale/Database/Cache/DuoBattles.cs
class DuoBattles (line 9) | public class DuoBattles : Dictionary<long, LogicBattle>
method Enqueue (line 45) | public async void Enqueue(Player player)
method Cancel (line 72) | public bool Cancel(Player player)
method Add (line 88) | public void Add(LogicBattle battle)
method Remove (line 100) | public new void Remove(long id)
FILE: src/ClashRoyale/Database/Cache/Players.cs
class Players (line 8) | public class Players : Dictionary<long, Player>
method Login (line 17) | public async Task<Player> Login(long userId, string token)
method Logout (line 58) | public void Logout(ref Player player)
method LogoutById (line 86) | public bool LogoutById(long userId)
method GetPlayerAsync (line 114) | public async Task<Player> GetPlayerAsync(long userId, bool onlineOnly ...
FILE: src/ClashRoyale/Database/ObjectCache.cs
class ObjectCache (line 13) | public class ObjectCache
method ObjectCache (line 19) | public ObjectCache()
method CachePlayer (line 38) | public void CachePlayer(Player player)
method CacheAlliance (line 56) | public void CacheAlliance(Alliance alliance)
method GetCachedPlayer (line 70) | public Player GetCachedPlayer(long id)
method GetCachedAlliance (line 97) | public Alliance GetCachedAlliance(long id)
method UncacheAlliance (line 124) | public void UncacheAlliance(long id)
method CachedPlayers (line 129) | public long CachedPlayers()
method CachedClans (line 134) | public long CachedClans()
FILE: src/ClashRoyale/Database/PlayerDb.cs
class PlayerDb (line 13) | public class PlayerDb
method PlayerDb (line 19) | public PlayerDb()
method ExecuteAsync (line 41) | public static async Task ExecuteAsync(MySqlCommand cmd)
method MaxPlayerId (line 63) | public static long MaxPlayerId()
method CountAsync (line 95) | public static async Task<long> CountAsync()
method CreateAsync (line 127) | public static async Task<Player> CreateAsync()
method GetAsync (line 168) | public static async Task<Player> GetAsync(long id)
method GetAsync (line 211) | public static async Task<Player> GetAsync(string facebookId)
method SaveAsync (line 248) | public static async Task SaveAsync(Player player)
method DeleteAsync (line 279) | public static async Task DeleteAsync(long id)
method GetGlobalPlayerRankingAsync (line 300) | public static async Task<List<Player>> GetGlobalPlayerRankingAsync()
method GetLocalPlayerRankingAsync (line 337) | public static async Task<List<Player>> GetLocalPlayerRankingAsync(stri...
FILE: src/ClashRoyale/Extensions/CustomWriter.cs
class CustomWriter (line 10) | public static class CustomWriter
method WriteData (line 17) | public static void WriteData(this IByteBuffer buffer, Data value)
FILE: src/ClashRoyale/Extensions/Utils/CompressionUtils.cs
class CompressionUtils (line 8) | public class CompressionUtils
method CompressData (line 10) | public static byte[] CompressData(byte[] input)
FILE: src/ClashRoyale/Files/Csv.Files.cs
class Csv (line 9) | public partial class Csv
type Files (line 11) | public enum Files
method Csv (line 69) | static Csv()
method Create (line 125) | public static Data Create(Files file, Row row, DataTable dataTable)
FILE: src/ClashRoyale/Files/Csv.cs
class Csv (line 6) | public partial class Csv
method Csv (line 11) | public Csv()
FILE: src/ClashRoyale/Files/CsvClient/BackgroundDecos.cs
class BackgroundDecos (line 6) | public class BackgroundDecos : Data
method BackgroundDecos (line 8) | public BackgroundDecos(Row row, DataTable datatable) : base(row, datat...
FILE: src/ClashRoyale/Files/CsvClient/BillingPackages.cs
class BillingPackages (line 6) | public class BillingPackages : Data
method BillingPackages (line 8) | public BillingPackages(Row row, DataTable datatable) : base(row, datat...
FILE: src/ClashRoyale/Files/CsvClient/ClientGlobals.cs
class ClientGlobals (line 6) | public class ClientGlobals : Data
method ClientGlobals (line 8) | public ClientGlobals(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/Credits.cs
class Credits (line 6) | public class Credits : Data
method Credits (line 8) | public Credits(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/Effects.cs
class Effects (line 6) | public class Effects : Data
method Effects (line 8) | public Effects(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/EventOutput.cs
class EventOutput (line 6) | public class EventOutput : Data
method EventOutput (line 8) | public EventOutput(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/HealthBars.cs
class HealthBars (line 6) | public class HealthBars : Data
method HealthBars (line 8) | public HealthBars(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/Helpshift.cs
class Helpshift (line 6) | public class Helpshift : Data
method Helpshift (line 8) | public Helpshift(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/Hints.cs
class Hints (line 6) | public class Hints : Data
method Hints (line 8) | public Hints(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/Music.cs
class Music (line 6) | public class Music : Data
method Music (line 8) | public Music(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/News.cs
class News (line 6) | public class News : Data
method News (line 8) | public News(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/ParticleEmitters.cs
class ParticleEmitters (line 6) | public class ParticleEmitters : Data
method ParticleEmitters (line 8) | public ParticleEmitters(Row row, DataTable datatable) : base(row, data...
FILE: src/ClashRoyale/Files/CsvClient/Sounds.cs
class Sounds (line 6) | public class Sounds : Data
method Sounds (line 8) | public Sounds(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/Texts.cs
class Texts (line 6) | public class Texts : Data
method Texts (line 8) | public Texts(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvClient/TextsPatch.cs
class TextsPatch (line 6) | public class TextsPatch : Data
method TextsPatch (line 8) | public TextsPatch(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvHelpers/Data.cs
class Data (line 6) | public class Data
method Data (line 13) | public Data(Row row, DataTable dataTable)
method LoadData (line 19) | public void LoadData(Data data, Type type, Row row, int dataType = -1)
method GetDataType (line 27) | public int GetDataType()
method GetGlobalId (line 32) | public int GetGlobalId()
method GetInstanceId (line 37) | public int GetInstanceId()
method GetName (line 42) | public string GetName()
FILE: src/ClashRoyale/Files/CsvHelpers/DataTable.cs
class DataTable (line 6) | public class DataTable
method DataTable (line 11) | public DataTable()
method DataTable (line 16) | public DataTable(Table table, Csv.Files index)
method Count (line 29) | public int Count()
method GetDatas (line 34) | public List<Data> GetDatas()
method GetDataWithId (line 39) | public Data GetDataWithId(int id)
method GetDataWithId (line 44) | public T GetDataWithId<T>(int id) where T : Data
method GetDataWithInstanceId (line 49) | public T GetDataWithInstanceId<T>(int id) where T : Data
method GetData (line 56) | public T GetData<T>(string name) where T : Data
method GetIndex (line 61) | public int GetIndex()
FILE: src/ClashRoyale/Files/CsvHelpers/GlobalId.cs
class GlobalId (line 3) | public static class GlobalId
method CreateGlobalId (line 5) | public static int CreateGlobalId(int classId, int instanceId)
method GetClassId (line 10) | public static int GetClassId(int globalId)
method GetInstanceId (line 15) | public static int GetInstanceId(int globalId)
FILE: src/ClashRoyale/Files/CsvLogic/Abilities.cs
class Abilities (line 6) | public class Abilities : Data
method Abilities (line 8) | public Abilities(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Achievements.cs
class Achievements (line 6) | public class Achievements : Data
method Achievements (line 8) | public Achievements(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/AllianceBadges.cs
class AllianceBadges (line 6) | public class AllianceBadges : Data
method AllianceBadges (line 8) | public AllianceBadges(Row row, DataTable datatable) : base(row, datata...
FILE: src/ClashRoyale/Files/CsvLogic/AllianceRoles.cs
class AllianceRoles (line 6) | public class AllianceRoles : Data
method AllianceRoles (line 8) | public AllianceRoles(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/AreaEffectObjects.cs
class AreaEffectObjects (line 6) | public class AreaEffectObjects : Data
method AreaEffectObjects (line 8) | public AreaEffectObjects(Row row, DataTable datatable) : base(row, dat...
FILE: src/ClashRoyale/Files/CsvLogic/Arenas.cs
class Arenas (line 6) | public class Arenas : Data
method Arenas (line 8) | public Arenas(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Buildings.cs
class Buildings (line 6) | public class Buildings : Data
method Buildings (line 8) | public Buildings(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/CharacterBuffs.cs
class CharacterBuffs (line 6) | public class CharacterBuffs : Data
method CharacterBuffs (line 8) | public CharacterBuffs(Row row, DataTable datatable) : base(row, datata...
FILE: src/ClashRoyale/Files/CsvLogic/Characters.cs
class Characters (line 6) | public class Characters : Data
method Characters (line 8) | public Characters(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/ChestOrder.cs
class ChestOrder (line 6) | public class ChestOrder : Data
method ChestOrder (line 8) | public ChestOrder(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/ConfigurationDefinitions.cs
class ConfigurationDefinitions (line 6) | public class ConfigurationDefinitions : Data
method ConfigurationDefinitions (line 8) | public ConfigurationDefinitions(Row row, DataTable datatable) : base(r...
FILE: src/ClashRoyale/Files/CsvLogic/ContentTests.cs
class ContentTests (line 6) | public class ContentTests : Data
method ContentTests (line 8) | public ContentTests(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Decos.cs
class Decos (line 6) | public class Decos : Data
method Decos (line 8) | public Decos(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/DraftDeck.cs
class DraftDeck (line 6) | public class DraftDeck : Data
method DraftDeck (line 8) | public DraftDeck(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/EventCategories.cs
class EventCategories (line 6) | public class EventCategories : Data
method EventCategories (line 8) | public EventCategories(Row row, DataTable datatable) : base(row, datat...
FILE: src/ClashRoyale/Files/CsvLogic/EventCategoryDefinitions.cs
class EventCategoryDefinitions (line 6) | public class EventCategoryDefinitions : Data
method EventCategoryDefinitions (line 8) | public EventCategoryDefinitions(Row row, DataTable datatable) : base(r...
FILE: src/ClashRoyale/Files/CsvLogic/EventCategoryEnums.cs
class EventCategoryEnums (line 6) | public class EventCategoryEnums : Data
method EventCategoryEnums (line 8) | public EventCategoryEnums(Row row, DataTable datatable) : base(row, da...
FILE: src/ClashRoyale/Files/CsvLogic/EventCategoryObjectDefinitions.cs
class EventCategoryObjectDefinitions (line 6) | public class EventCategoryObjectDefinitions : Data
method EventCategoryObjectDefinitions (line 8) | public EventCategoryObjectDefinitions(Row row, DataTable datatable) : ...
FILE: src/ClashRoyale/Files/CsvLogic/EventTargetingDefinitions.cs
class EventTargetingDefinitions (line 6) | public class EventTargetingDefinitions : Data
method EventTargetingDefinitions (line 8) | public EventTargetingDefinitions(Row row, DataTable datatable) : base(...
FILE: src/ClashRoyale/Files/CsvLogic/ExpLevels.cs
class ExpLevels (line 6) | public class ExpLevels : Data
method ExpLevels (line 8) | public ExpLevels(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/GambleChests.cs
class GambleChests (line 6) | public class GambleChests : Data
method GambleChests (line 8) | public GambleChests(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/GameModes.cs
class GameModes (line 6) | public class GameModes : Data
method GameModes (line 8) | public GameModes(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Globals.cs
class Globals (line 6) | public class Globals : Data
method Globals (line 8) | public Globals(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Heroes.cs
class Heroes (line 6) | public class Heroes : Data
method Heroes (line 8) | public Heroes(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Locales.cs
class Locales (line 6) | public class Locales : Data
method Locales (line 8) | public Locales(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Locations.cs
class Locations (line 6) | public class Locations : Data
method Locations (line 8) | public Locations(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Npcs.cs
class Npcs (line 6) | public class Npcs : Data
method Npcs (line 8) | public Npcs(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/PredefinedDecks.cs
class PredefinedDecks (line 6) | public class PredefinedDecks : Data
method PredefinedDecks (line 8) | public PredefinedDecks(Row row, DataTable datatable) : base(row, datat...
FILE: src/ClashRoyale/Files/CsvLogic/Projectiles.cs
class Projectiles (line 6) | public class Projectiles : Data
method Projectiles (line 8) | public Projectiles(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/PveBoss.cs
class PveBoss (line 6) | public class PveBoss : Data
method PveBoss (line 8) | public PveBoss(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/PveGamemodes.cs
class PveGamemodes (line 6) | public class PveGamemodes : Data
method PveGamemodes (line 8) | public PveGamemodes(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/PveWaves.cs
class PveWaves (line 6) | public class PveWaves : Data
method PveWaves (line 8) | public PveWaves(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/QuestOrder.cs
class QuestOrder (line 6) | public class QuestOrder : Data
method QuestOrder (line 8) | public QuestOrder(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Rarities.cs
class Rarities (line 7) | public class Rarities : Data
method Rarities (line 9) | public Rarities(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Regions.cs
class Regions (line 6) | public class Regions : Data
method Regions (line 8) | public Regions(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/ResourcePacks.cs
class ResourcePacks (line 6) | public class ResourcePacks : Data
method ResourcePacks (line 8) | public ResourcePacks(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Resources.cs
class Resources (line 6) | public class Resources : Data
method Resources (line 8) | public Resources(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Shop.cs
class Shop (line 6) | public class Shop : Data
method Shop (line 8) | public Shop(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Skins.cs
class Skins (line 6) | public class Skins : Data
method Skins (line 8) | public Skins(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/SpellSets.cs
class SpellSets (line 6) | public class SpellSets : Data
method SpellSets (line 8) | public SpellSets(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/SpellsBuildings.cs
class SpellsBuildings (line 6) | public class SpellsBuildings : Data
method SpellsBuildings (line 8) | public SpellsBuildings(Row row, DataTable datatable) : base(row, datat...
FILE: src/ClashRoyale/Files/CsvLogic/SpellsCharacters.cs
class SpellsCharacters (line 6) | public class SpellsCharacters : Data
method SpellsCharacters (line 8) | public SpellsCharacters(Row row, DataTable datatable) : base(row, data...
FILE: src/ClashRoyale/Files/CsvLogic/SpellsHeroes.cs
class SpellsHeroes (line 6) | public class SpellsHeroes : Data
method SpellsHeroes (line 8) | public SpellsHeroes(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/SpellsOther.cs
class SpellsOther (line 6) | public class SpellsOther : Data
method SpellsOther (line 8) | public SpellsOther(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/SurvivalModes.cs
class SurvivalModes (line 6) | public class SurvivalModes : Data
method SurvivalModes (line 8) | public SurvivalModes(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/Taunts.cs
class Taunts (line 6) | public class Taunts : Data
method Taunts (line 8) | public Taunts(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/TournamentTiers.cs
class TournamentTiers (line 6) | public class TournamentTiers : Data
method TournamentTiers (line 8) | public TournamentTiers(Row row, DataTable datatable) : base(row, datat...
FILE: src/ClashRoyale/Files/CsvLogic/TreasureChests.cs
class TreasureChests (line 6) | public class TreasureChests : Data
method TreasureChests (line 8) | public TreasureChests(Row row, DataTable datatable) : base(row, datata...
FILE: src/ClashRoyale/Files/CsvLogic/TutorialChestOrder.cs
class TutorialChestOrder (line 6) | public class TutorialChestOrder : Data
method TutorialChestOrder (line 8) | public TutorialChestOrder(Row row, DataTable datatable) : base(row, da...
FILE: src/ClashRoyale/Files/CsvLogic/TutorialsHome.cs
class TutorialsHome (line 6) | public class TutorialsHome : Data
method TutorialsHome (line 8) | public TutorialsHome(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/TutorialsNpc.cs
class TutorialsNpc (line 6) | public class TutorialsNpc : Data
method TutorialsNpc (line 8) | public TutorialsNpc(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvLogic/TveGamemodes.cs
class TveGamemodes (line 6) | public class TveGamemodes : Data
method TveGamemodes (line 8) | public TveGamemodes(Row row, DataTable datatable) : base(row, datatable)
FILE: src/ClashRoyale/Files/CsvReader/Column.cs
class Column (line 6) | public class Column
method Column (line 10) | public Column()
method GetArraySize (line 15) | public static int GetArraySize(int offset, int nOffset)
method Add (line 20) | public void Add(string value)
method Get (line 28) | public string Get(int row)
method GetSize (line 33) | public int GetSize()
FILE: src/ClashRoyale/Files/CsvReader/Gamefiles.cs
class Gamefiles (line 7) | public class Gamefiles : IDisposable
method Gamefiles (line 11) | public Gamefiles()
method Dispose (line 19) | public void Dispose()
method Get (line 24) | public DataTable Get(Csv.Files index)
method Get (line 29) | public DataTable Get(int index)
method Initialize (line 34) | public void Initialize(Table table, Csv.Files index)
FILE: src/ClashRoyale/Files/CsvReader/Row.cs
class Row (line 8) | public class Row
method Row (line 13) | public Row(Table table)
method LoadData (line 23) | public void LoadData(Data data)
method GetArraySize (line 105) | public int GetArraySize(string name)
method GetName (line 111) | public string GetName()
method GetValue (line 117) | public string GetValue(string name, int level)
method LoadBoolArray (line 122) | private bool[] LoadBoolArray(string column)
method LoadIntArray (line 139) | private int[] LoadIntArray(string column)
method LoadStringArray (line 156) | private string[] LoadStringArray(string column)
FILE: src/ClashRoyale/Files/CsvReader/Table.cs
class Table (line 6) | public class Table
method Table (line 13) | public Table(string path)
method AddRow (line 47) | public void AddRow(Row row)
method GetArraySizeAt (line 52) | public int GetArraySizeAt(Row row, int columnIndex)
method GetColumnIndexByName (line 71) | public int GetColumnIndexByName(string name)
method GetColumnName (line 76) | public string GetColumnName(int index)
method GetColumnRowCount (line 81) | public int GetColumnRowCount()
method GetRowAt (line 86) | public Row GetRowAt(int index)
method GetRowCount (line 91) | public int GetRowCount()
method GetValue (line 96) | public string GetValue(string name, int level)
method GetValueAt (line 102) | public string GetValueAt(int column, int row)
FILE: src/ClashRoyale/Files/Fingerprint.cs
class Fingerprint (line 14) | public class Fingerprint
method Fingerprint (line 18) | public Fingerprint()
method Save (line 64) | public void Save()
class Asset (line 78) | public class Asset
method HasFileChanged (line 84) | public async Task<bool> HasFileChanged()
FILE: src/ClashRoyale/Files/UpdateManager.cs
class UpdateManager (line 9) | public class UpdateManager
method Initialize (line 15) | public async Task Initialize()
method CheckForChanges (line 32) | public async Task<bool> CheckForChanges()
method CreatePatch (line 51) | public async Task CreatePatch()
FILE: src/ClashRoyale/GameAssets/database.sql
type `player` (line 4) | CREATE TABLE IF NOT EXISTS `player` (
type `clan` (line 14) | CREATE TABLE IF NOT EXISTS `clan` (
FILE: src/ClashRoyale/Logger.cs
class Logger (line 8) | public class Logger
method Logger (line 16) | public Logger()
method Log (line 23) | public static void Log(object message, Type type, ErrorLevel logType =...
FILE: src/ClashRoyale/Logic/Battle/LogicBattle.cs
class LogicBattle (line 17) | public class LogicBattle : List<Player>
method LogicBattle (line 24) | public LogicBattle(bool isFriendly, int arena)
method LogicBattle (line 43) | public LogicBattle(bool isFriendly, int arena, IReadOnlyCollection<Pla...
method Start (line 73) | public async void Start()
method Encode (line 128) | public void Encode(IByteBuffer packet)
method EncodeDuo (line 402) | public void EncodeDuo(IByteBuffer packet)
method Stop (line 793) | public void Stop()
method Tick (line 808) | public async void Tick(object sender, ElapsedEventArgs args)
method Remove (line 866) | public new void Remove(Player player)
method Stop (line 888) | public async void Stop(byte index)
method GetEnemyQueue (line 922) | public Queue<byte[]> GetEnemyQueue(long userId)
method GetOwnQueue (line 927) | public Queue<byte[]> GetOwnQueue(long userId)
method GetOtherQueues (line 932) | public List<Queue<byte[]>> GetOtherQueues(long userId)
method GetEnemy (line 943) | public Device GetEnemy(long userId)
method GetTeammate (line 948) | public Player GetTeammate(long userId)
method GetAllOthers (line 954) | public List<Player> GetAllOthers(long userId)
FILE: src/ClashRoyale/Logic/Battle/LogicBattleLog.cs
class LogicBattleLog (line 3) | public class LogicBattleLog
method GetPlayer (line 9) | public void GetPlayer(int index)
method GetPlayer (line 17) | public void GetPlayer( /*LogicLong*/)
method GetJson (line 25) | public void GetJson()
method LoadJson (line 33) | public void LoadJson()
method GetArenaData (line 41) | public void GetArenaData()
method SetArenaData (line 49) | public void SetArenaData()
FILE: src/ClashRoyale/Logic/Battle/LogicBattleLogPlayer.cs
class LogicBattleLogPlayer (line 3) | public class LogicBattleLogPlayer
method SetAccountId (line 8) | public void SetAccountId( /*LogicLong*/)
method GetAccountId (line 17) | public long GetAccountId()
method SetHomeId (line 27) | public void SetHomeId( /*LogicLong*/)
method GetHomeId (line 36) | public long GetHomeId()
method SetAllianceId (line 46) | public void SetAllianceId( /*LogicLong*/)
method GetAllianceId (line 55) | public long GetAllianceId()
method SetStars (line 65) | public void SetStars()
method GetStars (line 74) | public int GetStars()
method SetPrevScore (line 84) | public void SetPrevScore()
method GetPrevScore (line 92) | public int GetPrevScore()
method SetScore (line 102) | public void SetScore()
method GetScore (line 110) | public void GetScore()
method SetHighscoreRank (line 118) | public void SetHighscoreRank()
method GetHighscoreRank (line 126) | public int GetHighscoreRank()
method SetName (line 136) | public void SetName()
method GetName (line 144) | public string GetName()
method SetAllianceName (line 154) | public void SetAllianceName()
method GetAllianceName (line 162) | public string GetAllianceName()
method SetAllianceBadgeData (line 172) | public void SetAllianceBadgeData()
method GetAllianceBadgeData (line 180) | public void GetAllianceBadgeData()
method GetJson (line 188) | public void GetJson()
method LoadJson (line 196) | public void LoadJson()
method SetDeck (line 204) | public void SetDeck()
method GetDeck (line 212) | public void GetDeck()
method GetChestData (line 220) | public void GetChestData()
method SetChestData (line 228) | public void SetChestData()
FILE: src/ClashRoyale/Logic/Clan/Alliance.cs
class Alliance (line 15) | public class Alliance
type Role (line 17) | public enum Role
method Alliance (line 28) | public Alliance(long id)
method AllianceRankingEntry (line 58) | public void AllianceRankingEntry(IByteBuffer packet)
method AllianceFullEntry (line 63) | public void AllianceFullEntry(IByteBuffer packet)
method AllianceHeaderEntry (line 85) | public void AllianceHeaderEntry(IByteBuffer packet)
method GetAllianceInfo (line 100) | public AllianceInfo GetAllianceInfo(long userId)
method Add (line 111) | public void Add(AllianceMember member)
method Remove (line 121) | public async void Remove(long id)
method AddEntry (line 151) | public async void AddEntry(AllianceStreamEntry entry)
method RemoveEntry (line 176) | public async void RemoveEntry(AllianceStreamEntry entry)
method GetRole (line 195) | public int GetRole(long id)
method GetMember (line 205) | public AllianceMember GetMember(long id)
method UpdateOnlineCount (line 215) | public async void UpdateOnlineCount()
method Save (line 231) | public async void Save()
FILE: src/ClashRoyale/Logic/Clan/AllianceInfo.cs
class AllianceInfo (line 6) | public class AllianceInfo
method Reset (line 27) | public void Reset()
FILE: src/ClashRoyale/Logic/Clan/AllianceMember.cs
class AllianceMember (line 9) | public class AllianceMember
method AllianceMember (line 11) | public AllianceMember(Player player, Alliance.Role role)
method AllianceMember (line 19) | public AllianceMember()
method AllianceMemberEntry (line 45) | public void AllianceMemberEntry(IByteBuffer packet)
method GetPlayerAsync (line 75) | public async Task<Player> GetPlayerAsync(bool onlineOnly = false)
FILE: src/ClashRoyale/Logic/Clan/StreamEntry/AllianceStreamEntry.cs
class AllianceStreamEntry (line 8) | public class AllianceStreamEntry
method Encode (line 32) | public virtual void Encode(IByteBuffer packet)
method SetSender (line 52) | public virtual void SetSender(Player player)
FILE: src/ClashRoyale/Logic/Clan/StreamEntry/Entries/AllianceEventStreamEntry.cs
class AllianceEventStreamEntry (line 7) | public class AllianceEventStreamEntry : AllianceStreamEntry
type Type (line 9) | public enum Type
method AllianceEventStreamEntry (line 19) | public AllianceEventStreamEntry()
method Encode (line 29) | public override void Encode(IByteBuffer packet)
method SetTarget (line 41) | public void SetTarget(Player target)
FILE: src/ClashRoyale/Logic/Clan/StreamEntry/Entries/ChallengeStreamEntry.cs
class ChallengeStreamEntry (line 7) | public class ChallengeStreamEntry : AllianceStreamEntry
method ChallengeStreamEntry (line 9) | public ChallengeStreamEntry()
method Encode (line 23) | public override void Encode(IByteBuffer packet)
method SetTarget (line 42) | public void SetTarget(Player target)
method SetSender (line 47) | public override void SetSender(Player player)
FILE: src/ClashRoyale/Logic/Clan/StreamEntry/Entries/ChatStreamEntry.cs
class ChatStreamEntry (line 7) | public class ChatStreamEntry : AllianceStreamEntry
method ChatStreamEntry (line 9) | public ChatStreamEntry()
method Encode (line 16) | public override void Encode(IByteBuffer packet)
FILE: src/ClashRoyale/Logic/Clan/StreamEntry/Entries/DonateStreamEntry.cs
class DonateStreamEntry (line 7) | public class DonateStreamEntry : AllianceStreamEntry
method DonateStreamEntry (line 9) | public DonateStreamEntry()
method Encode (line 18) | public override void Encode(IByteBuffer packet)
FILE: src/ClashRoyale/Logic/Clan/StreamEntry/Entries/JoinRequestAllianceStreamEntry.cs
class JoinRequestAllianceStreamEntry (line 7) | public class JoinRequestAllianceStreamEntry : AllianceStreamEntry
method JoinRequestAllianceStreamEntry (line 9) | public JoinRequestAllianceStreamEntry()
method Encode (line 18) | public override void Encode(IByteBuffer packet)
method SetTarget (line 27) | public void SetTarget(Player target)
FILE: src/ClashRoyale/Logic/Device.cs
class Device (line 14) | public class Device
method Device (line 16) | public Device(PacketHandler handler)
method Process (line 29) | public void Process(IByteBuffer buffer)
method GetIp (line 81) | public string GetIp()
method Disconnect (line 90) | public async void Disconnect()
method AdjustTick (line 108) | public void AdjustTick(int tick)
type State (line 135) | public enum State
FILE: src/ClashRoyale/Logic/Home/Arena.cs
class Arena (line 9) | public class Arena
method Arena (line 11) | public Arena()
method AddTrophies (line 25) | public void AddTrophies(int trophies)
method RemoveTrophies (line 47) | public void RemoveTrophies(int trophies)
method UpdateClanTrophies (line 76) | public async void UpdateClanTrophies()
method ArenaData (line 89) | public Arenas ArenaData(int arena)
method GetNextArenaData (line 108) | public Arenas GetNextArenaData()
method GetCurrentArenaData (line 117) | public Arenas GetCurrentArenaData()
method GetOldArenaData (line 126) | public Arenas GetOldArenaData()
method GetChestArenaNames (line 135) | public List<string> GetChestArenaNames()
FILE: src/ClashRoyale/Logic/Home/Chests/Chests.cs
class Chests (line 11) | public class Chests
method BuyChest (line 15) | public Chest BuyChest(int instanceId, Chest.ChestType type)
method RoundPrice (line 190) | private int RoundPrice(int price)
FILE: src/ClashRoyale/Logic/Home/Chests/Items/Chest.cs
class Chest (line 8) | public class Chest : List<Card>
type ChestType (line 10) | public enum ChestType
method Encode (line 23) | public void Encode(IByteBuffer packet)
method Add (line 65) | public new void Add(Card card)
FILE: src/ClashRoyale/Logic/Home/Decks/Cards.cs
class Cards (line 10) | public class Cards
method Initialize (line 16) | public static void Initialize()
method GetAllCards (line 32) | public static Card[] GetAllCards()
method RandomByArena (line 42) | public static Card RandomByArena(Card.Rarity rarity, List<string> ches...
method Random (line 83) | public static Card Random(Card.Rarity rarity)
method Random (line 133) | public static Card Random()
FILE: src/ClashRoyale/Logic/Home/Decks/Deck.cs
class Deck (line 10) | public class Deck : List<Card>
method Initialize (line 14) | public void Initialize()
method Add (line 28) | public new void Add(Card card)
method Encode (line 42) | public void Encode(IByteBuffer packet)
method SwitchDeck (line 71) | public void SwitchDeck(int deckIndex)
method EncodeAttack (line 94) | public void EncodeAttack(IByteBuffer packet)
method GetCard (line 106) | public Card GetCard(int classId, int instanceId)
method GetCard (line 117) | public Card GetCard(int globalId)
method GetCardOffset (line 128) | public int GetCardOffset(int globalId)
method SwapCard (line 139) | public void SwapCard(int cardOffset, int deckOffset)
method UpgradeAll (line 152) | public void UpgradeAll()
method UpgradeCard (line 163) | public void UpgradeCard(int classId, int instanceId, bool force = false)
method UpgradeCard (line 176) | public void UpgradeCard(Card card, bool force = false)
method SawCard (line 202) | public void SawCard(int classId, int instanceId)
FILE: src/ClashRoyale/Logic/Home/Decks/Items/Card.cs
class Card (line 10) | public class Card
type Rarity (line 12) | public enum Rarity
method Card (line 28) | public Card(int classId, int instanceId, bool isNew, int count = 0)
method Card (line 40) | public Card(Card card)
method Card (line 49) | public Card()
method Encode (line 105) | public void Encode(IByteBuffer packet)
method EncodeAttack (line 116) | public void EncodeAttack(IByteBuffer packet)
method Id (line 122) | public static int Id(int classId, int instanceId)
method GetRarity (line 130) | public static Rarity GetRarity(string name)
FILE: src/ClashRoyale/Logic/Home/Home.cs
class Home (line 14) | public class Home
method Home (line 29) | public Home()
method Home (line 37) | public Home(long id, string token)
method BuyResourcePack (line 151) | public void BuyResourcePack(int id)
method AddExpPoints (line 189) | public void AddExpPoints(int expPoints)
method AddCrowns (line 214) | public void AddCrowns(int crowns)
method UseGold (line 235) | public bool UseGold(int amount)
method IsFirstFreeChestAvailable (line 247) | public bool IsFirstFreeChestAvailable()
method IsSecondFreeChestAvailable (line 256) | public bool IsSecondFreeChestAvailable()
method GetFreeChestId (line 265) | public int GetFreeChestId()
method Reset (line 280) | public void Reset()
FILE: src/ClashRoyale/Logic/Home/Shop/Items/SpellShopItem.cs
class SpellShopItem (line 6) | public class SpellShopItem : ShopItem
method SpellShopItem (line 8) | public SpellShopItem()
method Encode (line 18) | public override void Encode(IByteBuffer packet)
FILE: src/ClashRoyale/Logic/Home/Shop/Shop.cs
class Shop (line 16) | public class Shop : List<ShopItem>
method Refresh (line 22) | public void Refresh()
method Encode (line 41) | public void Encode(IByteBuffer packet)
method BuyItem (line 67) | public void BuyItem(int amount, int classId, int instanceId, int index)
method RandomSpell (line 107) | public SpellShopItem RandomSpell(Card.Rarity rarity)
FILE: src/ClashRoyale/Logic/Home/Shop/ShopItem.cs
class ShopItem (line 6) | public class ShopItem
method Encode (line 11) | public virtual void Encode(IByteBuffer packet)
FILE: src/ClashRoyale/Logic/Home/StreamEntry/AvatarStreamEntry.cs
class AvatarStreamEntry (line 8) | public class AvatarStreamEntry
method Encode (line 32) | public virtual void Encode(IByteBuffer packet)
method SetSender (line 49) | public virtual void SetSender(Player player)
FILE: src/ClashRoyale/Logic/Home/StreamEntry/Entries/AllianceMailAvatarStreamEntry.cs
class AllianceMailAvatarStreamEntry (line 7) | public class AllianceMailAvatarStreamEntry : AvatarStreamEntry
method AllianceMailAvatarStreamEntry (line 9) | public AllianceMailAvatarStreamEntry()
method Encode (line 20) | public override void Encode(IByteBuffer packet)
FILE: src/ClashRoyale/Logic/Home/StreamEntry/Entries/DonationReceivedStreamEntry.cs
class DonationReceivedStreamEntry (line 6) | public class DonationReceivedStreamEntry : AvatarStreamEntry
method DonationReceivedStreamEntry (line 8) | public DonationReceivedStreamEntry()
method Encode (line 13) | public override void Encode(IByteBuffer packet)
FILE: src/ClashRoyale/Logic/Player.cs
class Player (line 17) | public class Player
method Player (line 19) | public Player(long id)
method Player (line 24) | public Player()
method RankingEntry (line 34) | public void RankingEntry(IByteBuffer packet)
method LogicClientHome (line 92) | public void LogicClientHome(IByteBuffer packet)
method LogicClientAvatar (line 443) | public void LogicClientAvatar(IByteBuffer packet)
method AddEntry (line 627) | public async void AddEntry(AvatarStreamEntry entry)
method ValidateSession (line 649) | public void ValidateSession()
method Save (line 661) | public async void Save()
FILE: src/ClashRoyale/Logic/Sessions/Location.cs
class Location (line 9) | public class Location
method GetByIpAsync (line 15) | public static async Task<Location> GetByIpAsync(string ip)
FILE: src/ClashRoyale/Logic/Sessions/Session.cs
class Session (line 6) | public class Session
FILE: src/ClashRoyale/Logic/Time/LogicTime.cs
class LogicTime (line 7) | public class LogicTime
method IncreaseTick (line 14) | public void IncreaseTick()
method SetServerTick (line 20) | public void SetServerTick(int tick)
method Update (line 26) | public void Update(float time)
method Encode (line 32) | public void Encode(IByteBuffer packet)
method GetSecondsInTicks (line 37) | public static int GetSecondsInTicks(int seconds)
FILE: src/ClashRoyale/Logic/Time/LogicTimer.cs
class LogicTimer (line 9) | public class LogicTimer
method StartTimer (line 18) | public void StartTimer(int seconds)
method Decode (line 25) | public void Decode(IByteBuffer packet)
method Encode (line 32) | public void Encode(IByteBuffer packet)
method Tick (line 39) | public void Tick()
method AdjustEndSubTick (line 44) | public void AdjustEndSubTick(int ticks)
method FastForward (line 49) | public void FastForward(int seconds)
FILE: src/ClashRoyale/Program.cs
class Program (line 7) | public static class Program
method Main (line 9) | private static void Main()
method Shutdown (line 31) | public static async void Shutdown()
method Exit (line 56) | public static void Exit()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicBuyChestCommand.cs
class LogicBuyChestCommand (line 10) | public class LogicBuyChestCommand : LogicCommand
method LogicBuyChestCommand (line 12) | public LogicBuyChestCommand(Device device, IByteBuffer buffer) : base(...
method Decode (line 18) | public override void Decode()
method Process (line 29) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicBuyResourcePackCommand.cs
class LogicBuyResourcePackCommand (line 8) | public class LogicBuyResourcePackCommand : LogicCommand
method LogicBuyResourcePackCommand (line 10) | public LogicBuyResourcePackCommand(Device device, IByteBuffer buffer) ...
method Decode (line 14) | public override void Decode()
method Process (line 24) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicBuyResourcesCommand.cs
class LogicBuyResourcesCommand (line 7) | public class LogicBuyResourcesCommand : LogicCommand
method LogicBuyResourcesCommand (line 9) | public LogicBuyResourcesCommand(Device device, IByteBuffer buffer) : b...
method Decode (line 15) | public override void Decode()
method Process (line 26) | public override void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicBuySpellCommand.cs
class LogicBuySpellCommand (line 7) | public class LogicBuySpellCommand : LogicCommand
method LogicBuySpellCommand (line 9) | public LogicBuySpellCommand(Device device, IByteBuffer buffer) : base(...
method Decode (line 18) | public override void Decode()
method Process (line 36) | public override void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicChallengeCommand.cs
class LogicChallengeCommand (line 9) | public class LogicChallengeCommand : LogicCommand
method LogicChallengeCommand (line 11) | public LogicChallengeCommand(Device device, IByteBuffer buffer) : base...
method Decode (line 19) | public override void Decode()
method Process (line 38) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicChestNextCardCommand.cs
class LogicChestNextCardCommand (line 7) | public class LogicChestNextCardCommand : LogicCommand
method LogicChestNextCardCommand (line 9) | public LogicChestNextCardCommand(Device device, IByteBuffer buffer) : ...
method Decode (line 13) | public override void Decode()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicCollectCrownChestCommand.cs
class LogicCollectCrownChestCommand (line 12) | public class LogicCollectCrownChestCommand : LogicCommand
method LogicCollectCrownChestCommand (line 14) | public LogicCollectCrownChestCommand(Device device, IByteBuffer buffer...
method Process (line 18) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicCollectFreeChestCommand.cs
class LogicCollectFreeChestCommand (line 10) | public class LogicCollectFreeChestCommand : LogicCommand
method LogicCollectFreeChestCommand (line 12) | public LogicCollectFreeChestCommand(Device device, IByteBuffer buffer)...
method Process (line 16) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicCopyDeckCommand.cs
class LogicCopyDeckCommand (line 7) | public class LogicCopyDeckCommand : LogicCommand
method LogicCopyDeckCommand (line 9) | public LogicCopyDeckCommand(Device device, IByteBuffer buffer) : base(...
method Decode (line 16) | public override void Decode()
method Process (line 27) | public override void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicFreeWorkerCommand.cs
class LogicFreeWorkerCommand (line 7) | public class LogicFreeWorkerCommand : LogicCommand
method LogicFreeWorkerCommand (line 9) | public LogicFreeWorkerCommand(Device device, IByteBuffer buffer) : bas...
method Decode (line 16) | public override void Decode()
method Process (line 29) | public override void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicFuseSpellsCommand.cs
class LogicFuseSpellsCommand (line 7) | public class LogicFuseSpellsCommand : LogicCommand
method LogicFuseSpellsCommand (line 9) | public LogicFuseSpellsCommand(Device device, IByteBuffer buffer) : bas...
method Decode (line 16) | public override void Decode()
method Process (line 27) | public override void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicKickAllianceMemberCommand.cs
class LogicKickAllianceMemberCommand (line 10) | public class LogicKickAllianceMemberCommand : LogicCommand
method LogicKickAllianceMemberCommand (line 12) | public LogicKickAllianceMemberCommand(Device device, IByteBuffer buffe...
method Decode (line 19) | public override void Decode()
method Process (line 31) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicSelectDeckCommand.cs
class LogicSelectDeckCommand (line 7) | public class LogicSelectDeckCommand : LogicCommand
method LogicSelectDeckCommand (line 9) | public LogicSelectDeckCommand(Device device, IByteBuffer buffer) : bas...
method Decode (line 15) | public override void Decode()
method Process (line 25) | public override void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/LogicSwapSpellsCommand.cs
class LogicSwapSpellsCommand (line 7) | public class LogicSwapSpellsCommand : LogicCommand
method LogicSwapSpellsCommand (line 9) | public LogicSwapSpellsCommand(Device device, IByteBuffer buffer) : bas...
method Decode (line 16) | public override void Decode()
method Process (line 27) | public override void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/StartMatchmakeCommand.cs
class StartMatchmakeCommand (line 9) | public class StartMatchmakeCommand : LogicCommand
method StartMatchmakeCommand (line 11) | public StartMatchmakeCommand(Device device, IByteBuffer buffer) : base...
method Decode (line 17) | public override void Decode()
method Process (line 27) | public override void Process()
FILE: src/ClashRoyale/Protocol/Commands/Client/UnknownCommand.cs
class UnknownCommand (line 8) | public class UnknownCommand : LogicCommand
method UnknownCommand (line 10) | public UnknownCommand(Device device, IByteBuffer buffer) : base(device...
method Decode (line 14) | public override void Decode()
FILE: src/ClashRoyale/Protocol/Commands/Server/ChestDataCommand.cs
class ChestDataCommand (line 6) | public class ChestDataCommand : LogicCommand
method ChestDataCommand (line 8) | public ChestDataCommand(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Commands/Server/DoSpellCommand.cs
class DoSpellCommand (line 8) | public class DoSpellCommand : LogicCommand
method DoSpellCommand (line 10) | public DoSpellCommand(Device device, IByteBuffer buffer) : base(device...
method Decode (line 27) | public override void Decode()
method Encode (line 51) | public override void Encode()
method Process (line 72) | public override void Process()
FILE: src/ClashRoyale/Protocol/Commands/Server/LogicAllianceSettingsChangedCommand.cs
class LogicAllianceSettingsChangedCommand (line 6) | public class LogicAllianceSettingsChangedCommand : LogicCommand
method LogicAllianceSettingsChangedCommand (line 8) | public LogicAllianceSettingsChangedCommand(Device device) : base(device)
method Encode (line 16) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Commands/Server/LogicChangeAllianceRoleCommand.cs
class LogicChangeAllianceRoleCommand (line 6) | public class LogicChangeAllianceRoleCommand : LogicCommand
method LogicChangeAllianceRoleCommand (line 8) | public LogicChangeAllianceRoleCommand(Device device) : base(device)
method Encode (line 16) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Commands/Server/LogicChangeNameCommand.cs
class LogicChangeNameCommand (line 6) | public class LogicChangeNameCommand : LogicCommand
method LogicChangeNameCommand (line 8) | public LogicChangeNameCommand(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Commands/Server/LogicDiamondsAddedCommand.cs
class LogicDiamondsAddedCommand (line 6) | public class LogicDiamondsAddedCommand : LogicCommand
method LogicDiamondsAddedCommand (line 8) | public LogicDiamondsAddedCommand(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Commands/Server/LogicJoinAllianceCommand.cs
class LogicJoinAllianceCommand (line 6) | public class LogicJoinAllianceCommand : LogicCommand
method LogicJoinAllianceCommand (line 8) | public LogicJoinAllianceCommand(Device device) : base(device)
method Encode (line 17) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Commands/Server/LogicLeaveAllianceCommand.cs
class LogicLeaveAllianceCommand (line 6) | public class LogicLeaveAllianceCommand : LogicCommand
method LogicLeaveAllianceCommand (line 8) | public LogicLeaveAllianceCommand(Device device) : base(device)
method Encode (line 16) | public override void Encode()
FILE: src/ClashRoyale/Protocol/LogicCommand.cs
class LogicCommand (line 7) | public class LogicCommand
method LogicCommand (line 9) | public LogicCommand(Device device)
method LogicCommand (line 15) | public LogicCommand(Device device, IByteBuffer buffer)
method Decode (line 29) | public virtual void Decode()
method Encode (line 35) | public virtual void Encode()
method Process (line 39) | public virtual void Process()
FILE: src/ClashRoyale/Protocol/LogicCommandManager.cs
class LogicCommandManager (line 8) | public class LogicCommandManager
method LogicCommandManager (line 12) | static LogicCommandManager()
FILE: src/ClashRoyale/Protocol/LogicScrollMessageFactory.cs
class LogicScrollMessageFactory (line 12) | public class LogicScrollMessageFactory
method LogicScrollMessageFactory (line 16) | static LogicScrollMessageFactory()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/AcceptChallengeMessage.cs
class AcceptChallengeMessage (line 8) | public class AcceptChallengeMessage : PiranhaMessage
method AcceptChallengeMessage (line 10) | public AcceptChallengeMessage(Device device, IByteBuffer buffer) : bas...
method Decode (line 17) | public override void Decode()
method Process (line 22) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/AskForAllianceDataMessage.cs
class AskForAllianceDataMessage (line 7) | public class AskForAllianceDataMessage : PiranhaMessage
method AskForAllianceDataMessage (line 9) | public AskForAllianceDataMessage(Device device, IByteBuffer buffer) : ...
method Decode (line 16) | public override void Decode()
method Process (line 21) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/AskForAllianceRankingListMessage.cs
class AskForAllianceRankingListMessage (line 7) | public class AskForAllianceRankingListMessage : PiranhaMessage
method AskForAllianceRankingListMessage (line 9) | public AskForAllianceRankingListMessage(Device device, IByteBuffer buf...
method Process (line 14) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/AskForAllianceStreamMessage.cs
class AskForAllianceStreamMessage (line 7) | public class AskForAllianceStreamMessage : PiranhaMessage
method AskForAllianceStreamMessage (line 9) | public AskForAllianceStreamMessage(Device device, IByteBuffer buffer) ...
method Process (line 14) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/AskForJoinableAlliancesListMessage.cs
class AskForJoinableAlliancesListMessage (line 8) | public class AskForJoinableAlliancesListMessage : PiranhaMessage
method AskForJoinableAlliancesListMessage (line 10) | public AskForJoinableAlliancesListMessage(Device device, IByteBuffer b...
method Process (line 15) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/CancelChallengeMessage.cs
class CancelChallengeMessage (line 7) | public class CancelChallengeMessage : PiranhaMessage
method CancelChallengeMessage (line 9) | public CancelChallengeMessage(Device device, IByteBuffer buffer) : bas...
method Process (line 14) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/ChangeAllianceMemberRoleMessage.cs
class ChangeAllianceMemberRoleMessage (line 11) | public class ChangeAllianceMemberRoleMessage : PiranhaMessage
method ChangeAllianceMemberRoleMessage (line 13) | public ChangeAllianceMemberRoleMessage(Device device, IByteBuffer buff...
method Decode (line 21) | public override void Decode()
method Process (line 27) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/ChangeAllianceSettingsMessage.cs
class ChangeAllianceSettingsMessage (line 7) | public class ChangeAllianceSettingsMessage : PiranhaMessage
method ChangeAllianceSettingsMessage (line 9) | public ChangeAllianceSettingsMessage(Device device, IByteBuffer buffer...
method Decode (line 20) | public override void Decode()
method Process (line 31) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/ChatToAllianceStreamMessage.cs
class ChatToAllianceStreamMessage (line 14) | public class ChatToAllianceStreamMessage : PiranhaMessage
method ChatToAllianceStreamMessage (line 16) | public ChatToAllianceStreamMessage(Device device, IByteBuffer buffer) ...
method Decode (line 23) | public override void Decode()
method Process (line 28) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/CreateAllianceMessage.cs
class CreateAllianceMessage (line 11) | public class CreateAllianceMessage : PiranhaMessage
method CreateAllianceMessage (line 13) | public CreateAllianceMessage(Device device, IByteBuffer buffer) : base...
method Decode (line 25) | public override void Decode()
method Process (line 37) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/JoinAllianceMessage.cs
class JoinAllianceMessage (line 10) | public class JoinAllianceMessage : PiranhaMessage
method JoinAllianceMessage (line 12) | public JoinAllianceMessage(Device device, IByteBuffer buffer) : base(d...
method Decode (line 19) | public override void Decode()
method Process (line 24) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/LeaveAllianceMessage.cs
class LeaveAllianceMessage (line 10) | public class LeaveAllianceMessage : PiranhaMessage
method LeaveAllianceMessage (line 12) | public LeaveAllianceMessage(Device device, IByteBuffer buffer) : base(...
method Process (line 17) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/RequestJoinAllianceMessage.cs
class RequestJoinAllianceMessage (line 9) | public class RequestJoinAllianceMessage : PiranhaMessage
method RequestJoinAllianceMessage (line 11) | public RequestJoinAllianceMessage(Device device, IByteBuffer buffer) :...
method Decode (line 19) | public override void Decode()
method Process (line 26) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/RespondToAllianceJoinRequestMessage.cs
class RespondToAllianceJoinRequestMessage (line 10) | public class RespondToAllianceJoinRequestMessage : PiranhaMessage
method RespondToAllianceJoinRequestMessage (line 12) | public RespondToAllianceJoinRequestMessage(Device device, IByteBuffer ...
method Decode (line 20) | public override void Decode()
method Process (line 26) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/SearchAlliancesMessage.cs
class SearchAlliancesMessage (line 8) | public class SearchAlliancesMessage : PiranhaMessage
method SearchAlliancesMessage (line 10) | public SearchAlliancesMessage(Device device, IByteBuffer buffer) : bas...
method Process (line 15) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Alliance/SendAllianceInvitationMessage.cs
class SendAllianceInvitationMessage (line 7) | public class SendAllianceInvitationMessage : PiranhaMessage
method SendAllianceInvitationMessage (line 9) | public SendAllianceInvitationMessage(Device device, IByteBuffer buffer...
method Process (line 14) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/EndClientTurnMessage.cs
class EndClientTurnMessage (line 9) | public class EndClientTurnMessage : PiranhaMessage
method EndClientTurnMessage (line 11) | public EndClientTurnMessage(Device device, IByteBuffer buffer) : base(...
method Decode (line 20) | public override void Decode()
method Process (line 27) | public override void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/AskForAvatarLocalRankingListMessage.cs
class AskForAvatarLocalRankingListMessage (line 7) | public class AskForAvatarLocalRankingListMessage : PiranhaMessage
method AskForAvatarLocalRankingListMessage (line 9) | public AskForAvatarLocalRankingListMessage(Device device, IByteBuffer ...
method Process (line 14) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/AskForAvatarRankingListMessage.cs
class AskForAvatarRankingListMessage (line 7) | public class AskForAvatarRankingListMessage : PiranhaMessage
method AskForAvatarRankingListMessage (line 9) | public AskForAvatarRankingListMessage(Device device, IByteBuffer buffe...
method Process (line 14) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/AskForAvatarStreamMessage.cs
class AskForAvatarStreamMessage (line 6) | public class AskForAvatarStreamMessage : PiranhaMessage
method AskForAvatarStreamMessage (line 8) | public AskForAvatarStreamMessage(Device device, IByteBuffer buffer) : ...
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/AskForBattleReplayStreamMessage.cs
class AskForBattleReplayStreamMessage (line 6) | public class AskForBattleReplayStreamMessage : PiranhaMessage
method AskForBattleReplayStreamMessage (line 8) | public AskForBattleReplayStreamMessage(Device device, IByteBuffer buff...
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/AskForPlayingInvitedFriendsListMessage.cs
class AskForPlayingInvitedFriendsListMessage (line 6) | public class AskForPlayingInvitedFriendsListMessage : PiranhaMessage
method AskForPlayingInvitedFriendsListMessage (line 8) | public AskForPlayingInvitedFriendsListMessage(Device device, IByteBuff...
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/AskForTvContentMessage.cs
class AskForTvContentMessage (line 8) | public class AskForTvContentMessage : PiranhaMessage
method AskForTvContentMessage (line 10) | public AskForTvContentMessage(Device device, IByteBuffer buffer) : bas...
method Decode (line 18) | public override void Decode()
method Process (line 24) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/AvatarNameCheckRequestMessage.cs
class AvatarNameCheckRequestMessage (line 8) | public class AvatarNameCheckRequestMessage : PiranhaMessage
method AvatarNameCheckRequestMessage (line 10) | public AvatarNameCheckRequestMessage(Device device, IByteBuffer buffer...
method Decode (line 17) | public override void Decode()
method Process (line 22) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/BindGoogleServiceAccountMessage.cs
class BindGoogleServiceAccountMessage (line 6) | public class BindGoogleServiceAccountMessage : PiranhaMessage
method BindGoogleServiceAccountMessage (line 8) | public BindGoogleServiceAccountMessage(Device device, IByteBuffer buff...
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/ChangeAvatarNameMessage.cs
class ChangeAvatarNameMessage (line 9) | public class ChangeAvatarNameMessage : PiranhaMessage
method ChangeAvatarNameMessage (line 11) | public ChangeAvatarNameMessage(Device device, IByteBuffer buffer) : ba...
method Decode (line 18) | public override void Decode()
method Process (line 23) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/ClientCapabilitiesMessage.cs
class ClientCapabilitiesMessage (line 7) | public class ClientCapabilitiesMessage : PiranhaMessage
method ClientCapabilitiesMessage (line 9) | public ClientCapabilitiesMessage(Device device, IByteBuffer buffer) : ...
method Decode (line 18) | public override void Decode()
method Process (line 24) | public override void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/GoHomeMessage.cs
class GoHomeMessage (line 7) | public class GoHomeMessage : PiranhaMessage
method GoHomeMessage (line 9) | public GoHomeMessage(Device device, IByteBuffer buffer) : base(device,...
method Process (line 16) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/HomeBattleReplayMessage.cs
class HomeBattleReplayMessage (line 7) | public class HomeBattleReplayMessage : PiranhaMessage
method HomeBattleReplayMessage (line 9) | public HomeBattleReplayMessage(Device device, IByteBuffer buffer) : ba...
method Decode (line 16) | public override void Decode()
method Process (line 21) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/InboxOpenedMessage.cs
class InboxOpenedMessage (line 7) | public class InboxOpenedMessage : PiranhaMessage
method InboxOpenedMessage (line 9) | public InboxOpenedMessage(Device device, IByteBuffer buffer) : base(de...
method Process (line 14) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/SetDeviceTokenMessage.cs
class SetDeviceTokenMessage (line 6) | public class SetDeviceTokenMessage : PiranhaMessage
method SetDeviceTokenMessage (line 8) | public SetDeviceTokenMessage(Device device, IByteBuffer buffer) : base...
FILE: src/ClashRoyale/Protocol/Messages/Client/Home/VisitHomeMessage.cs
class VisitHomeMessage (line 7) | public class VisitHomeMessage : PiranhaMessage
method VisitHomeMessage (line 9) | public VisitHomeMessage(Device device, IByteBuffer buffer) : base(devi...
method Decode (line 16) | public override void Decode()
method Process (line 21) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Login/ClientHelloMessage.cs
class ClientHelloMessage (line 8) | public class ClientHelloMessage : PiranhaMessage
method ClientHelloMessage (line 10) | public ClientHelloMessage(Device device, IByteBuffer buffer) : base(de...
method Decrypt (line 25) | public override void Decrypt()
method Decode (line 30) | public override void Decode()
method Process (line 42) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Login/KeepAliveMessage.cs
class KeepAliveMessage (line 7) | public class KeepAliveMessage : PiranhaMessage
method KeepAliveMessage (line 9) | public KeepAliveMessage(Device device, IByteBuffer buffer) : base(devi...
method Process (line 15) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Login/LoginMessage.cs
class LoginMessage (line 11) | public class LoginMessage : PiranhaMessage
method LoginMessage (line 13) | public LoginMessage(Device device, IByteBuffer buffer) : base(device, ...
method Decode (line 35) | public override void Decode()
method Process (line 63) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Sector/CancelMatchmakeMessage.cs
class CancelMatchmakeMessage (line 7) | public class CancelMatchmakeMessage : PiranhaMessage
method CancelMatchmakeMessage (line 9) | public CancelMatchmakeMessage(Device device, IByteBuffer buffer) : bas...
method Process (line 14) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Sector/RequestSectorStateMessage.cs
class RequestSectorStateMessage (line 7) | public class RequestSectorStateMessage : PiranhaMessage
method RequestSectorStateMessage (line 9) | public RequestSectorStateMessage(Device device, IByteBuffer buffer) : ...
method Decode (line 17) | public override void Decode()
FILE: src/ClashRoyale/Protocol/Messages/Client/Sector/SectorCommandMessage.cs
class SectorCommandMessage (line 9) | public class SectorCommandMessage : PiranhaMessage
method SectorCommandMessage (line 11) | public SectorCommandMessage(Device device, IByteBuffer buffer) : base(...
method Decode (line 20) | public override void Decode()
method Process (line 27) | public override void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Sector/SendBattleEventMessage.cs
class SendBattleEventMessage (line 8) | public class SendBattleEventMessage : PiranhaMessage
method SendBattleEventMessage (line 10) | public SendBattleEventMessage(Device device, IByteBuffer buffer) : bas...
method Decode (line 27) | public override void Decode()
method Process (line 41) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Sector/StartMissionMessage.cs
class StartMissionMessage (line 7) | public class StartMissionMessage : PiranhaMessage
method StartMissionMessage (line 9) | public StartMissionMessage(Device device, IByteBuffer buffer) : base(d...
method Process (line 15) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Client/Tournament/AskForTournamentListMessage.cs
class AskForTournamentListMessage (line 7) | public class AskForTournamentListMessage : PiranhaMessage
method AskForTournamentListMessage (line 9) | public AskForTournamentListMessage(Device device, IByteBuffer buffer) ...
method Process (line 14) | public override async void Process()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceCreateFailedMessag.cs
class AllianceCreateFailedMessag (line 6) | public class AllianceCreateFailedMessag : PiranhaMessage
method AllianceCreateFailedMessag (line 8) | public AllianceCreateFailedMessag(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceDataMessage.cs
class AllianceDataMessage (line 9) | public class AllianceDataMessage : PiranhaMessage
method AllianceDataMessage (line 11) | public AllianceDataMessage(Device device) : base(device)
method Encode (line 18) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceFullEntryUpdateMessage.cs
class AllianceFullEntryUpdateMessage (line 7) | public class AllianceFullEntryUpdateMessage : PiranhaMessage
method AllianceFullEntryUpdateMessage (line 9) | public AllianceFullEntryUpdateMessage(Device device) : base(device)
method Encode (line 16) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceInvitationSendFailedMessage.cs
class AllianceInvitationSendFailedMessage (line 6) | public class AllianceInvitationSendFailedMessage : PiranhaMessage
method AllianceInvitationSendFailedMessage (line 8) | public AllianceInvitationSendFailedMessage(Device device) : base(device)
method Encode (line 21) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceInvitationSentOkMessage.cs
class AllianceInvitationSentOkMessage (line 5) | public class AllianceInvitationSentOkMessage : PiranhaMessage
method AllianceInvitationSentOkMessage (line 7) | public AllianceInvitationSentOkMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceJoinFailedMessage.cs
class AllianceJoinFailedMessage (line 5) | public class AllianceJoinFailedMessage : PiranhaMessage
method AllianceJoinFailedMessage (line 7) | public AllianceJoinFailedMessage(Device device) : base(device)
method Encode (line 12) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceJoinRequestFailedMessage.cs
class AllianceJoinRequestFailedMessage (line 6) | public class AllianceJoinRequestFailedMessage : PiranhaMessage
method AllianceJoinRequestFailedMessage (line 8) | public AllianceJoinRequestFailedMessage(Device device) : base(device)
method Encode (line 22) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceJoinRequestOkMessage.cs
class AllianceJoinRequestOkMessage (line 5) | public class AllianceJoinRequestOkMessage : PiranhaMessage
method AllianceJoinRequestOkMessage (line 7) | public AllianceJoinRequestOkMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceListMessage.cs
class AllianceListMessage (line 8) | public class AllianceListMessage : PiranhaMessage
method AllianceListMessage (line 10) | public AllianceListMessage(Device device) : base(device)
method Encode (line 18) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceOnlineStatusUpdatedMessage.cs
class AllianceOnlineStatusUpdatedMessage (line 6) | public class AllianceOnlineStatusUpdatedMessage : PiranhaMessage
method AllianceOnlineStatusUpdatedMessage (line 8) | public AllianceOnlineStatusUpdatedMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceRankingListMessage.cs
class AllianceRankingListMessage (line 6) | public class AllianceRankingListMessage : PiranhaMessage
method AllianceRankingListMessage (line 8) | public AllianceRankingListMessage(Device device) : base(device)
method Encode (line 13) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceStreamEntryMessage.cs
class AllianceStreamEntryMessage (line 6) | public class AllianceStreamEntryMessage : PiranhaMessage
method AllianceStreamEntryMessage (line 8) | public AllianceStreamEntryMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceStreamEntryRemovedMessage.cs
class AllianceStreamEntryRemovedMessage (line 5) | public class AllianceStreamEntryRemovedMessage : PiranhaMessage
method AllianceStreamEntryRemovedMessage (line 7) | public AllianceStreamEntryRemovedMessage(Device device) : base(device)
method Encode (line 14) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/AllianceStreamMessage.cs
class AllianceStreamMessage (line 8) | public class AllianceStreamMessage : PiranhaMessage
method AllianceStreamMessage (line 10) | public AllianceStreamMessage(Device device) : base(device)
method Encode (line 17) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/ChatAccountBanStatusMessage.cs
class ChatAccountBanStatusMessage (line 6) | public class ChatAccountBanStatusMessage : PiranhaMessage
method ChatAccountBanStatusMessage (line 8) | public ChatAccountBanStatusMessage(Device device) : base(device)
method Encode (line 17) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Alliance/JoinableAllianceListMessage.cs
class JoinableAllianceListMessage (line 8) | public class JoinableAllianceListMessage : PiranhaMessage
method JoinableAllianceListMessage (line 10) | public JoinableAllianceListMessage(Device device) : base(device)
method Encode (line 17) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/AvailableServerCommand.cs
class AvailableServerCommand (line 6) | public class AvailableServerCommand : PiranhaMessage
method AvailableServerCommand (line 8) | public AvailableServerCommand(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/AvatarLocalRankingListMessage.cs
class AvatarLocalRankingListMessage (line 6) | public class AvatarLocalRankingListMessage : PiranhaMessage
method AvatarLocalRankingListMessage (line 8) | public AvatarLocalRankingListMessage(Device device) : base(device)
method Encode (line 13) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/DisconnectedMessage.cs
class DisconnectedMessage (line 6) | public class DisconnectedMessage : PiranhaMessage
method DisconnectedMessage (line 8) | public DisconnectedMessage(Device device) : base(device)
method Encode (line 13) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/FacebookAccountBoundMessage.cs
class FacebookAccountBoundMessage (line 6) | public class FacebookAccountBoundMessage : PiranhaMessage
method FacebookAccountBoundMessage (line 8) | public FacebookAccountBoundMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/FacebookAccountUnboundMessage.cs
class FacebookAccountUnboundMessage (line 5) | public class FacebookAccountUnboundMessage : PiranhaMessage
method FacebookAccountUnboundMessage (line 7) | public FacebookAccountUnboundMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/AvatarNameCheckResponseMessage.cs
class AvatarNameCheckResponseMessage (line 6) | public class AvatarNameCheckResponseMessage : PiranhaMessage
method AvatarNameCheckResponseMessage (line 8) | public AvatarNameCheckResponseMessage(Device device) : base(device)
method Encode (line 22) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/AvatarRankingListMessage.cs
class AvatarRankingListMessage (line 7) | public class AvatarRankingListMessage : PiranhaMessage
method AvatarRankingListMessage (line 9) | public AvatarRankingListMessage(Device device) : base(device)
method Encode (line 14) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/AvatarStreamEntryMessage.cs
class AvatarStreamEntryMessage (line 6) | public class AvatarStreamEntryMessage : PiranhaMessage
method AvatarStreamEntryMessage (line 8) | public AvatarStreamEntryMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/AvatarStreamEntryRemovedMessage.cs
class AvatarStreamEntryRemovedMessage (line 5) | public class AvatarStreamEntryRemovedMessage : PiranhaMessage
method AvatarStreamEntryRemovedMessage (line 7) | public AvatarStreamEntryRemovedMessage(Device device) : base(device)
method Encode (line 14) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/AvatarStreamMessage.cs
class AvatarStreamMessage (line 8) | public class AvatarStreamMessage : PiranhaMessage
method AvatarStreamMessage (line 10) | public AvatarStreamMessage(Device device) : base(device)
method Encode (line 17) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/InboxListMessage.cs
class InboxListMessage (line 5) | public class InboxListMessage : PiranhaMessage
method InboxListMessage (line 7) | public InboxListMessage(Device device) : base(device)
method Encode (line 12) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/OwnHomeDataMessage.cs
class OwnHomeDataMessage (line 6) | public class OwnHomeDataMessage : PiranhaMessage
method OwnHomeDataMessage (line 8) | public OwnHomeDataMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/ReportUserStatusMessage.cs
class ReportUserStatusMessage (line 5) | public class ReportUserStatusMessage : PiranhaMessage
method ReportUserStatusMessage (line 7) | public ReportUserStatusMessage(Device device) : base(device)
method Encode (line 21) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/RoyalTvContentMessage.cs
class RoyalTvContentMessage (line 6) | public class RoyalTvContentMessage : PiranhaMessage
method RoyalTvContentMessage (line 8) | public RoyalTvContentMessage(Device device) : base(device)
method Encode (line 16) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/StopHomeLogicMessage.cs
class StopHomeLogicMessage (line 5) | public class StopHomeLogicMessage : PiranhaMessage
method StopHomeLogicMessage (line 7) | public StopHomeLogicMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Home/VisitedHomeDataMessage.cs
class VisitedHomeDataMessage (line 6) | public class VisitedHomeDataMessage : PiranhaMessage
method VisitedHomeDataMessage (line 8) | public VisitedHomeDataMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Login/KeepAliveOkMessage.cs
class KeepAliveOkMessage (line 5) | public class KeepAliveOkMessage : PiranhaMessage
method KeepAliveOkMessage (line 7) | public KeepAliveOkMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Login/LoginFailedMessage.cs
class LoginFailedMessage (line 6) | public class LoginFailedMessage : PiranhaMessage
method LoginFailedMessage (line 8) | public LoginFailedMessage(Device device) : base(device)
method Encrypt (line 34) | public override void Encrypt()
method Encode (line 40) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Login/LoginOkMessage.cs
class LoginOkMessage (line 6) | public class LoginOkMessage : PiranhaMessage
method LoginOkMessage (line 8) | public LoginOkMessage(Device device) : base(device)
method Encode (line 14) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Login/UnlockAccountFailedMessage.cs
class UnlockAccountFailedMessage (line 5) | public class UnlockAccountFailedMessage : PiranhaMessage
method UnlockAccountFailedMessage (line 7) | public UnlockAccountFailedMessage(Device device) : base(device)
method Encode (line 19) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Matchmake/CancelChallengeDoneMessage.cs
class CancelChallengeDoneMessage (line 5) | public class CancelChallengeDoneMessage : PiranhaMessage
method CancelChallengeDoneMessage (line 7) | public CancelChallengeDoneMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Matchmake/CancelMatchmakeDoneMessage.cs
class CancelMatchmakeDoneMessage (line 5) | public class CancelMatchmakeDoneMessage : PiranhaMessage
method CancelMatchmakeDoneMessage (line 7) | public CancelMatchmakeDoneMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Matchmake/MatchmakeFailedMessage.cs
class MatchmakeFailedMessage (line 5) | public class MatchmakeFailedMessage : PiranhaMessage
method MatchmakeFailedMessage (line 7) | public MatchmakeFailedMessage(Device device) : base(device)
method Encode (line 12) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Matchmake/MatchmakeInfoMessage.cs
class MatchmakeInfoMessage (line 6) | public class MatchmakeInfoMessage : PiranhaMessage
method MatchmakeInfoMessage (line 8) | public MatchmakeInfoMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Matchmake/PvpMatchmakeNotificationMessage.cs
class PvpMatchmakeNotificationMessage (line 6) | public class PvpMatchmakeNotificationMessage : PiranhaMessage
method PvpMatchmakeNotificationMessage (line 8) | public PvpMatchmakeNotificationMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Matchmake/UdpConnectionInfoMessage.cs
class UdpConnectionInfoMessage (line 6) | public class UdpConnectionInfoMessage : PiranhaMessage
method UdpConnectionInfoMessage (line 8) | public UdpConnectionInfoMessage(Device device) : base(device)
method Encode (line 22) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/OutOfSyncMessage.cs
class OutOfSyncMessage (line 5) | public class OutOfSyncMessage : PiranhaMessage
method OutOfSyncMessage (line 7) | public OutOfSyncMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Sector/BattleEventMessage.cs
class BattleEventMessage (line 6) | public class BattleEventMessage : PiranhaMessage
method BattleEventMessage (line 8) | public BattleEventMessage(Device device) : base(device)
method Encode (line 25) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Sector/BattleResultMessage.cs
class BattleResultMessage (line 6) | public class BattleResultMessage : PiranhaMessage
method BattleResultMessage (line 8) | public BattleResultMessage(Device device) : base(device)
method Encode (line 16) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Sector/HomeBattleReplayDataMessage.cs
class HomeBattleReplayDataMessage (line 7) | public class HomeBattleReplayDataMessage : PiranhaMessage
method HomeBattleReplayDataMessage (line 9) | public HomeBattleReplayDataMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Sector/NpcSectorStateMessage.cs
class NpcSectorStateMessage (line 11) | public class NpcSectorStateMessage : PiranhaMessage
method NpcSectorStateMessage (line 13) | public NpcSectorStateMessage(Device device) : base(device)
method Encode (line 20) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Sector/OpponentLeftMatchNotificationMessage.cs
class OpponentLeftMatchNotificationMessage (line 5) | public class OpponentLeftMatchNotificationMessage : PiranhaMessage
method OpponentLeftMatchNotificationMessage (line 7) | public OpponentLeftMatchNotificationMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Sector/OpponentRejoinsMatchNotificationMessage.cs
class OpponentRejoinsMatchNotificationMessage (line 5) | public class OpponentRejoinsMatchNotificationMessage : PiranhaMessage
method OpponentRejoinsMatchNotificationMessage (line 7) | public OpponentRejoinsMatchNotificationMessage(Device device) : base(d...
FILE: src/ClashRoyale/Protocol/Messages/Server/Sector/SectorHearbeatMessage.cs
class SectorHearbeatMessage (line 7) | public class SectorHearbeatMessage : PiranhaMessage
method SectorHearbeatMessage (line 9) | public SectorHearbeatMessage(Device device) : base(device)
method Encode (line 17) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Sector/SectorStateMessage.cs
class SectorStateMessage (line 8) | public class SectorStateMessage : PiranhaMessage
method SectorStateMessage (line 10) | public SectorStateMessage(Device device) : base(device)
method Encode (line 18) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/ServerErrorMessage.cs
class ServerErrorMessage (line 6) | public class ServerErrorMessage : PiranhaMessage
method ServerErrorMessage (line 8) | public ServerErrorMessage(Device device) : base(device)
method Encode (line 15) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/ShutdownStartedMessage.cs
class ShutdownStartedMessage (line 6) | public class ShutdownStartedMessage : PiranhaMessage
method ShutdownStartedMessage (line 8) | public ShutdownStartedMessage(Device device) : base(device)
method Encode (line 13) | public override void Encode()
FILE: src/ClashRoyale/Protocol/Messages/Server/Tournament/TournamentJoinedFailedMessage.cs
class TournamentJoinedFailedMessage (line 5) | public class TournamentJoinedFailedMessage : PiranhaMessage
method TournamentJoinedFailedMessage (line 7) | public TournamentJoinedFailedMessage(Device device) : base(device)
FILE: src/ClashRoyale/Protocol/Messages/Server/Tournament/TournamentListMessage.cs
class TournamentListMessage (line 6) | public class TournamentListMessage : PiranhaMessage
method TournamentListMessage (line 8) | public TournamentListMessage(Device device) : base(device)
method Encode (line 13) | public override void Encode()
FILE: src/ClashRoyale/Protocol/PiranhaMessage.cs
class PiranhaMessage (line 9) | public class PiranhaMessage
method PiranhaMessage (line 13) | public PiranhaMessage(Device device)
method PiranhaMessage (line 19) | public PiranhaMessage(Device device, IByteBuffer buffer)
method Decrypt (line 33) | public virtual void Decrypt()
method Encrypt (line 45) | public virtual void Encrypt()
method Decode (line 54) | public virtual void Decode()
method Encode (line 58) | public virtual void Encode()
method Process (line 62) | public virtual void Process()
method SendAsync (line 70) | public async Task SendAsync()
FILE: src/ClashRoyale/Resources.cs
class Resources (line 15) | public static class Resources
method Initialize (line 38) | public static async void Initialize()
Condensed preview — 662 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3,851K chars).
[
{
"path": ".gitattributes",
"chars": 2518,
"preview": "###############################################################################\n# Set default behavior to automatically "
},
{
"path": ".github/workflows/dotnetcore.yml",
"chars": 321,
"preview": "name: .NET Core\n\non: [push]\n\njobs:\n build:\n\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v1\n "
},
{
"path": ".gitignore",
"chars": 5904,
"preview": "## Ignore Visual Studio temporary files, build results, and\n## files generated by popular Visual Studio add-ons.\n##\n## G"
},
{
"path": "LICENSE",
"chars": 35149,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "README.md",
"chars": 1993,
"preview": "# ClashRoyale (2017)\n[](http"
},
{
"path": "random.txt",
"chars": 524,
"preview": "RND: -237100689\n\n!!DECK 0!!\nJSON:\n1: 26000021 // Hogrider\n2: 28000008 // Zap\n3: 28000011 // Log\n4: 26000046 // Bandit\n5:"
},
{
"path": "src/.dockerignore",
"chars": 74,
"preview": ".dockerignore\n.env\n.git\n.gitignore\n.vs\n.vscode\n*/bin\n*/obj\n**/.toolstarget"
},
{
"path": "src/ClashRoyale/ClashRoyale.csproj",
"chars": 79449,
"preview": "<Project Sdk=\"Microsoft.NET.Sdk\">\n\n <PropertyGroup>\n <OutputType>Exe</OutputType>\n <TargetFramework>netcoreapp3."
},
{
"path": "src/ClashRoyale/ClashRoyale.csproj.DotSettings",
"chars": 1305,
"preview": "<wpf:ResourceDictionary xml:space=\"preserve\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" xmlns:s=\"clr-namesp"
},
{
"path": "src/ClashRoyale/Core/Cluster/Node.cs",
"chars": 2207,
"preview": "using System;\nusing System.Net;\nusing ClashRoyale.Core.Cluster.Protocol;\nusing ClashRoyale.Core.Network.Handlers.Cluste"
},
{
"path": "src/ClashRoyale/Core/Cluster/NodeInfo.cs",
"chars": 699,
"preview": "using System.Text;\n\nnamespace ClashRoyale.Core.Cluster\n{\n public class NodeInfo\n {\n public string Ip { get"
},
{
"path": "src/ClashRoyale/Core/Cluster/NodeManager.cs",
"chars": 1326,
"preview": "using System.Collections.Generic;\nusing System.Linq;\n\nnamespace ClashRoyale.Core.Cluster\n{\n public class NodeManager"
},
{
"path": "src/ClashRoyale/Core/Cluster/Protocol/ClusterMessage.cs",
"chars": 2659,
"preview": "using System;\nusing System.Threading.Tasks;\nusing DotNetty.Buffers;\nusing SharpRaven.Data;\n\nnamespace ClashRoyale.Core."
},
{
"path": "src/ClashRoyale/Core/Cluster/Protocol/ClusterMessageFactory.cs",
"chars": 561,
"preview": "using System;\nusing System.Collections.Generic;\nusing ClashRoyale.Core.Cluster.Protocol.Messages.Client;\n\nnamespace Cla"
},
{
"path": "src/ClashRoyale/Core/Cluster/Protocol/Messages/Client/BattleFinishedMessage.cs",
"chars": 1341,
"preview": "using ClashRoyale.Utilities.Netty;\nusing DotNetty.Buffers;\n\nnamespace ClashRoyale.Core.Cluster.Protocol.Messages.Client"
},
{
"path": "src/ClashRoyale/Core/Cluster/Protocol/Messages/Client/ConnectionCheckMessage.cs",
"chars": 1676,
"preview": "using ClashRoyale.Core.Cluster.Protocol.Messages.Server;\nusing ClashRoyale.Utilities.Netty;\nusing DotNetty.Buffers;\nusi"
},
{
"path": "src/ClashRoyale/Core/Cluster/Protocol/Messages/Client/ServerInfoMessage.cs",
"chars": 757,
"preview": "using ClashRoyale.Utilities.Netty;\nusing DotNetty.Buffers;\n\nnamespace ClashRoyale.Core.Cluster.Protocol.Messages.Client"
},
{
"path": "src/ClashRoyale/Core/Cluster/Protocol/Messages/Server/ConnectionFailedMessage.cs",
"chars": 464,
"preview": "using ClashRoyale.Utilities.Netty;\n\nnamespace ClashRoyale.Core.Cluster.Protocol.Messages.Server\n{\n public class Conn"
},
{
"path": "src/ClashRoyale/Core/Cluster/Protocol/Messages/Server/ConnectionOkMessage.cs",
"chars": 237,
"preview": "namespace ClashRoyale.Core.Cluster.Protocol.Messages.Server\n{\n public class ConnectionOkMessage : ClusterMessage\n "
},
{
"path": "src/ClashRoyale/Core/Configuration.cs",
"chars": 3964,
"preview": "using System;\nusing System.IO;\nusing Newtonsoft.Json;\n\nnamespace ClashRoyale.Core\n{\n public class Configuration\n "
},
{
"path": "src/ClashRoyale/Core/Leaderboards/Leaderboard.cs",
"chars": 2528,
"preview": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\nusing System.Timers;\nusing ClashRoyale.Da"
},
{
"path": "src/ClashRoyale/Core/Network/Handlers/Cluster/ClusterPacketEncoder.cs",
"chars": 837,
"preview": "using System.Threading.Tasks;\nusing ClashRoyale.Core.Cluster.Protocol;\nusing DotNetty.Buffers;\nusing DotNetty.Transport"
},
{
"path": "src/ClashRoyale/Core/Network/Handlers/Cluster/ClusterPacketHandler.cs",
"chars": 2211,
"preview": "using System;\nusing System.Net;\nusing System.Net.Sockets;\nusing ClashRoyale.Core.Cluster;\nusing DotNetty.Buffers;\nusing"
},
{
"path": "src/ClashRoyale/Core/Network/Handlers/PacketEncoder.cs",
"chars": 835,
"preview": "using System.Threading.Tasks;\nusing ClashRoyale.Protocol;\nusing DotNetty.Buffers;\nusing DotNetty.Transport.Channels;\n\nn"
},
{
"path": "src/ClashRoyale/Core/Network/Handlers/PacketHandler.cs",
"chars": 3709,
"preview": "using System;\nusing System.Net;\nusing ClashRoyale.Logic;\nusing DotNetty.Buffers;\nusing DotNetty.Handlers.Timeout;\nusing"
},
{
"path": "src/ClashRoyale/Core/Network/NettyService.cs",
"chars": 5320,
"preview": "using System.Net;\nusing System.Threading.Tasks;\nusing ClashRoyale.Core.Network.Handlers;\nusing ClashRoyale.Core.Network"
},
{
"path": "src/ClashRoyale/Core/Network/Throttler.cs",
"chars": 1066,
"preview": "using System;\n\nnamespace ClashRoyale.Core.Network\n{\n public class Throttler\n {\n private readonly int _inte"
},
{
"path": "src/ClashRoyale/Core/SentryReport.cs",
"chars": 1439,
"preview": "using System;\nusing SharpRaven;\nusing SharpRaven.Data;\n\nnamespace ClashRoyale.Core\n{\n public class SentryReport\n "
},
{
"path": "src/ClashRoyale/Database/AllianceDb.cs",
"chars": 8278,
"preview": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\nusing ClashRoyale.Core;\nusing ClashRoyale"
},
{
"path": "src/ClashRoyale/Database/Cache/Alliances.cs",
"chars": 2067,
"preview": "using System.Collections.Generic;\nusing System.Threading.Tasks;\nusing ClashRoyale.Logic.Clan;\nusing SharpRaven.Data;\n\nn"
},
{
"path": "src/ClashRoyale/Database/Cache/Battles.cs",
"chars": 4076,
"preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing ClashRoyale.Logic;\nusing ClashRoyale.Logic.Bat"
},
{
"path": "src/ClashRoyale/Database/Cache/DuoBattles.cs",
"chars": 2966,
"preview": "using System.Collections.Generic;\nusing System.Linq;\nusing ClashRoyale.Logic;\nusing ClashRoyale.Logic.Battle;\nusing Cla"
},
{
"path": "src/ClashRoyale/Database/Cache/Players.cs",
"chars": 3789,
"preview": "using System.Collections.Generic;\nusing System.Threading.Tasks;\nusing ClashRoyale.Logic;\nusing SharpRaven.Data;\n\nnamesp"
},
{
"path": "src/ClashRoyale/Database/ObjectCache.cs",
"chars": 4125,
"preview": "using System;\nusing System.Collections;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing ClashRoyale.L"
},
{
"path": "src/ClashRoyale/Database/PlayerDb.cs",
"chars": 11561,
"preview": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\nusing ClashRoyale.Core;\nusing ClashRoyale"
},
{
"path": "src/ClashRoyale/Extensions/CustomWriter.cs",
"chars": 647,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Utilities.Netty;\nusing DotNetty.Buffers;\n\nnamespace ClashRoyale.E"
},
{
"path": "src/ClashRoyale/Extensions/Utils/CompressionUtils.cs",
"chars": 1432,
"preview": "using System;\nusing System.IO;\nusing SevenZip;\nusing LZMAEncoder = SevenZip.Compression.LZMA.Encoder;\n\nnamespace ClashR"
},
{
"path": "src/ClashRoyale/Files/Csv.Files.cs",
"chars": 5816,
"preview": "using System;\nusing System.Collections.Generic;\nusing ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvLogic;\nu"
},
{
"path": "src/ClashRoyale/Files/Csv.cs",
"chars": 4150,
"preview": "using System.Collections.Generic;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files\n{\n public partial "
},
{
"path": "src/ClashRoyale/Files/CsvClient/BackgroundDecos.cs",
"chars": 493,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/BillingPackages.cs",
"chars": 1166,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/ClientGlobals.cs",
"chars": 586,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/Credits.cs",
"chars": 382,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/Effects.cs",
"chars": 1325,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/EventOutput.cs",
"chars": 473,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/HealthBars.cs",
"chars": 860,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/Helpshift.cs",
"chars": 395,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/Hints.cs",
"chars": 978,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/Music.cs",
"chars": 599,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/News.cs",
"chars": 878,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/ParticleEmitters.cs",
"chars": 3093,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/Sounds.cs",
"chars": 1161,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/Texts.cs",
"chars": 1043,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvClient/TextsPatch.cs",
"chars": 1047,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvClient\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvHelpers/Data.cs",
"chars": 993,
"preview": "using System;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvHelpers\n{\n public class Data\n {\n"
},
{
"path": "src/ClashRoyale/Files/CsvHelpers/DataTable.cs",
"chars": 1490,
"preview": "using System.Collections.Generic;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvHelpers\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/CsvHelpers/GlobalId.cs",
"chars": 492,
"preview": "namespace ClashRoyale.Files.CsvHelpers\n{\n public static class GlobalId\n {\n public static int CreateGlobalI"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Abilities.cs",
"chars": 610,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Achievements.cs",
"chars": 824,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/AllianceBadges.cs",
"chars": 496,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/AllianceRoles.cs",
"chars": 791,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/AreaEffectObjects.cs",
"chars": 2492,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Arenas.cs",
"chars": 1857,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Buildings.cs",
"chars": 10964,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/CharacterBuffs.cs",
"chars": 2216,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Characters.cs",
"chars": 10966,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/ChestOrder.cs",
"chars": 390,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/ConfigurationDefinitions.cs",
"chars": 423,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/ContentTests.cs",
"chars": 657,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Decos.cs",
"chars": 989,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/DraftDeck.cs",
"chars": 444,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/EventCategories.cs",
"chars": 495,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/EventCategoryDefinitions.cs",
"chars": 423,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/EventCategoryEnums.cs",
"chars": 407,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/EventCategoryObjectDefinitions.cs",
"chars": 672,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/EventTargetingDefinitions.cs",
"chars": 776,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/ExpLevels.cs",
"chars": 712,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/GambleChests.cs",
"chars": 440,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/GameModes.cs",
"chars": 1361,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Globals.cs",
"chars": 572,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Heroes.cs",
"chars": 10393,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Locales.cs",
"chars": 1366,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Locations.cs",
"chars": 2171,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Npcs.cs",
"chars": 1244,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/PredefinedDecks.cs",
"chars": 587,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Projectiles.cs",
"chars": 3161,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/PveBoss.cs",
"chars": 471,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/PveGamemodes.cs",
"chars": 642,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/PveWaves.cs",
"chars": 512,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/QuestOrder.cs",
"chars": 387,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Rarities.cs",
"chars": 2298,
"preview": "using System.Collections.Generic;\nusing ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace Clas"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Regions.cs",
"chars": 520,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/ResourcePacks.cs",
"chars": 524,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Resources.cs",
"chars": 927,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Shop.cs",
"chars": 2051,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Skins.cs",
"chars": 889,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/SpellSets.cs",
"chars": 389,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/SpellsBuildings.cs",
"chars": 2596,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/SpellsCharacters.cs",
"chars": 2598,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/SpellsHeroes.cs",
"chars": 2491,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/SpellsOther.cs",
"chars": 2588,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/SurvivalModes.cs",
"chars": 1285,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/Taunts.cs",
"chars": 659,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/TournamentTiers.cs",
"chars": 1449,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/TreasureChests.cs",
"chars": 2309,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/TutorialChestOrder.cs",
"chars": 495,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/TutorialsHome.cs",
"chars": 2207,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/TutorialsNpc.cs",
"chars": 2205,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvLogic/TveGamemodes.cs",
"chars": 875,
"preview": "using ClashRoyale.Files.CsvHelpers;\nusing ClashRoyale.Files.CsvReader;\n\nnamespace ClashRoyale.Files.CsvLogic\n{\n publi"
},
{
"path": "src/ClashRoyale/Files/CsvReader/Column.cs",
"chars": 784,
"preview": "using System.Collections.Generic;\nusing System.Linq;\n\nnamespace ClashRoyale.Files.CsvReader\n{\n public class Column\n "
},
{
"path": "src/ClashRoyale/Files/CsvReader/Gamefiles.cs",
"chars": 923,
"preview": "using System;\nusing System.Collections.Generic;\nusing ClashRoyale.Files.CsvHelpers;\n\nnamespace ClashRoyale.Files.CsvRea"
},
{
"path": "src/ClashRoyale/Files/CsvReader/Row.cs",
"chars": 6306,
"preview": "using System;\nusing System.Collections.Generic;\nusing System.Reflection;\nusing ClashRoyale.Files.CsvHelpers;\n\nnamespace"
},
{
"path": "src/ClashRoyale/Files/CsvReader/Table.cs",
"chars": 2761,
"preview": "using System.Collections.Generic;\nusing Microsoft.VisualBasic.FileIO;\n\nnamespace ClashRoyale.Files.CsvReader\n{\n publ"
},
{
"path": "src/ClashRoyale/Files/Fingerprint.cs",
"chars": 3880,
"preview": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing"
},
{
"path": "src/ClashRoyale/Files/UpdateManager.cs",
"chars": 3745,
"preview": "using System.IO;\nusing System.Threading.Tasks;\nusing ClashRoyale.Extensions.Utils;\nusing ClashRoyale.Utilities.Utils;\nu"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/background_decos.csv",
"chars": 75,
"preview": "\"Name\",\"FileName\",\"ExportName\",\"Layer\"\n\"string\",\"string\",\"string\",\"String\"\n"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/billing_packages.csv",
"chars": 7542,
"preview": "\"Name\",\"TID\",\"Disabled\",\"ExistsApple\",\"ExistsAndroid\",\"ExistsKunlun\",\"ExistsJupiter\",\"Diamonds\",\"USD\",\"RMB\",\"Order\",\"Ico"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/client_globals.csv",
"chars": 10901,
"preview": "Name,NumberValue,BooleanValue,TextValue,StringArray,NumberArray\nString,int,boolean,string,String,int\nUDP_HEARTBEAT_MS,20"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/credits.csv",
"chars": 574,
"preview": "Name,0\nString,boolean\nRichard Bangs,\nJohn Cipriani,\nPatrick Corander,\nNiko Derome,\nJonathan Dower,\nStefan Engblom,\nVisa "
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/effects.csv",
"chars": 98749,
"preview": "\"Name\",\"Loop\",\"FollowParent\",\"ShakeScreen\",\"Time\",\"RenderableScale\",\"Sound\",\"Type\",\"FileName\",\"ExportName\",\"ParticleEmit"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/event_output.csv",
"chars": 558,
"preview": "\"Name\",\"Id\",\"Channels\",\"DurationMillis\"\n\"String\",\"Int\",\"Int\",\"Int\"\n\"OvertimeStart\",0,0,500\n\"CountdownStart\",1,0,500\n\"60s"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/health_bars.csv",
"chars": 1270,
"preview": "\"Name\",\"FileName\",\"PlayerExportName\",\"EnemyExportName\",\"NoDamagePlayerExportName\",\"NoDamageEnemyExportName\",\"MinimumHitp"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/helpshift.csv",
"chars": 155,
"preview": "\"Name\",\"HelpshiftId\"\n\"String\",\"String\"\n\"ParentsGuide\",\"2237\"\n\"Terms\",2342\n\"LocationGuideIOS\",\"3734\"\n\"LocationGuideAndroi"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/hints.csv",
"chars": 6907,
"preview": "\"Name\",\"TID\",\"NotBeenInClan\",\"NotBeenInTournament\",\"NotCreatedTournament\",\"MinNpcWins\",\"MaxNpcWins\",\"MinArena\",\"MaxArena"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/music.csv",
"chars": 940,
"preview": "\"Name\",\"FileName\",\"Volume\",\"Loop\",\"PlayCount\",\"FadeOutTimeSec\",\"DurationSec\"\n\"String\",\"String\",\"int\",\"boolean\",\"int\",\"in"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/news.csv",
"chars": 437,
"preview": "\"Name\",\"ID\",\"Enabled\",\"TID\",\"InfoTID\",\"ItemSWF\",\"ItemExportName\",\"IconSWF\",\"IconExportName\",\"ImageSWF\",\"ImageExportName\""
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/particle_emitters.csv",
"chars": 112712,
"preview": "\"Name\",\"ParticleCount\",\"MinLife\",\"MaxLife\",\"ParticleMinInterval\",\"ParticleMaxInterval\",\"ParticleMinLife\",\"ParticleMaxLif"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/sounds.csv",
"chars": 54199,
"preview": "\"Name\",\"FileNames\",\"MinVolume\",\"MaxVolume\",\"MinPitch\",\"MaxPitch\",\"Priority\",\"MaximumByType\",\"MaxRepeatMs\",\"Loop\",\"PlayVa"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/texts.csv",
"chars": 1457096,
"preview": "\" \",\"EN\",\"FR\",\"DE\",\"ES\",\"IT\",\"NL\",\"NO\",\"TR\",\"JP\",\"KR\",\"RU\",\"AR\",\"PT\",\"CN\",\"CNT\",\"FA\",\"ID\",\"MS\"\n\"string\",\"string\",\"string"
},
{
"path": "src/ClashRoyale/GameAssets/csv_client/texts_patch.csv",
"chars": 355,
"preview": "\"TID\",\"EN\",\"FR\",\"DE\",\"ES\",\"IT\",\"NL\",\"NO\",\"TR\",\"JP\",\"KR\",\"RU\",\"AR\",\"PT\",\"CN\",\"CNT\",\"FA\",\"ID\",\"MS\"\n\"string\",\"string\",\"stri"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/abilities.csv",
"chars": 130,
"preview": "\"Name\",\"IconFile\",\"TID\",\"AreaEffectObject\",\"Buff\",\"BuffTime\",\"Effect\"\n\"string\",\"string\",\"String\",\"String\",\"String\",\"int\""
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/achievements.csv",
"chars": 5208,
"preview": "\"Name\",\"Level\",\"TID\",\"InfoTID\",\"Action\",\"ActionCount\",\"ExpReward\",\"DiamondReward\",\"SortIndex\",\"Hidden\",\"AndroidID\",\"Type"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/alliance_badges.csv",
"chars": 9989,
"preview": "\"Name\",\"IconSWF\",\"IconExportName\",\"Category\"\n\"String\",\"String\",\"String\",\"String\"\n\"Flame_01\",\"sc/ui.sc\",\"clan_badge_01_01"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/alliance_roles.csv",
"chars": 630,
"preview": "\"Name\",\"Level\",\"TID\",\"CanInvite\",\"CanSendMail\",\"CanChangeAllianceSettings\",\"CanAcceptJoinRequest\",\"CanKick\",\"CanBePromot"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/area_effect_objects.csv",
"chars": 2886,
"preview": "\"Name\",\"Rarity\",\"LifeDuration\",\"LifeDurationIncreasePerLevel\",\"LifeDurationIncreaseAfterTournamentCap\",\"AffectsHidden\",\""
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/arenas.csv",
"chars": 5756,
"preview": "\"Name\",\"TID\",\"SubtitleTID\",\"Arena\",\"ChestArena\",\"TvArena\",\"IsInUse\",\"TrainingCamp\",\"PVEArena\",\"TrophyLimit\",\"DemoteTroph"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/buildings.csv",
"chars": 14640,
"preview": "\"Name\",\"Rarity\",\"SightRange\",\"DeployTime\",\"ChargeRange\",\"Speed\",\"Hitpoints\",\"HitSpeed\",\"LoadTime\",\"Damage\",\"DamageSpecia"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/character_buffs.csv",
"chars": 1957,
"preview": "\"Name\",\"Rarity\",\"TID\",\"IconFileName\",\"IconExportName\",\"ChangeControl\",\"NoEffectToCrownTowers\",\"CrownTowerDamagePercent\","
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/characters.csv",
"chars": 38576,
"preview": "\"Name\",\"Rarity\",\"SightRange\",\"DeployTime\",\"ChargeRange\",\"Speed\",\"Hitpoints\",\"HitSpeed\",\"LoadTime\",\"Damage\",\"DamageSpecia"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/chest_order.csv",
"chars": 2332,
"preview": "\"Name\",\"Chest\"\n\"String\",\"String\"\n\"MainCycle\",\"Silver\"\n,\"Silver\"\n,\"Silver\"\n,\"Gold\"\n,\"Silver\"\n,\"Silver\"\n,\"Gold\"\n,\"Silver\"\n"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/configuration_definitions.csv",
"chars": 222,
"preview": "\"Name\",\"ObjectType\"\n\"string\",\"string\"\n\"SHOP_CYCLE_MANAGEMENT\",\"ShopCycleManagementConfiguration\"\n\"CARD_RELEASE\",\"CardRel"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/content_tests.csv",
"chars": 1568,
"preview": "\"Name\",\"SourceData\",\"TargetData\",\"Stat1\",\"Operator\",\"Stat2\",\"Result\",\"Enabled\"\n\"string\",\"String\",\"String\",\"String\",\"Stri"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/decos.csv",
"chars": 29218,
"preview": "\"Name\",\"FileName\",\"ExportName\",\"Layer\",\"LowendLayer\",\"ShadowScale\",\"ShadowX\",\"ShadowY\",\"ShadowSkew\",\"CollisionRadius\",\"E"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/draft_deck.csv",
"chars": 1333,
"preview": "\"Name\",\"RequiredSets\",\"OptionalSets\"\n\"String\",\"String\",\"String\"\n\"Draft_v1\",\"Draft_AllRandom\",\"Draft_TankUnit\"\n,\"Draft_Da"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/event_categories.csv",
"chars": 505,
"preview": "Name,CSVFiles,CSVRows,CustomNames\nString,String,String,String\nRED,,,ProductRed\nSHOP,,,RumbleShop\n,,,HolidayBundle\n,,,Chi"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/event_category_definitions.csv",
"chars": 307,
"preview": "\"Name\",\"ObjectType\"\n\"string\",\"string\"\n\"CHALLENGE\",\"ChallengeDefinitionType\"\n\"FRIENDLY\",\"FriendlyChallengeDefinitionType\""
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/event_category_enums.csv",
"chars": 4521,
"preview": "\"Name\",\"Option\"\n\"string\",\"string\"\n\"ResourceEnum\",\"Gold\"\n,\"Gems\"\n\"IconExportNameEnum\",\"icon_tournament_2x_elixir\"\n,\"icon_"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/event_category_object_definitions.csv",
"chars": 6364,
"preview": "\"Name\",\"PropertyName\",\"PropertyType\",\"IsRequired\",\"ObjectType\",\"DefaultInt\",\"DefaultString\"\n\"string\",\"string\",\"string\",\""
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/event_targeting_definitions.csv",
"chars": 338,
"preview": "Name,MetadataType,MetadataPath,EvaluationLocation,ParameterName,ParameterType,IsRequired,ObjectType,MatchingRuleType\nstr"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/exp_levels.csv",
"chars": 457,
"preview": "\"Name\",\"ExpToNextLevel\",\"SummonerLevel\",\"TowerLevel\",\"TroopLevel\",\"Decks\",\"SummonerKillGold\",\"TowerKillGold\",\"DiamondRew"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/gamble_chests.csv",
"chars": 54,
"preview": "\"Name\",\"GoldPrice\",\"Location\"\n\"String\",\"int\",\"String\"\n"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/game_modes.csv",
"chars": 5339,
"preview": "\"Name\",\"TID\",\"RequestTID\",\"InProgressTID\",\"CardLevelAdjustment\",\"PlayerCount\",\"DeckSelection\",\"OvertimeSeconds\",\"Predefi"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/globals.csv",
"chars": 12922,
"preview": "\"Name\",\"NumberValue\",\"BooleanValue\",\"TextValue\",\"StringArray\",\"NumberArray\"\n\"String\",\"int\",\"boolean\",\"string\",\"String\",\""
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/heroes.csv",
"chars": 5107,
"preview": "\"Name\",\"Rarity\",\"SightRange\",\"DeployTime\",\"ChargeRange\",\"Speed\",\"Hitpoints\",\"HitSpeed\",\"LoadTime\",\"Damage\",\"DamageSpecia"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/locales.csv",
"chars": 9971,
"preview": "\"Name\",\"Enabled\",\"Description\",\"SortOrder\",\"HasEvenSpaceCharacters\",\"UsedSystemFont\",\"HelpshiftSDKLanguage\",\"HelpshiftSD"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/locations.csv",
"chars": 7319,
"preview": "\"Name\",\"NpcOnly\",\"PvpOnly\",\"ShadowR\",\"ShadowG\",\"ShadowB\",\"ShadowA\",\"ShadowOffsetX\",\"ShadowOffsetY\",\"Sound\",\"ExtraTimeMus"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/npcs.csv",
"chars": 7063,
"preview": "\"Name\",\"Location\",\"PredefinedDeck\",\"Trophies\",\"ManaRegenMs\",\"ManaRegenMsEnd\",\"ManaRegenMsOvertime\",\"ExpLevel\",\"CanReplay"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/predefined_decks.csv",
"chars": 8202,
"preview": "\"Name\",\"Spells\",\"SpellLevel\",\"RandomSpellSets\",\"Description\",\"TID\"\n\"String\",\"String\",\"int\",\"String\",\"String\",\"String\"\n\"B"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/projectiles.csv",
"chars": 10040,
"preview": "\"Name\",\"Rarity\",\"Speed\",\"FileName\",\"ExportName\",\"RedExportName\",\"ShadowExportName\",\"RedShadowExportName\",\"ShadowDisableR"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/pve_boss.csv",
"chars": 322,
"preview": "Name,Waves,WaveDuration,Repeat\nString,String,int,boolean\nBoss1,Boss1Def,100,\n,Boss1Hogs,200,\n,Boss1FunkTown,300,\nTutoria"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/pve_gamemodes.csv",
"chars": 2340,
"preview": "\"Name\",\"Waves\",\"VictoryCondition\",\"ForcedCards\",\"Location\",\"ComputerPlayerType\",\"TowerRules\"\n\"String\",\"String\",\"String\","
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/pve_waves.csv",
"chars": 1613,
"preview": "Name,Spells,PositionX,PositionY,Delay\nString,String,int,int,int\nSparkyGiant,Giant,5,12,100\n,ZapMachine,5,10,100\nHogs,Hog"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/quest_order.csv",
"chars": 43,
"preview": "\"Name\",\"Column\"\n\"string\",\"string\"\n\"Dummy\",\n"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/rarities.csv",
"chars": 5199,
"preview": "\"Name\",\"LevelCount\",\"RelativeLevel\",\"MirrorRelativeLevel\",\"CloneRelativeLevel\",\"DonateCapacity\",\"SortCapacity\",\"DonateRe"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/regions.csv",
"chars": 12702,
"preview": "\"Name\",\"TID\",\"DisplayName\",\"IsCountry\",\"RegionPopup\"\n\"String\",\"String\",\"String\",\"boolean\",\"boolean\"\n\"_EU\",\"TID_EUROPE\",\""
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/resource_packs.csv",
"chars": 283,
"preview": "\"Name\",\"TID\",\"Resource\",\"Amount\",\"IconFile\"\n\"String\",\"String\",\"String\",\"int\",\"string\"\n\"Gold1\",\"TID_RESOURCE_PACK_GOLD_SM"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/resources.csv",
"chars": 1750,
"preview": "\"Name\",\"TID\",\"IconSWF\",\"UsedInBattle\",\"CollectEffect\",\"IconExportName\",\"PremiumCurrency\",\"CapFullTID\",\"TextRed\",\"TextGre"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/shop.csv",
"chars": 8972,
"preview": "\"Name\",\"Category\",\"TID\",\"Rarity\",\"Disabled\",\"Resource\",\"Cost\",\"Count\",\"CycleDuration\",\"CycleDeadzoneStart\",\"CycleDeadzon"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/skins.csv",
"chars": 831,
"preview": "\"Name\",\"FileName\",\"ExportName\",\"ExportNameRed\",\"TopExportName\",\"TopExportNameRed\",\"Category\",\"ValueGems\",\"TID\",\"IconSWF\""
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/spell_sets.csv",
"chars": 7012,
"preview": "\"Name\",\"Spells\"\n\"String\",\"String\"\n\"SetRandomRangedSupport\",\"Princess\"\n,\"IceWizard\"\n,\"Archer\"\n,\"Musketeer\"\n\"SetRandomDire"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/spells_buildings.csv",
"chars": 3397,
"preview": "\"Name\",\"IconFile\",\"UnlockArena\",\"Rarity\",\"ManaCost\",\"ManaCostFromSummonerMana\",\"NotInUse\",\"Mirror\",\"CustomDeployTime\",\"S"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/spells_characters.csv",
"chars": 10877,
"preview": "\"Name\",\"IconFile\",\"UnlockArena\",\"Rarity\",\"ManaCost\",\"ManaCostFromSummonerMana\",\"NotInUse\",\"Mirror\",\"CustomDeployTime\",\"S"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/spells_heroes.csv",
"chars": 1092,
"preview": "\"Name\",\"IconFile\",\"UnlockArena\",\"Rarity\",\"ManaCost\",\"ManaCostFromSummonerMana\",\"NotInUse\",\"Mirror\",\"CustomDeployTime\",\"S"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/spells_other.csv",
"chars": 3956,
"preview": "\"Name\",\"IconFile\",\"UnlockArena\",\"Rarity\",\"ManaCost\",\"ManaCostFromSummonerMana\",\"NotInUse\",\"Mirror\",\"CustomDeployTime\",\"S"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/survival_modes.csv",
"chars": 9618,
"preview": "\"Name\",\"IconSWF\",\"IconExportName\",\"GameMode\",\"WinsIconExportName\",\"Enabled\",\"EventOnly\",\"JoinCost\",\"JoinCostResource\",\"F"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/taunts.csv",
"chars": 1347,
"preview": "\"Name\",\"TID\",\"TauntMenu\",\"FileName\",\"ExportName\",\"IconExportName\",\"BtnExportName\",\"Sound\"\n\"String\",\"String\",\"Boolean\",\"s"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/tournament_tiers.csv",
"chars": 1452,
"preview": "\"Name\",\"Version\",\"Disabled\",\"CreateCost\",\"MaxPlayers\",\"Prize1\",\"Prize2\",\"Prize3\",\"Prize10\",\"Prize20\",\"Prize30\",\"Prize40\""
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/treasure_chests.csv",
"chars": 37773,
"preview": "\"Name\",\"BaseChest\",\"Arena\",\"InShop\",\"InArenaInfo\",\"TournamentChest\",\"SurvivalChest\",\"ShopPriceWithoutSpeedUp\",\"TimeTaken"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/tutorial_chest_order.csv",
"chars": 361,
"preview": "Name,Chest,NPC,PvE_Tutorial\nString,String,String,String\nWins7,Newbie1,Npc1,\n,Newbie2,Npc2,\n,NewbieRandom,Npc3,\n,NewbieFi"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/tutorials_home.csv",
"chars": 1713,
"preview": "Name,Location,NPC,TID,ButtonTID,FinishRequirement,Chest,WaitTimeMS,FileName,PopupCorner,PopupExportName,BubbleExportName"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/tutorials_npc.csv",
"chars": 7474,
"preview": "\"Name\",\"Location\",\"NPC\",\"TID\",\"ButtonTID\",\"FinishRequirement\",\"Chest\",\"WaitTimeMS\",\"FileName\",\"PopupCorner\",\"PopupExport"
},
{
"path": "src/ClashRoyale/GameAssets/csv_logic/tve_gamemodes.csv",
"chars": 941,
"preview": "\"Name\",\"PrimarySpells\",\"SecondarySpells\",\"CastSpells\",\"RandomWaves\",\"ElixirPerWave\",\"WaveCount\",\"TimePerWave\",\"TimeToFir"
},
{
"path": "src/ClashRoyale/GameAssets/database.sql",
"chars": 744,
"preview": "SET SQL_MODE = \"NO_AUTO_VALUE_ON_ZERO\";\nSET time_zone = \"+00:00\";\n\nCREATE TABLE IF NOT EXISTS `player` (\n `Id` bigint(2"
},
{
"path": "src/ClashRoyale/GameAssets/fingerprint.json",
"chars": 30178,
"preview": "{\n \"files\": [\n { \"file\": \"csv_client\\/background_decos.csv\", \"sha\": \"98e2e6b7c103a125c841a67fe38c8292ef0cd4bc\" },\n "
},
{
"path": "src/ClashRoyale/GameAssets/locations/barbarian_arena.csv",
"chars": 3017,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_barbarian_arena.sc\",\"barbarian_arena_bgr\",\n\"Objects\",,,"
},
{
"path": "src/ClashRoyale/GameAssets/locations/barbarian_arena_2v2.csv",
"chars": 3076,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_barbarian_arena.sc\",\"barbarian_arena_bgr\",\n\"Objects\",,,"
},
{
"path": "src/ClashRoyale/GameAssets/locations/bone_arena.csv",
"chars": 1936,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_bone_arena.sc\",\"bone_arena_bgr\",\n\"Objects\",,,\n,\"bone_1_"
},
{
"path": "src/ClashRoyale/GameAssets/locations/bone_arena_2v2.csv",
"chars": 1990,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_bone_arena.sc\",\"bone_arena_bgr\",\n\"Objects\",,,\n,\"bone_1_"
},
{
"path": "src/ClashRoyale/GameAssets/locations/builder_arena.csv",
"chars": 2885,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_builder_arena.sc\",\"builder_arena_bgr\",\n\"Objects\",,,\n,\"b"
},
{
"path": "src/ClashRoyale/GameAssets/locations/builder_arena_2v2.csv",
"chars": 2942,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_builder_arena.sc\",\"builder_arena_bgr\",\n\"Objects\",,,\n,\"b"
},
{
"path": "src/ClashRoyale/GameAssets/locations/champion_arena.csv",
"chars": 1578,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_champion_arena.sc\",\"champion_base_01\",\n\"Objects\",,,\n,\"c"
},
{
"path": "src/ClashRoyale/GameAssets/locations/champion_arena_2v2.csv",
"chars": 1581,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_champion_arena.sc\",\"champion_2v2_base_01\",\n\"Objects\",,,"
},
{
"path": "src/ClashRoyale/GameAssets/locations/dark_arena.csv",
"chars": 1986,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_dark_arena.sc\",\"dark_game_area\",\n\"Objects\",,,\n,\"dark_pe"
},
{
"path": "src/ClashRoyale/GameAssets/locations/dark_arena_2v2.csv",
"chars": 1988,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_dark_arena.sc\",\"dark_2v2_base_01\",\n\"Objects\",,,\n,\"dark_"
},
{
"path": "src/ClashRoyale/GameAssets/locations/goblin_arena.csv",
"chars": 4703,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_goblin_arena.sc\",\"goblin_bgr\",\n\"Objects\",,,\n,\"Grassland"
},
{
"path": "src/ClashRoyale/GameAssets/locations/goblin_arena_2v2.csv",
"chars": 4759,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_goblin_arena.sc\",\"goblin_bgr\",\n\"Objects\",,,\n,\"Grassland"
},
{
"path": "src/ClashRoyale/GameAssets/locations/ice_arena.csv",
"chars": 3511,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_ice_arena.sc\",\"ice_base_01\",\n\"Objects\",,,\n,\"ice_cauldro"
},
{
"path": "src/ClashRoyale/GameAssets/locations/ice_arena_2v2.csv",
"chars": 3564,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_ice_arena.sc\",\"ice_base_01\",\n\"Objects\",,,\n,\"ice_cauldro"
},
{
"path": "src/ClashRoyale/GameAssets/locations/jungle_arena.csv",
"chars": 3087,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_jungle_arena.sc\",\"jungle_base_01\",\n\"Objects\",,,\n,\"jungl"
},
{
"path": "src/ClashRoyale/GameAssets/locations/jungle_arena_2v2.csv",
"chars": 3184,
"preview": "\"FileName\",,,\n,\"SC\",\"ExportName\",\n,\"string\",\"string\",\n,\"sc/level_jungle_arena.sc\",\"jungle_base_01\",\n\"Objects\",,,\n,\"jungl"
}
]
// ... and 462 more files (download for full content)
About this extraction
This page contains the full source code of the retroroyale/ClashRoyale GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 662 files (3.0 MB), approximately 827.2k tokens, and a symbol index with 1382 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.