C# ScriptCore API¶
The ScriptCore library provides the primary API for user scripts in Helios. All user scripts should inherit from ScriptBehaviour.
Core Classes¶
- ScriptBehaviour: Base class for all user scripts, providing lifecycle callbacks and entity access.
- Entity: The primary wrapper for interacting with world objects, components, and physics.
- TransformComponent: API for managing position, rotation, and scale.
Static Helpers¶
- Input: Access keyboard and mouse state.
- Audio: Play sounds and manage audio assets.
- Scene: Runtime scene loading and instantiation.
Namespaces¶
The entire API is contained within the Helios namespace.
using Helios;
using System.Numerics;
public class MyScript : ScriptBehaviour {
public override void OnUpdate(float delta) {
if (IsKeyPressed(70)) { // 'F'
ApplyForce(new Vector3(0, 10, 0));
}
}
}