package
0.0.0-20241228112321-7551c244121d
Repository: https://github.com/opennox/libs.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
ChangeGold changes the amount of gold by a given amount.
No description provided by the author
GetGame loads Game from the context.
GetVMSymbol is a generic helper for VM.GetSymbol.
GetVMSymbolPtr is a generic helper for VM.GetSymbol.
HasItem is a helper that checks if inventory contains a given item.
HitMeleePos is a helper to make an objects melee attack another object's location.
HitRangedPos is a helper to make an objects ranged attack another object's location.
IsAllUnits checks if all objects in the list are of type Unit.
LookAtPos is a helper to make an objects look at another object's location.
MoveToPos is a helper to make an objects walk to another object's location.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PushToPos is a helper to push objects to another object's location.
RegisterVM registers a new script VM runtime.
Runtime returns a global runtime instance.
SetPos is a helper to instantly move objects to another object's location.
SetRuntime sets a global runtime instance.
No description provided by the author
Toggle is a helper to toggle the object's enabled state.
ToggleLock is a helper to toggle the object's lock state.
VMRuntimes returns all registered VM runtimes.
WalkToPos is a helper to make an objects walk to another object's location.
WithGame stores Game reference in the context.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
BaseGame implements Game, but panics on all the methods.
BaseObject implements Object, but panics on all the methods.
BasePlayer implements Player, but panics on all the methods.
BaseWall implements Wall, but panics on all the methods.
BaseWaypoint implements Waypoint, but panics on all the methods.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VMRuntime is a type for registering new script runtime implementations.
No description provided by the author
No description provided by the author
# Interfaces
Breakable is an interface for objects that has health and can be broken.
Chatty is an interface for objects that can say stuff.
Deleter is an interface for objects that can be deleted.
Destroyable is an interface for objects can be broken, destroyed or killed.
Enabler is an interface for objects that can be enabled or disabled.
EnableSetter is an interface for objects that can be enabled and disabled.
No description provided by the author
GridPositioner is an interface for objects that has position on the map.
Identifiable is an interface for objects with unique string ID.
Inventory is an interface for objects that can contain items.
Item is an interface for generic items.
ItemType is an interface that defines an item type.
Living is an interface for objects that are alive.
Lockable is an interface for objects that can be locked.
No description provided by the author
Mobile is an interface for objects that can move around on their own.
Named is an interface for objects with a human-readable name.
No description provided by the author
No description provided by the author
ObjectWrapper is an interface for types that wrap Object.
Offensive is an interface for objects that can attack or defend.
OffensiveGroup is an interface for a group of objects that can attack or defend.
Ownable is an interface for objects that has and can be assigned an owner.
Owned is an interface for objects with an owner.
OwnerSetter is an interface for objects that can be assigned an owner.
Physical is an interface for objects that are affected by physics.
No description provided by the author
Positionable is a combined interface for objects for which you can get and set the position.
Positioner is an interface for objects that has position on the map.
PositionSetter is an interface for objects that can be moved.
Printer is an interface for printing messages.
Pushable is an interface for objects that can be pushed.
Raisable is an interface for positionable objects that can also be raised or lowered by Z axis.
Toggler is an interface for objects that can be toggled.
No description provided by the author
No description provided by the author
VM is an interface for a virtual machine running the script engine.
No description provided by the author
No description provided by the author
ZPositioner is an interface for objects that has Z position.
# Type aliases
No description provided by the author
EventType is a type of script events.
No description provided by the author