File size: 958 Bytes
b6a38d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
-- NetGossip works only when the player is online
-- NetRecord should be used for important events that we don't want to miss

function ReportShaderCompilation(shader)
	if not Platform.developer then
		local eye, look, type, zoom
		if GetMap() ~= "" then
			eye, look, type, zoom = GetCamera()
		end
		NetGossip("shader", shader, eye, look, type, zoom)
	end
end

function ReportAnimDoubleUpdate(info)
	if not Platform.developer then
		local eye, look, type, zoom
		if GetMap() ~= "" then
			eye, look, type, zoom = GetCamera()
		end
		NetGossip("DoubleUpdate", info, eye, look, type, zoom)
	end
end

function OnMsg.NetGameJoined(game_id, unique_id)
	NetGossip("NetGameJoined", netGameAddress)
end

function OnMsg.NetGameLeft(reason)
	NetGossip("NetGameLeft", netGameAddress, reason)
end

function OnMsg.GameDesynced()
	NetGossip("Desync", netGameAddress)
end

function OnMsg.AchievementUnlocked(achievement)
	NetGossip("AchievementUnlocked", achievement)
end