mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
Add draw piece function
This commit is contained in:
@@ -190,4 +190,12 @@ int GameSession::getOldComponentID(int row, int col) {
|
||||
auto it = m_oldPieceIDtoComponentID.find(pieceID);
|
||||
//for (auto [pieceID, y] : m_oldPieceIDtoComponentID)
|
||||
return (it != m_oldPieceIDtoComponentID.end()) ? it->second : -1;
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<std::pair<int, int>> GameSession::getSelectedPiece() const {
|
||||
return m_seletedPiece;
|
||||
}
|
||||
|
||||
const Board* GameSession::getBoard() const {
|
||||
return m_board.get();
|
||||
}
|
||||
Reference in New Issue
Block a user