MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DemoWritePersistantHUDMessage

Function DemoWritePersistantHUDMessage

Descent3/demofile.cpp:1709–1719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1707}
1708
1709void DemoWritePersistantHUDMessage(ddgr_color color, int x, int y, float time, int flags, int sound_index, char *msg) {
1710 cf_WriteByte(Demo_cfp, DT_PERSISTANT_HUD);
1711 cf_WriteInt(Demo_cfp, (int)color);
1712 cf_WriteInt(Demo_cfp, (int)x);
1713 cf_WriteInt(Demo_cfp, (int)y);
1714 cf_WriteFloat(Demo_cfp, time);
1715 cf_WriteInt(Demo_cfp, flags);
1716 cf_WriteInt(Demo_cfp, sound_index);
1717 cf_WriteShort(Demo_cfp, strlen(msg) + 1);
1718 cf_WriteBytes((const uint8_t *)msg, strlen(msg) + 1, Demo_cfp);
1719}
1720
1721void DemoReadPersistantHUDMessage() {
1722 ddgr_color color;

Callers 3

msafe_CallFunctionFunction · 0.85
GoalCompleteMethod · 0.85

Calls 5

cf_WriteByteFunction · 0.85
cf_WriteIntFunction · 0.85
cf_WriteFloatFunction · 0.85
cf_WriteShortFunction · 0.85
cf_WriteBytesFunction · 0.85

Tested by

no test coverage detected