forked from StrafesNET/strafe-client
17 lines
409 B
Lua
17 lines
409 B
Lua
--A type map for the luau analyzer
|
|
type f64 = number
|
|
|
|
type Vector2 = {x: f64, y: f64}
|
|
type Vector3 = Vector2 & {z: f64}
|
|
type Vector4 = Vector3 & {w: f64}
|
|
|
|
type fn_Vector3 = (x: f64, y: f64, z: f64) -> Vector3
|
|
local Vector3: fn_Vector3 = Vector3
|
|
|
|
type fn_Vector3add = (v1: Vector3, v2: Vector3) -> Vector3
|
|
local Vector3add: fn_Vector3add = Vector3add
|
|
|
|
return {
|
|
Vector3 = Vector3,
|
|
Vector3add = Vector3add
|
|
} |