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

Method Load

engine/Poseidon/World/Entities/Infantry/SoldierOldSimProxy.cpp:1130–1145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130void BlendAnimSelections::Load(Skeleton* skelet, const ParamEntry& cfg)
1131{
1132 Clear();
1133 Realloc(cfg.GetSize() / 2);
1134 for (int i = 0; i < cfg.GetSize() - 1; i += 2)
1135 {
1136 RStringB name = cfg[i];
1137 float factor = cfg[i + 1];
1138 BlendAnimInfo& info = Set(Add());
1139 int index = skelet->FindBone(name);
1140 info.matrixIndex = index;
1141 info.factor = factor;
1142 }
1143 // sort by matrix index
1144 QSort(Data(), Size(), CompBlendAnim);
1145}
1146
1147void BlendAnimSelections::AddOther(const BlendAnimSelections& src, float factor)
1148{

Callers

nothing calls this directly

Calls 7

SetClass · 0.85
AddClass · 0.85
QSortFunction · 0.85
GetValueFunction · 0.85
FindBoneMethod · 0.80
GetSizeMethod · 0.45
FindEntryMethod · 0.45

Tested by

no test coverage detected