Commit c1f72a5
Code refactoring using patterns (#32)
* Completely implement singleton for CManager
* Check if duplicate manager when adding to manager list
* Create manager class documentation
* Fix message printing
* Make managers created when program starts
Add Reload method to the server instance class
Add user database proxy to measure methods execution time
* Add documentation for command classes
* Check for command duplicate when adding to list
* Remove temporary DB_PROXY define (should be defined when using SERVER_DB_PROXY option)
* Add missing EOL in CManager::AddManager log
* Don't print this message if client leaves
* Separate loading and parsing event quests in CQuestManager
Add tasks and conditions in constructors, not in parse method
* Add manager tests
* Add ModeEvent.csv metadata
Send ban list only if it exists in database
* Replace int with size_t in CSendPacket::WriteData method
* Move server command definitions to separate file
* Fix a problem where user info and inventory not showing on client
Add new room settings variable
Add sendpacket command
* Add missing packet ids and rename existing ones
* Add unknown hostserver packet ids and add transfer function
* Update metadata to latest
* Don't change FD_SETSIZE define value to avoid memory corruption and crash in random places
* Rewrite server events
Use target_compile_definitions instead of add_definitions in cmakelists
* Add test for events
* Refactoring logging code:
- separate logging to file and console
- composite logging
* Some fixes in tests
* Template method for CBaseLogger
* Move logger test classes inside test case
* Delete readme.txt
* Add test for commands
---------
Co-authored-by: Smilex_Gamer <[email protected]>1 parent 7785190 commit c1f72a5
File tree
105 files changed
+5403
-3436
lines changed- bin/Data
- src
- channel
- common
- gui
- interface
- manager
- net
- packet
- public/net
- quest
- room
- test
- net
- thirdparty
- user
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
105 files changed
+5403
-3436
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 2 | + | |
| 3 | + | |
7 | 4 | | |
8 | 5 | | |
9 | | - | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
13 | | - | |
| 9 | + | |
14 | 10 | | |
15 | 11 | | |
16 | | - | |
17 | 12 | | |
18 | | - | |
19 | 13 | | |
20 | 14 | | |
21 | 15 | | |
22 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| |||
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| 295 | + | |
292 | 296 | | |
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
296 | 300 | | |
297 | | - | |
298 | 301 | | |
299 | | - | |
| 302 | + | |
| 303 | + | |
300 | 304 | | |
301 | 305 | | |
302 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
0 commit comments