sead
Loading...
Searching...
No Matches
agl::env::EnvObjMgr Class Reference

#include <aglEnvObjMgr.h>

Inherits agl::env::EnvObjBuffer, agl::utl::INamedObjMgr, and agl::utl::IParameterIO.

Classes

class  InitArg
class  TypeNode
struct  ViewInfo

Public Member Functions

 EnvObjMgr ()
virtual ~EnvObjMgr ()
virtual bool save (const sead::SafeString &path, u32) const
virtual void applyResParameterArchive (utl::ResParameterArchive arc)
virtual void listenPropertyEventFromGroup (GroupEventType, Group *)
virtual const sead::SafeStringgetSaveFilePath () const
virtual const sead::SafeStringgetNamedObjName (s32 index, s32 type) const
virtual s32 getNamedObjNum (s32 type) const
void initialize (const InitArg &arg, sead::Heap *heap=nullptr)
void applyResource (utl::ResParameterArchive arc)
void applyResourceLerp (utl::ResParameterArchive arc_a, utl::ResParameterArchive arc_b, f32 t)
void reconstruct ()
void update ()
void updateView (const sead::Matrix34f &view_mtx, const sead::Matrix44f &proj_mtx, s32 view_index)
void constructList ()
const EnvObjSetgetEnvObjSet () const
Public Member Functions inherited from agl::env::EnvObjBuffer
 EnvObjBuffer ()
virtual ~EnvObjBuffer ()
virtual void allocBuffer (const AllocateArg &arg, sead::Heap *heap)
virtual void freeBuffer ()
s32 getContainTotal () const
void sort (s32 type)
s32 searchBufferIndex (s32 type, const sead::SafeString &name) const
template<typename T>
s32 searchBufferIndex (const sead::SafeString &name) const
s32 searchTypeIndex (s32 type, const sead::SafeString &name) const
template<typename T>
s32 searchTypeIndex (const sead::SafeString &name) const
s32 searchType (s32 buffer_index) const
EnvObjgetEnvObj (s32 type, s32 index)
const EnvObjgetEnvObj (s32 type, s32 index) const
template<typename T>
T * getEnvObj (s32 index)
template<typename T>
const T * getEnvObj (s32 index) const
s32 getEnvObjStartIndex (s32 type) const
template<typename T>
s32 getEnvObjStartIndex (s32 type) const
s32 getEnvObjMaxNum (s32 type) const
template<typename T>
s32 getEnvObjMaxNum (s32 type) const
Public Member Functions inherited from agl::utl::INamedObjMgr
 INamedObjMgr ()
virtual ~INamedObjMgr ()
void initialize (u32 obj_num, u32 group_num, sead::Heap *heap)
void pushBackNamedObj (INamedObj *p_obj)
bool isGroup (s32 group_index, const agl::utl::INamedObj &obj) const
void constructList ()
void constructListByName (s32 group_index)
void constructListByGroup (s32 group_index)
void updateList ()
Public Member Functions inherited from agl::utl::IParameterIO
 IParameterIO ()
 IParameterIO (const sead::SafeString &type, u32 version=0)
virtual ~IParameterIO ()
virtual void applyResParameterArchiveLerp (ResParameterArchive arc_a, ResParameterArchive arc_b, f32 t)
void setDelegate (void *delegate)
Public Member Functions inherited from agl::utl::IParameterList
 IParameterList ()
void addList (IParameterList *child, const sead::SafeString &name)
void addObj (IParameterObj *child, const sead::SafeString &name)
void applyResParameterList (ResParameterList list)
bool isApply (ResParameterList list) const

Private Member Functions

bool saveImpl_ (const sead::SafeString &, u32, s32) const
void applyResource_ (utl::ResParameterArchive arc_a, utl::ResParameterArchive arc_b, f32 t)
ShaderMode drawFog_ (s32 view_index, const EnvObj &obj, f32 start, f32 end, const sead::Vector3f &direction, const sead::Color4f &color, ShaderMode mode) const

Private Attributes

sead::BitFlag32 mFlag
sead::PtrArray< EnvObjmEnvObjPtrArray
sead::Buffer< ViewInfomViewInfo
f32 _24c
EnvObjSet mEnvObjSet
sead::UnsafeArray< u32, 4 > _42c
u32 mConstructListType
sead::Buffer< TypeNodemTypeNode
sead::PtrArray< void > _448
s32 mConstructListGroupIndex
s32 mApplyResourceGroupIndex
u32 _45c
u32 _460

Friends

class EnvObj

Additional Inherited Members

Public Types inherited from agl::utl::INamedObjMgr
enum  GroupEventType
Protected Member Functions inherited from agl::utl::IParameterIO
virtual void callbackInvalidVersion_ (ResParameterArchive arc)
Protected Member Functions inherited from agl::utl::IParameterList
virtual bool preWrite_ () const
virtual void postWrite_ () const
virtual bool preRead_ ()
virtual void postRead_ ()
virtual bool isApply_ (ResParameterList list) const
virtual void callbackNotAppliable_ (IParameterObj *, ResParameter)
void setParameterListName_ (const sead::SafeString &name)
void applyResParameterList_ (ResParameterList list, bool lerp=false, f32 t=1.0f)
void applyResParameterListB_ (ResParameterList list, f32 t)
Protected Attributes inherited from agl::env::EnvObjBuffer
u32 _0
u32 _4
sead::Buffer< TypeInfomTypeInfo
sead::Buffer< EnvObj * > mEnvObjPtrBuffer
u32 _18 [4/sizeof(u32)]
Protected Attributes inherited from agl::utl::INamedObjMgr
sead::PtrArray< INamedObjmObj
sead::Buffer< GroupmGroupBuffer
sead::PtrArray< GroupmGroupPtrArray
sead::OffsetList< INamedObjIndexmObjIndex
Protected Attributes inherited from agl::utl::IParameterIO
sead::FixedSafeString< 64 > mType
u32 mVersion
void * mpDelegate
sead::FixedSafeString< 256 > mSaveFilePath
Protected Attributes inherited from agl::utl::IParameterList
sead::OffsetList< IParameterListmChildList
sead::OffsetList< IParameterObjmChildObj
sead::FixedSafeString< 64 > mName
u32 mNameHash
sead::ListNode mListNode
IParameterListmpParent

