2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-03 09:41:50 +00:00

ZoneCodeGenerator: Change ContentLoader to use vars for fastfile pointer transfer and change ZoneInputStream API to be able to specify load location to better reflect the way the games do it.

This commit is contained in:
Jan
2019-11-14 14:48:40 +01:00
parent 3839b22f71
commit b7ab2a1aa6
9 changed files with 170 additions and 108 deletions

View File

@ -0,0 +1,16 @@
#include "OutOfBlockBoundsException.h"
OutOfBlockBoundsException::OutOfBlockBoundsException(XBlock* block)
{
m_block = block;
}
std::string OutOfBlockBoundsException::DetailedMessage()
{
return "Tried to load to location out of bounds from current XBlock " + m_block->m_name + ".";
}
char const* OutOfBlockBoundsException::what() const
{
return "Invalid Zone. Out of XBlock bounds.";
}

View File

@ -0,0 +1,14 @@
#pragma once
#include "LoadingException.h"
#include "Zone/XBlock.h"
class OutOfBlockBoundsException final : public LoadingException
{
XBlock* m_block;
public:
explicit OutOfBlockBoundsException(XBlock* block);
std::string DetailedMessage() override;
char const* what() const override;
};