mathAI icon indicating copy to clipboard operation
mathAI copied to clipboard

math

Open aEmu123 opened this issue 1 year ago • 0 comments

aEmu123 avatar Jun 02 '24 08:06 aEmu123

oops,mac版炸了,这下不得不等修正了

Manicsteiner avatar Jun 24 '24 10:06 Manicsteiner

?怎么 mac 的 ci 还不过了

SherkeyXD avatar Jul 07 '24 18:07 SherkeyXD

lambda 多了个参数没删干净,MSVC觉得没问题导致的()

Manicsteiner avatar Jul 08 '24 03:07 Manicsteiner

别 toString 啊( 看看 C++ 那边能不能改

SherkeyXD avatar Jul 08 '24 05:07 SherkeyXD

别 toString 啊( 看看 C++ 那边能不能改

RoguelikeCustomStartTaskPlugin 那里,想用 unordered_map m_customs 把参数传进来只能和其他参数一样用string类型,在c++这边也得转换

或者就要在 RoguelikeCustomStartTaskPlugin 加一个丑陋的重载或单开个方法,单独开一个变量给它传过去

    public:
        virtual bool verify(AsstMsg msg, const json::value& details) const override;
        void set_custom(RoguelikeCustomType type, std::string custom);
        void set_custom(RoguelikeCustomType type, int custom);

    private:
        std::unordered_map<RoguelikeCustomType, std::string> m_customs;
        int m_usesupportminlevel;
        mutable RoguelikeCustomType m_waiting_to_run = RoguelikeCustomType::None;

Manicsteiner avatar Jul 08 '24 09:07 Manicsteiner

那为什么其他的参数 C# 这边没有 toString)

SherkeyXD avatar Jul 08 '24 09:07 SherkeyXD

那为什么其他的参数 C# 这边没有 toString)

一起传的助战相关的两个参数都是boolean,在c++接收时直接判断 True/False 变成 "1"/"0" 了,剩下的本来就是string

m_custom_start_plugin_ptr->set_custom(RoguelikeCustomType::UseSupport, params.get("use_support", false) ? "1" : "0"); // 开局干员是否为助战干员

Manicsteiner avatar Jul 08 '24 10:07 Manicsteiner