eud

package module
v171.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package eud provides a compatibility layer for Panic's EUD scripts.

This package reimplements APIs from the Panic's EUD project: https://gitlab.com/happysoft3/eud-maps-project/-/tree/master/eud_project/libs.

OpenNox cannot support direct memory access, thus any memory manipulation APIs are unavailable. Stubs for these APIs may still be present in the library. Calling them will cause a panic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ABS

func ABS(v int) int

func AbilityDbSetExplanation

func AbilityDbSetExplanation(ability int, desc string)

func CheckGameKorLanguage

func CheckGameKorLanguage() bool

func CheckGameRusLanguage

func CheckGameRusLanguage() bool

func CsfEditSectionString

func CsfEditSectionString(csfId int, desc string)

func FABS

func FABS(v float32) float32

func GameDataUtilSetValueByIndex

func GameDataUtilSetValueByIndex(keyId string, index int, setvalue float32) bool

func GetMemory deprecated

func GetMemory(addr int) int

GetMemory reads value from memory at a given address.

Deprecated: OpenNox cannot support direct memory access.

func IsMissileUnit

func IsMissileUnit(unit ns3.ObjectID) bool

IsMissileUnit checks if unit is a missile.

func IsMonsterUnit

func IsMonsterUnit(unit ns3.ObjectID) bool

IsMonsterUnit checks if unit as a monster.

func IsPlayerUnit

func IsPlayerUnit(unit ns3.ObjectID) bool

IsPlayerUnit checks if unit as a player.

func MathDegreeToDir

func MathDegreeToDir(degree int) int

func MathDirToDegree

func MathDirToDegree(direction int) int

func PlaySoundAround

func PlaySoundAround(sUnit ns3.ObjectID, sNumber int)

func SetMemory deprecated

func SetMemory(addr int, value int)

SetMemory writes value to memory at a given address.

Deprecated: OpenNox cannot support direct memory access.

func TellStoryClientside

func TellStoryClientside(str string, unitname string)

func ThingDbEditThingDescription

func ThingDbEditThingDescription(thingId int, desc string)

func ThingDbEditThingName

func ThingDbEditThingName(thingId int, desc string)

func UniChatMessage

func UniChatMessage(sUnit ns3.ObjectID, sMsg string, duration int)

func UniPrint

func UniPrint(sUnit ns3.ObjectID, sMsg string)

func UniPrintToAll

func UniPrintToAll(sMsg string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL