mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-21 13:39:12 +00:00
More stubs for GuiSys
This commit is contained in:
31
Runtime/GuiSys/CGuiRandomVar.hpp
Normal file
31
Runtime/GuiSys/CGuiRandomVar.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef __URDE_CGUIRANDOMVAR_HPP__
|
||||
#define __URDE_CGUIRANDOMVAR_HPP__
|
||||
|
||||
namespace urde
|
||||
{
|
||||
|
||||
class CGuiRandomVar
|
||||
{
|
||||
enum class Type
|
||||
{
|
||||
Zero,
|
||||
One
|
||||
} x0_type;
|
||||
float x4_num;
|
||||
|
||||
float GenNum() const
|
||||
{
|
||||
switch (x0_type)
|
||||
{
|
||||
case Type::Zero:
|
||||
case Type::One:
|
||||
return x4_num;
|
||||
default: break;
|
||||
}
|
||||
return 0.f;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // __URDE_CGUIRANDOMVAR_HPP__
|
||||
Reference in New Issue
Block a user