I’ve got a good basis for the Engine integration library for the ObSL Scripting Language.
In the attached video, I’m changing the player’s size using a ping-pong function (?forgot the name…), fully through an ObSL script (ScriptComponent) attached to the “Player” entity.
The language now has support for the following through the EngineLib:
Entity Objects
FindGetNameSetNameGetComponent
Components
Transform
-
SetPosition -
SetRotation -
SetScale -
GetPosition -
GetRotation -
GetScale(uses ObSL arrays)
Point Light
-
SetColor(Vec3) SetIntensitySetRadius
MovementComponent
GetIsMovingSetIsMovingSetTimePerStep
MapStateComponent
GetHasSelectionGetSelectedHexGetPathToHex
DirectionalTextureComponent
SetIndexGetIndex
PlayerInputComponent is still w.i.p.
Tag Components currently don’t have any methods since they are only used as tags.
Planned
I’m planning to keep expanding the EngineLib api with more methods, such as:
Has(component)AddComponentRemoveComponent(name or ref)Destroy(EntityID)GetEntityID(entity object ref)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.