LightSourceProfile relocation and some more formatting changes

This commit is contained in:
Uleat
2016-05-20 04:26:32 -04:00
parent 04f47f1e32
commit ebe6f95e6e
15 changed files with 128 additions and 121 deletions
+18 -18
View File
@@ -1,4 +1,4 @@
/* EQEMu: Everquest Server Emulator
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2016 EQEMu Development Team (http://eqemulator.net)
@@ -19,24 +19,8 @@
#include "light_source.h"
#include <memory>
EQEmu::lightsource::LightSourceProfile::LightSourceProfile()
{
Clear();
}
void EQEmu::lightsource::LightSourceProfile::Clear()
{
Type.Innate = 0;
Type.Equipment = 0;
Type.Spell = 0;
Type.Active = 0;
Level.Innate = 0;
Level.Equipment = 0;
Level.Spell = 0;
Level.Active = 0;
}
uint8 EQEmu::lightsource::TypeToLevel(uint8 light_type)
{
@@ -97,3 +81,19 @@ bool EQEmu::lightsource::IsLevelGreater(uint8 left_type, uint8 right_type)
return (light_levels[left_type] > light_levels[right_type]);
}
EQEmu::lightsource::Light_Struct::Light_Struct()
{
Clear();
}
void EQEmu::lightsource::Light_Struct::Clear()
{
memset(&Slot, 0, (sizeof(uint8) * sizeof(Slot)));
}
void EQEmu::LightSourceProfile::Clear()
{
Type.Clear();
Level.Clear();
}