Skip to content

Commit c248035

Browse files
Move csgo::TournamentStage enum class definition to SDK/Constants/TournamentStage.h
1 parent 60442a5 commit c248035

File tree

7 files changed

+32
-16
lines changed

7 files changed

+32
-16
lines changed

Source/InventoryChanger/Inventory/Structs.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
#include <SDK/Constants/TournamentTeam.h>
1010
#include <SDK/ItemSchema.h>
1111

12-
namespace csgo { enum class StickerId : int; }
12+
namespace csgo
13+
{
14+
enum class StickerId : int;
15+
enum class TournamentStage : std::uint8_t;
16+
}
1317

1418
namespace inventory_changer::inventory
1519
{

Source/InventoryChanger/ItemGenerator/TournamentMatches.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <InventoryChanger/GameItems/Enums.h>
66
#include <SDK/Constants/Tournament.h>
7+
#include <SDK/Constants/TournamentStage.h>
78

89
namespace inventory_changer::item_generator
910
{

Source/InventoryChanger/ItemGenerator/TournamentMatches.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
#include <SDK/Constants/TournamentTeam.h>
1212
#include <SDK/ItemSchema.h>
1313

14-
namespace csgo { enum class Tournament : std::uint8_t; }
14+
namespace csgo
15+
{
16+
enum class Tournament : std::uint8_t;
17+
enum class TournamentStage : std::uint8_t;
18+
}
1519

1620
namespace inventory_changer
1721
{

Source/Osiris.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@
274274
<ClInclude Include="SDK\Constants\ProPlayer.h" />
275275
<ClInclude Include="SDK\Constants\StickerId.h" />
276276
<ClInclude Include="SDK\Constants\Tournament.h" />
277+
<ClInclude Include="SDK\Constants\TournamentStage.h" />
277278
<ClInclude Include="SDK\Constants\TournamentTeam.h" />
278279
<ClInclude Include="SDK\Constants\UserMessages.h" />
279280
<ClInclude Include="SDK\ConVar.h" />

Source/Osiris.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,9 @@
823823
<ClInclude Include="SDK\Constants\StickerId.h">
824824
<Filter>SDK\Constants</Filter>
825825
</ClInclude>
826+
<ClInclude Include="SDK\Constants\TournamentStage.h">
827+
<Filter>SDK\Constants</Filter>
828+
</ClInclude>
826829
</ItemGroup>
827830
<ItemGroup>
828831
<FxCompile Include="Resources\Shaders\default_vs.hlsl">
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#pragma once
2+
3+
#include <cstdint>
4+
5+
namespace csgo
6+
{
7+
8+
enum class TournamentStage : std::uint8_t {
9+
GroupStage = 2,
10+
Quarterfinal = 5,
11+
Semifinal = 8,
12+
GrandFinal = 11,
13+
AllStar = 14,
14+
ChallengersStage = 27
15+
};
16+
17+
}

Source/SDK/ItemSchema.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,6 @@ class ItemSystem {
287287
VIRTUAL_METHOD(ItemSchema*, getItemSchema, 0, (), (this))
288288
};
289289

290-
namespace csgo
291-
{
292-
293-
enum class TournamentStage : std::uint8_t {
294-
GroupStage = 2,
295-
Quarterfinal = 5,
296-
Semifinal = 8,
297-
GrandFinal = 11,
298-
AllStar = 14,
299-
ChallengersStage = 27
300-
};
301-
302-
}
303-
304290
class EconItemAttributeSetter {
305291
public:
306292
explicit EconItemAttributeSetter(ItemSchema& itemSchema) : itemSchema{ itemSchema } {}

0 commit comments

Comments
 (0)