demboyz/demboyz/jsonwriter.cpp
2015-05-27 22:54:07 -04:00

47 lines
917 B
C++

#include "idemowriter.h"
#include <cstdio>
class JsonWriter: public IDemoWriter
{
public:
JsonWriter(FILE* outputFp);
virtual void StartWriting(demoheader_t& header) override final;
virtual void EndWriting() override final;
virtual void StartCommandPacket(CommandPacket& packet) override final;
virtual void EndCommandPacket() override final;
virtual void WriteNetPacket(NetPacket& packet, SourceGameContext& context) override final;
};
IDemoWriter* IDemoWriter::CreateJsonWriter(void* outputFp)
{
return new JsonWriter(reinterpret_cast<FILE*>(outputFp));
}
JsonWriter::JsonWriter(FILE* outputFp)
{
}
void JsonWriter::StartWriting(demoheader_t& header)
{
}
void JsonWriter::EndWriting()
{
}
void JsonWriter::StartCommandPacket(CommandPacket& packet)
{
}
void JsonWriter::EndCommandPacket()
{
}
void JsonWriter::WriteNetPacket(NetPacket& packet, SourceGameContext& context)
{
}