^^^
Basically what I am asking is how can I specify
function love.load()
ListOfRectangles = {}
end
local function createRect()
local rect = {}
rect.x = 100
rect.y = 100
rect.width = 70
rect.height = 90
rect.speed = 100
that ListOfRectangles is an array that contains 5 number elements with their fields? Like this in python:
from pydantic import BaseModel
from typing import List
class Rectangle(BaseModel):
x: int
y: int
width: int
height: int
speed: int
ListOfRectangles: List[Rectangle] = []
thanks for any help.