2017-08-06 07:15:42 +00:00
|
|
|
#include <Runtime/GameGlobalObjects.hpp>
|
2016-11-20 21:53:15 +00:00
|
|
|
#include "CFluidPlane.hpp"
|
2017-08-06 07:15:42 +00:00
|
|
|
#include "CSimplePool.hpp"
|
2016-11-20 21:53:15 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2017-08-06 07:15:42 +00:00
|
|
|
|
|
|
|
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)
|
2017-08-06 07:15:42 +00:00
|
|
|
: 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
|
|
|
{
|
2017-08-06 07:15:42 +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
|
|
|
}
|
|
|
|
|
2017-03-30 22:36:18 +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()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|