mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-12 11:12:20 -05:00
5dda5762ba
subrepo: subdir: "ZAPDTR" merged: "a53a53ea4" upstream: origin: "https://github.com/HarbourMasters/ZAPDTR.git" branch: "master" commit: "a53a53ea4" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
43 lines
797 B
C++
43 lines
797 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "ZFile.h"
|
|
#include "ZRoom/ZRoom.h"
|
|
#include "ZRoom/ZRoomCommand.h"
|
|
|
|
class LightInfo
|
|
{
|
|
public:
|
|
LightInfo(const std::vector<uint8_t>& rawData, uint32_t rawDataIndex);
|
|
|
|
std::string GetBodySourceCode() const;
|
|
|
|
std::string GetSourceTypeName() const;
|
|
size_t GetRawDataSize() const;
|
|
|
|
public:
|
|
uint8_t type;
|
|
int16_t x, y, z;
|
|
uint8_t r, g, b;
|
|
uint8_t drawGlow;
|
|
int16_t radius;
|
|
};
|
|
|
|
class SetLightList : public ZRoomCommand
|
|
{
|
|
public:
|
|
uint8_t numLights;
|
|
std::vector<LightInfo> lights;
|
|
|
|
SetLightList(ZFile* nParent);
|
|
|
|
void ParseRawData() override;
|
|
void DeclareReferences(const std::string& prefix) override;
|
|
|
|
std::string GetBodySourceCode() const override;
|
|
|
|
RoomCommand GetRoomCommand() const override;
|
|
std::string GetCommandCName() const override;
|
|
};
|