fix #154: 优化代码结构

This commit is contained in:
源文雨
2022-03-20 14:20:37 +08:00
parent cdf844be52
commit 206a38efab
6 changed files with 259 additions and 349 deletions

16
plugin/genshin/data.go Normal file
View File

@@ -0,0 +1,16 @@
package genshin
type storage uint64
func (s *storage) is5starsmode() bool {
return *s&1 == 1
}
func (s *storage) setmode(is5stars bool) bool {
if is5stars {
*s |= 1
} else {
*s &= 0xffffffff_fffffffe
}
return is5stars
}