| 103 | // All these functions assume that the input is valid |
| 104 | |
| 105 | void Window_Base::DrawFace(std::string_view face_name, int face_index, int cx, int cy, bool flip) { |
| 106 | if (face_name.empty()) { return; } |
| 107 | |
| 108 | FileRequestAsync* request = AsyncHandler::RequestFile("FaceSet", face_name); |
| 109 | request->SetGraphicFile(true); |
| 110 | face_request_ids.push_back(request->Bind(&Window_Base::OnFaceReady, this, face_index, cx, cy, flip)); |
| 111 | request->Start(); |
| 112 | } |
| 113 | |
| 114 | void Window_Base::DrawActorFace(const Game_Actor& actor, int cx, int cy) { |
| 115 | DrawFace(actor.GetFaceName(), actor.GetFaceIndex(), cx, cy); |
nothing calls this directly
no test coverage detected