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:
@ -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.";
|
||||
}
|
@ -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;
|
||||
};
|
Reference in New Issue
Block a user