summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/Commands/SetLightList.h
blob: 894a21530f99fc5bd2214c5dd75aaf029e033502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#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;
};