sead
Loading...
Searching...
No Matches
aglParameterList.h
Go to the documentation of this file.
1#pragma once
2
3#include <container/seadOffsetList.h>
4#include <prim/seadSafeString.h>
5#include <utility/aglResParameter.h>
6
7namespace agl { namespace utl {
8
9class IParameterObj;
10
12{
13public:
15
16 void addList(IParameterList* child, const sead::SafeString& name);
17 void addObj(IParameterObj* child, const sead::SafeString& name);
18
20
21 bool isApply(ResParameterList list) const { return list.getParameterListNameHash() == mNameHash; }
22
23protected:
24 virtual bool preWrite_() const { return true; }
25 virtual void postWrite_() const { }
26 virtual bool preRead_() { return true; }
27 virtual void postRead_() { }
28 virtual bool isApply_(ResParameterList list) const { return isApply(list); }
30
31 void setParameterListName_(const sead::SafeString& name);
32
33 void applyResParameterList_(ResParameterList list, bool lerp = false, f32 t = 1.0f);
35
36protected:
43
44 friend class IParameterObj;
45};
46static_assert(sizeof(IParameterList) == 0x80, "agl::utl::IParameterList size mismatch");
47
48} }
Definition aglParameterList.h:12
IParameterList * mpParent
Definition aglParameterList.h:42
void setParameterListName_(const sead::SafeString &name)
Definition aglParameterList.cpp:17
IParameterList()
Definition aglParameterList.cpp:8
void addObj(IParameterObj *child, const sead::SafeString &name)
Definition aglParameterList.cpp:33
sead::OffsetList< IParameterObj > mChildObj
Definition aglParameterList.h:38
void addList(IParameterList *child, const sead::SafeString &name)
Definition aglParameterList.cpp:23
bool isApply(ResParameterList list) const
Definition aglParameterList.h:21
virtual bool isApply_(ResParameterList list) const
Definition aglParameterList.h:28
sead::FixedSafeString< 64 > mName
Definition aglParameterList.h:39
virtual void postRead_()
Definition aglParameterList.h:27
void applyResParameterList(ResParameterList list)
Definition aglParameterList.cpp:42
virtual bool preRead_()
Definition aglParameterList.h:26
void applyResParameterList_(ResParameterList list, bool lerp=false, f32 t=1.0f)
Definition aglParameterList.cpp:47
sead::OffsetList< IParameterList > mChildList
Definition aglParameterList.h:37
virtual void callbackNotAppliable_(IParameterObj *, ResParameter)
Definition aglParameterList.h:29
u32 mNameHash
Definition aglParameterList.h:40
virtual bool preWrite_() const
Definition aglParameterList.h:24
virtual void postWrite_() const
Definition aglParameterList.h:25
sead::ListNode mListNode
Definition aglParameterList.h:41
void applyResParameterListB_(ResParameterList list, f32 t)
Definition aglParameterList.cpp:93
Definition aglParameterObj.h:13
Definition aglResParameter.h:110
Definition aglResParameter.h:16
Definition seadSafeString.h:421
Definition seadListImpl.h:11
Definition seadOffsetList.h:11
Definition aglImageFilter2D.h:11
Definition aglDisplayList.cpp:5
Definition seadAssert.h:44
SafeStringBase< char > SafeString
Definition seadSafeString.h:409