mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 02:27:43 +00:00
Prelim CPlayer imps, fix race condition in CGameGlobalObjects
This commit is contained in:
32
Runtime/World/CEnergyDrainSource.cpp
Normal file
32
Runtime/World/CEnergyDrainSource.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
bool CEnergyDrainSource::operator<(const CEnergyDrainSource& other)
|
||||
{
|
||||
return x0_source < other.x0_source;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user