Skip to content

Commit eb599be

Browse files
committed
Massive c_life_cycle_state_handler additions
1 parent e294769 commit eb599be

File tree

48 files changed

+1576
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1576
-214
lines changed

game/game.vcxproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,22 @@ copy /b $(ProjectDir)source\config\version.cpp +,, $(ProjectDir)source\config\ve
319319
<ClCompile Include="source\motor\motor_system_biped.cpp" />
320320
<ClCompile Include="source\motor\mover.cpp" />
321321
<ClCompile Include="source\motor\sync_action.cpp" />
322+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_end_game_write_stats.cpp" />
323+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_end_match_write_stats.cpp" />
324+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_in_game.cpp" />
325+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_in_match.cpp" />
326+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_joining.cpp" />
327+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_leaving.cpp" />
328+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_arbitration.cpp" />
329+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_assemble_match.cpp" />
330+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_find_and_assemble_match.cpp" />
331+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_find_match.cpp" />
332+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_find_match_client.cpp" />
333+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_prepare_map.cpp" />
334+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_select_host.cpp" />
335+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_none.cpp" />
336+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_post_match.cpp" />
337+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_start_game.cpp" />
322338
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_state_handler.cpp" />
323339
<ClCompile Include="source\networking\logic\logic_managed_user.cpp" />
324340
<ClCompile Include="source\networking\logic\network_bandwidth.cpp" />

game/game.vcxproj.filters

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,54 @@
19021902
<ClCompile Include="source\objects\emblems.cpp">
19031903
<Filter>Source Files</Filter>
19041904
</ClCompile>
1905+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_none.cpp">
1906+
<Filter>Source Files</Filter>
1907+
</ClCompile>
1908+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_start_game.cpp">
1909+
<Filter>Source Files</Filter>
1910+
</ClCompile>
1911+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_in_game.cpp">
1912+
<Filter>Source Files</Filter>
1913+
</ClCompile>
1914+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_end_game_write_stats.cpp">
1915+
<Filter>Source Files</Filter>
1916+
</ClCompile>
1917+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_leaving.cpp">
1918+
<Filter>Source Files</Filter>
1919+
</ClCompile>
1920+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_joining.cpp">
1921+
<Filter>Source Files</Filter>
1922+
</ClCompile>
1923+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_find_match_client.cpp">
1924+
<Filter>Source Files</Filter>
1925+
</ClCompile>
1926+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_find_match.cpp">
1927+
<Filter>Source Files</Filter>
1928+
</ClCompile>
1929+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_find_and_assemble_match.cpp">
1930+
<Filter>Source Files</Filter>
1931+
</ClCompile>
1932+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_assemble_match.cpp">
1933+
<Filter>Source Files</Filter>
1934+
</ClCompile>
1935+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_select_host.cpp">
1936+
<Filter>Source Files</Filter>
1937+
</ClCompile>
1938+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_arbitration.cpp">
1939+
<Filter>Source Files</Filter>
1940+
</ClCompile>
1941+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_matchmaking_prepare_map.cpp">
1942+
<Filter>Source Files</Filter>
1943+
</ClCompile>
1944+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_in_match.cpp">
1945+
<Filter>Source Files</Filter>
1946+
</ClCompile>
1947+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_end_match_write_stats.cpp">
1948+
<Filter>Source Files</Filter>
1949+
</ClCompile>
1950+
<ClCompile Include="source\networking\logic\life_cycle\life_cycle_handler_post_match.cpp">
1951+
<Filter>Source Files</Filter>
1952+
</ClCompile>
19051953
</ItemGroup>
19061954
<ItemGroup>
19071955
<ClInclude Include="source\camera\camera.hpp">

game/source/cseries/cseries.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ struct c_flags_no_init
853853
template <class T>
854854
operator T () const
855855
{
856-
return static_cast<T>(m_flags);
856+
return (T)m_flags;
857857
}
858858

