forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimSync.lua
More file actions
32 lines (26 loc) · 1007 Bytes
/
SimSync.lua
File metadata and controls
32 lines (26 loc) · 1007 Bytes
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
# The global sync table is copied to the user layer every time the main and sim threads are
# synchronized on the sim beat (which is like a tick but happens even when the game is paused)
Sync = {}
# UnitData that has been synced. We keep a separate copy of this so when we change
# focus army we can resync the data.
UnitData = {}
function ResetSyncTable()
Sync = {
# A list of camera control operations that we'd like the user layer to perform.
CameraRequests = {},
Sounds = {},
Voice = {},
AIChat = {},
# Table of army indices set to "victory" or "defeat".
# It's the user layer's job to determine if any UI needs to be shown
# for the focus army.
GameResult = {},
# Player to player queries that can affect the Sim
PlayerQueries = {},
QueryResults = {},
# Contain operation data when op is complete
OperationComplete = nil,
UnitData = {},
ReleaseIds = {},
}
end