mirror of https://github.com/zeldaret/botw.git
ksys/chm: Add Shape
This commit is contained in:
parent
5737a6ea7c
commit
ddb26bed79
|
|
@ -97441,19 +97441,19 @@
|
|||
0x000000710131e0d8,sub_710131E0D8,64,
|
||||
0x000000710131e118,sub_710131E118,124,
|
||||
0x000000710131e194,cam::getLookAtCamera,40,
|
||||
0x000000710131e1bc,sub_710131E1BC,848,
|
||||
0x000000710131e50c,sub_710131E50C,88,
|
||||
0x000000710131e564,sub_710131E564,84,
|
||||
0x000000710131e5b8,j__ZdlPv_1363,4,
|
||||
0x000000710131e5bc,sub_710131E5BC,8,
|
||||
0x000000710131e5c4,sub_710131E5C4,8,
|
||||
0x000000710131e5cc,sub_710131E5CC,8,
|
||||
0x000000710131e5d4,sub_710131E5D4,8,
|
||||
0x000000710131e5dc,sub_710131E5DC,8,
|
||||
0x000000710131e5e4,sub_710131E5E4,8,
|
||||
0x000000710131e5ec,sub_710131E5EC,8,
|
||||
0x000000710131e5f4,sub_710131E5F4,8,
|
||||
0x000000710131e5fc,sub_710131E5FC,8,
|
||||
0x000000710131e1bc,sub_710131E1BC,848,_ZN4ksys3chm5ShapeC1Ev
|
||||
0x000000710131e50c,sub_710131E50C,88,_ZN4ksys3chm5ShapeD1Ev
|
||||
0x000000710131e564,sub_710131E564,84,_ZThn48_N4ksys3chm5ShapeD1Ev
|
||||
0x000000710131e5b8,j__ZdlPv_1363,4,_ZN4ksys3chm5ShapeD0Ev
|
||||
0x000000710131e5bc,sub_710131E5BC,8,_ZThn48_N4ksys3chm5ShapeD0Ev
|
||||
0x000000710131e5c4,sub_710131E5C4,8,_ZNK4ksys3chm5Shape12getResTypeIdEv
|
||||
0x000000710131e5cc,sub_710131E5CC,8,_ZNK4ksys3chm5Shape7getNameEv
|
||||
0x000000710131e5d4,sub_710131E5D4,8,_ZNK4ksys3chm5Shape18getVolumeOccupancyEv
|
||||
0x000000710131e5dc,sub_710131E5DC,8,_ZNK4ksys3chm5Shape19getElementOcclusionEv
|
||||
0x000000710131e5e4,sub_710131E5E4,8,_ZThn520_NK4ksys3chm5Shape12getResTypeIdEv
|
||||
0x000000710131e5ec,sub_710131E5EC,8,_ZThn520_NK4ksys3chm5Shape7getNameEv
|
||||
0x000000710131e5f4,sub_710131E5F4,8,_ZThn520_NK4ksys3chm5Shape18getVolumeOccupancyEv
|
||||
0x000000710131e5fc,sub_710131E5FC,8,_ZThn520_NK4ksys3chm5Shape19getElementOcclusionEv
|
||||
0x000000710131e604,sub_710131E604,32,
|
||||
0x000000710131e624,sub_710131E624,24,
|
||||
0x000000710131e63c,_Z20MultimediaReallocatePvmS_,36,
|
||||
|
|
|
|||
|
Can't render this file because it is too large.
|
|
|
@ -3,6 +3,7 @@ add_subdirectory(GameData)
|
|||
add_subdirectory(Resource)
|
||||
|
||||
add_subdirectory(ActorSystem)
|
||||
add_subdirectory(Chemical)
|
||||
add_subdirectory(Cooking)
|
||||
add_subdirectory(Ecosystem)
|
||||
add_subdirectory(Event)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
target_sources(uking PRIVATE
|
||||
chmShape.cpp
|
||||
chmShape.h
|
||||
)
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
#include "KingSystem/Chemical/chmShape.h"
|
||||
|
||||
namespace ksys::chm {
|
||||
|
||||
Shape::Shape()
|
||||
: agl::utl::IParameterIO("chmshp", 0), name({"untitled"}, "name", "名前", this),
|
||||
res_type_id({"----"}, "res_type_id", "マテリアルID", this),
|
||||
volume_occupancy(1.0, "volume_occupancy", "体積占有率", "Min=0, Max=1", this),
|
||||
element_occlusion(1.0, "element_occlusion", "エレメント遮蔽率", "Min=0, Max=1", this) {
|
||||
addObj(this, "res_shape");
|
||||
}
|
||||
|
||||
Shape::~Shape() = default;
|
||||
|
||||
} // namespace ksys::chm
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include <agl/Utils/aglParameterIO.h>
|
||||
#include <agl/Utils/aglParameterList.h>
|
||||
#include <agl/Utils/aglParameterObj.h>
|
||||
#include <hostio/seadHostIONode.h>
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::chm {
|
||||
|
||||
class IShape {
|
||||
public:
|
||||
virtual const sead::SafeString& getResTypeId() const = 0;
|
||||
virtual const sead::SafeString& getName() const = 0;
|
||||
virtual float getVolumeOccupancy() const = 0;
|
||||
virtual float getElementOcclusion() const = 0;
|
||||
};
|
||||
|
||||
class Shape : public agl::utl::IParameterObj,
|
||||
public agl::utl::IParameterIO,
|
||||
public sead::hostio::Node,
|
||||
public IShape {
|
||||
public:
|
||||
Shape();
|
||||
~Shape() override;
|
||||
|
||||
const sead::SafeString& getResTypeId() const override { return res_type_id.ref(); }
|
||||
const sead::SafeString& getName() const override { return name.ref(); }
|
||||
float getVolumeOccupancy() const override { return volume_occupancy.ref(); }
|
||||
float getElementOcclusion() const override { return element_occlusion.ref(); }
|
||||
|
||||
private:
|
||||
agl::utl::Parameter<sead::FixedSafeString<32>> name;
|
||||
agl::utl::Parameter<sead::FixedSafeString<32>> res_type_id;
|
||||
agl::utl::Parameter<float> volume_occupancy;
|
||||
agl::utl::Parameter<float> element_occlusion;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(Shape, 0x2f0);
|
||||
|
||||
} // namespace ksys::chm
|
||||
Loading…
Reference in New Issue