Categorygithub.com/CuteReimu/threp
modulepackage
1.0.1
Repository: https://github.com/cutereimu/threp.git
Documentation: pkg.go.dev

# README

threp

解析东方Project的replay文件的Go语言版本

这个仓库是在score.royalflare.net即将关站前夕,为纪念它而写的。现将该网站上开源的python解析replay文件的代码转化为Go语言版本。

安装方法

go get github.com/CuteReimu/threp

使用方法

package main

import (
	"fmt"
	"github.com/CuteReimu/threp"
	"os"
)

func main() {
	f, _ := os.Open(`th12_ud0001.rpy`)
	defer f.Close()
	result, _ := threp.DecodeNewReplay(f)
	fmt.Println(result.String())
}

函数说明

  • DecodeTh6ReplayDecodeTh7ReplayDecodeTh8Replay分别用来解析th6、th7、th8三作的rpy文件。
  • DecodeNewReplay用来解析th95及以后各作的rpy文件
  • DecodeReplay用来解析任意一作的rpy文件,返回RepInfo接口

进度

  • 东方红魔乡
  • 东方妖妖梦
  • 东方永夜抄
  • 东方文花帖
  • 东方风神录
  • 东方地灵殿
  • 东方星莲船
  • 东方文花帖DS
  • 妖精大战争
  • 东方神灵庙
  • 东方辉针城
  • 东方绀珠传
  • 东方天空璋
  • 秘封噩梦日记
  • 东方鬼形兽
  • 东方虹龙洞
  • 黄昏酒场

许可协议

按照score.royalflare.net提供的许可协议,本仓库也按照BY-NC-SA协议进行开源。

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author