EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
StandingMgr.cpp
Go to the documentation of this file.
1 
13 #include "StandingMgr.h"
14 
15 /*
16  * STANDING__ERROR
17  * STANDING__WARNING
18  * STANDING__MESSAGE
19  * STANDING__DEBUG
20  * STANDING__INFO
21  * STANDING__TRACE
22  * STANDING__DUMP
23  * STANDING__RSPDUMP
24  */
25 
26 
28 : m_factionStandings(nullptr)
29 {
30 
31 }
32 
34 {
35 
36 }
37 
39 {
41 }
42 
44 {
45  Populate();
46  sLog.Blue(" StandingMgr", "Standings Manager Initialized.");
47  return 1;
48 }
49 
51 {
52 
53 }
54 
56 {
58  if (m_factionStandings == nullptr)
59  sLog.Error(" StandingMgr", "m_factionStandings is null");
60 
61 }
62 
63 void StandingMgr::UpdateStandings(uint32 fromID, uint32 toID, uint16 eventType, double amount, std::string msg)
64 {
65  StandingDB::UpdateStanding(fromID, toID, amount);
66  StandingDB::SaveStandingChanges(fromID, toID, eventType, amount, msg);
67 }
68 
void GetInfo()
Definition: StandingMgr.cpp:50
static PyObjectEx * GetFactionStandings()
Definition: StandingDB.cpp:56
#define sLog
Evaluates to a NewLog instance.
Definition: LogNew.h:250
static void UpdateStanding(uint32 fromID, uint32 toID, float standing)
Definition: StandingDB.cpp:163
void Clear()
Definition: StandingMgr.cpp:38
PyObjectEx * m_factionStandings
Definition: StandingMgr.h:46
unsigned __int32 uint32
Definition: eve-compat.h:50
int Initialize()
Definition: StandingMgr.cpp:43
#define PySafeDecRef(op)
Definition: PyRep.h:61
static void SaveStandingChanges(uint32 fromID, uint32 toID, uint16 eventType, float amount, std::string msg)
Definition: StandingDB.cpp:174
void UpdateStandings(uint32 fromID, uint32 toID, uint16 eventType, double amount, std::string msg)
Definition: StandingMgr.cpp:63
unsigned __int16 uint16
Definition: eve-compat.h:48
void Populate()
Definition: StandingMgr.cpp:55