-
Notifications
You must be signed in to change notification settings - Fork 0
vector
ChristophLHR edited this page Jul 4, 2024
·
2 revisions
CC comes with a Vector Type, which needs to be emulated to test programms utilizing it. To use it in a testing env. like busted:
-- this needs to be GLOBAL, to take effect in the script you are trying to test
-- in CC, "vector" is a global name
vector = require('.vector.lua')
local vectorOne = vector.new(1, 2, 3)
--...
The script should then handle the vector just like the CC Documentation describes.
- a script simulating lua "Classes & instances"
- SCM, which will load the script as needed
- or SimpleLuaClasses from lua-users - named: ccClass.lua in ./libs folder
All those Suits are only created to fulfill our needs. If there are any features missing, feel free to inform us.