#What needs to be done#
I need something for creating a map for a game. The map will be created by reading a file's
contents, which will be like this
coords(0,0)
{
Title=Library
Description=This is where books can be bought
Other variables=whatver
}
coords(0,1)
{
Title=Hallway
Description=A fuckin hallway
Other variables=whatever
}
It needs to be able to read whatever variables may be inside the function, and put them
into a hash, such that the following is how it will be requested:
ie. $MAPQUERY("0,1",Title)
I would also like to point out that the coords may also contain negative numbers, aka
coords(0,-1) is legal. I'm thinking I will load this all into memory on the program's startup.
any ideas???
I need something for creating a map for a game. The map will be created by reading a file's
contents, which will be like this
coords(0,0)
{
Title=Library
Description=This is where books can be bought
Other variables=whatver
}
coords(0,1)
{
Title=Hallway
Description=A fuckin hallway
Other variables=whatever
}
It needs to be able to read whatever variables may be inside the function, and put them
into a hash, such that the following is how it will be requested:
ie. $MAPQUERY("0,1",Title)
I would also like to point out that the coords may also contain negative numbers, aka
coords(0,-1) is legal. I'm thinking I will load this all into memory on the program's startup.
any ideas???