859859
protected:
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#include "networking/logic/life_cycle/life_cycle_handler_end_game_write_stats.hpp"
2+
3+
c_life_cycle_state_handler_end_game_write_stats::c_life_cycle_state_handler_end_game_write_stats() :
4+
c_life_cycle_state_handler()
5+
{
6+
DECLFUNC(0x00453ED0, void, __thiscall, c_life_cycle_state_handler_end_game_write_stats*)(this);
7+
}
8+
9+
char const* c_life_cycle_state_handler_end_game_write_stats::get_state_string()
10+
{
11+
//return INVOKE_CLASS_MEMBER(0x004546D0, c_life_cycle_state_handler_end_game_write_stats, get_state_string);
12+
13+
return "end-game-write-stats";
14+
}
15+
16+
void c_life_cycle_state_handler_end_game_write_stats::enter(c_life_cycle_state_handler* from, int32 entry_data_size, void* entry_data)
17+
{
18+
INVOKE_CLASS_MEMBER(0x00492B50, c_life_cycle_state_handler_end_game_write_stats, enter, from, entry_data_size, entry_data);
19+
}
20+
21+
void c_life_cycle_state_handler_end_game_write_stats::exit(c_life_cycle_state_handler* to)
22+
{
23+
INVOKE_CLASS_MEMBER(0x00492C10, c_life_cycle_state_handler_end_game_write_stats, exit, to);
24+
}
25+
26+
void c_life_cycle_state_handler_end_game_write_stats::initialize(c_life_cycle_state_manager* manager)
27+
{
28+
//INVOKE_CLASS_MEMBER(0x00492D10, c_life_cycle_state_handler_end_game_write_stats, initialize, manager);
29+
30+
c_life_cycle_state_handler_flags parent_flags;
31+
parent_flags.set(_life_cycle_state_handler_requires_squad_session_bit, true);
32+
c_life_cycle_state_handler::initialize(manager, _life_cycle_state_end_game_write_stats, &parent_flags, 0ULL,0ULL);
33+
}
34+
35+
void c_life_cycle_state_handler_end_game_write_stats::update()
36+
{
37+
INVOKE_CLASS_MEMBER(0x00492E10, c_life_cycle_state_handler_end_game_write_stats, update);
38+
}
39+
40+
e_life_cycle_state_transition_type c_life_cycle_state_handler_end_game_write_stats::update_for_state_transition()
41+
{
42+
return INVOKE_CLASS_MEMBER(0x00493170, c_life_cycle_state_handler_end_game_write_stats, update_for_state_transition);
43+
}
44+

