2016-09-25 16:45:22 +00:00
|
|
|
#include "CEnergyDrainSource.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CEnergyDrainSource::CEnergyDrainSource(TUniqueId src, float intensity)
|
|
|
|
: x0_source(src)
|
|
|
|
, x4_intensity(intensity)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
TUniqueId CEnergyDrainSource::GetEnergyDrainSourceId() const
|
|
|
|
{
|
|
|
|
return x0_source;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEnergyDrainSource::SetEnergyDrainIntensity(float in)
|
|
|
|
{
|
|
|
|
x4_intensity = in;
|
|
|
|
}
|
|
|
|
|
|
|
|
float CEnergyDrainSource::GetEnergyDrainIntensity() const
|
|
|
|
{
|
|
|
|
return x4_intensity;
|
|
|
|
}
|
|
|
|
|
2016-09-30 03:33:35 +00:00
|
|
|
bool CEnergyDrainSource::operator<(const CEnergyDrainSource& other) const
|
2016-09-25 16:45:22 +00:00
|
|
|
{
|
|
|
|
return x0_source < other.x0_source;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|