Skip to content

Commit 7843be4

Browse files
committed
Add default impl for Bot::getOutput
1 parent 192607b commit 7843be4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

library/Bot.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ Bot::Bot (std::unordered_set<unsigned> indices_, unsigned team_, std::string nam
77
{
88
}
99

10+
rlbot::flat::ControllerState Bot::getOutput (unsigned const index_) noexcept
11+
{
12+
return outputs[index_];
13+
}
14+
1015
void Bot::matchComm (rlbot::flat::MatchComm const *const matchComm_) noexcept
1116
{
1217
(void)matchComm_;

library/include/rlbot/Bot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class RLBotCPP_API Bot
4848
/// @brief Get output from bot
4949
/// The bot manager will call this function after update()
5050
/// @param index_ Index into gamePacket->players ()
51-
virtual rlbot::flat::ControllerState getOutput (unsigned index_) noexcept = 0;
51+
virtual rlbot::flat::ControllerState getOutput (unsigned index_) noexcept;
5252

5353
/// @brief Called when match comms are received for this bot
5454
/// @param matchComm_ Match comm

0 commit comments

Comments
 (0)