2023-06-21 00:34:09 -07:00
#pragma once
#include "olcPixelGameEngine.h"
2023-07-06 19:17:59 +00:00
#include "olcUTIL_Geometry2D.h"
2023-09-13 18:54:24 +00:00
#include <sstream>
2023-06-21 00:34:09 -07:00
using namespace olc ;
struct XMLTag {
std :: string tag ;
std :: map < std :: string , std :: string > data ;
2023-06-21 14:30:14 -07:00
const std :: string FormatTagData ( std :: map < std :: string , std :: string > tiles );
friend std :: ostream & operator << ( std :: ostream & os , XMLTag & rhs );
2023-06-21 21:33:23 -07:00
std :: string str ();
2023-06-21 14:30:14 -07:00
int GetInteger ( std :: string dataTag );
2023-06-22 17:44:51 -07:00
float GetFloat ( std :: string dataTag );
2023-06-21 14:30:14 -07:00
double GetDouble ( std :: string dataTag );
bool GetBool ( std :: string dataTag );
};
2023-06-22 02:46:38 -07:00
struct MapTag {
2023-09-06 23:07:15 -05:00
int width = 0 , height = 0 ;
2023-10-04 02:02:10 -05:00
int tilewidth = 0 , tileheight = 0 ;
2023-10-04 04:22:04 -05:00
bool optimized = false ; //An optimized map will require us to flatten it out and use it as a single tile.
2023-06-23 20:42:55 -07:00
vi2d playerSpawnLocation ;
2023-10-04 02:02:10 -05:00
vi2d MapSize ; //The number of tiles in width and height of this map.
vi2d TileSize ; //How large in pixels the map's tiles are.
MapTag ();
MapTag ( int width , int height , int tilewidth , int tileheight );
2023-06-22 02:46:38 -07:00
friend std :: ostream & operator << ( std :: ostream & os , MapTag & rhs );
};
2023-06-21 14:30:14 -07:00
struct LayerTag {
XMLTag tag ;
std :: vector < std :: vector < int >> tiles ;
std :: string str ();
};
struct SpawnerTag {
XMLTag ObjectData ;
2023-07-07 21:35:44 -05:00
std :: vector < XMLTag > monsters ;
2023-07-10 19:22:33 -05:00
bool upperLevel = false ;
2023-09-26 05:22:04 -05:00
std :: string bossNameDisplay ;
2023-06-21 14:30:14 -07:00
std :: string str ();
friend std :: ostream & operator << ( std :: ostream & os , SpawnerTag & rhs );
};
struct Map {
2023-06-22 02:46:38 -07:00
MapTag MapData ;
2023-10-04 04:22:04 -05:00
Renderable * optimizedTile = nullptr ;
2023-06-21 21:33:23 -07:00
std :: vector < XMLTag > TilesetData ;
2023-06-21 14:30:14 -07:00
std :: vector < LayerTag > LayerData ;
2023-07-07 21:35:44 -05:00
std :: map < int , SpawnerTag > SpawnerData ; //Spawn groups have IDs, mobs associate which spawner they are tied to via this ID.
2023-07-06 19:17:59 +00:00
std :: map < std :: string , std :: vector < geom2d :: rect < int >>> ZoneData ;
2023-06-21 14:30:14 -07:00
std :: string FormatLayerData ( std :: ostream & os , std :: vector < LayerTag > tiles );
2023-07-07 21:35:44 -05:00
std :: string FormatSpawnerData ( std :: ostream & os , std :: map < int , SpawnerTag > tiles );
2023-06-21 14:30:14 -07:00
friend std :: ostream & operator << ( std :: ostream & os , Map & rhs );
2023-06-21 21:33:23 -07:00
friend std :: ostream & operator << ( std :: ostream & os , std :: vector < XMLTag >& rhs );
2023-06-21 14:30:14 -07:00
};
2023-10-29 14:50:22 -05:00
struct Property {
std :: string name ;
std :: string value ;
int GetInteger ();
float GetFloat ();
double GetDouble ();
bool GetBool ();
};
struct StagePlate {
XMLTag tag ;
std :: map < std :: string , Property > properties ;
};
2023-06-21 14:30:14 -07:00
class TMXParser {
public :
Map GetData ();
private :
Map parsedMapInfo ;
bool buildingSpawner = false ;
SpawnerTag obj ;
2023-09-26 05:22:04 -05:00
int prevSpawner ;
2023-06-21 14:30:14 -07:00
void ParseTag ( std :: string tag );
2023-07-07 21:35:44 -05:00
int monsterPropertyTagCount =- 1 ;
XMLTag monsterTag ;
XMLTag spawnerLinkTag ;
2023-10-29 14:50:22 -05:00
StagePlate * currentStagePlate ;
2023-07-07 21:35:44 -05:00
std :: vector < XMLTag > accumulatedMonsterTags ;
2023-10-29 14:50:22 -05:00
std :: map < int , StagePlate > stagePlates ;
2023-08-13 02:12:19 -05:00
bool infiniteMap = false ;
2023-06-21 14:30:14 -07:00
public :
TMXParser ( std :: string file );
};
2023-07-07 04:31:36 -05:00
typedef std :: map < std :: string , std :: vector < geom2d :: rect < int >>> ZoneData ;
2023-10-29 14:50:22 -05:00
//#define TMX_PARSER_SETUP //Toggle for code-writing.
2023-07-07 04:31:36 -05:00
2023-06-21 14:30:14 -07:00
#ifdef TMX_PARSER_SETUP
#undef TMX_PARSER_SETUP
2023-10-29 17:00:54 -05:00
#include "State_OverworldMap.h"
2023-10-02 19:54:21 +00:00
extern bool _DEBUG_MAP_LOAD_INFO ;
2023-06-21 14:30:14 -07:00
const std :: string XMLTag :: FormatTagData ( std :: map < std :: string , std :: string > tiles ){
2023-06-21 00:34:09 -07:00
std :: string displayStr = "" ;
for ( std :: map < std :: string , std :: string >:: iterator it = data . begin (); it != data . end (); it ++ ) {
displayStr += " " + it -> first + ": " + it -> second + " \n " ;
}
return displayStr ;
}
2023-06-21 14:30:14 -07:00
std :: ostream & operator << ( std :: ostream & os , XMLTag & rhs ){
2023-06-21 00:34:09 -07:00
os <<
rhs . tag << " \n " <<
rhs . FormatTagData ( rhs . data ) << " \n " ;
2023-06-21 14:30:14 -07:00
return os ;
}
2023-06-22 02:46:38 -07:00
std :: ostream & operator << ( std :: ostream & os , MapTag & rhs ){
os <<
2023-10-04 02:02:10 -05:00
"(width:" << rhs . width << ", height:" << rhs . height << ", Tile width:" << rhs . tilewidth << ", Tile height:" << rhs . tileheight << ",playerSpawnLocation:" << rhs . playerSpawnLocation << ") \n " ;
2023-06-22 02:46:38 -07:00
return os ;
}
2023-06-21 14:30:14 -07:00
int XMLTag :: GetInteger ( std :: string dataTag ) {
2023-06-21 00:34:09 -07:00
return std :: stoi ( data [ dataTag ]);
}
2023-06-22 17:44:51 -07:00
float XMLTag :: GetFloat ( std :: string dataTag ) {
return std :: stof ( data [ dataTag ]);
}
2023-06-21 14:30:14 -07:00
double XMLTag :: GetDouble ( std :: string dataTag ) {
2023-06-21 00:34:09 -07:00
return std :: stod ( data [ dataTag ]);
}
2023-06-21 14:30:14 -07:00
bool XMLTag :: GetBool ( std :: string dataTag ) {
2023-06-21 00:34:09 -07:00
if ( data [ dataTag ] == "0" ) {
return false ;
} else {
return true ;
}
}
2023-10-29 14:50:22 -05:00
int Property :: GetInteger () {
return std :: stoi ( value );
}
float Property :: GetFloat () {
return std :: stof ( value );
}
double Property :: GetDouble () {
return std :: stod ( value );
}
bool Property :: GetBool () {
if ( value == "0" ) {
return false ;
} else {
return true ;
}
}
2023-10-04 02:02:10 -05:00
MapTag :: MapTag (){}
MapTag :: MapTag ( int width , int height , int tilewidth , int tileheight )
: width ( width ), height ( height ), tilewidth ( tilewidth ), tileheight ( tileheight ), MapSize ({ width , height }), TileSize ({ tilewidth , tileheight }){}
2023-06-21 21:33:23 -07:00
std :: string XMLTag :: str () {
return tag + " \n " ;
}
2023-06-21 14:30:14 -07:00
std :: string LayerTag :: str () {
2023-06-21 00:34:09 -07:00
std :: string displayStr = tag . tag + " \n " + tag . FormatTagData ( tag . data );
2023-06-21 21:33:23 -07:00
displayStr += " DATA (" + std :: to_string ( tiles [ 0 ]. size ()) + "x" + std :: to_string ( tiles . size ()) + " ) \n " ;
2023-06-21 00:34:09 -07:00
return displayStr ;
}
2023-06-21 14:30:14 -07:00
std :: string SpawnerTag :: str () {
2023-06-21 01:50:28 -07:00
std :: string displayStr = ObjectData . tag + " \n " + ObjectData . FormatTagData ( ObjectData . data );
2023-07-07 21:35:44 -05:00
for ( XMLTag & monster : monsters ){
displayStr += " (" + monster . FormatTagData ( monster . data ) + " ) \n " ;
2023-06-21 01:50:28 -07:00
}
return displayStr ;
}
2023-06-21 14:30:14 -07:00
std :: ostream & operator << ( std :: ostream & os , SpawnerTag & rhs ) {
2023-06-21 01:50:28 -07:00
os << rhs . str () << " \n " ;
2023-06-21 14:30:14 -07:00
return os ;
}
std :: string Map :: FormatLayerData ( std :: ostream & os , std :: vector < LayerTag > tiles ) {
2023-06-21 00:34:09 -07:00
std :: string displayStr ;
for ( int i = 0 ; i < LayerData . size (); i ++ ) {
displayStr += LayerData [ i ]. str ();
}
return displayStr ;
}
2023-07-07 21:35:44 -05:00
std :: string Map :: FormatSpawnerData ( std :: ostream & os , std :: map < int , SpawnerTag > tiles ) {
2023-06-21 01:50:28 -07:00
std :: string displayStr ;
2023-07-07 21:35:44 -05:00
for ( auto key : SpawnerData ) {
displayStr += SpawnerData [ key . first ]. str ();
2023-06-21 01:50:28 -07:00
}
return displayStr ;
}
2023-06-21 21:33:23 -07:00
std :: ostream & operator << ( std :: ostream & os , std :: vector < XMLTag >& rhs ) {
for ( XMLTag & tag : rhs ){
os <<
tag << " \n " ;
}
return os ;
}
2023-06-21 14:30:14 -07:00
std :: ostream & operator << ( std :: ostream & os , Map & rhs ) {
2023-06-21 00:34:09 -07:00
os <<
rhs . MapData << " \n " <<
rhs . TilesetData << " \n " <<
2023-06-21 01:50:28 -07:00
rhs . FormatLayerData ( os , rhs . LayerData ) << " \n " <<
rhs . FormatSpawnerData ( os , rhs . SpawnerData ) << " \n " ;
2023-06-21 14:30:14 -07:00
return os ;
}
Map TMXParser :: GetData () {
2023-06-21 00:34:09 -07:00
return parsedMapInfo ;
}
2023-06-21 14:30:14 -07:00
void TMXParser :: ParseTag ( std :: string tag ) {
2023-07-07 21:35:44 -05:00
auto ReadNextTag = [ & ](){
XMLTag newTag ;
//First character is a '<' so we discard it.
tag . erase ( 0 , 1 ); tag . erase ( tag . length () - 1 , 1 ); //Erase the first and last characters in the tag. Now parse by spaces.
std :: stringstream s ( tag ); //Turn it into a string stream to now parse into individual whitespaces.
std :: string data ;
while ( s . good ()) {
int quotationMarkCount = 0 ;
bool pastEquals = false ;
data = "" ;
bool valid = false ;
while ( s . good ()){
int character = s . get ();
if ( character == '"' ){
quotationMarkCount ++ ;
}
if ( character == ' ' && quotationMarkCount % 2 == 0 ){
valid = true ;
break ;
}
data += character ;
if ( pastEquals && quotationMarkCount % 2 == 0 ){
valid = true ;
break ;
}
if ( character == '=' && quotationMarkCount % 2 == 0 ){
pastEquals = true ;
}
2023-06-21 00:58:10 -07:00
}
2023-07-07 21:35:44 -05:00
if ( valid && data . length () > 0 ){
if ( newTag . tag . length () == 0 ) { //Tag's empty, so first line is the tag.
newTag . tag = data ;
2023-10-02 19:54:21 +00:00
if ( _DEBUG_MAP_LOAD_INFO ) std :: cout << "Tag: " << newTag . tag << " \n " ;
2023-07-07 21:35:44 -05:00
} else {
std :: string key = data . substr ( 0 , data . find ( "=" ));
std :: string value = data . substr ( data . find ( "=" ) + 1 , std :: string :: npos );
2023-06-21 00:58:10 -07:00
2023-07-07 21:35:44 -05:00
//Strip Quotation marks.
value = value . substr ( 1 , std :: string :: npos );
value = value . substr ( 0 , value . length () - 1 );
2023-06-21 00:58:10 -07:00
2023-07-07 21:35:44 -05:00
newTag . data [ key ] = value ;
2023-10-02 19:54:21 +00:00
if ( _DEBUG_MAP_LOAD_INFO ) std :: cout << " " << key << ":" << newTag . data [ key ] << " \n " ;
2023-07-07 21:35:44 -05:00
}
2023-06-21 00:58:10 -07:00
}
2023-06-21 00:34:09 -07:00
}
2023-07-07 21:35:44 -05:00
return newTag ;
};
XMLTag newTag = ReadNextTag ();
2023-10-29 14:50:22 -05:00
if ( newTag . tag == "object" && newTag . data [ "type" ] != "StagePlate" ) {
currentStagePlate = nullptr ;
}
2023-06-21 00:34:09 -07:00
2023-10-29 14:50:22 -05:00
if ( newTag . tag == "map" ){
2023-08-13 02:12:19 -05:00
if ( stoi ( newTag . data [ "infinite" ]) == 1 ){
infiniteMap = true ;
return ;
}
2023-10-04 02:02:10 -05:00
parsedMapInfo . MapData = { stoi ( newTag . data [ "width" ]), stoi ( newTag . data [ "height" ]), stoi ( newTag . data [ "tilewidth" ]), stoi ( newTag . data [ "tileheight" ])};
2023-06-21 00:34:09 -07:00
} else
2023-10-29 14:50:22 -05:00
if ( newTag . tag == "tileset" ){
2023-06-21 21:33:23 -07:00
parsedMapInfo . TilesetData . push_back ( newTag );
} else
2023-10-29 14:50:22 -05:00
if ( newTag . tag == "layer" ){
2023-06-21 21:33:23 -07:00
LayerTag l = { newTag };
parsedMapInfo . LayerData . push_back ( l );
2023-07-06 19:17:59 +00:00
} else
2023-06-21 21:33:23 -07:00
if ( newTag . tag == "object" && newTag . data [ "type" ] == "SpawnGroup" ) {
2023-10-29 14:50:22 -05:00
if ( newTag . GetInteger ( "id" ) != 0 ){
parsedMapInfo . SpawnerData [ newTag . GetInteger ( "id" )] = { newTag };
prevSpawner = newTag . GetInteger ( "id" );
}
2023-09-26 05:22:04 -05:00
} else
2023-10-04 04:22:04 -05:00
if ( newTag . tag == "property" && newTag . data [ "name" ] == "Optimize" && newTag . data [ "value" ] == "true" ) {
parsedMapInfo . MapData . optimized = true ;
} else
2023-09-26 05:22:04 -05:00
if ( newTag . tag == "property" && newTag . data [ "name" ] == "Boss Title Display" ) {
parsedMapInfo . SpawnerData [ prevSpawner ]. bossNameDisplay = newTag . data [ "value" ];
2023-06-21 21:33:23 -07:00
} else
2023-06-23 20:42:55 -07:00
if ( newTag . tag == "object" && newTag . data [ "type" ] == "PlayerSpawnLocation" ) {
parsedMapInfo . MapData . playerSpawnLocation = { newTag . GetInteger ( "x" ) - newTag . GetInteger ( "width" ) / 2 , newTag . GetInteger ( "y" ) - newTag . GetInteger ( "height" ) / 2 };
} else
2023-07-07 17:44:06 -05:00
if ( newTag . tag == "object" && newTag . data . find ( "type" ) != newTag . data . end ()
2023-10-29 14:50:22 -05:00
&& ( newTag . data [ "type" ] == "LowerZone" || newTag . data [ "type" ] == "UpperZone" )){
2023-07-06 19:17:59 +00:00
//This is an object with a type that doesn't fit into other categories, we can add it to ZoneData.
if ( parsedMapInfo . ZoneData . find ( newTag . data [ "type" ]) != parsedMapInfo . ZoneData . end ()){
std :: vector < geom2d :: rect < int >>& zones = parsedMapInfo . ZoneData [ newTag . data [ "type" ]];
zones . push_back ({{ newTag . GetInteger ( "x" ), newTag . GetInteger ( "y" )},{ newTag . GetInteger ( "width" ), newTag . GetInteger ( "height" )}});
} else {
std :: vector < geom2d :: rect < int >> zones ;
zones . push_back ({{ newTag . GetInteger ( "x" ), newTag . GetInteger ( "y" )},{ newTag . GetInteger ( "width" ), newTag . GetInteger ( "height" )}});
parsedMapInfo . ZoneData [ newTag . data [ "type" ]] = zones ;
}
2023-07-07 04:31:36 -05:00
} else
2023-07-07 21:35:44 -05:00
if ( newTag . tag == "object" && newTag . data [ "type" ] == "Monster" ) {
//XMLTag monsterTag=ReadNextTag();
//XMLTag spawnerLinkTag=ReadNextTag();
//newTag.data["value"]=monsterTag.GetInteger("value"); //Value now contains which monster name this spawn represents.
monsterTag = newTag ;
monsterPropertyTagCount = 0 ;
} else
if ( newTag . tag == "property" && monsterPropertyTagCount == 0 ) {
monsterTag . data [ "value" ] = newTag . data [ "value" ];
monsterPropertyTagCount ++ ;
} else
if ( newTag . tag == "property" && monsterPropertyTagCount == 1 ) {
spawnerLinkTag = newTag ;
monsterTag . data [ "spawnerLink" ] = spawnerLinkTag . data [ "value" ];
accumulatedMonsterTags . push_back ( monsterTag );
monsterPropertyTagCount =- 1 ;
2023-10-29 14:50:22 -05:00
} else
if ( newTag . tag == "object" && newTag . data [ "type" ] == "StagePlate" ) {
if ( newTag . GetInteger ( "id" ) != 0 ){
stagePlates [ newTag . GetInteger ( "id" )] = { newTag };
currentStagePlate =& stagePlates . at ( newTag . GetInteger ( "id" ));
}
} else
if ( newTag . tag == "property" && currentStagePlate != nullptr ){
currentStagePlate -> properties [ newTag . data [ "name" ]] = { newTag . data [ "name" ], newTag . data [ "value" ]};
} else {
2023-10-02 19:54:21 +00:00
if ( _DEBUG_MAP_LOAD_INFO ) std :: cout << "Unsupported tag format! Ignoring." << " \n " ;
2023-06-23 20:42:55 -07:00
}
2023-10-02 19:54:21 +00:00
if ( _DEBUG_MAP_LOAD_INFO ) std :: cout << " \n " << "============= \n " ;
2023-06-21 00:34:09 -07:00
}
2023-06-21 14:30:14 -07:00
TMXParser :: TMXParser ( std :: string file ){
2023-06-21 00:34:09 -07:00
std :: ifstream f ( file , std :: ios :: in );
std :: string accumulator = "" ;
2023-08-13 02:12:19 -05:00
while ( f . good () &&! infiniteMap ) {
2023-06-21 00:34:09 -07:00
std :: string data ;
f >> data ;
if ( data . empty ()) continue ;
if ( accumulator . length () > 0 ) {
accumulator += " " + data ;
//Check if it ends with '>'
if ( data [ data . length () - 1 ] == '>' ) {
ParseTag ( accumulator );
accumulator = "" ;
}
} else
if ( data [ 0 ] == '<' ) {
//Beginning of XML tag.
accumulator = data ;
2023-06-21 01:07:14 -07:00
if ( accumulator . length () > 1 && accumulator . at ( 1 ) == '/' ){
accumulator = "" ; //Restart because this is an end tag.
}
if ( accumulator . length () > 1 && accumulator . find ( '>' ) != std :: string :: npos ){
accumulator = "" ; //Restart because this tag has nothing in it!
}
2023-06-21 00:34:09 -07:00
} else {
//Start reading in data for this layer.
std :: vector < int > rowData ;
while ( data . find ( "," ) != std :: string :: npos ) {
std :: string datapiece = data . substr ( 0 , data . find ( "," ));
data = data . substr ( data . find ( "," ) + 1 , std :: string :: npos );
rowData . push_back ( stoi ( datapiece ));
}
if ( data . length ()) {
rowData . push_back ( stoi ( data ));
}
parsedMapInfo . LayerData [ parsedMapInfo . LayerData . size () - 1 ]. tiles . push_back ( rowData );
}
}
2023-08-13 02:12:19 -05:00
if ( infiniteMap ){
2023-10-02 19:54:21 +00:00
if ( _DEBUG_MAP_LOAD_INFO ) std :: cout << "Infinite map detected. Parsing stopped early." << std :: endl ;
2023-08-13 02:12:19 -05:00
}
2023-07-07 21:35:44 -05:00
for ( XMLTag & monster : accumulatedMonsterTags ){
parsedMapInfo . SpawnerData [ monster . GetInteger ( "spawnerLink" )]. monsters . push_back ( monster );
2023-06-21 01:50:28 -07:00
}
2023-09-12 03:09:21 -05:00
for ( auto & spawnerData : parsedMapInfo . SpawnerData ){
SpawnerTag & spawner = spawnerData . second ;
for ( auto & zoneData : parsedMapInfo . ZoneData ){
if ( zoneData . first == "UpperZone" ){
std :: vector < geom2d :: rect < int >>& zones = zoneData . second ;
for ( geom2d :: rect < int >& zone : zones ){
if ( geom2d :: overlaps ( zone , geom2d :: rect < int > {{ spawner . ObjectData . GetInteger ( "x" ), spawner . ObjectData . GetInteger ( "y" )},{ spawner . ObjectData . GetInteger ( "width" ), spawner . ObjectData . GetInteger ( "height" )}})){
spawner . upperLevel = true ;
goto continueSpawnerLoop ;
}
}
}
}
continueSpawnerLoop :
continue ;
}
2023-09-13 18:57:46 -05:00
std :: sort ( parsedMapInfo . TilesetData . begin (), parsedMapInfo . TilesetData . end (),[]( XMLTag & t1 , XMLTag & t2 ){ return t1 . GetInteger ( "firstgid" ) < t2 . GetInteger ( "firstgid" );});
2023-10-29 14:50:22 -05:00
std :: map < int , int > idToIndexMap ; //Since the original map data relies on IDs decided by Tiled and we are condensing all this data into a vector of connection points, each connection point is going to be in a different ID.
//therefore, we need to convert the Tiled IDs into whatever vector index we insert each connection into for State_OverworldMap::connections.
for ( auto key : stagePlates ){
StagePlate & plate = key . second ;
idToIndexMap [ plate . tag . GetInteger ( "id" )] = State_OverworldMap :: connections . size ();
2023-10-29 17:00:54 -05:00
ConnectionPoint newConnection = {{{ plate . tag . GetFloat ( "x" ), plate . tag . GetFloat ( "y" )},{ plate . tag . GetFloat ( "width" ), plate . tag . GetFloat ( "height" )}}, plate . tag . data [ "name" ], plate . properties [ "Map" ]. value , plate . properties [ "Unlock Condition" ]. value };
2023-10-29 14:50:22 -05:00
int iterationCount = 0 ;
for ( auto key2 : plate . properties ){
if ( key2 . first . starts_with ( "Connection " )){
newConnection . neighbors [ iterationCount ] = key2 . second . GetInteger ();
iterationCount ++ ;
}
}
State_OverworldMap :: connections . push_back ( newConnection );
}
for ( ConnectionPoint & connection : State_OverworldMap :: connections ){
std :: array < int , 4 > ;
for ( int & val : connection . neighbors ){
if ( idToIndexMap . count ( val )){
val = idToIndexMap . at ( val ); //Convert from given Tiled ID to indexed ID in State_OverworldMap::connections
}
}
}
2023-10-02 19:54:21 +00:00
if ( _DEBUG_MAP_LOAD_INFO ) std :: cout << "Parsed Map Data: \n " << parsedMapInfo << " \n " ;
2023-06-21 00:34:09 -07:00
}
2023-06-21 14:30:14 -07:00
#endif