static */
| 86 | } |
| 87 | |
| 88 | /* static */ bool ScriptGoal::SetText(GoalID goal_id, Text *goal) |
| 89 | { |
| 90 | ScriptObjectRef counter(goal); |
| 91 | |
| 92 | EnforcePrecondition(false, IsValidGoal(goal_id)); |
| 93 | EnforceDeityMode(false); |
| 94 | EnforcePrecondition(false, goal != nullptr); |
| 95 | EncodedString text = goal->GetEncodedText(); |
| 96 | EnforcePreconditionEncodedText(false, text); |
| 97 | |
| 98 | return ScriptObject::Command<CMD_SET_GOAL_TEXT>::Do(goal_id, text); |
| 99 | } |
| 100 | |
| 101 | /* static */ bool ScriptGoal::SetProgress(GoalID goal_id, Text *progress) |
| 102 | { |
nothing calls this directly
no test coverage detected