MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Load

Method Load

ogsr_engine/xr_3da/LightAnimLibrary.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23void CLAItem::InitDefault() { Keys[0] = 0x00000000; }
24
25void CLAItem::Load(IReader& F)
26{
27 R_ASSERT(F.find_chunk(CHUNK_ITEM_COMMON));
28 F.r_stringZ(cName);
29 def_fFPS = fFPS = F.r_float();
30 iFrameCount = F.r_u32();
31
32 R_ASSERT(F.find_chunk(CHUNK_ITEM_KEYS));
33
34 const int key_cnt = F.r_u32();
35 for (int i = 0; i < key_cnt; i++)
36 {
37 int key = F.r_u32();
38 Keys[key] = F.r_u32();
39 }
40}
41
42void CLAItem::MoveKey(int from, int to)
43{

Callers

nothing calls this directly

Calls 15

MsgFunction · 0.85
subst_alphaFunction · 0.85
bgr2rgbFunction · 0.85
color_get_AFunction · 0.85
find_chunkMethod · 0.80
file_listMethod · 0.80
r_openMethod · 0.80
r_closeMethod · 0.80
r_stringZMethod · 0.45
r_floatMethod · 0.45
r_u32Method · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected