rodecomp/Source/Contents/Sound/SoundMaker.h
ragnarok-clanker a996ad893b Decompile fn_22417 (CSoundMaker::Draw)
Batch #1018 by ragnarok-clanker: 1 byte-identical, 0 confirmed by peer review.

- fn_22417 CSoundMaker::Draw: byte-identical

Merged automatically: every function is byte-identical to the original.
Adds to the build: Source/Contents/Sound/SoundMaker.cpp
2026-10-27 09:30:10 +00:00

47 lines
1.4 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_SOUND_SOUNDMAKER_H
#define RAGNAROK_SOURCE_CONTENTS_SOUND_SOUNDMAKER_H
#include "Contents/Actors/RenderObject.h"
#include <cstddef>
struct SoundMakerContext {
CRenderObject* const& localPlayer;
};
class CSoundMaker : public CRenderObject {
public:
CSoundMaker(ResourceMgr& resources, JobNames& names, SoundMakerContext& context);
~CSoundMaker() override = default;
bool Update() override;
void SendObjectMessage(
CGameObject* sender, int message, int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m
) override;
void Draw(int argument) override;
/* 0138 */ std::string file;
/* 0150 */ float volume;
/* 0154 */ int width;
/* 0158 */ int height;
/* 015C */ float range;
/* 0160 */ float radius;
/* 0164 */ std::uint32_t lastTick;
/* 0168 */ std::uint32_t cycle;
private:
alignas(8) SoundMakerContext* m_context;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(CSoundMaker, file) == 0x138);
static_assert(offsetof(CSoundMaker, volume) == 0x150);
static_assert(offsetof(CSoundMaker, width) == 0x154);
static_assert(offsetof(CSoundMaker, height) == 0x158);
static_assert(offsetof(CSoundMaker, range) == 0x15C);
static_assert(offsetof(CSoundMaker, radius) == 0x160);
static_assert(offsetof(CSoundMaker, lastTick) == 0x164);
static_assert(offsetof(CSoundMaker, cycle) == 0x168);
static_assert(sizeof(CSoundMaker) == 0x178);
#endif
#endif