Libsm64Library

interface Libsm64Library : Library(source)

Bridges low-level libsm64/native behavior into the mod runtime. Use this page as a quick orientation point before editing Libsm64Library.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun sm64_fadeout_background_music(arg0: Short, fadeOut: Short)
Link copied to clipboard
abstract fun sm64_get_anim_info(mCharId: Int, rot: Pointer): AnimInfo
Link copied to clipboard
abstract fun sm64_get_version(): Int
Link copied to clipboard
abstract fun sm64_getSoundRequests(SM64SoundPtr1: Pointer): Byte
Link copied to clipboard
abstract fun sm64_global_init(rom: ByteBuffer, outTexture: ByteBuffer, debugPrintFunction: SM64DebugPrintFunctionPtr?)
Link copied to clipboard
abstract fun sm64_global_init_audioBin(rom: ByteBuffer, audioData: ByteBuffer, outTexture: ByteBuffer, debugPrintFunction: SM64DebugPrintFunctionPtr?)
Link copied to clipboard
abstract fun sm64_global_terminate()
Link copied to clipboard
abstract fun sm64_mChar_animTick(mCharId: Int, stateFlags: Int, info: AnimInfo, outBuffers: SM64MCharGeometryBuffers, model: Int, rotPointer: Pointer)
Link copied to clipboard
abstract fun sm64_mChar_apply_damage(mCharId: Int, damage: Int, interactionSubtype: Int, xSrc: Float, ySrc: Float, zSrc: Float)
Link copied to clipboard
abstract fun sm64_mChar_create(x: Float, y: Float, z: Float): Int
Link copied to clipboard
abstract fun sm64_mChar_delete(mCharId: Int)
Link copied to clipboard
abstract fun sm64_mChar_heal(mCharId: Int, healCounter: Byte)
Link copied to clipboard
abstract fun sm64_mChar_set_action(mCharId: Int, actionId: Int)
Link copied to clipboard
abstract fun sm64_mChar_set_action_state(mCharId: Int, actionId: Short)
Link copied to clipboard
abstract fun sm64_mChar_set_angle(mCharId: Int, angle: Float)
Link copied to clipboard
abstract fun sm64_mChar_set_gas_level(mCharId: Int, yLevel: Int)
Link copied to clipboard
abstract fun sm64_mChar_set_state(mCharId: Int, capType: Int)
Link copied to clipboard
abstract fun sm64_mChar_set_velocity(mCharId: Int, x: Float, y: Float, z: Float)
Link copied to clipboard
abstract fun sm64_mChar_set_water_level(mCharId: Int, yLevel: Int)
Link copied to clipboard
abstract fun sm64_mChar_teleport(mCharId: Int, x: Float, y: Float, z: Float)
Link copied to clipboard
abstract fun sm64_mChar_tick(mCharId: Int, inputs: SM64MCharInputs, outState: SM64MCharState, outBuffers: SM64MCharGeometryBuffers)
Link copied to clipboard
abstract fun sm64_play_music(player: Char, seqArgs: Short, fadeTimer: Short)
Link copied to clipboard
abstract fun sm64_play_sound_global(soundBits: Int)
Link copied to clipboard
abstract fun sm64_seq_player_play_sequence(player: Char, seqId: Char, arg2: Short)
Link copied to clipboard
abstract fun sm64_set_volume(volume: Float)
Link copied to clipboard
abstract fun sm64_static_surfaces_load(surfaceArray: Array<SM64Surface>, numSurfaces: Int)
Link copied to clipboard
abstract fun sm64_stop_background_music(seqId: Short)
Link copied to clipboard
abstract fun sm64_surface_object_create(surfaceObject: SM64SurfaceObject): Int
Link copied to clipboard
abstract fun sm64_surface_object_delete(objectId: Int)
Link copied to clipboard
abstract fun sm64_surface_object_move(objectId: Int, transform: SM64ObjectTransform)