MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetValue

Function GetValue

engine/Poseidon/IO/ParamFileExt.cpp:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool GetValue(SoundPars& pars, const ParamEntry& entry)
71{
72 if (entry.GetSize() < 3)
73 {
74 const static SoundPars nil = {};
75 pars = nil;
76 return false;
77 }
78 pars.name = GetSoundName(entry[0]);
79 pars.vol = entry[1].GetFloat();
80 pars.freq = entry[2].GetFloat();
81 pars.freqRnd = 0;
82 pars.volRnd = 0.05;
83 return true;
84}
85
86bool GetValue(SoundPars& pars, const IParamArrayValue& entry)
87{

Callers 15

InitEnvSoundsFunction · 0.85
LoadMethod · 0.85
DestroyMethod · 0.85
LoadMethod · 0.85
InitMethod · 0.85
CutSceneFunction · 0.85
InitShapeMethod · 0.85
SeaGullMethod · 0.85
SoundMethod · 0.85
InitShapeMethod · 0.85
LoadMethod · 0.85
MoveCloudsMethod · 0.85

Calls 6

GetSoundNameFunction · 0.85
ColorClass · 0.85
PackedColorClass · 0.50
GetSizeMethod · 0.45
GetFloatMethod · 0.45
GetItemCountMethod · 0.45

Tested by

no test coverage detected