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

Function DemoReadPersistantHUDMessage

Descent3/demofile.cpp:1721–1741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1719}
1720
1721void DemoReadPersistantHUDMessage() {
1722 ddgr_color color;
1723 int x;
1724 int y;
1725 float time;
1726 int flags;
1727 int sound_index;
1728 char *fmt;
1729
1730 color = (uint32_t)cf_ReadInt(Demo_cfp);
1731 x = cf_ReadInt(Demo_cfp);
1732 y = cf_ReadInt(Demo_cfp);
1733 time = cf_ReadFloat(Demo_cfp);
1734 flags = cf_ReadInt(Demo_cfp);
1735 sound_index = cf_ReadInt(Demo_cfp);
1736 int msglen = cf_ReadShort(Demo_cfp);
1737 fmt = (char *)mem_malloc(msglen);
1738 cf_ReadBytes((uint8_t *)fmt, msglen, Demo_cfp);
1739 AddPersistentHUDMessage(color, x, y, time, flags, sound_index, fmt);
1740 mem_free(fmt);
1741}
1742
1743void DemoWriteSetObjDead(object *obj) {
1744 cf_WriteByte(Demo_cfp, DT_SETOBJDEAD);

Callers 1

DemoFrameFunction · 0.85

Calls 5

cf_ReadIntFunction · 0.85
cf_ReadFloatFunction · 0.85
cf_ReadShortFunction · 0.85
cf_ReadBytesFunction · 0.85
AddPersistentHUDMessageFunction · 0.85

Tested by

no test coverage detected