interface.cpp
mud++0.33/src/interface.cpp · 1.9 KB
From the archive mud++0.33.tar.gz
Download the archive « Back to the archive contents
/*
....[@@@..[@@@..............[@.................. MUD++ is a written from
....[@..[@..[@..[@..[@..[@@@@@....[@......[@.... scratch multi-user swords and
....[@..[@..[@..[@..[@..[@..[@..[@@@@@..[@@@@@.. sorcery game written in C++.
....[@......[@..[@..[@..[@..[@....[@......[@.... This server is an ongoing
....[@......[@..[@@@@@..[@@@@@.................. development project. All
................................................ contributions are welcome.
....Copyright(C).1995.Melvin.Smith.............. Enjoy.
------------------------------------------------------------------------------
Melvin Smith (aka Fusion) msmith@hom.net
MUD++ development mailing list mudpp-list@mailhost.net
------------------------------------------------------------------------------
interface.cpp
*/
#include "interface.h"
// this file is only for interface table
// put fun definitions in interface<number>.cpp
// I think that we will later parse this file or generate it from outside
const struct _vm_interface_table vm_interface_table[] =
{
// interface1.cpp
{ "", NULL },
{ "dump_string__pPC_s", dump_string__pPC_s },
{ "out_string__pPC_s", out_string__pPC_s },
{ "out_time__pPC", out_time__pPC },
{ "getObjPrototype__s", getObjPrototype__s},
{ "copyObject__pObject", copyObject__pObject },
{ "toRoom__pObject_pRoom", toRoom__pObject_pRoom},
{ "inRoom__pThing", inRoom__pThing },
{ "getChar__pRoom_s", getChar__pRoom_s},
{ "say__pChar_s", say__pChar_s},
{ "new_array_of_int__i", new_array_of_int__i },
{ "new_array_of_float__i", new_array_of_float__i },
{ "new_array_of_string__i", new_array_of_string__i },
{ "new_array_of_vmobject__i", new_array_of_vmobject__i },
{ "", NULL }
};
u16 lookup_interface_number ( const char * name )
{
int i;
for ( i =1; *(vm_interface_table[i].name); i++)
{
if ( !strcmp( name, vm_interface_table[i].name ) )
return i;
}
return 0;
}