-
selectables
Type: var.[2048 x @selectable]
Each item in the ECS corresponds to one selectable of this array.
var sel: pointerTo app.selectables[entityId];
-
boxPositions
Position storage for boxes (containers).
app.boxPositions[i].x +: ((app.boxVelocities[i].x => f64) * dt) => f32;
-
boxVelocities
Storage for the velocities of boxes.
app.boxVelocities[@self.componentId]: value;
-
box2ds
Type: var.[2048 x @box2d]
The data of the 2d boxes is stored in this static array.
var bgColor: app.box2ds[0].bgColor;
-
boxCount
The amount of 2d boxes that are currently in use.
vertexCount: app.boxCount * 6;
-
imgPositions
Position storage for images.
app.imgPositions[@self.componentId].x: value;
-
imgVelocities
The velocities of the images are stored in this static array.
app.imgPositions[i].x +: ((app.imgVelocities[i].x => f64) * dt) => f32;
-
imgClips
Type: var.[2048 x @pos2d]
Storage for clipping data of @sprite objects.
var clip: app.imgClips[i];
-
imgs
Image data such as width and height are stored in this static array.
app.imgs[imgId].textureWidth: width;
-
imgCount
The amount of images that are currently in use.
var.i64 bufferSize: (sizeOf(type @vertex) * 6 * app.imgCount);
-
shapes
Type: var.[2048 x @shapeData]
Storage for vector shape data.
var shape: pointerTo app.shapes[i];
-
shapesCount
The amount of vector shapes that are currently in use.
for (var.i64 i:0; i<app.shapesCount; i+:1) {
//etc
}
-
colliderIds
-
colliders
Type: var.[32 x @collider]
-
names
Storage for names that have been given a name id.
@self.names[currentCount]: name;
-
nameCount
The amount of names that are currently in use.
@self.nameCount +: 1;
-
typeCount
The amount of types of objects that are currently in use.
var currentCount: @self.typeCount;
-
resourceIds
Storage for the ids of resources.
var resId: app.resourceIds[id];
-
resources
Type: var.[2048 x @resource]
Data of resources are stored in this static array.
return pointerTo app.resources[resId];
-
resourceCount
The amount of resources that are currently in use.
@self.resourceIds[@self.resourceCount]: id;
-
actions
Type: var.[2048 x @action]
Action data is stored in this static array.
var action: app.actions[i];
-
actionCount
The amount of actions that are currently in use.
var currentCount: @self.actionCount;