Constructor & Destructor Documentation

◆ EnvObjMgr()

agl::env::EnvObjMgr::EnvObjMgr ( )

◆ ~EnvObjMgr()

agl::env::EnvObjMgr::~EnvObjMgr ( )
virtual

Member Function Documentation

◆ save()

virtual bool agl::env::EnvObjMgr::save ( const sead::SafeString & path,
u32  ) const
inlinevirtual

Reimplemented from agl::utl::IParameterIO.

◆ applyResParameterArchive()

virtual void agl::env::EnvObjMgr::applyResParameterArchive ( utl::ResParameterArchive arc)
inlinevirtual

Reimplemented from agl::utl::IParameterIO.

◆ listenPropertyEventFromGroup()

void agl::env::EnvObjMgr::listenPropertyEventFromGroup ( GroupEventType ,
Group *  )
virtual

Reimplemented from agl::utl::INamedObjMgr.

◆ getSaveFilePath()

virtual const sead::SafeString & agl::env::EnvObjMgr::getSaveFilePath ( ) const
inlinevirtual

Reimplemented from agl::utl::INamedObjMgr.

◆ getNamedObjName()

virtual const sead::SafeString & agl::env::EnvObjMgr::getNamedObjName ( s32 index,
s32 type ) const
inlinevirtual

Reimplemented from agl::utl::INamedObjMgr.

◆ getNamedObjNum()

virtual s32 agl::env::EnvObjMgr::getNamedObjNum ( s32 type) const
inlinevirtual

Reimplemented from agl::utl::INamedObjMgr.

◆ initialize()

void agl::env::EnvObjMgr::initialize ( const InitArg & arg,
sead::Heap * heap = nullptr )

◆ applyResource()

void agl::env::EnvObjMgr::applyResource ( utl::ResParameterArchive arc)
inline

◆ applyResourceLerp()

void agl::env::EnvObjMgr::applyResourceLerp ( utl::ResParameterArchive arc_a,
utl::ResParameterArchive arc_b,
f32 t )
inline

◆ reconstruct()

void agl::env::EnvObjMgr::reconstruct ( )
inline

◆ update()

void agl::env::EnvObjMgr::update ( )

◆ updateView()

void agl::env::EnvObjMgr::updateView ( const sead::Matrix34f & view_mtx,
const sead::Matrix44f & proj_mtx,
s32 view_index )

◆ constructList()

void agl::env::EnvObjMgr::constructList ( )

◆ getEnvObjSet()

const EnvObjSet & agl::env::EnvObjMgr::getEnvObjSet ( ) const
inline

◆ saveImpl_()

bool agl::env::EnvObjMgr::saveImpl_ ( const sead::SafeString & ,
u32 ,
s32  ) const
private

◆ applyResource_()

void agl::env::EnvObjMgr::applyResource_ ( utl::ResParameterArchive arc_a,
utl::ResParameterArchive arc_b,
f32 t )
private

◆ drawFog_()

ShaderMode agl::env::EnvObjMgr::drawFog_ ( s32 view_index,
const EnvObj & obj,
f32 start,
f32 end,
const sead::Vector3f & direction,
const sead::Color4f & color,
ShaderMode mode ) const
private

◆ EnvObj

friend class EnvObj
friend

Member Data Documentation

◆ mFlag

sead::BitFlag32 agl::env::EnvObjMgr::mFlag
private

◆ mEnvObjPtrArray

sead::PtrArray<EnvObj> agl::env::EnvObjMgr::mEnvObjPtrArray
private

◆ mViewInfo

sead::Buffer<ViewInfo> agl::env::EnvObjMgr::mViewInfo
private

◆ _24c

f32 agl::env::EnvObjMgr::_24c
private

◆ mEnvObjSet

EnvObjSet agl::env::EnvObjMgr::mEnvObjSet
private

◆ _42c

sead::UnsafeArray<u32, 4> agl::env::EnvObjMgr::_42c
private

◆ mConstructListType

u32 agl::env::EnvObjMgr::mConstructListType
private

◆ mTypeNode

sead::Buffer<TypeNode> agl::env::EnvObjMgr::mTypeNode
private

◆ _448

sead::PtrArray<void> agl::env::EnvObjMgr::_448
private

◆ mConstructListGroupIndex

s32 agl::env::EnvObjMgr::mConstructListGroupIndex
private

◆ mApplyResourceGroupIndex

s32 agl::env::EnvObjMgr::mApplyResourceGroupIndex
private

◆ _45c

u32 agl::env::EnvObjMgr::_45c
private

◆ _460

u32 agl::env::EnvObjMgr::_460
private