Lpc:Efun

来自MudWiki
Ivy讨论 | 贡献2021年9月5日 (日) 19:20的版本

Efun是直接在driver中实现的函数,和对象无关,可直接使用,执行速度最快。

目前主要EFUN有以下类别,请注意驱动提供超过340个efun,这里没有列出部分使用概率极低的efun。

数组相关函数(Arrays)

allocatearraypelement_offilter_arraymap_arraymember_arraypointerpshufflesort_arrayunique_array

缓冲区相关函数(Buffers)

allocate_bufferbufferpbuffer_transcodecrc32read_bufferwrite_buffer

调用相关函数(Calls)

call_othercall_outcall_out_walltimecall_stackcatchoriginprevious_objectquery_shadowingremove_call_outshadowthis_objectthrow

结构体(类)相关函数(Class)

assemble_classclassesclasspdisassemble_classfetch_class_membernum_classesstore_class_member

数据库相关函数(DB)

async_db_execdb_closedb_commitdb_connectdb_execdb_fetchdb_rollbackdb_status

在线编辑相关函数(ED)

ed

文件系统相关函数(Filesystem)

async_getdirasync_readasync_writecpfile_sizeget_dirlinkmkdirread_bytesread_filerenamermrmdirstatwrite_byteswrite_file

浮点运算相关函数(Floats)

acosangleasinatanceilcosdistancedotprodexpfloatpfloorloglog2log10normpowroundsinsqrttanto_int

函数相关函数(Functions)

binddeferevaluatefunctionp

常规函数(General)

filtermapnullprestore_variablesave_variablesizeoftypeofundefinedp

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

add_actioncommandcommandsdisable_commandsdisable_wizardenable_commandsenable_wizardexecfind_playerget_charin_editin_inputinput_tointeractivemessagenotify_failprintfquery_encodingquery_host_namequery_idlequery_ip_namequery_ip_numberquery_snoopquery_snoopingreceiveremove_actionremove_interactiveresolvesayset_encodingshoutsnooptelnet_gatelnet_nopthis_interactivethis_playerthis_useruserpuserswritewizardp

内部处理相关函数(Internals)

cache_statsclear_debug_leveldebug_levelsdebug_messagedebug_infodump_file_descriptorsdump_progdumpallobjget_configmalloc_statusmemory_infomud_statusopcprofquery_load_averagerefsrusageset_configset_debug_leveltime_expression

映射相关函数(Mappings)

allocate_mappingfilter_mappingkeysmap_deletemap_mappingmappmatch_pathunique_mappingvalues

MUDLIB相关函数(Mudlib)

author_statsdomain_statsexport_uidfind_livinggeteuidgetuidlivinglivingsquery_privsset_authorset_lightset_living_nameset_privsseteuid

数字相关函数(Numbers)

intprandomto_floatsecure_random

对象相关函数(Objects)

all_inventorychildrenclone_objectclonepdeep_inventorydestructenvironmentfile_namefind_objectfirst_inventoryload_objectmastermove_objectnewnext_inventoryobjectpobjectspresentquery_heart_beatreload_objectrestore_objectsave_objectset_heart_beatset_hidetell_objecttell_roomvirtualp

语法分析相关函数(Parsing)

parse_add_ruleparse_add_synonymparse_dumpparse_initparse_my_rulesparse_refreshparse_removeparse_sentencequery_verb

PCRE 相关函数(PCRE)

pcre_assocpcre_cachepcre_extractpcre_matchpcre_match_allpcre_versionpcre_replacepcre_replace_callback

SOCKET相关函数(Sockets)

socket_acceptsocket_acquiresocket_addresssocket_bindsocket_closesocket_connectsocket_createsocket_errorsocket_listensocket_releasesocket_statussocket_write

字符串相关函数(Strings)

capitalizeclear_bitcryptexplodeexplode_reversiblehashimplodelower_caseoldcryptreg_assocregexprepeat_stringreplace_stringset_bitsha1sprintfsscanfstrcmpstring_decodestring_differencestring_encodestringpstrlenstrsrchstrwidthtest_bittrimltrimrtrim

系统相关函数(System)

all_previous_objectscall_out_infoctimedeep_inherit_listdump_traceerroreval_costfind_call_outflush_messagesfunction_existsinherit_listinheritslocaltimemax_eval_costreclaim_objectsreplace_programreset_eval_costset_eval_limitset_resetshutdownstrftimestrptimetimetrace_endtrace_startuptime

其它(新增)函数(Contrib)

absbase_namecompressedpcopyeventfetch_variablefile_lengthfunction_ownerfunctionsget_garbageheart_beatsis_daylight_savings_timemaxmemory_summaryminnamed_livingsnetwork_statsperf_counter_nspluralizeprogram_infoquery_charmodequery_ip_portquery_notify_failquery_numquery_replaced_programreal_timeremove_charmoderemove_get_charremove_shadowreplaceablerestore_from_stringroll_MdNsend_nullbytestore_variableterminal_colourtest_loadupper_casevariableszonetime

其它缺少文档的函数

act_mxpcompresscompress_filedump_jemallocdump_strallochas_gmcphas_mxphas_zmpid_matrixlookat_rotatenext_bitrequest_term_typerequest_term_sizerotate_xrotate_yrotate_zscalesend_gmcpsend_zmpshallow_inherit_liststart_request_term_typetranslateuncompressuncompress_file