This repository was archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtypes.d.lua
More file actions
56 lines (55 loc) · 1.38 KB
/
types.d.lua
File metadata and controls
56 lines (55 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
-- Utility Types
type PortLike = number | {GUID: string}
type Iterator<K, V> = () -> (K, V)
-- Microcontroller Types
type EventConnection = {
Unbind: (self: EventConnection) -> ()
}
type ScreenObject = {
ChangeProperties: (self: ScreenObject, properties: {[string]: any}) -> (),
AddChild: (self: ScreenObject, child: ScreenObject) -> (),
Destroy: (self: ScreenObject) -> ()
}
type Cursor = {
X: number,
Y: number,
Player: string,
Pressed: boolean
}
type RegionInfo = {
Type: "Planet",
SubType: nil,
Name: string,
TidallyLocked: boolean,
HasRings: boolean,
BeaconCount: number
} | {
Type: "Planet",
SubType: "Desert" | "Terra" | "EarthLike" | "Ocean" | "Tundra" | "Forest" | "Exotic" | "Barren" | "Gas",
Name: string,
Color: Color3,
Resources: { string },
Gravity: number,
HasAtmosphere: boolean,
TidallyLocked: boolean,
HasRings: boolean,
BeaconCount: number
} | {
Type: "BlackHole",
Name: string,
Size: number,
BeaconCount: number
} | {
Type: "Star",
SubType: "Red" | "Orange" | "Yellow" | "Blue" | "Neutron",
Name: string,
Size: number,
BeaconCount: number
}
type RegionLog = {
{
Event: "HyperDrive" | "Aliens" | "Spawned" | "Death" | "ExitRegion" | "Poison" | "Irradiated" | "Suffocating" | "Freezing" | "Melting",
Desc: string,
TimeAgo: number
}
}