| 618 | } |
| 619 | |
| 620 | std::string Level::GetPCScript(const MovementObject* object) { |
| 621 | if (object) { |
| 622 | if (!object->GetPCObjectScript().empty()) { |
| 623 | return object->GetPCObjectScript(); |
| 624 | } else if (!pc_script_.empty()) { |
| 625 | return pc_script_; |
| 626 | } else { |
| 627 | return "playercontrol.as"; |
| 628 | } |
| 629 | } else { |
| 630 | return pc_script_.empty() ? DEFAULT_PLAYER_SCRIPT : pc_script_; |
| 631 | } |
| 632 | } |
| 633 | |
| 634 | std::string Level::GetNPCScript(const MovementObject* object) { |
| 635 | if (object) { |
no test coverage detected