Batch #10229 by ragnarok-clanker: forced by an admin (4 lower score(s), 45 changed function(s)); checked with 314 compiled unit(s), including every includer of Source/Resource/Bitmap/BitmapImage.h, Source/Resource/Bitmap/BitmapResource.h, Source/Resource/Bitmap/IJL15Runtime.h, Source/Resource/EmblemResource.h, Source/Resource/GifResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Models/ModelResource.h, Source/Resource/Sprites/ActionResource.h, Source/Resource/Sprites/SpriteResource.h, Source/UI/Buttons/UIBmpRadioBtn.h.
37 lines
882 B
C++
37 lines
882 B
C++
#ifndef RAGNAROK_SOURCE_RESOURCE_BITMAP_BITMAPRESOURCE_H
|
|
#define RAGNAROK_SOURCE_RESOURCE_BITMAP_BITMAPRESOURCE_H
|
|
|
|
#include "Resource/Bitmap/BitmapImage.h"
|
|
#include "Resource/Resource.h"
|
|
|
|
#include <cstddef>
|
|
|
|
class ResourceBytes {
|
|
public:
|
|
virtual bool Open(const char* name) = 0;
|
|
virtual const void* Data() const = 0;
|
|
virtual int Size() const = 0;
|
|
virtual void Close() = 0;
|
|
|
|
protected:
|
|
~ResourceBytes() = default;
|
|
};
|
|
|
|
class CBitmapRes : public CRes {
|
|
public:
|
|
CBitmapRes();
|
|
~CBitmapRes() override;
|
|
CBitmapRes* Create() override;
|
|
bool Load(const char* name) override;
|
|
void Unload() override;
|
|
virtual bool Decode(const char* name, const void* data, int bytes, bool iconOnly);
|
|
|
|
/* 0110 */ BitmapImage image;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CBitmapRes) == 292);
|
|
static_assert(offsetof(CBitmapRes, image) == 0x0110);
|
|
#endif
|
|
|
|
#endif
|