0840 some remake and translate update
DR sdk 0.8.4.0
Fix
language
- 去除了
dr_game
相关的键值- 现在这些键值已经在
dr_game
自己的语言文件中了 - Removed the key values related to
dr_game
- Now these key values are in the language file of
dr_game
itself
- Now these key values are in the language file of
- 现在这些键值已经在
- 将 mod 加载部分的键值独立出来
- 这样调用起来更方便一些
- Separate the key values of the mod loading part
- This makes it easier to call
修改
utils.translate
Tr
- 现在支持自定义语言文件的路径了
lang_path
- 用于给 mod 加载自己的语言文件
- 现在支持自定义语言文件的路径了
- 现在
logging
的配置转移到__init__
中了- 保证调用
logging
的时候可以正常使用 - Now the configuration of
logging
is moved to__init__
- Ensure that
logging
can be used normally when called
- Ensure that
- 保证调用
- 现在输入命令之后不会输出一个
True
/False
了- (实际上是用来检测命令是不是用
/
开头的) - Now, the command will not output a
True
/False
- (Actually used to detect whether the command starts with
/
)
- (Actually used to detect whether the command starts with
- (实际上是用来检测命令是不是用
CommandText
find
- 现在会先用
str.startswith
检测是否以要求的字符串开头- 实际上就是丐版
re.match
- 实际上就是丐版
- 并且会在匹配上之后 如果匹配内容后面第一个字符是空格 则会截取掉空格
- Now, it will first use
str.startswith
to detect whether it starts with the required string- Actually a poor version of
re.match
- Actually a poor version of
- And after matching, if the first character after the matching content is a space, the space will be intercepted
- 现在会先用
What's Changed
- first part for phy simluation by @shenjackyuanjie in #34
Full Changelog: 0.8.3.0...0.8.4.0