Lpc:Efun

来自MudWiki

Efun是直接在driver中实现的函数,和对象无关,可直接使用,执行速度最快。目前主要EFUN有以下类别。

数组相关函数(Arrays)

allocatearraypfilter_arraymap_arraymember_arraypointerpsort_arrayunique_array

缓冲区相关函数(Buffers)

allocate_bufferbufferpcrc32read_bufferwrite_buffer

调用相关函数(Calls)

call_othercall_outcatchoriginprevious_objectquery_shadowingremove_call_outshadowthis_objectthrow

数据库相关函数(DB)

db_closedb_commitdb_connectdb_execdb_fetchdb_rollbackdb_status

在线编辑相关函数(ED)

eded_cmded_startquery_ed_mode

文件系统相关函数(Filesystem)

cpfile_sizeget_dirlinkmkdirread_bytesread_filerenamermrmdirstattailwrite_byteswrite_file

浮点运算相关函数(Floats)

acosasinatanceilcosexpfloatpfloorlogpowroundsinsqrttanto_int

函数相关函数(Functions)

applybindevaluatefunctionp

常规函数(General)

filtermapnullprestore_variablesave_variablesizeoftypeofundefinedp

互动对象(玩家)相关函数(Interactive)

add_actioncommandcommandsdisable_commandsdisable_wizardenable_commandsenable_wizardexecfind_playerget_charin_editin_inputinput_tointeractivemessagenotify_failprintfquery_host_namequery_idlequery_ip_namequery_ip_numberquery_snoopquery_snoopingreceiveremove_actionremove_interactiveresolvesayset_this_playershoutsnoopthis_interactivethis_playerthis_useruserpuserswritewizardp

内部处理相关函数(Internals)

cache_statsdebug_messagedebug_infodebugmallocdump_file_descriptorsdump_progdump_socket_statusdumpallobjget_configmalloc_statusmemory_infomoncontrolmud_statusopcprofquery_load_averagerefsrusageset_debug_levelset_malloc_maskswaptime_expressiontracetraceprefix

映射相关函数(Mappings)

allocate_mappingeachfilter_mappingkeysmap_deletemap_mappingmappmatch_pathunique_mappingvalues

MUDLIB相关函数(Mudlib)

author_statsdomain_statsexport_uidfind_livinggeteuidgetuidlivinglivingsquery_privsset_authorset_lightset_living_nameset_privsseteuid

数字相关函数(Numbers)

intprandomto_float

对象相关函数(Objects)

all_inventorychildrenclone_objectclonepdeep_inventorydestructenvironmentfile_namefind_objectfirst_inventoryload_objectmastermove_objectnewnext_inventoryobjectpobjectspresentquery_heart_beatreload_objectrestore_objectsave_objectset_heart_beatset_hidetell_objecttell_roomvirtualp

语法分析相关函数(Parsing)

parse_commandprocess_stringprocess_valuequery_verb

SOCKET相关函数(Sockets)

socket_acceptsocket_acquiresocket_addresssocket_bindsocket_closesocket_connectsocket_createsocket_errorsocket_listensocket_releasesocket_write

字符串相关函数(Strings)

break_stringcapitalizeclear_bitcryptexplodeimplodelower_caseoldcryptreg_assocregexprepeat_stringreplace_stringset_bitsprintfsscanfstrcmpstringpstrlenstrsrchtest_bittrimltrimrtrim

系统相关函数(System)

all_previous_objectscall_out_infoclasspctimedeep_inherit_listerroreval_costfind_call_outfunction_existsfunction_profileinherit_listinheritslocaltimemax_eval_costreclaim_objectsreplace_programreset_eval_costset_eval_limitset_resetshutdowntimeuptime

其它(新增)函数(Contrib)

absassemble_classbase_nameclassescompressedpcopydisassemble_classelement_ofeventfetch_class_memberfetch_variablefile_lengthfunction_ownerfunctionsget_garbageheart_beatsis_daylight_savings_timemaxmemory_summaryminnamed_livingsnetwork_statsnum_classespluralizeprogram_infoquery_charmodequery_ip_portquery_notify_failquery_numquery_replaced_programquestionsreal_timeremove_charmoderemove_get_charremove_shadowreplaceablerestore_from_stringroll_MdNsend_nullbyteset_promptshufflestore_class_memberstore_variablestring_differenceterminal_colourtest_loadupper_casevariableszonetime