Skip to content

feat(CAPI): ✨ add cmdline#71

Merged
wihn2021 merged 2 commits into
eesast:devfrom
DragonAura:dev
Jan 5, 2023
Merged

feat(CAPI): ✨ add cmdline#71
wihn2021 merged 2 commits into
eesast:devfrom
DragonAura:dev

Conversation

@DragonAura

Copy link
Copy Markdown
Collaborator

Descriptions of this pull request:

No additional discription.

@wihn2021 wihn2021 merged commit 2ed5300 into eesast:dev Jan 5, 2023
Comment thread CAPI/API/src/main.cpp
{
return THUAI6Main(CreateAI);
return THUAI6Main(argc, argv, CreateAI);
} No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

行尾(

  }
+ 

Comment thread CAPI/API/src/logic.cpp
bufferState->humans.push_back(Proto2THUAI6::Protobuf2THUAI6Human(item));
}
for (auto itr = message.butcher_message().begin(); itr != message.butcher_message().end(); itr++)
for (auto item : message.butcher_message())

@Timothy-Liuxf Timothy-Liuxf Jan 5, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto 不会自动推导出引用

- for (auto item : message.human_message())
+ for (const auto& item : message.human_message())

Comment thread CAPI/API/src/logic.cpp
if (playerType == THUAI6::PlayerType::HumanPlayer)
{
for (auto itr = message.human_message().begin(); itr != message.human_message().end(); itr++)
for (auto item : message.human_message())

@Timothy-Liuxf Timothy-Liuxf Jan 5, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

- for (auto item : message.human_message())
+ for (const auto& item : message.human_message())

@Timothy-Liuxf Timothy-Liuxf linked an issue Jan 5, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

About pull request #71

3 participants