forked from jewalky/srvmgr
-
Notifications
You must be signed in to change notification settings - Fork 5
/
config_new.h
92 lines (64 loc) · 2.21 KB
/
config_new.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#pragma once
#include <stdint.h>
#include "lib\utils.hpp"
extern unsigned long MAX_SKILL;
extern unsigned long MAX_EXP_ON_SKILL;
struct MainCharacterParameters {
uint8_t Body, Reaction, Mind, Spirit;
uint8_t ResistFire, ResistWater, ResistAir, ResistEarth, ResistAstral;
};
namespace Config
{
extern uint32_t ExceptionCount;
extern uint32_t LogMode;
extern std::string LogFile;
extern std::string ChrBase;
extern uint32_t ServerID;
extern bool ServerStarted;
extern std::string CurrentMapName;
extern std::string CurrentMapTitle;
extern uint32_t ServerFlags;
extern bool MapLoaded;
extern uint32_t ProtocolVersion;
extern uint32_t MaxPaletteAllowed;
extern std::string SqlAddress;
extern uint16_t SqlPort;
extern std::string SqlLogin;
extern std::string SqlPassword;
extern std::string SqlDatabase;
extern uint32_t ServerCaps;
extern uint32_t GameMode;
extern bool Suspended;
extern uint32_t OriginalTime;
extern uint32_t MaxPlayers;
extern std::string ControlDirectory;
extern bool ExitingCleanly;
extern double DeathExpMult;
extern double KilledExpMult;
extern double PKExpMult;
extern double RespawnExpMult2;
extern float InventoryDropProbability;
extern float WearDropProbability;
extern MainCharacterParameters WarriorMaleMaxParameters;
extern MainCharacterParameters WarriorFemaleMaxParameters;
extern MainCharacterParameters MageMaleMaxParameters;
extern MainCharacterParameters MageFemaleMaxParameters;
extern uint32_t MinQuestReward;
extern uint32_t MaxQuestReward;
extern uint32_t QuestRollInterval;
extern float mage_pvp_dmg_factor;
extern int16_t max_pvp_dmg;
extern float shop_potions_factor;
extern bool server_rotate_maps;
extern bool AllowOnlyOneQuest_KillNMonsters;
extern bool AllowOnlyOneQuest_KillTheMonster;
extern bool AllowOnlyOneQuest_KillTheGroup;
extern bool AllowQuestFilters;
extern std::string IPAddress;
extern uint16_t IPAddressP;
extern std::string IPAddress2;
extern uint16_t IPAddress2P;
extern std::string HatAddress;
extern uint16_t HatAddressP;
}
int ReadConfig(const char* filename);