Skip to content

feat: print with candidate name #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 29, 2023
Merged

feat: print with candidate name #33

merged 2 commits into from
Mar 29, 2023

Conversation

kdxcxs
Copy link
Collaborator

@kdxcxs kdxcxs commented Mar 29, 2023

feat: print with [Sandbox.candidate_name] banner to support checking specified hero's log.

@kdxcxs kdxcxs merged commit b91ba94 into master Mar 29, 2023
end

function Sandbox:LoadActionScript(user_script)
return self:LoadScript(user_script, 500000, {})
function Sandbox:LoadActionScript(user_script, candidate_name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

LoadActionScript is called in bot_script_env.lua without candidate_name.

local hero = self.heros[candidate_num]
if hero then
local script = bot_scripts[candidate_num]
BotScriptEnv:AttachScriptOnUnit(hero, script)
BotScriptEnv:AttachScriptOnUnit(hero, script, candidate_name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The function AttachScriptOnUnit prototype does not have an argument candidcate_name.

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.

2 participants