Restructured the source code in the Playdate bindings target.
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user