MSRevive/MasterSwordRebirth

Replace custom MS types with STL types

開放

#179 建立於 2023年2月25日

 (7 則留言) (0 個反應) (0 位負責人)C++ (16 個分叉)auto 404
enhancement 🔧good first issuehelp wantedmed priority

倉庫指標

星標
 (20 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

The types that need replacing:

  • msstring - It's a C style fixed string type. Replacing it with std::string isn't advised since it's dynamically allocated. It'll probably be best to make our fix fixed string inherited from std::basic_string or use a library like this that contains a fixed string.
  • msvariant - A variant variable that fits a c string, int, or float
  • msstring_ref - Type defined as a const char*
  • mslist - a linked list list that is used a vector throughout the code as well. Should be replaced with a std::vector or std::list depending on what should be used there.
  • string_i - In debug mode, a normal string. In release mode its created within the engine and released each level
  • msnew - Should probably be replaced with just new.

This should be done after angelscript is embedded.

貢獻者指南