Download CommonLua/Gossip.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 958 Bytes
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Gossip.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/Gossip.lua
-
curl -L -o Gossip.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Gossip.lua
958 Bytes
| -- 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 |