| 453 | } |
| 454 | |
| 455 | void AIUnit::Load(const ParamEntry& cls) |
| 456 | { |
| 457 | Person* soldier = GetPerson(); |
| 458 | if (soldier) |
| 459 | { |
| 460 | AIUnitInfo& info = soldier->GetInfo(); |
| 461 | info._identityContext = cls.GetContext(); |
| 462 | info._name = DecodeLegacyTextToRString(cls >> "name", GLanguage); |
| 463 | info._face = cls >> "face"; |
| 464 | info._glasses = cls >> "glasses"; |
| 465 | soldier->SetFace(info._face); |
| 466 | soldier->SetGlasses(info._glasses); |
| 467 | info._speaker = cls >> "speaker"; |
| 468 | info._pitch = cls >> "pitch"; |
| 469 | SetSpeaker(info._speaker, info._pitch); |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | template <> |
| 474 | const EnumName* Foundation::GetEnumNames(AIUnit::ResourceState dummy) |
no test coverage detected