Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > load_from_file

API Function: load_from_file

Summary:
parse the UNQable object from a text UNQ file

Defined In LPC Object:
/usr/common/lib/dtd_unqable.c

Prototype:
void load_from_file(string filename)

Can Be Called By:
Anybody

Description:

This is the most automated way to load your object from an UNQ file in the appropriate DTD format. It requires support functions such as from_dtd_unq() to be defined. The file you supply must be readable by an LPC object in /usr/common.

This function isn't access-protected. You should access-protect your version of this and all other inherited functions, including upgraded() and destructed().

Return Value:

Nothing.

Errors:
Usually none.

See Also:
from_dtd_unq , set_dtd