Package io.github.protasm.jvmud.compiler.efun


package io.github.protasm.jvmud.compiler.efun
LPC-facing engine function contracts.

An efun is a Java implementation of an LPC-callable engine operation. Mudlib code calls the function by name; semantic analysis checks the call against an EfunSignature; generated bytecode resolves the function through the active RuntimeContext; and the resolved Efun performs the operation against the current runtime state.

This package contains only the small contract surface:

  • Efun is the executable function body plus signature.
  • EfunSignature records the LPC-facing name, return type, and parameter types for one overload.
  • EfunRegistry stores runtime-scoped efun implementations and resolves them by name and exact arity.

The built-in JVMud efuns are defined in CoreEfuns. Compatibility mudlibs can expose familiar LPC driver names by wrapping or delegating to those JVMud-native operations, while keeping the engine-facing contract centered on entities, command dispatch, scheduling, persistence, session input, and host integration.