Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are applies, lfuns, sefuns and efuns?

applies efuns lfuns sefuns
0
Posted

What are applies, lfuns, sefuns and efuns?

0

Sefuns and efuns are functions available to all objects on the mud. Any object may need to know what time() it is, so rather than have a time() function in every file that needs it, which could be many, there is a time() function built into the game that any object can use. An efun is built into the driver, so there is no LPC code to look at. A sefun is a simulated efun, coded in LPC. Sefuns are kept in /secure/sefun. Lfuns are functions specific to library objects. A shirt, for example, has functions that a sword may not need, so the LIB_ARMOR and LIB_WEAPON files contain their own functions, not shared by other files (it’s more complicated than this, but that’s the idea). These functions are library functions, or lfuns. Typically they are found in the objects defined by the files in /lib. An apply is a function that is called by the driver. Some examples of applies are create() and reset(). Although you can call many applies normally from within the mud, the point of them is to have

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123