MCPcopy Create free account
hub / github.com/EasyRPG/Player / DrawFace

Method DrawFace

src/window_base.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103// All these functions assume that the input is valid
104
105void 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
114void Window_Base::DrawActorFace(const Game_Actor& actor, int cx, int cy) {
115 DrawFace(actor.GetFaceName(), actor.GetFaceIndex(), cx, cy);

Callers

nothing calls this directly

Calls 4

SetGraphicFileMethod · 0.80
emptyMethod · 0.45
BindMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected