Added world size (the number of regions in a world)
The gird's 0, 0 index is now the center of the grid (so a 10, 10 grid goes from 4, 4 to -4, -4)Gui_Panel_Refactor
parent
fff5c18842
commit
bd63502601
@ -0,0 +1,33 @@
|
||||
/******************************************************************************
|
||||
* File - script.h
|
||||
* Author - Joey Pollack
|
||||
* Date - 2022/01/18 (y/m/d)
|
||||
* Mod Date - 2022/01/18 (y/m/d)
|
||||
* Description - Holds data for a LUA script
|
||||
******************************************************************************/
|
||||
|
||||
#include "script.h"
|
||||
|
||||
namespace lunarium
|
||||
{
|
||||
void Script::SetScript(const char* script)
|
||||
{
|
||||
mScript = script;
|
||||
}
|
||||
|
||||
const char* Script::GetScript() const
|
||||
{
|
||||
return mScript.c_str();
|
||||
}
|
||||
|
||||
|
||||
void Script::AddError(std::string error)
|
||||
{
|
||||
mScriptErrors.push_back(error);
|
||||
}
|
||||
|
||||
const std::vector<std::string>* Script::GetErrors() const
|
||||
{
|
||||
return &mScriptErrors;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue