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

Function PoolAddWeapon

engine/Poseidon/UI/OptionsUI.cpp:1262–1288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260
1261void EmptyDeadIdentities()
1262{
1263 MissionHistory* mh = GetGCampaignHistory().CurrentMission();
1264 if (mh)
1265 {
1266 mh->dead.Clear();
1267 }
1268}
1269
1270void AddDeadIdentity(RString identity)
1271{
1272 MissionHistory* mh = GetGCampaignHistory().CurrentMission();
1273 if (mh)
1274 {
1275 mh->dead.Add(identity);
1276 }
1277}
1278
1279} // namespace Poseidon
1280Object* GetObject(GameValuePar oper);
1281namespace Poseidon
1282{
1283
1284GameValue PoolAddWeapon(const GameState* state, GameValuePar oper1)
1285{
1286 const GameArrayType& array = oper1;
1287 if (array.Size() != 2 || array[0].GetType() != GameString || array[1].GetType() != GameScalar)
1288 {
1289 return GameValue();
1290 }
1291

Callers

nothing calls this directly

Calls 5

AddWeaponsMethod · 0.80
GameValueClass · 0.50
toIntFunction · 0.50
SizeMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected