Batch #1043 by ragnarok-clanker: 0 byte-identical, 9 confirmed by peer review. - fn_19316 Replay::AnimationScale: logic confirmed by peer review - fn_19343 Replay::SetState: logic confirmed by peer review - fn_21118 CRenderObject::SetAnimation: logic confirmed by peer review - fn_21119 CRenderObject::SetColor: logic confirmed by peer review - fn_21130 CRenderObject::SetSequenceDeadline: logic confirmed by peer review - fn_21131 CRenderObject::SetSequenceInterval: logic confirmed by peer review - fn_21132 CRenderObject::SetAnimationSequence: logic confirmed by peer review - fn_21133 CRenderObject::SetFrameSequence: logic confirmed by peer review - fn_21140 CRenderObject::SetAnimationSpeed: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/Client/ReplayControl.cpp
43 lines
1.8 KiB
C++
43 lines
1.8 KiB
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_ACTORS_RENDEROBJECT_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_ACTORS_RENDEROBJECT_H
|
|
|
|
#include "Contents/Actors/GameObject.h"
|
|
#include "Contents/Actors/RenderObjectState.h"
|
|
|
|
class CRenderObject : public CGameObject {
|
|
public:
|
|
CRenderObject(ResourceMgr& resources, JobNames& names);
|
|
~CRenderObject() override;
|
|
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;
|
|
|
|
virtual void SetScreenBounds(const float* bounds, float x, float y);
|
|
|
|
virtual void SetScreenPosition(float x, float y);
|
|
virtual void SetAnimation(unsigned animation, int motion, int repeat);
|
|
static float __stdcall Heading(float x, float z, float targetX, float targetZ);
|
|
void Face(float x, float z);
|
|
float HorizontalDistance(float x, float z) const;
|
|
float Distance(float x, float y, float z) const;
|
|
void SetAnimationSpeed(float speed);
|
|
void SetColor(int alpha, int red, int green, int blue);
|
|
void SetSequenceDeadline(std::uint32_t duration);
|
|
void SetSequenceInterval(unsigned char interval);
|
|
void SetAnimationSequence(
|
|
unsigned char animation0, unsigned char frame0, unsigned char animation1, unsigned char frame1,
|
|
unsigned char animation2, unsigned char frame2, unsigned char animation3, unsigned char frame3,
|
|
unsigned char animation4, unsigned char frame4, int timed, std::uint32_t duration, int loop
|
|
);
|
|
void SetFrameSequence(
|
|
unsigned char animation, unsigned char firstFrame, unsigned char lastFrame, unsigned char finishAnimation,
|
|
unsigned char finishFrame, int timed, std::uint32_t duration, int loop
|
|
);
|
|
|
|
RenderObjectState render;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CRenderObject) == 0x138);
|
|
#endif
|
|
|
|
#endif
|