game/source/networking/logic/life_cycle/life_cycle_handler_end_game_write_stats.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ struct c_life_cycle_state_handler_end_game_write_stats :
99
public c_life_cycle_state_handler
1010
{
1111
public:
12+
virtual void update() override;
13+
virtual e_life_cycle_state_transition_type update_for_state_transition() override;
14+
virtual void enter(c_life_cycle_state_handler* from, int32 entry_data_size, void* entry_data) override;
15+
virtual void exit(c_life_cycle_state_handler* to) override;
16+
virtual char const* get_state_string() override;
17+
18+
c_life_cycle_state_handler_end_game_write_stats();
19+
void initialize(c_life_cycle_state_manager* manager);
1220

1321
//protected:
1422
uns32 m_end_game_write_stats_start_time;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#include "networking/logic/life_cycle/life_cycle_handler_end_match_write_stats.hpp"
2+
3+
c_life_cycle_state_handler_end_match_write_stats::c_life_cycle_state_handler_end_match_write_stats() :
4+
c_life_cycle_state_handler(),
5+
m_flags(0)
6+
{
7+
//DECLFUNC(0x00453EF0, void, __thiscall, c_life_cycle_state_handler_end_match_write_stats*)(this);
8+
}
9+
10+
char const* c_life_cycle_state_handler_end_match_write_stats::get_state_string()
11+
{
12+
//return INVOKE_CLASS_MEMBER(0x004546E0, c_life_cycle_state_handler_end_match_write_stats, get_state_string);
13+
14+
return "end-match-write-stats";
15+
}
16+
17+
void c_life_cycle_state_handler_end_match_write_stats::enter(c_life_cycle_state_handler* from, int32 entry_data_size, void* entry_data)
18+
{
19+
INVOKE_CLASS_MEMBER(0x00499630, c_life_cycle_state_handler_end_match_write_stats, enter, from, entry_data_size, entry_data);
20+
}
21+
22+
void c_life_cycle_state_handler_end_match_write_stats::exit(c_life_cycle_state_handler* to)
23+
{
24+
INVOKE_CLASS_MEMBER(0x00499680, c_life_cycle_state_handler_end_match_write_stats, exit, to);
25+
}
26+
27+
void c_life_cycle_state_handler_end_match_write_stats::initialize(c_life_cycle_state_manager* manager)
28+
{
29+
INVOKE_CLASS_MEMBER(0x00499740, c_life_cycle_state_handler_end_match_write_stats, initialize, manager);
30+
}
31+
32+
void c_life_cycle_state_handler_end_match_write_stats::update()
33+
{
34+
INVOKE_CLASS_MEMBER(0x00499840, c_life_cycle_state_handler_end_match_write_stats, update);
35+
}
36+
37+
e_life_cycle_state_transition_type c_life_cycle_state_handler_end_match_write_stats::update_for_state_transition()
38+
{
39+
return INVOKE_CLASS_MEMBER(0x00499AE0, c_life_cycle_state_handler_end_match_write_stats, update_for_state_transition);
40+
}
41+

game/source/networking/logic/life_cycle/life_cycle_handler_end_match_write_stats.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ struct c_life_cycle_state_handler_end_match_write_stats :
99
public c_life_cycle_state_handler
1010
{
1111
public:
12+
virtual void update() override;
13+
virtual e_life_cycle_state_transition_type update_for_state_transition() override;
14+
virtual void enter(c_life_cycle_state_handler* from, int32 entry_data_size, void* entry_data) override;
15+
virtual void exit(c_life_cycle_state_handler* to) override;
16+
virtual char const* get_state_string() override;
17+
18+
c_life_cycle_state_handler_end_match_write_stats();
19+
void initialize(c_life_cycle_state_manager* manager);
1220

1321
//protected:
1422
c_end_match_write_stats_flags m_flags;
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#include "networking/logic/life_cycle/life_cycle_handler_in_game.hpp"
2+
3+
c_life_cycle_state_handler_in_game::c_life_cycle_state_handler_in_game() :
4+
c_life_cycle_state_handler(),
5+
m_flags(0)
6+
{
7+
//DECLFUNC(0x00453F10, void, __thiscall, c_life_cycle_state_handler_in_game*)(this);
8+
}
9+
10+
char const* c_life_cycle_state_handler_in_game::get_state_string()
11+
{
12+
//return INVOKE_CLASS_MEMBER(0x004546F0, c_life_cycle_state_handler_in_game, get_state_string);
13+
14+
return "in-game";
15+
}
16+
17+
void c_life_cycle_state_handler_in_game::enter(c_life_cycle_state_handler* from, int32 entry_data_size, void* entry_data)
18+
{
19+
INVOKE_CLASS_MEMBER(0x004920C0, c_life_cycle_state_handler_in_game, enter, from, entry_data_size, entry_data);
20+
}
21+
22+
void c_life_cycle_state_handler_in_game::exit(c_life_cycle_state_handler* to)
23+
{
24+
INVOKE_CLASS_MEMBER(0x00492140, c_life_cycle_state_handler_in_game, exit, to);
25+
}
26+
27+
void c_life_cycle_state_handler_in_game::initialize(c_life_cycle_state_manager* manager)
28+
{
29+
//INVOKE_CLASS_MEMBER(0x00492290, c_life_cycle_state_handler_in_game, initialize, manager);
30+
31+
c_life_cycle_state_handler_flags parent_flags;
32+
parent_flags.set(_life_cycle_state_handler_requires_squad_session_bit, true);
33+
c_life_cycle_state_handler::initialize(manager, _life_cycle_state_in_game, parent_flags, 0ULL, 0ULL);
34+
m_game_instance = NONE;
35+
}
36+
37+
void c_life_cycle_state_handler_in_game::update()
38+
{
39+
INVOKE_CLASS_MEMBER(0x004923E0, c_life_cycle_state_handler_in_game, update);
40+
}
41+
42+
e_life_cycle_state_transition_type c_life_cycle_state_handler_in_game::update_for_state_transition()
43+
{
44+
return INVOKE_CLASS_MEMBER(0x00492960, c_life_cycle_state_handler_in_game, update_for_state_transition);
45+
}
46+

game/source/networking/logic/life_cycle/life_cycle_handler_in_game.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ struct c_life_cycle_state_handler_in_game :
1010
public c_life_cycle_state_handler
1111
{
1212
public:
13+
virtual void update() override;
14+
virtual e_life_cycle_state_transition_type update_for_state_transition() override;
15+
virtual void enter(c_life_cycle_state_handler* from, int32 entry_data_size, void* entry_data) override;
16+
virtual void exit(c_life_cycle_state_handler* to) override;
17+
virtual char const* get_state_string() override;
18+
19+
c_life_cycle_state_handler_in_game();
20+
void initialize(c_life_cycle_state_manager* manager);
1321

1422
//protected:
1523
c_life_cycle_state_handler_in_game_flags m_flags;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#include "networking/logic/life_cycle/life_cycle_handler_in_match.hpp"
2+
3+
c_life_cycle_state_handler_in_match::c_life_cycle_state_handler_in_match() :
4+
c_life_cycle_state_handler(),
5+
m_flags(0)
6+
{
7+
//DECLFUNC(0x00453F30, void, __thiscall, c_life_cycle_state_handler_in_match*)(this);
8+
}
9+
10+
char const* c_life_cycle_state_handler_in_match::get_state_string()
11+
{
12+
//return INVOKE_CLASS_MEMBER(0x00454700, c_life_cycle_state_handler_in_match, get_state_string);
13+
14+
return "in-match";
15+
}
16+
17+
void c_life_cycle_state_handler_in_match::enter(c_life_cycle_state_handler* from, int32 entry_data_size, void* entry_data)
18+
{
19+
INVOKE_CLASS_MEMBER(0x00491080, c_life_cycle_state_handler_in_match, enter, from, entry_data_size, entry_data);
20+
}
21+
22+
void c_life_cycle_state_handler_in_match::exit(c_life_cycle_state_handler* to)
23+
{
24+
INVOKE_CLASS_MEMBER(0x004910E0, c_life_cycle_state_handler_in_match, exit, to);
25+
}
26+
27+
void c_life_cycle_state_handler_in_match::initialize(c_life_cycle_state_manager* manager)
28+
{
29+
INVOKE_CLASS_MEMBER(0x004911C0, c_life_cycle_state_handler_in_match, initialize, manager);
30+
}
31+
32+
void c_life_cycle_state_handler_in_match::update()
33+
{
34+
INVOKE_CLASS_MEMBER(0x00491270, c_life_cycle_state_handler_in_match, update);
35+
}
36+
37+
e_life_cycle_state_transition_type c_life_cycle_state_handler_in_match::update_for_state_transition()
38+
{
39+
return INVOKE_CLASS_MEMBER(0x00491480, c_life_cycle_state_handler_in_match, update_for_state_transition);
40+
}
41+

0 commit comments

Comments
 (0)