mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-23 01:42:19 -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: "???"
41 lines
841 B
C++
41 lines
841 B
C++
#pragma once
|
|
|
|
#include "ZRoom/ZRoomCommand.h"
|
|
#include "ZVector.h"
|
|
|
|
class CsCameraEntry
|
|
{
|
|
public:
|
|
CsCameraEntry(const std::vector<uint8_t>& rawData, uint32_t rawDataIndex);
|
|
|
|
std::string GetSourceTypeName() const;
|
|
int32_t GetRawDataSize() const;
|
|
|
|
int16_t GetNumPoints() const;
|
|
segptr_t GetCamAddress() const;
|
|
uint32_t GetSegmentOffset() const;
|
|
|
|
int baseOffset;
|
|
int16_t type;
|
|
int16_t numPoints;
|
|
segptr_t camAddress;
|
|
uint32_t segmentOffset;
|
|
};
|
|
|
|
class SetCsCamera : public ZRoomCommand
|
|
{
|
|
public:
|
|
std::vector<CsCameraEntry> cameras;
|
|
std::vector<ZVector> points;
|
|
|
|
SetCsCamera(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;
|
|
};
|