metaforce/Runtime/World/CFluidPlane.cpp

32 lines
1.2 KiB
C++
Raw Normal View History

#include <Runtime/GameGlobalObjects.hpp>
2016-11-20 21:53:15 +00:00
#include "CFluidPlane.hpp"
#include "CSimplePool.hpp"
2016-11-20 21:53:15 +00:00
namespace urde
{
CFluidPlane::CFluidPlane(ResId texPattern1, ResId texPattern2, ResId texColor, float alpha, EFluidType fluidType,
2017-08-13 07:56:35 +00:00
float rippleIntensity, const CFluidUVMotion& motion)
: x4_texPattern1Id(texPattern1), x8_texPattern2Id(texPattern2), xc_texColorId(texColor), x40_alpha(alpha),
2017-08-13 07:56:35 +00:00
x44_fluidType(fluidType), x48_rippleIntensity(rippleIntensity), x4c_uvMotion(motion)
2016-11-20 21:53:15 +00:00
{
if (g_ResFactory->GetResourceTypeById(texPattern1) == FOURCC('TXTR'))
x10_texPattern1.emplace(g_SimplePool->GetObj(SObjectTag{FOURCC('TXTR'), texPattern1}));
if (g_ResFactory->GetResourceTypeById(texPattern2) == FOURCC('TXTR'))
x20_texPattern2.emplace(g_SimplePool->GetObj(SObjectTag{FOURCC('TXTR'), texPattern2}));
if (g_ResFactory->GetResourceTypeById(texColor) == FOURCC('TXTR'))
x30_texColor.emplace(g_SimplePool->GetObj(SObjectTag{FOURCC('TXTR'), texColor}));
2016-11-20 21:53:15 +00:00
}
void CFluidPlane::Ripple(float mag, TUniqueId rippler, const zeus::CVector3f& pos,
CScriptWater& water, CStateManager& mgr)
{
}
2016-11-20 21:53:15 +00:00
void CFluidPlane::Update()
{
}
}