Restructured the source code in the Playdate bindings target.

This commit is contained in:
2026-07-25 12:40:14 +02:00
parent 2e7ee12ec1
commit b435a6e8bd
106 changed files with 3754 additions and 3746 deletions
@@ -0,0 +1,8 @@
extension Lua {
/// A constant published on a registered class.
public enum ClassValue {
case int(name: String, value: UInt32)
case float(name: String, value: Float)
case string(name: String, value: String)
}
}
@@ -0,0 +1,18 @@
internal import CPlaydate
extension Lua {
/// The type of a value on the Lua stack.
public enum Kind: UInt32, Sendable {
case `nil` = 0
case bool = 1
case int = 2
case float = 3
case string = 4
case table = 5
case function = 6
case thread = 7
case object = 8
init(_ type: LuaType) { self = Kind(rawValue: UInt32(type.rawValue)) ?? .nil }
}
}