-
Notifications
You must be signed in to change notification settings - Fork 1
/
meta.lua
52 lines (40 loc) · 983 Bytes
/
meta.lua
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
---@meta
---@class storage
storage = {}
---@class data
---@field extend function
---@field raw table
data = {}
---@class game
---@field players table
---@field set_game_state function
game = {}
---@alias TargetType
---| "entity"
---| "position"
---| "direction"
---@class AmmoType
---@field target_type TargetType
---@class itemPrototype
---@field name? string
---@field type? string
---@field ammo_category table
---@field stack_size? number
---@field fuel_category? string
---@field fuel_value? number
---@field get_ammo_type? function
---@field order? string
itemPrototype = {}
---@class entityPrototype
---@field type? string
---@field indexed_guns? itemPrototype[]
---@field attack_parameters? table
entityPrototype = {}
---@return AmmoType
function itemPrototype.get_ammo_type() end
---@class prototypes
---@field item table<string, itemPrototype>
---@field entity table<string, entityPrototype>
---@class script
script = {}
function script.on_event(event, fn) end