Compare commits
199 Commits
Author | SHA1 | Date | |
---|---|---|---|
13a65e2007 | |||
62d9a19e0e | |||
f9a611fc94 | |||
a055dc5299 | |||
346a68ddb4 | |||
e8736c997a | |||
![]() |
5d383ad72f | ||
![]() |
0ec942275e | ||
![]() |
24a38cbdf4 | ||
c0a798ba93 | |||
d930e3ee11 | |||
![]() |
3dbfa76de9 | ||
8634d37977 | |||
f2a923a654 | |||
5737a967b3 | |||
5f80a270c1 | |||
e3664f577e | |||
46eb1ee6b1 | |||
a43744c89d | |||
12d7dde2e7 | |||
![]() |
69068fad63 | ||
![]() |
2975ef0b49 | ||
0871238e59 | |||
5f2755f5bb | |||
746254c348 | |||
c43b73db3f | |||
af40aed3f3 | |||
![]() |
ea013737f6 | ||
79d4b266b8 | |||
6430000aad | |||
2b6af9aacd | |||
43ff071250 | |||
a70a3979e5 | |||
013b3c76b4 | |||
6575931ab2 | |||
26f5f31be5 | |||
7204297465 | |||
![]() |
4dfcb2538d | ||
![]() |
e9cd500628 | ||
7ce0c132fe | |||
5b1d86b155 | |||
53cb968e67 | |||
314f9b67e3 | |||
50f7e72ff5 | |||
ce7ac5bc8a | |||
aff13c2a97 | |||
eba9db1e35 | |||
71ac75a4ca | |||
f393b372ec | |||
cfb94e70b7 | |||
ab9b955c31 | |||
4e4b47a9e6 | |||
3da3bc4f23 | |||
7cc46eb677 | |||
b9d1a2c2cd | |||
a0cc908983 | |||
7dc7c7c8ac | |||
ad4ca74e71 | |||
a079685be8 | |||
6703037527 | |||
417f0b7334 | |||
45aec44f39 | |||
7dd1e78512 | |||
418dfec289 | |||
bc69a1c4ba | |||
63f7eda5c3 | |||
879bc34358 | |||
c5a6d7f041 | |||
20b1aca700 | |||
fb1a332f2c | |||
867bdd1d00 | |||
5e28d1e625 | |||
e6ecde9951 | |||
![]() |
2cb9f08caa | ||
![]() |
9eba1d6368 | ||
![]() |
ef4f06d6c3 | ||
2857024b4c | |||
61f53d11e4 | |||
4bb4f4a715 | |||
e68e7e2c12 | |||
![]() |
49b56d7354 | ||
![]() |
9e69037972 | ||
![]() |
973cbead42 | ||
0c0f9fc03e | |||
b15eea8d1b | |||
6b8b392d65 | |||
![]() |
dfd93fcdb0 | ||
![]() |
f80be7608c | ||
12b8608a16 | |||
![]() |
f34e97c8c8 | ||
13d6109c8c | |||
14c455071b | |||
6e978543a6 | |||
23c0aff49f | |||
2bbe0e1a65 | |||
f678b10171 | |||
cae6f73eeb | |||
![]() |
66aa1bc8cb | ||
19b637eee9 | |||
![]() |
0377b0141a | ||
3e89c93589 | |||
a3bb2c9cf4 | |||
![]() |
da86e2672d | ||
110c1017e7 | |||
166f0b5fda | |||
2de8a46bd5 | |||
e90aaf6f97 | |||
b37ead7acf | |||
ed9b393478 | |||
037d2c4a5a | |||
563cee5c4c | |||
7f10eb8ac4 | |||
![]() |
3c7a21cdbd | ||
f59a76e236 | |||
9bc4c07112 | |||
792ff48bb9 | |||
21ac4151a7 | |||
06192a06fe | |||
c69369857d | |||
17b055d898 | |||
8da2e6a4c7 | |||
1006124f8a | |||
7155ecd05d | |||
fcfef2317b | |||
407ee069c1 | |||
b798593cbb | |||
![]() |
378f978000 | ||
3b5c5460f0 | |||
509db272a8 | |||
99db22a18e | |||
![]() |
e09f08018f | ||
![]() |
fc4124e35b | ||
ac3b04eb52 | |||
93104f7b8b | |||
![]() |
91b5e572a3 | ||
5c5108fe13 | |||
03b5d89410 | |||
239ade1402 | |||
c6ade7e9ae | |||
adb50c8b31 | |||
01dc1b6f1c | |||
265b23f475 | |||
![]() |
1840c94861 | ||
19803fcf9c | |||
![]() |
853565cb25 | ||
c3b70f35f0 | |||
![]() |
03eed22830 | ||
85cdad1b98 | |||
ee660d0f00 | |||
28de142144 | |||
61eb707ac0 | |||
92c92e0ccb | |||
f4ad46ae53 | |||
193cef5b2c | |||
daeb0d516e | |||
9709cdc50f | |||
9095839006 | |||
d3fe3d7c76 | |||
6ccd828044 | |||
52b93619da | |||
cb69bf8502 | |||
![]() |
4a7d19af00 | ||
f46e63b189 | |||
![]() |
d9e420b226 | ||
92f1dc81d9 | |||
a189d26105 | |||
38e88d6ea5 | |||
f7f1452b5c | |||
ba25cd6e7c | |||
2f2c8e24b0 | |||
8eca0a728b | |||
2a3ba29b1d | |||
3defcbbdc1 | |||
e471253b12 | |||
0a0d33ae4a | |||
fb17ebe60b | |||
2f161a5586 | |||
d82b5b590e | |||
a36c376fc0 | |||
c4c543b0d4 | |||
182f71d4ca | |||
0b7347e118 | |||
e30a2f79cf | |||
94a8a490b3 | |||
68c42b16dd | |||
c089b7ac07 | |||
da7033395b | |||
![]() |
3264ed8de6 | ||
3e98e551de | |||
5ba7cd74fb | |||
9c7e4864b0 | |||
ca6441e780 | |||
65393c4d7b | |||
c83804ce92 | |||
de9d1798dd | |||
ddb69f0e7d | |||
c6c6cab1b3 | |||
8470654472 | |||
e796625980 |
63
.gitattributes
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
###############################################################################
|
||||
# Set default behavior to automatically normalize line endings.
|
||||
###############################################################################
|
||||
* text=auto
|
||||
|
||||
###############################################################################
|
||||
# Set default behavior for command prompt diff.
|
||||
#
|
||||
# This is need for earlier builds of msysgit that does not have it on by
|
||||
# default for csharp files.
|
||||
# Note: This is only used by command line
|
||||
###############################################################################
|
||||
#*.cs diff=csharp
|
||||
|
||||
###############################################################################
|
||||
# Set the merge driver for project and solution files
|
||||
#
|
||||
# Merging from the command prompt will add diff markers to the files if there
|
||||
# are conflicts (Merging from VS is not affected by the settings below, in VS
|
||||
# the diff markers are never inserted). Diff markers may cause the following
|
||||
# file extensions to fail to load in VS. An alternative would be to treat
|
||||
# these files as binary and thus will always conflict and require user
|
||||
# intervention with every merge. To do so, just uncomment the entries below
|
||||
###############################################################################
|
||||
#*.sln merge=binary
|
||||
#*.csproj merge=binary
|
||||
#*.vbproj merge=binary
|
||||
#*.vcxproj merge=binary
|
||||
#*.vcproj merge=binary
|
||||
#*.dbproj merge=binary
|
||||
#*.fsproj merge=binary
|
||||
#*.lsproj merge=binary
|
||||
#*.wixproj merge=binary
|
||||
#*.modelproj merge=binary
|
||||
#*.sqlproj merge=binary
|
||||
#*.wwaproj merge=binary
|
||||
|
||||
###############################################################################
|
||||
# behavior for image files
|
||||
#
|
||||
# image files are treated as binary by default.
|
||||
###############################################################################
|
||||
#*.jpg binary
|
||||
#*.png binary
|
||||
#*.gif binary
|
||||
|
||||
###############################################################################
|
||||
# diff behavior for common document formats
|
||||
#
|
||||
# Convert binary document formats to text before diffing them. This feature
|
||||
# is only available from the command line. Turn it on by uncommenting the
|
||||
# entries below.
|
||||
###############################################################################
|
||||
#*.doc diff=astextplain
|
||||
#*.DOC diff=astextplain
|
||||
#*.docx diff=astextplain
|
||||
#*.DOCX diff=astextplain
|
||||
#*.dot diff=astextplain
|
||||
#*.DOT diff=astextplain
|
||||
#*.pdf diff=astextplain
|
||||
#*.PDF diff=astextplain
|
||||
#*.rtf diff=astextplain
|
||||
#*.RTF diff=astextplain
|
363
.gitignore
vendored
Normal file
@@ -0,0 +1,363 @@
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Mono auto generated files
|
||||
mono_crash.*
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
[Ww][Ii][Nn]32/
|
||||
[Aa][Rr][Mm]/
|
||||
[Aa][Rr][Mm]64/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Oo]ut/
|
||||
[Ll]og/
|
||||
[Ll]ogs/
|
||||
|
||||
# Visual Studio 2015/2017 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# Visual Studio 2017 auto generated files
|
||||
Generated\ Files/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUnit
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
nunit-*.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# Benchmark Results
|
||||
BenchmarkDotNet.Artifacts/
|
||||
|
||||
# .NET Core
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
|
||||
# ASP.NET Scaffolding
|
||||
ScaffoldingReadMe.txt
|
||||
|
||||
# StyleCop
|
||||
StyleCopReport.xml
|
||||
|
||||
# Files built by Visual Studio
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_h.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.iobj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.ipdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*_wpftmp.csproj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opendb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
*.VC.db
|
||||
*.VC.VC.opendb
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# Visual Studio Trace Files
|
||||
*.e2e
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# AxoCover is a Code Coverage Tool
|
||||
.axoCover/*
|
||||
!.axoCover/settings.json
|
||||
|
||||
# Coverlet is a free, cross platform Code Coverage Tool
|
||||
coverage*.json
|
||||
coverage*.xml
|
||||
coverage*.info
|
||||
|
||||
# Visual Studio code coverage results
|
||||
*.coverage
|
||||
*.coveragexml
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||
# in these scripts will be unencrypted
|
||||
PublishScripts/
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# NuGet Symbol Packages
|
||||
*.snupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/[Pp]ackages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/[Pp]ackages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/[Pp]ackages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignorable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# Microsoft Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Microsoft Azure Emulator
|
||||
ecf/
|
||||
rcf/
|
||||
|
||||
# Windows Store app package directories and files
|
||||
AppPackages/
|
||||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
*.appx
|
||||
*.appxbundle
|
||||
*.appxupload
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!?*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.jfm
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
orleans.codegen.cs
|
||||
|
||||
# Including strong name files can present a security risk
|
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||
#*.snk
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
ServiceFabricBackup/
|
||||
*.rptproj.bak
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
*.ndf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
*.rptproj.rsuser
|
||||
*- [Bb]ackup.rdl
|
||||
*- [Bb]ackup ([0-9]).rdl
|
||||
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
node_modules/
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||
*.vbw
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# Paket dependency manager
|
||||
.paket/paket.exe
|
||||
paket-files/
|
||||
|
||||
# FAKE - F# Make
|
||||
.fake/
|
||||
|
||||
# CodeRush personal settings
|
||||
.cr/personal
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
# Cake - Uncomment if you are using it
|
||||
# tools/**
|
||||
# !tools/packages.config
|
||||
|
||||
# Tabs Studio
|
||||
*.tss
|
||||
|
||||
# Telerik's JustMock configuration file
|
||||
*.jmconfig
|
||||
|
||||
# BizTalk build output
|
||||
*.btp.cs
|
||||
*.btm.cs
|
||||
*.odx.cs
|
||||
*.xsd.cs
|
||||
|
||||
# OpenCover UI analysis results
|
||||
OpenCover/
|
||||
|
||||
# Azure Stream Analytics local run output
|
||||
ASALocalRun/
|
||||
|
||||
# MSBuild Binary and Structured Log
|
||||
*.binlog
|
||||
|
||||
# NVidia Nsight GPU debugger configuration file
|
||||
*.nvuser
|
||||
|
||||
# MFractors (Xamarin productivity tool) working folder
|
||||
.mfractor/
|
||||
|
||||
# Local History for Visual Studio
|
||||
.localhistory/
|
||||
|
||||
# BeatPulse healthcheck temp database
|
||||
healthchecksdb
|
||||
|
||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||
MigrationBackup/
|
||||
|
||||
# Ionide (cross platform F# VS Code tools) working folder
|
||||
.ionide/
|
||||
|
||||
# Fody - auto-generated XML schema
|
||||
FodyWeavers.xsd
|
BIN
Doc/Screenshots-en/0-Home.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Doc/Screenshots-en/1-CustomCommands.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
Doc/Screenshots-en/10-GachaBannerEditor.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
Doc/Screenshots-en/11-TextMapBrowser.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
Doc/Screenshots-en/12-Remote.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
Doc/Screenshots-en/13-Quest.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
Doc/Screenshots-en/2-CustomArtifact.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
Doc/Screenshots-en/3-CustomWeapon.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
Doc/Screenshots-en/4-GiveItem.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
Doc/Screenshots-en/5-GiveAvatar.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
Doc/Screenshots-en/6-SpawnEntity.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
Doc/Screenshots-en/7-ChangeScene.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
Doc/Screenshots-en/8-CustomStats.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
Doc/Screenshots-en/9-Manage.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
Doc/Screenshots-ru/0-Home.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
Doc/Screenshots-ru/1-CustomCommands.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Doc/Screenshots-ru/10-Waypoints.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
Doc/Screenshots-ru/11-Manage.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
Doc/Screenshots-ru/12-Credits.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
Doc/Screenshots-ru/13-Remote.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
Doc/Screenshots-ru/14-GachaBannerEditor.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
Doc/Screenshots-ru/15-TextMapBrowser.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Doc/Screenshots-ru/2-CustomArtifact.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
Doc/Screenshots-ru/3-Quest.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
Doc/Screenshots-ru/4-SpawnEntity.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
Doc/Screenshots-ru/5-GiveAvatar.png
Normal file
After Width: | Height: | Size: 195 KiB |
BIN
Doc/Screenshots-ru/6-CustomStats.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
Doc/Screenshots-ru/7-CustomWeapon.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
Doc/Screenshots-ru/8-GiveItem.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
Doc/Screenshots-ru/9-ChangeScene.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Doc/Screenshots/0-Home.png
Normal file
After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 84 KiB |
BIN
Doc/Screenshots/11-TextMapBrowser.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
Doc/Screenshots/12-Remote.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
Doc/Screenshots/13-Quest.png
Normal file
After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 128 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 31 KiB |
BIN
Doc/Screenshots/ConfigHttp.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
Doc/Screenshots/OpenCommand.gif
Normal file
After Width: | Height: | Size: 821 KiB |
661
LICENSE
Normal file
@@ -0,0 +1,661 @@
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
72
README.md
@@ -1,53 +1,65 @@
|
||||
# Grasscutter Tools
|
||||
|
||||
[](https://github.com/jie65535/GrasscutterCommandGenerator/blob/main/LICENSE)
|
||||
[](https://github.com/jie65535/GrasscutterCommandGenerator/stargazers)
|
||||
[](https://github.com/jie65535/GrasscutterCommandGenerator/releases)
|
||||
|
||||
English | [简体中文](README_zh-cn.md) | [Русский](README_ru-RU.md)
|
||||
|
||||
## Commands Generator
|
||||
|
||||
请从 [Releases](https://github.com/jie65535/GrasscutterCommandGenerator/releases) 中获取最新版本
|
||||
Please download the latest version from [Releases](https://github.com/jie65535/GrasscutterCommandGenerator/releases)
|
||||
|
||||
## v0.8.0 更新
|
||||
Support 简体中文, 繁体中文, English and Русский languages.
|
||||
|
||||
圣遗物套装下拉框可键入提示
|
||||
Welcome everyone to improve the [ID Resource](/Source/GrasscutterTools/Resources/en-us).
|
||||
|
||||
`状态` 标签改为 `数据`,设置角色数据模块重构,支持最新版指令。_(部分属性旧版本可能不支持)_
|
||||
## Remote command
|
||||
|
||||

|
||||
The server require [gc-opencommand-plugin](https://github.com/jie65535/gc-opencommand-plugin) support
|
||||
|
||||
`其它` 页面改为 `管理` ,新增帐号创建和删除。
|
||||

|
||||
|
||||

|
||||
> If you cannot connect to the server, please make sure the server address is correct.
|
||||
>
|
||||
> It is recommended to configure the server to HTTP mode, as shown in the figure(config.json):
|
||||
> 
|
||||
>
|
||||
> You can visit http://127.0.0.1/status/server with a browser to test whether the service is working properly.
|
||||
>
|
||||
> If you are not using port `80`, specify the port number to access in the url: http://127.0.0.1:443
|
||||
|
||||
## v0.7.0 更新
|
||||
---
|
||||
|
||||
物品生成记录本
|
||||
|
||||

|
||||
|
||||
实体生成记录本
|
||||
|
||||

|
||||
|
||||
## v0.6.0 更新
|
||||
|
||||
新增奖池编辑器
|
||||
|
||||

|
||||
|
||||
## Screenshots
|
||||
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
69
README_ru-RU.md
Normal file
@@ -0,0 +1,69 @@
|
||||
# Grasscutter Tools
|
||||
|
||||
[](https://github.com/jie65535/GrasscutterCommandGenerator/blob/main/LICENSE)
|
||||
[](https://github.com/jie65535/GrasscutterCommandGenerator/stargazers)
|
||||
[](https://github.com/jie65535/GrasscutterCommandGenerator/releases)
|
||||
|
||||
[English](README.md) | [简体中文](README_zh-cn.md) | Русский - Перевод [Юрий Дворецкий](https://github.com/yurikenjx) (с исправлениями от [EgorBron](https://github.com/EgorBron))
|
||||
|
||||
## Генератор команд (GCG)
|
||||
|
||||
Загрузите последнюю версию из вкладки [Releases](https://github.com/jie65535/GrasscutterCommandGenerator/releases).
|
||||
|
||||
GCG поддерживает 简体中文 (китайский упр.), 繁体中文 (китайский трад.), English (английский) и Русский языки.
|
||||
|
||||
Приглашаем всех улучшить [ID ресурсов и перевод](/Source/GrasscutterTools/Resources/ru-ru)
|
||||
|
||||
## Удаленная команда (OpenCommand)
|
||||
|
||||
Чтобы использовать команды прямо из GCG, серверу требуется плагин [gc-opencommand-plugin](https://github.com/jie65535/gc-opencommand-plugin).
|
||||
|
||||

|
||||
|
||||
> Если вы не можете подключиться к серверу, проверьте правильность написания его URL-адреса.
|
||||
>
|
||||
> Рекомендуется изменить секцию HTTP в конфиге как на скриншоте ниже (конфиг - файл config.json):
|
||||
>
|
||||
> 
|
||||
>
|
||||
> Для проверки можете посетить http://127.0.0.1/status/server в браузере, чтобы проверить работоспособность OpenCommand.
|
||||
>
|
||||
> Если вы не указали порт `80` в конфиге, вам нужно указать свой порт в URL-адресе (например, http://127.0.0.1:443)
|
||||
|
||||
---
|
||||
|
||||
## Скриншоты
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
<!--  -->
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
64
README_zh-cn.md
Normal file
@@ -0,0 +1,64 @@
|
||||
# Grasscutter Tools
|
||||
|
||||
[](https://github.com/jie65535/GrasscutterCommandGenerator/blob/main/LICENSE)
|
||||
[](https://github.com/jie65535/GrasscutterCommandGenerator/stargazers)
|
||||
[](https://github.com/jie65535/GrasscutterCommandGenerator/releases)
|
||||
|
||||
[English](README.md) | 简体中文 | [Русский](README_ru-RU.md)
|
||||
|
||||
## Commands Generator
|
||||
|
||||
请从 [Releases](https://github.com/jie65535/GrasscutterCommandGenerator/releases) 中获取最新版本
|
||||
|
||||
本工具支持 简体中文, 繁体中文, English 与 Русский 语言。
|
||||
|
||||
欢迎大家一起来完善工具的[内置资源](/Source/GrasscutterTools/Resources/zh-cn)。
|
||||
|
||||
## 远程执行
|
||||
|
||||
服务端需要 [gc-opencommand-plugin](https://github.com/jie65535/gc-opencommand-plugin) 插件支持
|
||||
|
||||

|
||||
|
||||
> 如果你无法连接到服务器,请确认填写的服务器地址是否正确。
|
||||
>
|
||||
> 建议配置服务器为HTTP模式,如图所示(config.json):
|
||||
> 
|
||||
>
|
||||
> 你可以用浏览器访问 http://127.0.0.1/status/server 来测试服务是否正常工作。
|
||||
>
|
||||
> 如果使用的不是`80`端口,则要在url中指定访问的端口号:http://127.0.0.1:443
|
||||
|
||||
---
|
||||
|
||||
## 软件截图
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
25
Source/GrasscutterTools.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.32106.194
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GrasscutterTools", "GrasscutterTools\GrasscutterTools.csproj", "{B26333FF-5560-4CBA-AF3C-4B80DB6F8025}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{B26333FF-5560-4CBA-AF3C-4B80DB6F8025}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B26333FF-5560-4CBA-AF3C-4B80DB6F8025}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B26333FF-5560-4CBA-AF3C-4B80DB6F8025}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B26333FF-5560-4CBA-AF3C-4B80DB6F8025}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {3598765A-1F30-4326-91C4-846D87572162}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
6
Source/GrasscutterTools/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
15
Source/GrasscutterTools/App.xaml
Normal file
@@ -0,0 +1,15 @@
|
||||
<Application
|
||||
x:Class="GrasscutterTools.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:GrasscutterTools"
|
||||
StartupUri="/Windows/MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="Styles/ScrollViewerStyle.xaml" />
|
||||
<ResourceDictionary Source="Themes/ExpressionDark/Theme.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
17
Source/GrasscutterTools/App.xaml.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace GrasscutterTools
|
||||
{
|
||||
/// <summary>
|
||||
/// App.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
}
|
34
Source/GrasscutterTools/DispatchServer/DispatchServerAPI.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using GrasscutterTools.DispatchServer.Model;
|
||||
using GrasscutterTools.Utils;
|
||||
|
||||
namespace GrasscutterTools.DispatchServer
|
||||
{
|
||||
public static class DispatchServerAPI
|
||||
{
|
||||
public static async Task<ServerStatus> QueryServerStatus(string host)
|
||||
{
|
||||
var response = await HttpHelper.GetAsync<ServerStatusResponse>(host + "/status/server");
|
||||
return response?.Status;
|
||||
}
|
||||
}
|
||||
}
|
43
Source/GrasscutterTools/DispatchServer/Model/ServerStatus.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.DispatchServer.Model
|
||||
{
|
||||
public class ServerStatus
|
||||
{
|
||||
[JsonProperty("playerCount")]
|
||||
public int PlayerCount { get; set; }
|
||||
|
||||
[JsonProperty("MaxPlayer")]
|
||||
public int MaxPlayer { get; set; } = -1;
|
||||
|
||||
[JsonProperty("version")]
|
||||
public string Version { get; set; }
|
||||
}
|
||||
|
||||
public class ServerStatusResponse
|
||||
{
|
||||
[JsonProperty("retcode")]
|
||||
public int RetCode { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public ServerStatus Status { get; set; }
|
||||
}
|
||||
}
|
14
Source/GrasscutterTools/Events/CommandGeneratedEventArgs.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace GrasscutterTools.Events
|
||||
{
|
||||
public class CommandGeneratedEventArgs : EventArgs
|
||||
{
|
||||
public CommandGeneratedEventArgs(string command = "")
|
||||
{
|
||||
Command = command;
|
||||
}
|
||||
|
||||
public string Command { get; set; }
|
||||
}
|
||||
}
|
10
Source/GrasscutterTools/Events/ListChangedEventArgs.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GrasscutterTools.Events
|
||||
{
|
||||
public class ListChangedEventArgs : EventArgs
|
||||
{
|
||||
public IEnumerable<string> List { get; set; }
|
||||
}
|
||||
}
|
94
Source/GrasscutterTools/GOOD/Artifact.cs
Normal file
@@ -0,0 +1,94 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.GOOD
|
||||
{
|
||||
/// <summary>
|
||||
/// Artifact data representation
|
||||
/// Doc: https://frzyc.github.io/genshin-optimizer/#/doc
|
||||
/// Modified from https://github.com/Andrewthe13th/Inventory_Kamera/blob/master/InventoryKamera/game/Artifact.cs
|
||||
/// </summary>
|
||||
public class Artifact
|
||||
{
|
||||
/// <summary>
|
||||
/// e.g. "GladiatorsFinale"
|
||||
/// </summary>
|
||||
[JsonProperty("setKey")]
|
||||
public string SetName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// //e.g. "plume"
|
||||
/// type SlotKey = "flower" | "plume" | "sands" | "goblet" | "circlet"
|
||||
/// </summary>
|
||||
[JsonProperty("slotKey")]
|
||||
public string GearSlot { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1-5 inclusive
|
||||
/// </summary>
|
||||
[JsonProperty("rarity")]
|
||||
public int Rarity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// mainStatKey
|
||||
/// </summary>
|
||||
[JsonProperty("mainStatKey")]
|
||||
public string MainStat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0-20 inclusive
|
||||
/// </summary>
|
||||
[JsonProperty("level")]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// substats
|
||||
/// </summary>
|
||||
[JsonProperty("substats")]
|
||||
public SubStat[] SubStats { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// where "" means not equipped.
|
||||
/// </summary>
|
||||
[JsonProperty("location")]
|
||||
public string EquippedCharacter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the artifact is locked in game.
|
||||
/// </summary>
|
||||
[JsonProperty("lock")]
|
||||
public bool Lock { get; set; }
|
||||
|
||||
public struct SubStat
|
||||
{
|
||||
/// <summary>
|
||||
/// e.g. "critDMG_"
|
||||
/// </summary>
|
||||
[JsonProperty("key")]
|
||||
public string Stat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// e.g. 19.4
|
||||
/// </summary>
|
||||
[JsonProperty("value")]
|
||||
public double Value { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
72
Source/GrasscutterTools/GOOD/Character.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.GOOD
|
||||
{
|
||||
/// <summary>
|
||||
/// Character data representation
|
||||
/// Doc: https://frzyc.github.io/genshin-optimizer/#/doc
|
||||
/// Modified from https://github.com/Andrewthe13th/Inventory_Kamera/blob/master/InventoryKamera/game/Character.cs
|
||||
/// </summary>
|
||||
public class Character
|
||||
{
|
||||
/// <summary>
|
||||
/// e.g. "Rosaria"
|
||||
/// </summary>
|
||||
[JsonProperty("key")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1-90 inclusive
|
||||
/// </summary>
|
||||
[JsonProperty("level")]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0-6 inclusive
|
||||
/// </summary>
|
||||
[JsonProperty("constellation")]
|
||||
public int Constellation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0-6 inclusive. need to disambiguate 80/90 or 80/80
|
||||
/// </summary>
|
||||
[JsonProperty("ascension")]
|
||||
public int Ascension { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// does not include boost from constellations. 1-15 inclusive
|
||||
/// </summary>
|
||||
[JsonProperty("talent")]
|
||||
public Talents Talents { get; set; }
|
||||
}
|
||||
|
||||
public struct Talents
|
||||
{
|
||||
[JsonProperty("auto")]
|
||||
public int Auto { get; set; }
|
||||
|
||||
[JsonProperty("skill")]
|
||||
public int Skill { get; set; }
|
||||
|
||||
[JsonProperty("burst")]
|
||||
public int Burst { get; set; }
|
||||
}
|
||||
}
|
63
Source/GrasscutterTools/GOOD/GOOD.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.GOOD
|
||||
{
|
||||
/// <summary>
|
||||
/// Genshin Open Object Description (GOOD)
|
||||
/// Doc: https://frzyc.github.io/genshin-optimizer/#/doc
|
||||
/// Modified from https://github.com/Andrewthe13th/Inventory_Kamera/blob/master/InventoryKamera/data/GOOD.cs
|
||||
///
|
||||
/// Available for
|
||||
/// https://frzyc.github.io/genshin-optimizer/
|
||||
/// https://github.com/Andrewthe13th/Inventory_Kamera
|
||||
/// https://genshin.aspirine.su/
|
||||
/// https://seelie.me/
|
||||
/// https://github.com/daydreaming666/Amenoma
|
||||
/// https://www.mona-uranai.com/
|
||||
/// https://genshin.mingyulab.com/
|
||||
/// https://genshin-center.com/
|
||||
/// </summary>
|
||||
public class GOOD
|
||||
{
|
||||
[JsonProperty("format")]
|
||||
public string Format { get; set; }
|
||||
|
||||
[JsonProperty("version")]
|
||||
public int Version { get; set; }
|
||||
|
||||
[JsonProperty("source")]
|
||||
public string Source { get; set; }
|
||||
|
||||
[JsonProperty("weapons", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
||||
public List<Weapon> Weapons { get; set; }
|
||||
|
||||
[JsonProperty("artifacts", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
||||
public List<Artifact> Artifacts { get; set; }
|
||||
|
||||
[JsonProperty("characters", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
||||
public List<Character> Characters { get; set; }
|
||||
|
||||
[JsonProperty("materials", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
||||
public Dictionary<string, int> Materials { get; set; }
|
||||
}
|
||||
}
|
108
Source/GrasscutterTools/GOOD/GOODData.cs
Normal file
@@ -0,0 +1,108 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using GrasscutterTools.Game;
|
||||
using GrasscutterTools.Properties;
|
||||
|
||||
namespace GrasscutterTools.GOOD
|
||||
{
|
||||
public static class GOODData
|
||||
{
|
||||
static GOODData()
|
||||
{
|
||||
var cultureInfo = CultureInfo.GetCultureInfo("en-US");
|
||||
var regex = new Regex(@"[\W]", RegexOptions.Compiled);
|
||||
|
||||
Dictionary<string, int> ToGOODMap(ItemMap itemMap)
|
||||
{
|
||||
var dic = new Dictionary<string, int>(itemMap.Count);
|
||||
for (int i = 0; i < itemMap.Count; i++)
|
||||
{
|
||||
var name = itemMap.Names[i];
|
||||
var pascalCase = cultureInfo.TextInfo.ToTitleCase(name);
|
||||
var nameGOOD = regex.Replace(pascalCase, string.Empty);
|
||||
dic[nameGOOD] = itemMap.Ids[i];
|
||||
//dic.Add(nameGOOD, itemMap.Ids[i]);
|
||||
}
|
||||
return dic;
|
||||
}
|
||||
|
||||
var artifactCats = new ItemMap(Resources.ResourceManager.GetString("ArtifactCat", cultureInfo));
|
||||
var avatars = new ItemMap(Resources.ResourceManager.GetString("Avatar", cultureInfo));
|
||||
var weapons = new ItemMap(Resources.ResourceManager.GetString("Weapon", cultureInfo));
|
||||
|
||||
ArtifactCats = ToGOODMap(artifactCats);
|
||||
Avatars = ToGOODMap(avatars);
|
||||
Weapons = ToGOODMap(weapons);
|
||||
}
|
||||
|
||||
|
||||
public static Dictionary<string, int> ArtifactCats { get; private set; }
|
||||
|
||||
|
||||
public static Dictionary<string, string> ArtifactSlotMap = new Dictionary<string, string> {
|
||||
{"goblet", "1"}, {"plume", "2"}, {"circlet", "3"}, {"flower", "4"}, {"sands", "5"}
|
||||
};
|
||||
|
||||
public static Dictionary<string, int> ArtifactMainAttribution { get; } = new Dictionary<string, int>
|
||||
{
|
||||
{ "hp" , 10001 },
|
||||
{ "hp_" , 10002 },
|
||||
{ "atk" , 10003 },
|
||||
{ "atk_" , 10004 },
|
||||
{ "def" , 10005 },
|
||||
{ "def_" , 10006 },
|
||||
{ "enerRech_" , 10007 },
|
||||
{ "eleMas" , 10008 },
|
||||
{ "critRate_" , 13007 },
|
||||
{ "critDMG_" , 13008 },
|
||||
{ "heal_" , 13009 },
|
||||
{ "pyro_dmg_" , 15008 },
|
||||
{ "electro_dmg_" , 15009 },
|
||||
{ "cryo_dmg_" , 15010 },
|
||||
{ "hydro_dmg_" , 15011 },
|
||||
{ "anemo_dmg_" , 15012 },
|
||||
{ "geo_dmg_" , 15013 },
|
||||
{ "dendro_dmg_" , 15014 },
|
||||
{ "physical_dmg_", 15015 },
|
||||
};
|
||||
|
||||
public static Dictionary<string, int> ArtifactSubAttribution { get; } = new Dictionary<string, int>
|
||||
{
|
||||
{ "hp" , 102 },
|
||||
{ "hp_" , 103 },
|
||||
{ "atk" , 105 },
|
||||
{ "atk_" , 106 },
|
||||
{ "def" , 108 },
|
||||
{ "def_" , 109 },
|
||||
{ "critRate_", 120 },
|
||||
{ "critDMG_" , 122 },
|
||||
{ "enerRech_", 123 },
|
||||
{ "eleMas" , 124 },
|
||||
};
|
||||
|
||||
public static Dictionary<string, int> Avatars { get; private set; }
|
||||
|
||||
public static Dictionary<string, int> Weapons { get; private set; }
|
||||
|
||||
}
|
||||
}
|
68
Source/GrasscutterTools/GOOD/Weapon.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.ComponentModel;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.GOOD
|
||||
{
|
||||
/// <summary>
|
||||
/// Weapon data representation
|
||||
/// Doc: https://frzyc.github.io/genshin-optimizer/#/doc
|
||||
/// Modified from https://github.com/Andrewthe13th/Inventory_Kamera/blob/master/InventoryKamera/game/Weapon.cs
|
||||
/// </summary>
|
||||
public class Weapon
|
||||
{
|
||||
/// <summary>
|
||||
/// e.g. "CrescentPike"
|
||||
/// </summary>
|
||||
[JsonProperty("key")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1-90 inclusive
|
||||
/// </summary>
|
||||
[JsonProperty("level")]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0-6 inclusive. need to disambiguate 80/90 or 80/80
|
||||
/// </summary>
|
||||
[JsonProperty("ascension")]
|
||||
public int AscensionLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1-5 inclusive
|
||||
/// </summary>
|
||||
[JsonProperty("refinement")]
|
||||
public int RefinementLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// where "" means not equipped.
|
||||
/// </summary>
|
||||
[JsonProperty("location")]
|
||||
[DefaultValue("")]
|
||||
public string EquippedCharacter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the weapon is locked in game.
|
||||
/// </summary>
|
||||
[JsonProperty("lock")]
|
||||
public bool Lock { get; set; }
|
||||
}
|
||||
}
|
13
Source/GrasscutterTools/Game/CommandGenerator.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
public class CommandGenerator
|
||||
{
|
||||
|
||||
}
|
||||
}
|
126
Source/GrasscutterTools/Game/CommandVersion.cs
Normal file
@@ -0,0 +1,126 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
/// <summary>
|
||||
/// 命令版本
|
||||
///
|
||||
/// 用法:
|
||||
/// ver = Version.TryParse(input, out Version current) ? new CommandVersion(current) : CommandVersion.Latest();
|
||||
///
|
||||
/// </summary>
|
||||
internal class CommandVersion
|
||||
{
|
||||
/// <summary>
|
||||
/// 初始化当前版本
|
||||
/// </summary>
|
||||
/// <param name="current"></param>
|
||||
public CommandVersion(Version current)
|
||||
{
|
||||
this.current = current ?? throw new ArgumentNullException(nameof(current));
|
||||
}
|
||||
|
||||
private Version current;
|
||||
|
||||
/// <summary>
|
||||
/// 当前命令版本
|
||||
/// </summary>
|
||||
public Version Current
|
||||
{
|
||||
get => current;
|
||||
set
|
||||
{
|
||||
if (current != value)
|
||||
{
|
||||
current = value;
|
||||
OnVersionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 选中版本改变事件
|
||||
/// </summary>
|
||||
public event EventHandler VersionChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 触发版本更改事件
|
||||
/// </summary>
|
||||
private void OnVersionChanged() => VersionChanged?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
/// <summary>
|
||||
/// 当前支持的最新版本 - 当未选择版本时,默认为最新版本
|
||||
/// </summary>
|
||||
public static CommandVersion Latest() => new CommandVersion(List[List.Length - 1]);
|
||||
|
||||
|
||||
#region - 版本列表 Version List -
|
||||
|
||||
// 忽略更早以前的版本
|
||||
/// <summary>
|
||||
/// v1.2.1 2022/6/18
|
||||
/// git 30c7bb94439a123417a6a1e0116acd3c40f2d115
|
||||
/// </summary>
|
||||
public static readonly Version V1_2_1 = new Version(1, 2, 1);
|
||||
|
||||
/// <summary>
|
||||
/// v1.2.1 -> v1.2.2 2022/6/22
|
||||
/// git aa43943025fefcda9739c9fcf242e67f1a7b83b4
|
||||
/// </summary>
|
||||
public static readonly Version V1_2_2 = new Version(1, 2, 2);
|
||||
|
||||
/// <summary>
|
||||
/// v1.2.2 -> v1.2.3 2022/7/21
|
||||
/// git a07b3f21e6fbeb9abfad8862d6fa0dc4a1c3c1a3
|
||||
/// </summary>
|
||||
public static readonly Version V1_2_3 = new Version(1, 2, 3);
|
||||
|
||||
/// <summary>
|
||||
/// v1.2.3 -> v1.3.0 2022/9/3 - stable
|
||||
/// git 155501058fcce109489a19db37d0513d2235e08e
|
||||
/// </summary>
|
||||
public static readonly Version V1_3_0 = new Version(1, 3, 0);
|
||||
|
||||
/// <summary>
|
||||
/// v1.3.0 -> v1.3.1 2022/9/3
|
||||
/// git 6cf83b30eeaa98a68de2d786d7ca85ae21a95e32
|
||||
/// </summary>
|
||||
public static readonly Version V1_3_1 = new Version(1, 3, 1);
|
||||
|
||||
// More...
|
||||
/// <summary>
|
||||
/// v1.2.3 -> v1.2.4 2022/7/21
|
||||
/// git hash
|
||||
/// </summary>
|
||||
//public static readonly Version V1_2_4 = new Version(1, 2, 4);
|
||||
|
||||
public static Version[] List { get; } = new Version[] {
|
||||
V1_2_1,
|
||||
V1_2_2,
|
||||
V1_2_3,
|
||||
V1_3_0,
|
||||
V1_3_1,
|
||||
//V1_3_2,
|
||||
};
|
||||
|
||||
#endregion - 版本列表 Version List -
|
||||
}
|
||||
}
|
25
Source/GrasscutterTools/Game/Gacha/BannerType.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
namespace GrasscutterTools.Game.Gacha
|
||||
{
|
||||
public enum BannerType
|
||||
{
|
||||
STANDARD, EVENT, WEAPON
|
||||
}
|
||||
}
|
139
Source/GrasscutterTools/Game/Gacha/GachaBanner.cs
Normal file
@@ -0,0 +1,139 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.ComponentModel;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace GrasscutterTools.Game.Gacha
|
||||
{
|
||||
/// <summary>
|
||||
/// 使用这个只需替换掉你原来的的data/banner.json文件,
|
||||
/// 然后重启服务器和客户端,即可享受全卡池抽卡,卡池的选择方式是点击左右箭头进行切换
|
||||
/// </summary>
|
||||
public class GachaBanner
|
||||
{
|
||||
/// <summary>
|
||||
/// 添加卡池请从400开始增加id数值进行添加,这个id需要每个池子不一样,
|
||||
/// 如果你想添加大量卡池,请按照每次增加固定数值的id进行添加,比如:411,412,413....
|
||||
/// </summary>
|
||||
[JsonProperty("gachaType")]
|
||||
public int GachaType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 这个id需要每个池子不一样,如果你想添加大量卡池,
|
||||
/// 请按照每次增加固定数值的id进行添加,比如:2100,2200,2300....
|
||||
/// </summary>
|
||||
[JsonProperty("scheduleId")]
|
||||
public int ScheduleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 这个有3种类型,standard表示常驻池,event表示限时角色祈愿池,
|
||||
/// weapon表示限时武器祈愿池,选择一种类型的卡池
|
||||
/// </summary>
|
||||
[JsonProperty("bannerType", DefaultValueHandling = DefaultValueHandling.Include), JsonConverter(typeof(StringEnumConverter))]
|
||||
public BannerType BannerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 这个是卡池的预制路径id
|
||||
/// </summary>
|
||||
[JsonProperty("prefabPath")]
|
||||
public string PrefabPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 这个是抽卡的预览背景路径id
|
||||
/// </summary>
|
||||
[JsonProperty("previewPrefabPath")]
|
||||
public string PreviewPrefabPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 这个是抽卡的标题路径id,有可能与之前两项的id不同
|
||||
/// (一般这3项的id只需保持一致即可,就是A0xx,xx为同一id)
|
||||
/// </summary>
|
||||
[JsonProperty("titlePath")]
|
||||
public string TitlePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 这个表示祈愿用的道具,224是相遇之缘,223是纠缠之缘 - 选择一个作为该卡池的抽卡道具
|
||||
/// (提示:请不要随便修改祈愿道具除了蓝球和粉球,有可能会引发bug,比如修改成摩拉抽卡可能导致卡住)
|
||||
/// </summary>
|
||||
[JsonProperty("costItem")]
|
||||
public int CostItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 祈愿什么时候开始(默认设置为0)
|
||||
/// </summary>
|
||||
[JsonProperty("beginTime")]
|
||||
public int BeginTime { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 这个卡池持续多长时间(默认为这个极大的数字)
|
||||
/// </summary>
|
||||
[JsonProperty("endTime")]
|
||||
public int EndTime { get; set; } = 1924992000;
|
||||
|
||||
/// <summary>
|
||||
/// 暂时未搞清楚功能,可能与卡池在屏幕的左右顺序有关
|
||||
/// </summary>
|
||||
[JsonProperty("sortId")]
|
||||
public int SortId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通常为5星的up角色或物品(可修改,可添加,查看gm手册可修改为任意角色或者物品)
|
||||
/// </summary>
|
||||
[JsonProperty("rateUpItems1")]
|
||||
public int[] RateUpItems1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通常为4星的up物品或者角色(可修改,可添加,查看gm手册可修改为任意角色或者物品)
|
||||
/// </summary>
|
||||
[JsonProperty("rateUpItems2")]
|
||||
public int[] RateUpItems2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 5星概率(0~10000)
|
||||
/// </summary>
|
||||
[JsonProperty("baseYellowWeight", DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(60)]
|
||||
public int BaseYellowWeight { get; set; } = 60; // Max 10000
|
||||
|
||||
/// <summary>
|
||||
/// 4星概率(0~10000)
|
||||
/// </summary>
|
||||
[JsonProperty("basePurpleWeight", DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(510)]
|
||||
public int BasePurpleWeight { get; set; } = 510; // Max 10000
|
||||
|
||||
/// <summary>
|
||||
/// 事件概率(抽中后,摇1~100随机数,如果大于该值则抽中up池)
|
||||
/// </summary>
|
||||
[JsonProperty("eventChance", DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(50)]
|
||||
public int EventChance { get; set; } = 50; // Chance to win a featured event item
|
||||
|
||||
/// <summary>
|
||||
/// 软保底,失败多少次开始提升抽中概率(在这之上每失败一次概率增加1%)
|
||||
/// </summary>
|
||||
[JsonProperty("softPity", DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(75)]
|
||||
public int SoftPity { get; set; } = 75;
|
||||
|
||||
/// <summary>
|
||||
/// 硬保底(失败多少次必出)
|
||||
/// </summary>
|
||||
[JsonProperty("hardPity", DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(90)]
|
||||
public int HardPity { get; set; } = 90;
|
||||
}
|
||||
}
|
190
Source/GrasscutterTools/Game/Gacha/GachaBanner2.cs
Normal file
@@ -0,0 +1,190 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace GrasscutterTools.Game.Gacha
|
||||
{
|
||||
/// <summary>
|
||||
/// https://github.com/Grasscutters/Grasscutter/pull/639
|
||||
/// </summary>
|
||||
public class GachaBanner2
|
||||
{
|
||||
/// <summary>
|
||||
/// 添加卡池请从400开始增加id数值进行添加,这个id需要每个池子不一样,
|
||||
/// 如果你想添加大量卡池,请按照每次增加固定数值的id进行添加,比如:411,412,413....
|
||||
/// </summary>
|
||||
[JsonProperty("gachaType")]
|
||||
public int GachaType { get; set; } = 400;
|
||||
|
||||
/// <summary>
|
||||
/// 这个id需要每个池子不一样,如果你想添加大量卡池,
|
||||
/// 请按照每次增加固定数值的id进行添加,比如:2100,2200,2300....
|
||||
/// </summary>
|
||||
[JsonProperty("scheduleId")]
|
||||
public int ScheduleId { get; set; } = 800;
|
||||
|
||||
/// <summary>
|
||||
/// 这个是卡池的预制路径id
|
||||
/// </summary>
|
||||
[JsonProperty("prefabPath")]
|
||||
public string PrefabPath { get; set; } = "GachaShowPanel_A007";
|
||||
|
||||
/// <summary>
|
||||
/// 这个是抽卡的预览背景路径id
|
||||
/// </summary>
|
||||
[JsonProperty("previewPrefabPath")]
|
||||
public string PreviewPrefabPath { get; set; } = "UI_Tab_GachaShowPanel_A007";
|
||||
|
||||
/// <summary>
|
||||
/// 这个是抽卡的标题路径id,有可能与之前两项的id不同
|
||||
/// (一般这3项的id只需保持一致即可,就是A0xx,xx为同一id)
|
||||
/// </summary>
|
||||
[JsonProperty("titlePath")]
|
||||
public string TitlePath { get; set; } = "UI_GACHA_SHOW_PANEL_A007_TITLE";
|
||||
|
||||
/// <summary>
|
||||
/// 这个表示祈愿用的道具,224是相遇之缘,223是纠缠之缘 - 选择一个作为该卡池的抽卡道具
|
||||
/// (提示:请不要随便修改祈愿道具除了蓝球和粉球,有可能会引发bug,比如修改成摩拉抽卡可能导致卡住)
|
||||
/// </summary>
|
||||
[JsonProperty("costItem")]
|
||||
public int CostItem { get; set; } = 224;
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间(Unix时间戳)
|
||||
/// </summary>
|
||||
[JsonProperty("beginTime")]
|
||||
public int BeginTime { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间(Unix时间戳)
|
||||
/// </summary>
|
||||
[JsonProperty("endTime")]
|
||||
public int EndTime { get; set; } = 1924992000;
|
||||
|
||||
/// <summary>
|
||||
/// 卡池顺序
|
||||
/// </summary>
|
||||
[JsonProperty("sortId")]
|
||||
public int SortId { get; set; } = 1000;
|
||||
|
||||
/// <summary>
|
||||
/// 抽卡次数限制
|
||||
/// </summary>
|
||||
[JsonProperty("gachaTimesLimit")]
|
||||
public int GachaTimesLimit { get; set; } = int.MaxValue;
|
||||
|
||||
/// <summary>
|
||||
/// 4星的up角色或物品
|
||||
/// </summary>
|
||||
[JsonProperty("rateUpItems4")]
|
||||
public int[] RateUpItems4 { get; set; } = { };
|
||||
|
||||
/// <summary>
|
||||
/// 5星的up物品或者角色
|
||||
/// </summary>
|
||||
[JsonProperty("rateUpItems5")]
|
||||
public int[] RateUpItems5 { get; set; } = { };
|
||||
|
||||
/// <summary>
|
||||
/// 3星普通池
|
||||
/// </summary>
|
||||
[JsonProperty("fallbackItems3")]
|
||||
public int[] FallbackItems3 { get; set; } = { 11301, 11302, 11306, 12301, 12302, 12305, 13303, 14301, 14302, 14304, 15301, 15302, 15304 };
|
||||
|
||||
/// <summary>
|
||||
/// 4星普通角色池
|
||||
/// </summary>
|
||||
[JsonProperty("fallbackItems4Pool1")]
|
||||
public int[] FallbackItems4Pool1 { get; set; } = { 1014, 1020, 1023, 1024, 1025, 1027, 1031, 1032, 1034, 1036, 1039, 1043, 1044, 1045, 1048, 1053, 1055, 1056, 1064 };
|
||||
|
||||
/// <summary>
|
||||
/// 4星普通武器池
|
||||
/// </summary>
|
||||
[JsonProperty("fallbackItems4Pool2")]
|
||||
public int[] FallbackItems4Pool2 { get; set; } = { 11401, 11402, 11403, 11405, 12401, 12402, 12403, 12405, 13401, 13407, 14401, 14402, 14403, 14409, 15401, 15402, 15403, 15405 };
|
||||
|
||||
/// <summary>
|
||||
/// 5星普通角色池
|
||||
/// </summary>
|
||||
[JsonProperty("fallbackItems5Pool1")]
|
||||
public int[] FallbackItems5Pool1 { get; set; } = { 1003, 1016, 1042, 1035, 1041 };
|
||||
|
||||
/// <summary>
|
||||
/// 5星普通角色池
|
||||
/// </summary>
|
||||
[JsonProperty("fallbackItems5Pool2")]
|
||||
public int[] FallbackItems5Pool2 { get; set; } = { 11501, 11502, 12501, 12502, 13502, 13505, 14501, 14502, 15501, 15502 };
|
||||
|
||||
/// <summary>
|
||||
/// 是否从奖池中移除玩家星座等级6级以上的角色
|
||||
/// </summary>
|
||||
[JsonProperty("removeC6FromPool")]
|
||||
public bool RemoveC6FromPool { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 自动从普通池中移除UP池物品或角色
|
||||
/// </summary>
|
||||
[JsonProperty("autoStripRateUpFromFallback")]
|
||||
public bool AutoStripRateUpFromFallback { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 4星权重
|
||||
/// </summary>
|
||||
[JsonProperty("weights4")]
|
||||
public int[,] Weights4 { get; set; } = { { 1, 510 }, { 8, 510 }, { 10, 10000 } };
|
||||
|
||||
/// <summary>
|
||||
/// 5星权重
|
||||
/// </summary>
|
||||
[JsonProperty("weights5")]
|
||||
public int[,] Weights5 { get; set; } = { { 1, 75 }, { 73, 150 }, { 90, 10000 } };
|
||||
|
||||
/// <summary>
|
||||
/// 4星平衡奖池权重(即中的是武器还是角色)
|
||||
/// </summary>
|
||||
[JsonProperty("poolBalanceWeights4")]
|
||||
public int[,] PoolBalanceWeights4 { get; set; } = { { 1, 255 }, { 17, 255 }, { 21, 10455 } };
|
||||
|
||||
/// <summary>
|
||||
/// 5星平衡奖池权重(即中的是武器还是角色)
|
||||
/// </summary>
|
||||
[JsonProperty("poolBalanceWeights5")]
|
||||
public int[,] PoolBalanceWeights5 { get; set; } = { { 1, 30 }, { 147, 150 }, { 181, 10230 } };
|
||||
|
||||
/// <summary>
|
||||
/// 4星事件概率(抽中后,摇1~100随机数,如果大于该值则抽中up池)
|
||||
/// </summary>
|
||||
[JsonProperty("eventChance4")]
|
||||
public int EventChance4 { get; set; } = 50;
|
||||
|
||||
/// <summary>
|
||||
/// 5星事件概率(抽中后,摇1~100随机数,如果大于该值则抽中up池)
|
||||
/// </summary>
|
||||
[JsonProperty("eventChance5")]
|
||||
public int EventChance5 { get; set; } = 50;
|
||||
|
||||
/// <summary>
|
||||
/// 这个有3种类型,standard表示常驻池,event表示限时角色祈愿池,
|
||||
/// weapon表示限时武器祈愿池,选择一种类型的卡池
|
||||
/// </summary>
|
||||
[JsonProperty("bannerType"), JsonConverter(typeof(StringEnumConverter))]
|
||||
public BannerType BannerType { get; set; } = BannerType.STANDARD;
|
||||
}
|
||||
}
|
33
Source/GrasscutterTools/Game/GameCommand.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
public class GameCommand
|
||||
{
|
||||
public GameCommand(string name, string command)
|
||||
{
|
||||
Name = name;
|
||||
Command = command;
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Command { get; set; }
|
||||
}
|
||||
}
|
69
Source/GrasscutterTools/Game/GameData.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using GrasscutterTools.Properties;
|
||||
using GrasscutterTools.Utils;
|
||||
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
internal static class GameData
|
||||
{
|
||||
public static void LoadResources()
|
||||
{
|
||||
//SparseSet illegalWeaponIds = new SparseSet(
|
||||
// "10000-10008, 11411, 11506-11508, 12505, 12506, 12508, 12509," +
|
||||
// "13503, 13506, 14411, 14503, 14505, 14508, 15504-15506");
|
||||
|
||||
|
||||
//SparseSet illegalRelicIds = new SparseSet(
|
||||
// "20001, 23300-23340, 23383-23385, 78310-78554, 99310-99554"
|
||||
// );
|
||||
|
||||
//SparseSet illegalItemIds = new SparseSet(
|
||||
// "100086, 100087, 100100-101000, 101106-101110, 101306, 101500-104000," +
|
||||
// "105001, 105004, 106000-107000, 107011, 108000, 109000-110000," +
|
||||
// "115000-130000, 200200-200899, 220050, 220054"
|
||||
// );
|
||||
|
||||
ArtifactSets = new ItemMap(Resources.ArtifactSets);
|
||||
ArtifactMainAttribution = new ItemMap(Resources.ArtifactMainAttribution);
|
||||
ArtifactSubAttribution = new ItemMap(Resources.ArtifactSubAttribution);
|
||||
Items = new ItemMap(Resources.Items);
|
||||
Monsters = new ItemMap(Resources.Monsters);
|
||||
Scenes = new ItemMap(Resources.Scenes);
|
||||
GachaBannerPrefabs = new ItemMap(Resources.GachaBennerPrefab);
|
||||
Quests = new ItemMap(Resources.Quests);
|
||||
}
|
||||
|
||||
public static ItemMap ArtifactSets { get; private set; }
|
||||
|
||||
public static ItemMap ArtifactMainAttribution { get; private set; }
|
||||
|
||||
public static ItemMap ArtifactSubAttribution { get; private set; }
|
||||
|
||||
public static ItemMap Items { get; private set; }
|
||||
|
||||
public static ItemMap Monsters { get; private set; }
|
||||
|
||||
public static ItemMap Scenes { get; private set; }
|
||||
|
||||
public static ItemMap GachaBannerPrefabs { get; private set; }
|
||||
|
||||
public static ItemMap Quests { get; private set; }
|
||||
}
|
||||
}
|
79
Source/GrasscutterTools/Game/ItemMap.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using GrasscutterTools.Utils;
|
||||
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
public class ItemMap
|
||||
{
|
||||
public ItemMap(string idNamePairs, SparseSet exclusions = null)
|
||||
{
|
||||
var lines = idNamePairs.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
var capacity = lines.Length;
|
||||
//IdMap = new Dictionary<int, string>(capacity);
|
||||
//NameMap = new Dictionary<string, int>(capacity);
|
||||
var IdList = new List<int>(capacity);
|
||||
var NameList = new List<string>(capacity);
|
||||
var lineList = new List<string>(capacity);
|
||||
|
||||
foreach (var line in lines)
|
||||
{
|
||||
var si = line.IndexOf(':');
|
||||
if (si > 0 && int.TryParse(line.Substring(0, si).Trim(), out int id))
|
||||
{
|
||||
var name = line.Substring(si + 1).Trim();
|
||||
if (!string.IsNullOrEmpty(name) && name != "null")
|
||||
{
|
||||
if (exclusions?.Contains(id) == true)
|
||||
continue;
|
||||
//IdMap[id] = name;
|
||||
//NameMap[name] = id;
|
||||
IdList.Add(id);
|
||||
NameList.Add(name);
|
||||
lineList.Add(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ids = IdList.ToArray();
|
||||
Names = NameList.ToArray();
|
||||
Lines = lineList.ToArray();
|
||||
}
|
||||
|
||||
//Dictionary<int, string> IdMap;
|
||||
//Dictionary<string, int> NameMap;
|
||||
//List<int> IdList;
|
||||
//List<string> NameList;
|
||||
|
||||
public int Count => Ids.Length;
|
||||
|
||||
//public string this[int id] => IdMap[id];
|
||||
|
||||
//public int this[string name] => NameMap[name];
|
||||
|
||||
public int[] Ids { get; }
|
||||
|
||||
public string[] Names { get; }
|
||||
|
||||
public string[] Lines { get; }
|
||||
}
|
||||
}
|
107
Source/GrasscutterTools/Game/SetStatsCommand.cs
Normal file
@@ -0,0 +1,107 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.Text;
|
||||
|
||||
using GrasscutterTools.Properties;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
internal static class SetStatsCommand
|
||||
{
|
||||
public class Stat
|
||||
{
|
||||
public Stat(string name, string argName, bool percent, string tip = "")
|
||||
{
|
||||
Name = name;
|
||||
ArgName = argName;
|
||||
Percent = percent;
|
||||
Tip = tip;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 属性名
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 参数名
|
||||
/// </summary>
|
||||
public string ArgName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否百分比
|
||||
/// </summary>
|
||||
public bool Percent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提示
|
||||
/// </summary>
|
||||
public string Tip { get; set; }
|
||||
}
|
||||
|
||||
public static Stat[] Stats { get; private set; }
|
||||
|
||||
public static void InitStats()
|
||||
{
|
||||
var json = Encoding.UTF8.GetString(Resources.AvatarStats);
|
||||
Stats = JsonConvert.DeserializeObject<Stat[]>(json);
|
||||
}
|
||||
|
||||
//static SetStatsCommand()
|
||||
//{
|
||||
// Stats = new List<Stat>
|
||||
// {
|
||||
// new Stat("最大生命值", "maxhp", false),
|
||||
// new Stat("当前生命值", "hp", false),
|
||||
// new Stat("当前攻击力", "atk", false),
|
||||
// new Stat("基础攻击力", "atkb", false, "这似乎不会重新计算攻击力,可能只对buff类有效。"),
|
||||
// new Stat("防御力", "def", false),
|
||||
// new Stat("元素精通", "em", false),
|
||||
// new Stat("元素充能效率", "er", true),
|
||||
// new Stat("暴击率", "crate", true),
|
||||
// new Stat("暴击伤害", "cdmg", true),
|
||||
// new Stat("伤害加成", "dmg", true, "这似乎在攻击后被重置"),
|
||||
// new Stat("风元素伤害加成", "eanemo", true),
|
||||
// new Stat("冰元素伤害加成", "ecryo", true),
|
||||
// new Stat("草元素伤害加成", "edendro", true),
|
||||
// new Stat("雷元素伤害加成", "eelectro", true),
|
||||
// new Stat("土元素伤害加成", "egeo", true),
|
||||
// new Stat("水元素伤害加成", "ehydro", true),
|
||||
// new Stat("火元素伤害加成", "epyro", true),
|
||||
// new Stat("物理伤害加成", "ephys", true),
|
||||
// new Stat("伤害减免", "resall", true, "这似乎在攻击后被重置"),
|
||||
// new Stat("风元素伤害减免", "resanemo", true),
|
||||
// new Stat("冰元素伤害减免", "rescryo", true),
|
||||
// new Stat("草元素伤害减免", "resdendro", true),
|
||||
// new Stat("雷元素伤害减免", "reselectro", true),
|
||||
// new Stat("土元素伤害减免", "resgeo", true),
|
||||
// new Stat("水元素伤害减免", "reshydro", true),
|
||||
// new Stat("火元素伤害减免", "respyro", true),
|
||||
// new Stat("物理伤害减免", "resphys", true),
|
||||
// new Stat("冷却缩减", "cdr", true),
|
||||
// new Stat("治疗加成", "heal", true),
|
||||
// new Stat("受治疗加成", "heali", true),
|
||||
// new Stat("护盾强效","shield", true),
|
||||
// new Stat("忽略防御", "defi", true),
|
||||
// };
|
||||
//}
|
||||
}
|
||||
}
|
84
Source/GrasscutterTools/Game/TextMapData.cs
Normal file
@@ -0,0 +1,84 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.Game
|
||||
{
|
||||
public class TextMapData
|
||||
{
|
||||
public TextMapData(string resourcesDirPath)
|
||||
{
|
||||
LoadManualTextMap(Path.Combine(resourcesDirPath, "ExcelBinOutput", "ManualTextMapConfigData.json"));
|
||||
LoadTextMaps(Path.Combine(resourcesDirPath, "TextMap"));
|
||||
}
|
||||
|
||||
public Dictionary<string, string> ManualTextMap;
|
||||
public Dictionary<string, string> TextMap;
|
||||
public string[] TextMapFilePaths;
|
||||
public string[] TextMapFiles;
|
||||
|
||||
private void LoadManualTextMap(string manualTextMapPath)
|
||||
{
|
||||
using (var fs = File.OpenRead(manualTextMapPath))
|
||||
using (var sr = new StreamReader(fs))
|
||||
using (var reader = new JsonTextReader(sr))
|
||||
{
|
||||
ManualTextMap = new Dictionary<string, string>();
|
||||
while (reader.Read())
|
||||
{
|
||||
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "TextMapId" || (string)reader.Value == "textMapId"))
|
||||
{
|
||||
var textMapId = reader.ReadAsString();
|
||||
reader.Read();
|
||||
ManualTextMap.Add(reader.ReadAsString(), textMapId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadTextMaps(string textMapDirPath)
|
||||
{
|
||||
TextMapFilePaths = Directory.GetFiles(textMapDirPath, "TextMap*.json");
|
||||
if (TextMapFilePaths.Length == 0)
|
||||
throw new FileNotFoundException("TextMap*.json Not Found");
|
||||
TextMapFiles = TextMapFilePaths.Select(n => Path.GetFileNameWithoutExtension(n)).ToArray();
|
||||
}
|
||||
|
||||
public void LoadTextMap(string textMapPath)
|
||||
{
|
||||
using (var fs = File.OpenRead(textMapPath))
|
||||
using (var sr = new StreamReader(fs))
|
||||
using (var reader = new JsonTextReader(sr))
|
||||
{
|
||||
TextMap = new Dictionary<string, string>();
|
||||
while (reader.Read())
|
||||
{
|
||||
if (reader.TokenType == JsonToken.PropertyName)
|
||||
{
|
||||
TextMap.Add((string)reader.Value, reader.ReadAsString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
269
Source/GrasscutterTools/GrasscutterTools.csproj
Normal file
@@ -0,0 +1,269 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{5E0D32CF-AF0D-4D51-B477-5131E2C87002}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>GrasscutterTools</RootNamespace>
|
||||
<AssemblyName>GrasscutterTools</AssemblyName>
|
||||
<UICulture>en-US</UICulture>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>Resources\IconGrasscutter.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xaml">
|
||||
<RequiredTargetFramework>4.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="DispatchServer\Model\ServerStatus.cs" />
|
||||
<Compile Include="Events\CommandGeneratedEventArgs.cs" />
|
||||
<Compile Include="Events\ListChangedEventArgs.cs" />
|
||||
<Compile Include="Game\CommandGenerator.cs" />
|
||||
<Compile Include="Game\CommandVersion.cs" />
|
||||
<Compile Include="Game\Gacha\BannerType.cs" />
|
||||
<Compile Include="Game\Gacha\GachaBanner.cs" />
|
||||
<Compile Include="Game\Gacha\GachaBanner2.cs" />
|
||||
<Compile Include="Game\GameCommand.cs" />
|
||||
<Compile Include="Game\GameData.cs" />
|
||||
<Compile Include="Game\ItemMap.cs" />
|
||||
<Compile Include="Game\SetStatsCommand.cs" />
|
||||
<Compile Include="Game\TextMapData.cs" />
|
||||
<Compile Include="GOOD\Artifact.cs" />
|
||||
<Compile Include="GOOD\Character.cs" />
|
||||
<Compile Include="GOOD\GOOD.cs" />
|
||||
<Compile Include="GOOD\GOODData.cs" />
|
||||
<Compile Include="GOOD\Weapon.cs" />
|
||||
<Compile Include="Interfaces\IPageCommand.cs" />
|
||||
<Compile Include="Interfaces\IPageListProvider.cs" />
|
||||
<Compile Include="Models\GameItem.cs" />
|
||||
<Compile Include="Models\GameItems.cs" />
|
||||
<Compile Include="OpenCommand\OpenCommandAPI.cs" />
|
||||
<Compile Include="Pages\PageGive.xaml.cs">
|
||||
<DependentUpon>PageGive.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Pages\PageTools.xaml.cs">
|
||||
<DependentUpon>PageTools.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Pages\PageHome.xaml.cs">
|
||||
<DependentUpon>PageHome.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utils\ArtifactUtils.cs" />
|
||||
<Compile Include="Utils\HttpHelper.cs" />
|
||||
<Compile Include="Utils\ReleaseAPI.cs" />
|
||||
<Page Include="Pages\PageGive.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="Pages\PageTools.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Pages\PageHome.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="Styles\ScrollViewerStyle.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="Themes\ExpressionDark\Theme.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="Themes\ExpressionLight\Theme.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Windows\MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DispatchServer\DispatchServerAPI.cs" />
|
||||
<Compile Include="Utils\SparseSet.cs" />
|
||||
<Compile Include="Windows\MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.ru-RU.resx" />
|
||||
<EmbeddedResource Include="Properties\Resources.zh-CN.resx" />
|
||||
<EmbeddedResource Include="Properties\Resources.zh-TW.resx" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="Resources\en-us\AvatarStats.json" />
|
||||
<None Include="Resources\ru-ru\AvatarStats.json" />
|
||||
<None Include="Resources\zh-cn\AvatarStats.json" />
|
||||
<None Include="Resources\zh-tw\AvatarStats.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json">
|
||||
<Version>13.0.1</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\zh-cn\Dungeons.txt" />
|
||||
<Resource Include="Resources\en-us\ArtifactSets.txt" />
|
||||
<Resource Include="Resources\en-us\ArtifactMainAttribution.txt" />
|
||||
<Resource Include="Resources\en-us\ArtifactSubAttribution.txt" />
|
||||
<Resource Include="Resources\en-us\CustomCommands.txt" />
|
||||
<Resource Include="Resources\en-us\GachaBennerPrefab.txt" />
|
||||
<Resource Include="Resources\IconGrasscutter.ico" />
|
||||
<Resource Include="Resources\IconGrasscutter.png" />
|
||||
<Resource Include="Resources\ImgHome.jpg" />
|
||||
<Resource Include="Resources\ImgSupport.png" />
|
||||
<Resource Include="Resources\Permissions.txt" />
|
||||
<Resource Include="Resources\ru-ru\ArtifactSets.txt" />
|
||||
<Resource Include="Resources\ru-ru\ArtifactMainAttribution.txt" />
|
||||
<Resource Include="Resources\ru-ru\ArtifactSubAttribution.txt" />
|
||||
<Resource Include="Resources\ru-ru\CustomCommands.txt" />
|
||||
<Resource Include="Resources\ru-ru\GachaBennerPrefab.txt" />
|
||||
<Resource Include="Resources\zh-cn\ArtifactSets.txt" />
|
||||
<Resource Include="Resources\zh-cn\ArtifactMainAttribution.txt" />
|
||||
<Resource Include="Resources\zh-cn\ArtifactSubAttribution.txt" />
|
||||
<Resource Include="Resources\zh-cn\CustomCommands.txt" />
|
||||
<Resource Include="Resources\zh-cn\GachaBennerPrefab.txt" />
|
||||
<Resource Include="Resources\zh-cn\Items.txt" />
|
||||
<Resource Include="Resources\zh-cn\Monsters.txt" />
|
||||
<Resource Include="Resources\zh-cn\Quests.txt" />
|
||||
<Resource Include="Resources\zh-cn\Scenes.txt" />
|
||||
<Resource Include="Resources\zh-tw\ArtifactSets.txt" />
|
||||
<Resource Include="Resources\zh-tw\ArtifactMainAttribution.txt" />
|
||||
<Resource Include="Resources\zh-tw\ArtifactSubAttribution.txt" />
|
||||
<Resource Include="Resources\zh-tw\CustomCommands.txt" />
|
||||
<Resource Include="Resources\zh-tw\GachaBennerPrefab.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\zh-tw\Items.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\zh-tw\Monsters.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\zh-tw\Scenes.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\zh-tw\Dungeons.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\zh-tw\Quests.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\ru-ru\Items.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\ru-ru\Monsters.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\ru-ru\Scenes.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\ru-ru\Dungeons.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\ru-ru\Quests.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\en-us\Items.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\en-us\Monsters.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\en-us\Scenes.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\en-us\Dungeons.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\en-us\Quests.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\Colors.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\ru-ru\Avatars.txt" />
|
||||
<Resource Include="Resources\ru-ru\Weapons.txt" />
|
||||
<Resource Include="Resources\en-us\Avatars.txt" />
|
||||
<Resource Include="Resources\en-us\Weapons.txt" />
|
||||
<Content Include="Resources\MyLanguage.java" />
|
||||
<Content Include="Resources\MyTools.java" />
|
||||
<Resource Include="Resources\zh-tw\Avatars.txt" />
|
||||
<Resource Include="Resources\zh-tw\Weapons.txt" />
|
||||
<Resource Include="Resources\zh-cn\Avatars.txt" />
|
||||
<Resource Include="Resources\zh-cn\Relics.txt" />
|
||||
<Resource Include="Resources\zh-cn\Weapons.txt" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
26
Source/GrasscutterTools/GrasscutterTools.sln
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.3.32819.101
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GrasscutterTools", "GrasscutterTools.csproj", "{5E0D32CF-AF0D-4D51-B477-5131E2C87002}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5E0D32CF-AF0D-4D51-B477-5131E2C87002}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5E0D32CF-AF0D-4D51-B477-5131E2C87002}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5E0D32CF-AF0D-4D51-B477-5131E2C87002}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5E0D32CF-AF0D-4D51-B477-5131E2C87002}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
RESX_MoveToResources = {"Items":[{"Extensions":".cs,.vb","Patterns":"$Namespace.$File.$Key|$File.$Key|StringResourceKey.$Key|$Namespace.StringResourceKey.$Key|nameof($File.$Key), ResourceType = typeof($File)|ErrorMessageResourceType = typeof($File), ErrorMessageResourceName = nameof($File.$Key)"},{"Extensions":".cshtml,.vbhtml","Patterns":"@$Namespace.$File.$Key|@$File.$Key|@StringResourceKey.$Key|@$Namespace.StringResourceKey.$Key"},{"Extensions":".cpp,.c,.hxx,.h","Patterns":"$File::$Key"},{"Extensions":".aspx,.ascx","Patterns":"<%$ Resources:$File,$Key %>|<%= $File.$Key %>|<%= $Namespace.$File.$Key %>"},{"Extensions":".xaml","Patterns":"\"{x:Static p:$File.$Key}\""},{"Extensions":".ts","Patterns":"resources.$Key"},{"Extensions":".html","Patterns":"{{ resources.$Key }}"}]}
|
||||
SolutionGuid = {77A77EB7-D47B-4EEE-934C-A820C8744334}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
11
Source/GrasscutterTools/Interfaces/IPageCommand.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
using GrasscutterTools.Events;
|
||||
|
||||
namespace GrasscutterTools.Interfaces
|
||||
{
|
||||
public interface IPageCommand
|
||||
{
|
||||
event EventHandler<CommandGeneratedEventArgs> CommandGenerated;
|
||||
}
|
||||
}
|
31
Source/GrasscutterTools/Interfaces/IPageListProvider.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using GrasscutterTools.Models;
|
||||
|
||||
namespace GrasscutterTools.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// 带列表的页面接口
|
||||
/// </summary>
|
||||
public interface IPageListProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表项选中时触发
|
||||
/// </summary>
|
||||
/// <param name="item">列表项</param>
|
||||
void OnListItemSelected(GameItem item);
|
||||
|
||||
/// <summary>
|
||||
/// 列表源
|
||||
/// </summary>
|
||||
GameItems ListSource { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否可以分组
|
||||
/// </summary>
|
||||
bool CanGroup { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 类别
|
||||
/// </summary>
|
||||
string[] Categories { get; }
|
||||
}
|
||||
}
|
16
Source/GrasscutterTools/Models/GameItem.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace GrasscutterTools.Models
|
||||
{
|
||||
public class GameItem
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Category { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{Id} : {Name}";
|
||||
}
|
||||
}
|
||||
}
|
35
Source/GrasscutterTools/Models/GameItems.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace GrasscutterTools.Models
|
||||
{
|
||||
public class GameItems : Collection<GameItem>
|
||||
{
|
||||
public GameItems(string sources)
|
||||
{
|
||||
var lines = sources.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
var category = string.Empty;
|
||||
foreach (var line in lines)
|
||||
{
|
||||
if (line.StartsWith("//"))
|
||||
{
|
||||
category = line.Substring(2).Trim().Replace('_', ' ').ToLowerInvariant();
|
||||
category = char.ToUpperInvariant(category[0]) + category.Substring(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
var sp = line.IndexOf(':');
|
||||
if (sp >= 0)
|
||||
{
|
||||
Items.Add(new GameItem
|
||||
{
|
||||
Id = int.Parse(line.Substring(0, sp).Trim()),
|
||||
Name = line.Substring(sp + 1).Trim(),
|
||||
Category = category
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
125
Source/GrasscutterTools/OpenCommand/OpenCommandAPI.cs
Normal file
@@ -0,0 +1,125 @@
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2022 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using GrasscutterTools.Utils;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.OpenCommand
|
||||
{
|
||||
public class OpenCommandAPI
|
||||
{
|
||||
public OpenCommandAPI(string host, string token = "")
|
||||
{
|
||||
Host = host;
|
||||
API = host + "/opencommand/api";
|
||||
Token = token;
|
||||
CanInvoke = !string.IsNullOrEmpty(token);
|
||||
}
|
||||
|
||||
public string Host { get; }
|
||||
|
||||
private readonly string API;
|
||||
|
||||
public string Token { get; set; }
|
||||
|
||||
public bool CanInvoke { get; private set; }
|
||||
|
||||
public async Task<bool> Ping()
|
||||
{
|
||||
try
|
||||
{
|
||||
var response = await DoRequest("ping");
|
||||
return response.RetCode == 200;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public async Task SendCode(int playerId)
|
||||
{
|
||||
var response = await DoRequest("sendCode", playerId);
|
||||
Token = response.Data as string;
|
||||
}
|
||||
|
||||
public async Task Verify(int code)
|
||||
{
|
||||
await DoRequest("verify", code);
|
||||
CanInvoke = true;
|
||||
}
|
||||
|
||||
public async Task<string> Invoke(string command)
|
||||
{
|
||||
var response = await DoRequest("command", command);
|
||||
return response.Data as string;
|
||||
}
|
||||
|
||||
private async Task<Response> DoRequest(string action, object data = null)
|
||||
{
|
||||
var response = await HttpHelper.PostAsync<Response>(API, new Request(Token, action, data));
|
||||
if (response.RetCode == 401)
|
||||
Token = "";
|
||||
if (response.RetCode != 200)
|
||||
throw new InvokeException(response.Message);
|
||||
return response;
|
||||
}
|
||||
|
||||
public class Request
|
||||
{
|
||||
public Request(string token, string action, object data)
|
||||
{
|
||||
Token = token;
|
||||
Action = action;
|
||||
Data = data;
|
||||
}
|
||||
|
||||
[JsonProperty("token")]
|
||||
public string Token { get; set; }
|
||||
|
||||
[JsonProperty("action")]
|
||||
public string Action { get; set; }
|
||||
|
||||
[JsonProperty("data")]
|
||||
public object Data { get; set; }
|
||||
}
|
||||
|
||||
public class Response
|
||||
{
|
||||
[JsonProperty("retcode")]
|
||||
public int RetCode { get; set; }
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonProperty("data")]
|
||||
public object Data { get; set; }
|
||||
}
|
||||
|
||||
internal class InvokeException : Exception
|
||||
{
|
||||
public InvokeException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
185
Source/GrasscutterTools/Pages/PageGive.xaml
Normal file
@@ -0,0 +1,185 @@
|
||||
<Page
|
||||
x:Class="GrasscutterTools.Pages.PageGive"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:GrasscutterTools.Pages"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="PageGive"
|
||||
d:Background="{StaticResource NormalBorderBrush}"
|
||||
d:DesignHeight="420"
|
||||
d:DesignWidth="490"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid Margin="8">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 获取角色 -->
|
||||
<GroupBox
|
||||
Grid.Row="0"
|
||||
Padding="4"
|
||||
Header="Avatar">
|
||||
<DockPanel>
|
||||
<!-- 获取所有角色 -->
|
||||
<Button
|
||||
Padding="8,4"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center">
|
||||
All Avatars
|
||||
</Button>
|
||||
|
||||
<!-- 角色等级 -->
|
||||
<Label Margin="8,0,0,0" VerticalAlignment="Center">Level:</Label>
|
||||
<TextBox
|
||||
Width="30"
|
||||
Margin="4,0,0,0"
|
||||
VerticalAlignment="Center">
|
||||
90
|
||||
</TextBox>
|
||||
|
||||
<!-- 角色命座 -->
|
||||
<Label Margin="8,0,0,0" VerticalAlignment="Center">Constellation:</Label>
|
||||
<TextBox
|
||||
Width="30"
|
||||
Margin="4,0,0,0"
|
||||
VerticalAlignment="Center">
|
||||
5
|
||||
</TextBox>
|
||||
|
||||
<!-- 角色下拉框 -->
|
||||
<ComboBox
|
||||
x:Name="CmbAvatar"
|
||||
Margin="8,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
IsEditable="True" />
|
||||
</DockPanel>
|
||||
</GroupBox>
|
||||
|
||||
<!-- 获取武器 -->
|
||||
<GroupBox
|
||||
Grid.Row="1"
|
||||
Margin="0,4,0,0"
|
||||
Padding="4"
|
||||
Header="Weapon">
|
||||
<DockPanel>
|
||||
<!-- 获取所有武器 -->
|
||||
<Button
|
||||
Padding="8,4"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center">
|
||||
All Weapons
|
||||
</Button>
|
||||
|
||||
<!-- 武器等级 -->
|
||||
<Label Margin="8,0,0,0" VerticalAlignment="Center">Level:</Label>
|
||||
<TextBox
|
||||
Width="30"
|
||||
Margin="4,0,0,0"
|
||||
VerticalAlignment="Center">
|
||||
90
|
||||
</TextBox>
|
||||
|
||||
<!-- 精练等级 -->
|
||||
<Label Margin="8,0,0,0" VerticalAlignment="Center">Refinement:</Label>
|
||||
<TextBox
|
||||
Width="30"
|
||||
Margin="4,0,0,0"
|
||||
VerticalAlignment="Center">
|
||||
5
|
||||
</TextBox>
|
||||
|
||||
<!-- 武器下拉框 -->
|
||||
<ComboBox
|
||||
x:Name="CmbWeapon"
|
||||
Margin="8,0,0,0"
|
||||
VerticalAlignment="Center" />
|
||||
</DockPanel>
|
||||
</GroupBox>
|
||||
|
||||
<!-- 获取材料物品 -->
|
||||
<GroupBox
|
||||
Grid.Row="2"
|
||||
Margin="0,4,0,0"
|
||||
Padding="4"
|
||||
Header="Item">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel
|
||||
Grid.Row="0"
|
||||
HorizontalAlignment="Left"
|
||||
Orientation="Horizontal">
|
||||
<!-- 获取所有材料 -->
|
||||
<Button
|
||||
Padding="8,4"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center">
|
||||
All Mats
|
||||
</Button>
|
||||
|
||||
<!-- 物品数量 -->
|
||||
<Label Margin="8,0,0,0" VerticalAlignment="Center">Amount:</Label>
|
||||
<TextBox
|
||||
Width="50"
|
||||
Margin="4,0,0,0"
|
||||
VerticalAlignment="Center">
|
||||
99
|
||||
</TextBox>
|
||||
|
||||
<!-- 物品ID -->
|
||||
<Label Margin="8,0,0,0" VerticalAlignment="Center">Id:</Label>
|
||||
<TextBox
|
||||
Width="50"
|
||||
Margin="4,0,0,0"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
|
||||
<!-- 操作按钮 -->
|
||||
<StackPanel
|
||||
Grid.Row="0"
|
||||
HorizontalAlignment="Right"
|
||||
Orientation="Horizontal">
|
||||
<!-- 添加记录 -->
|
||||
<Button
|
||||
Padding="8,4"
|
||||
VerticalAlignment="Center"
|
||||
IsEnabled="False">
|
||||
√ Record
|
||||
</Button>
|
||||
<!-- 删除记录 -->
|
||||
<Button
|
||||
Margin="4,0,0,0"
|
||||
Padding="8,4"
|
||||
VerticalAlignment="Center"
|
||||
IsEnabled="False">
|
||||
× Delete
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<Label
|
||||
Grid.Row="1"
|
||||
Margin="4"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top">
|
||||
Records:
|
||||
</Label>
|
||||
<Label
|
||||
Grid.Row="1"
|
||||
Margin="4"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Bottom"
|
||||
Cursor="Hand"
|
||||
Foreground="OrangeRed">
|
||||
× Clear
|
||||
</Label>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
</Page>
|
53
Source/GrasscutterTools/Pages/PageGive.xaml.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
using GrasscutterTools.Events;
|
||||
using GrasscutterTools.Game;
|
||||
using GrasscutterTools.Interfaces;
|
||||
using GrasscutterTools.Models;
|
||||
|
||||
namespace GrasscutterTools.Pages
|
||||
{
|
||||
/// <summary>
|
||||
/// PageGive.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class PageGive : Page, IPageListProvider, IPageCommand
|
||||
{
|
||||
public PageGive()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
ListSource = new GameItems(Properties.Resources.Items);
|
||||
Categories = ListSource.Select(it => it.Category).Distinct().ToArray();
|
||||
OnCommandGenerated("");
|
||||
}
|
||||
|
||||
public GameItems ListSource { get; private set; }
|
||||
|
||||
public bool CanGroup => true;
|
||||
|
||||
public string[] Categories { get; private set; }
|
||||
|
||||
public event EventHandler<CommandGeneratedEventArgs> CommandGenerated;
|
||||
private void OnCommandGenerated(string command)
|
||||
=> CommandGenerated?.Invoke(this, new CommandGeneratedEventArgs(command));
|
||||
|
||||
public void OnListItemSelected(GameItem item)
|
||||
{
|
||||
//LblTest.Content = item;
|
||||
}
|
||||
}
|
||||
}
|
25
Source/GrasscutterTools/Pages/PageHome.xaml
Normal file
@@ -0,0 +1,25 @@
|
||||
<Page
|
||||
x:Class="GrasscutterTools.Pages.PageHome"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:GrasscutterTools.Pages"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="PageHome"
|
||||
d:Background="{StaticResource NormalBorderBrush}"
|
||||
d:DesignHeight="420"
|
||||
d:DesignWidth="490"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid>
|
||||
<Image Source="/Resources/ImgHome.jpg" />
|
||||
<Label
|
||||
x:Name="LblWelcome"
|
||||
Margin="0,16,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
FontSize="20">
|
||||
Welcome to GrasscutterTools
|
||||
</Label>
|
||||
</Grid>
|
||||
</Page>
|
28
Source/GrasscutterTools/Pages/PageHome.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace GrasscutterTools.Pages
|
||||
{
|
||||
/// <summary>
|
||||
/// PageHome.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class PageHome : Page
|
||||
{
|
||||
public PageHome()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
24
Source/GrasscutterTools/Pages/PageTools.xaml
Normal file
@@ -0,0 +1,24 @@
|
||||
<Page
|
||||
x:Class="GrasscutterTools.Pages.PageTools"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:GrasscutterTools.Pages"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="PageTools"
|
||||
d:Background="{StaticResource NormalBorderBrush}"
|
||||
d:DesignHeight="420"
|
||||
d:DesignWidth="490"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid>
|
||||
|
||||
<Button
|
||||
x:Name="BtnIdMergeTool"
|
||||
Padding="16,8"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Click="BtnIdMergeTool_Click"
|
||||
Content="Id Merge Tool" />
|
||||
</Grid>
|
||||
</Page>
|
71
Source/GrasscutterTools/Pages/PageTools.xaml.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace GrasscutterTools.Pages
|
||||
{
|
||||
/// <summary>
|
||||
/// PageHome.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class PageTools : Page
|
||||
{
|
||||
public PageTools()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void BtnIdMergeTool_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var src = new OpenFileDialog
|
||||
{
|
||||
Title = "请选择原文件",
|
||||
Multiselect = false,
|
||||
};
|
||||
var dest = new OpenFileDialog
|
||||
{
|
||||
Title = "请选择目标文件",
|
||||
Multiselect = false,
|
||||
};
|
||||
|
||||
if (src.ShowDialog() == true && dest.ShowDialog() == true)
|
||||
{
|
||||
var srcLines = File.ReadAllLines(src.FileName);
|
||||
var srcDic = new Dictionary<string, string>(srcLines.Length);
|
||||
foreach (var line in srcLines)
|
||||
{
|
||||
var sp = line.IndexOf(':');
|
||||
if (sp > 0)
|
||||
{
|
||||
var value = line.Substring(sp + 1).Trim();
|
||||
if (!value.StartsWith("[N/A]"))
|
||||
srcDic[line.Substring(0, sp).Trim()] = line.Substring(sp+1).Trim();
|
||||
}
|
||||
}
|
||||
|
||||
var destLines = File.ReadAllLines(dest.FileName);
|
||||
using (var outStream = File.Create(dest.FileName))
|
||||
using (var outTxtStream = new StreamWriter(outStream))
|
||||
{
|
||||
foreach (var line in destLines)
|
||||
{
|
||||
var sp = line.IndexOf(':');
|
||||
if (sp == -1)
|
||||
{
|
||||
outTxtStream.WriteLine(line);
|
||||
}
|
||||
else
|
||||
{
|
||||
var key = line.Substring(0, sp).Trim();
|
||||
if (!srcDic.TryGetValue(key, out var value))
|
||||
value = line.Substring(sp + 1).Trim();
|
||||
outTxtStream.WriteLine($"{key}:{value}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
54
Source/GrasscutterTools/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("GrasscutterTools")]
|
||||
[assembly: AssemblyDescription("Grasscutter Command Generator")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("GrasscutterTools")]
|
||||
[assembly: AssemblyCopyright("Copyright © jie65535 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
//若要开始生成可本地化的应用程序,请设置
|
||||
//.csproj 文件中的 <UICulture>CultureYouAreCodingWith</UICulture>
|
||||
//例如,如果您在源文件中使用的是美国英语,
|
||||
//使用的是美国英语,请将 <UICulture> 设置为 en-US。 然后取消
|
||||
//对以下 NeutralResourceLanguage 特性的注释。 更新
|
||||
//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
|
||||
|
||||
[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
||||
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //主题特定资源词典所处位置
|
||||
//(未在页面中找到资源时使用,
|
||||
//或应用程序资源字典中找到时使用)
|
||||
ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
|
||||
//(未在页面中找到资源时使用,
|
||||
//、应用程序或任何主题专用资源字典中找到时使用)
|
||||
)]
|
||||
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.0.0")]
|
||||
[assembly: AssemblyFileVersion("2.0.0")]
|
493
Source/GrasscutterTools/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,493 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GrasscutterTools.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
public static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GrasscutterTools.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
public static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 10001: HP
|
||||
///10002: HP Percentage
|
||||
///10003: ATK
|
||||
///10004: ATK Percentage
|
||||
///10005: DEF
|
||||
///10006: DEF Percentage
|
||||
///10007: Energy Recharge
|
||||
///10008: Elemental Mastery
|
||||
///10009: Pyro RES
|
||||
///10010: Electro RES
|
||||
///10011: Cryo RES
|
||||
///10012: Hydro RES
|
||||
///10013: Anemo RES
|
||||
///10014: Geo RES
|
||||
///10015: Dendro RES
|
||||
///12001: ATK
|
||||
///13001: HP
|
||||
///13002: HP Percentage
|
||||
///13003: ATK
|
||||
///13004: ATK Percentage
|
||||
///13005: DEF
|
||||
///13006: DEF Percentage
|
||||
///13007: CRIT Rate
|
||||
///13008: CRIT DMG
|
||||
///13009: Healing Bonus
|
||||
///13010: Elemental Mastery
|
||||
///14001: HP
|
||||
///15001: HP
|
||||
///15002: HP Perc [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string ArtifactMainAttribution {
|
||||
get {
|
||||
return ResourceManager.GetString("ArtifactMainAttribution", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 20:Deepwood Memories
|
||||
///21:Gilded Dreams
|
||||
///51:Resolution of Sojourner
|
||||
///52:Brave Heart
|
||||
///53:Defender's Will
|
||||
///54:Tiny Miracle
|
||||
///55:Berserker
|
||||
///56:Martial Artist
|
||||
///57:Instructor
|
||||
///58:Gambler
|
||||
///59:The Exile
|
||||
///60:Adventurer
|
||||
///61:Lucky Dog
|
||||
///62:Scholar
|
||||
///63:Traveling Doctor
|
||||
///71:Blizzard Strayer
|
||||
///72:Thundersoother
|
||||
///73:Lavawalker
|
||||
///74:Maiden Beloved
|
||||
///75:Gladiator's Finale
|
||||
///76:Viridescent Venerer
|
||||
///77:Wanderer's Troupe
|
||||
///78:Glacier and Snowfield
|
||||
///79:Thundering Fury
|
||||
///80:Crimson Witch of Flames
|
||||
///81:Noblesse Oblige
|
||||
///82:Bloodstained Ch [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string ArtifactSets {
|
||||
get {
|
||||
return ResourceManager.GetString("ArtifactSets", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 101021: HP+24
|
||||
///101022: HP+30
|
||||
///201021: HP+50
|
||||
///201022: HP+61
|
||||
///201023: HP+72
|
||||
///301021: HP+100
|
||||
///301022: HP+115
|
||||
///301023: HP+129
|
||||
///301024: HP+143
|
||||
///401021: HP+167
|
||||
///401022: HP+191
|
||||
///401023: HP+215
|
||||
///401024: HP+239
|
||||
///501021: HP+209
|
||||
///501022: HP+239
|
||||
///501023: HP+269
|
||||
///501024: HP+299
|
||||
///101031: HP Percentage+1.2%
|
||||
///101032: HP Percentage+1.5%
|
||||
///201031: HP Percentage+1.6%
|
||||
///201032: HP Percentage+2.0%
|
||||
///201033: HP Percentage+2.3%
|
||||
///301031: HP Percentage+2.4%
|
||||
///301032: HP Percentage+2.8%
|
||||
///301033: HP Percentage+3.2%
|
||||
///301034: HP Percentage [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string ArtifactSubAttribution {
|
||||
get {
|
||||
return ResourceManager.GetString("ArtifactSubAttribution", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Byte[] 类型的本地化资源。
|
||||
/// </summary>
|
||||
public static byte[] AvatarStats {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("AvatarStats", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Byte[] 类型的本地化资源。
|
||||
/// </summary>
|
||||
public static byte[] Colors {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Colors", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 God Mode
|
||||
////prop god on
|
||||
///NoStamina
|
||||
////prop ns on
|
||||
///Unlimited Energy
|
||||
////prop ue on
|
||||
///Level up to 60
|
||||
////give 102 x1880200
|
||||
///Set World Level
|
||||
////prop wl 8
|
||||
///Unlock Map
|
||||
////prop unlockmap 1
|
||||
///Unlock The Tower
|
||||
////prop ut 12
|
||||
///Set BattlePass Level
|
||||
////prop bp 50
|
||||
///Set Friendship Level
|
||||
////setfetterlevel 10
|
||||
///Heal
|
||||
////h
|
||||
///Suicide
|
||||
////kill 0
|
||||
///Charge Energy
|
||||
////spawn 2008 25
|
||||
///Where am I?
|
||||
////pos
|
||||
///Give me ALL!
|
||||
////give all x9999 lv90 c6 r5
|
||||
///10k Intertwined Fates
|
||||
////give 223 x10000
|
||||
///10k Acquaint Fates
|
||||
////give 224 x10000
|
||||
///100k Primogem
|
||||
////give 201 x1000 [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string CustomCommands {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomCommands", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 // Dungeons
|
||||
///1:Level_KaeyaTutorialMission01
|
||||
///2:Level_KaeyaTutorialMission01
|
||||
///3:Level_KaeyaTutorialMission01
|
||||
///4:PlotLevel_BarbaraMission02_Xyd
|
||||
///5:PlotLevel_BarbaraMission02_Xyd
|
||||
///6:PlotLevel_BarbaraMission02_Xyd
|
||||
///7:Level_UCDungeon01
|
||||
///8:Level_UCDungeon01
|
||||
///9:Level_UCDungeon01
|
||||
///10:Level_PFDungeon01
|
||||
///11:Level_FCdungeon_Kettle01
|
||||
///12:Level_Wisdom03
|
||||
///13:Level_Gameplay_Test
|
||||
///15:TestLevel_Cold_LYX
|
||||
///16:ClimbTest1
|
||||
///17:TestLevel_Battle_CLX
|
||||
///18:Level_PowerCharge_Test
|
||||
///19:Level_CycleDungeon02_Normal
|
||||
///20:Level_CycleDungeon02_Normal
|
||||
///21:Level_C [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string Dungeons {
|
||||
get {
|
||||
return ResourceManager.GetString("Dungeons", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 007:Beginners' wish
|
||||
///008:Wanderlust Invocation
|
||||
///009:Ballad in Goblets
|
||||
///010:Dawn Pilgrimage
|
||||
///011:Grace of Southwind
|
||||
///012:Bane of All Evil
|
||||
///013:Epitome Invocation
|
||||
///015:Sparkling Steps
|
||||
///016:Beginners' wish
|
||||
///017:Wanderlust Invocation
|
||||
///018:Sparkling Steps
|
||||
///019:Ballad in Goblets
|
||||
///020:Epitome Invocation
|
||||
///021:Epitome Invocation
|
||||
///022:Wanderlust Invocation
|
||||
///023:Farewell of Snezhnaya
|
||||
///024:Gentry of Hermitage
|
||||
///027:Secretum Secretorum
|
||||
///028:Adrift in the Harbor
|
||||
///031:Invitation to Mundane Life
|
||||
///032:Dance of Lanterns
|
||||
///033: [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string GachaBennerPrefab {
|
||||
get {
|
||||
return ResourceManager.GetString("GachaBennerPrefab", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 GrasscutterTools 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string GrasscutterTools {
|
||||
get {
|
||||
return ResourceManager.GetString("GrasscutterTools", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似于 (图标) 的 System.Drawing.Icon 类型的本地化资源。
|
||||
/// </summary>
|
||||
public static System.Drawing.Icon IconGrasscutter {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("IconGrasscutter", resourceCulture);
|
||||
return ((System.Drawing.Icon)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap ImgGrasscutter {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("ImgGrasscutter", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap ImgHome {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("ImgHome", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap ImgSupport {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("ImgSupport", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 // VirtualItems
|
||||
///101:Character EXP
|
||||
///102:Adventure EXP
|
||||
///105:Companionship EXP
|
||||
///106:Original Resin
|
||||
///107:Story Key
|
||||
///108:[CHS] - (test)天体推演
|
||||
///109:Fading Star's Might
|
||||
///110:Fading Star's Essence
|
||||
///111:Glimmering Essence
|
||||
///112:Warm Essence
|
||||
///113:Miraculous Essence
|
||||
///114:Iron Coin
|
||||
///115:Peace Talisman
|
||||
///116:Festive Fever
|
||||
///117:Veneficus Sigil
|
||||
///118:Festive Tour Ticket
|
||||
///119:Peculiar Collab Coupon
|
||||
///120:Heart of the Spring
|
||||
///121:Trust
|
||||
///122:Fractured Fruit Data
|
||||
///123:Windtrace Coins
|
||||
///124:Shiny Flotsam
|
||||
///125:Mini "Harpastum"
|
||||
///126:E [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string Items {
|
||||
get {
|
||||
return ResourceManager.GetString("Items", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 // MONSTER_NONE
|
||||
///
|
||||
///
|
||||
///// MONSTER_ORDINARY
|
||||
///20010101:Dendro Slime
|
||||
///20010201:Large Dendro Slime
|
||||
///20010202:Large Dendro Slime
|
||||
///20010301:Anemo Slime
|
||||
///20010302:Anemo Slime
|
||||
///20010401:Large Anemo Slime
|
||||
///20010402:Large Anemo Slime
|
||||
///20010403:Large Anemo Slime
|
||||
///20010501:Electro Slime
|
||||
///20010502:Electro Slime
|
||||
///20010601:Large Electro Slime
|
||||
///20010602:Large Electro Slime
|
||||
///20010604:Large Electro Slime
|
||||
///20010701:Mutant Electro Slime
|
||||
///20010702:Mutant Electro Slime
|
||||
///20010703:Mutant Electro Slime
|
||||
///20010801:Cryo Slime
|
||||
///20010802: [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string Monsters {
|
||||
get {
|
||||
return ResourceManager.GetString("Monsters", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 *
|
||||
///player.*
|
||||
///player.**
|
||||
///server.*
|
||||
///server.**
|
||||
///permission
|
||||
///player.clearinv
|
||||
///player.clearinv.others
|
||||
///player.enterdungeon
|
||||
///player.enterdungeon.others
|
||||
///player.give
|
||||
///player.give.others
|
||||
///player.heal
|
||||
///player.heal.others
|
||||
///player.killcharacter
|
||||
///player.killcharacter.others
|
||||
///player.quest
|
||||
///player.quest.others
|
||||
///player.resetconstellation
|
||||
///player.resetconstellation.others
|
||||
///player.setfetterlevel
|
||||
///player.setfetterlevel.others
|
||||
///player.setprop
|
||||
///player.setprop.others
|
||||
///player.setstats
|
||||
///player.setstats.others
|
||||
///player.settalent
|
||||
///p [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string Permissions {
|
||||
get {
|
||||
return ResourceManager.GetString("Permissions", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 30302:Goddess Statue Unlocked - [N/A] 362713143
|
||||
///30303:Goddess Statue Unlocked - [N/A] 715511863
|
||||
///30304:Goddess Statue Unlocked - [N/A] 163018255
|
||||
///30305:Goddess Statue Unlocked - [N/A] 3694648119
|
||||
///30306:Goddess Statue Unlocked - [N/A] 3223799591
|
||||
///30307:Goddess Statue Unlocked - [N/A] 1232757671
|
||||
///30308:Goddess Statue Unlocked - [N/A] 3056513767
|
||||
///30309:Goddess Statue Unlocked - [N/A] 2426653367
|
||||
///30310:Goddess Statue Unlocked - [N/A] 2003131071
|
||||
///30311:Goddess Statue Unlocked - [N/A] 105277231
|
||||
///30312:Goddess St [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string Quests {
|
||||
get {
|
||||
return ResourceManager.GetString("Quests", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 // Scenes
|
||||
///
|
||||
///
|
||||
///// SCENE_NONE
|
||||
///
|
||||
///
|
||||
///// SCENE_WORLD
|
||||
///1:BigWorld_LevelStreaming
|
||||
///2:BigWorld_LevelStreaming
|
||||
///3:BigWorld_LevelStreaming
|
||||
///4:LostParadise_LevelStreaming
|
||||
///5:AbyssalPalace_LevelStreaming
|
||||
///6:TheChasm_LevelStreaming
|
||||
///7:MichiaeMatsuri_LevelStreaming
|
||||
///9:DreamIsland_LevelStreaming
|
||||
///1002:ClimbTest2
|
||||
///1003:TheBigWorld
|
||||
///1030:TestIntercept_LiYue
|
||||
///50020:ClimbTest1
|
||||
///50069:TestLevel_ClimbBox
|
||||
///50071:TestWorld_APA_ZQQ
|
||||
///50073:PerformanceTest_LevelStreaming
|
||||
///
|
||||
///
|
||||
///// SCENE_DUNGEON
|
||||
///1001:ClimbTest1
|
||||
///1006:Level_PFDungeon01
|
||||
///1011:Level_Gameplay_Test [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string Scenes {
|
||||
get {
|
||||
return ResourceManager.GetString("Scenes", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
175
Source/GrasscutterTools/Properties/Resources.resx
Normal file
@@ -0,0 +1,175 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="ArtifactMainAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\ArtifactMainAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="ArtifactSets" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\ArtifactSets.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="ArtifactSubAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\ArtifactSubAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="AvatarStats" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\AvatarStats.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="Colors" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Colors.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="CustomCommands" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\CustomCommands.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="Dungeons" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\Dungeons.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="GachaBennerPrefab" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\GachaBennerPrefab.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="GrasscutterTools" xml:space="preserve">
|
||||
<value>GrasscutterTools</value>
|
||||
</data>
|
||||
<data name="IconGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgHome" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ImgHome.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgSupport" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ImgSupport.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Items" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\Items.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Monsters" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\Monsters.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Quests" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\Quests.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Scenes" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\en-us\Scenes.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
</root>
|
175
Source/GrasscutterTools/Properties/Resources.ru-ru.resx
Normal file
@@ -0,0 +1,175 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="ArtifactMainAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\ArtifactMainAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="ArtifactSets" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\ArtifactSets.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="ArtifactSubAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\ArtifactSubAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="AvatarStats" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\AvatarStats.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="Colors" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Colors.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="CustomCommands" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\CustomCommands.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="Dungeons" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\Dungeons.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="GachaBennerPrefab" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\GachaBennerPrefab.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="GrasscutterTools" xml:space="preserve">
|
||||
<value>GrasscutterTools</value>
|
||||
</data>
|
||||
<data name="IconGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgHome" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ImgHome.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgSupport" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ImgSupport.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Items" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\Items.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Monsters" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\Monsters.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Quests" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\Quests.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Scenes" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ru-ru\Scenes.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
</root>
|
175
Source/GrasscutterTools/Properties/Resources.zh-CN.resx
Normal file
@@ -0,0 +1,175 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="ArtifactMainAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\ArtifactMainAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="ArtifactSets" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\ArtifactSets.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="ArtifactSubAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\ArtifactSubAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="AvatarStats" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\AvatarStats.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="Colors" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Colors.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="CustomCommands" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\CustomCommands.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="Dungeons" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\Dungeons.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="GachaBennerPrefab" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\GachaBennerPrefab.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="GrasscutterTools" xml:space="preserve">
|
||||
<value>GrasscutterTools</value>
|
||||
</data>
|
||||
<data name="IconGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgHome" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ImgHome.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgSupport" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ImgSupport.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Items" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\Items.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Monsters" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\Monsters.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Quests" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\Quests.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Scenes" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-cn\Scenes.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
</root>
|
175
Source/GrasscutterTools/Properties/Resources.zh-TW.resx
Normal file
@@ -0,0 +1,175 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="ArtifactMainAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\ArtifactMainAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="ArtifactSets" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\ArtifactSets.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="ArtifactSubAttribution" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\ArtifactSubAttribution.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="AvatarStats" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\AvatarStats.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="Colors" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Colors.json;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="CustomCommands" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\CustomCommands.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="Dungeons" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\Dungeons.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="GachaBennerPrefab" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\GachaBennerPrefab.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="GrasscutterTools" xml:space="preserve">
|
||||
<value>GrasscutterTools</value>
|
||||
</data>
|
||||
<data name="IconGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgGrasscutter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconGrasscutter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgHome" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ImgHome.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ImgSupport" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ImgSupport.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Items" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\Items.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Monsters" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\Monsters.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
|
||||
</data>
|
||||
<data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Quests" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\Quests.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Scenes" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zh-tw\Scenes.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
</root>
|
30
Source/GrasscutterTools/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GrasscutterTools.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
Source/GrasscutterTools/Properties/Settings.settings
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
13
Source/GrasscutterTools/Resources/Colors.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"Avatars": {
|
||||
"Blue": [ 1062 ],
|
||||
"Green": [ 1067, 1069 ],
|
||||
"Purple": [ 1001, 1006, 1014, 1015, 1020, 1021, 1023, 1024, 1025, 1027, 1031, 1032, 1034, 1036, 1039, 1043, 1044, 1045, 1048, 1050, 1053, 1055, 1056, 1064, 1068 ],
|
||||
"Yellow": [ 1002, 1003, 1005, 1007, 1016, 1022, 1026, 1029, 1030, 1033, 1035, 1037, 1038, 1041, 1042, 1046, 1047, 1049, 1051, 1052, 1054, 1057, 1058, 1063, 1066 ]
|
||||
},
|
||||
"Weapons": {
|
||||
"Blue": [ 11301, 11302, 11303, 11304, 11305, 11306, 12301, 12302, 12303, 12304, 12305, 12306, 13301, 13302, 13303, 13304, 14301, 14302, 14303, 14304, 14305, 14306, 15301, 15302, 15303, 15304, 15305, 15306 ],
|
||||
"Purple": [ 11401, 11402, 11403, 11404, 11405, 11406, 11407, 11408, 11409, 11410, 11411, 11412, 11413, 11414, 11415, 12401, 12402, 12403, 12404, 12405, 12406, 12407, 12408, 12409, 12410, 12411, 12412, 12414, 12416, 13401, 13402, 13403, 13404, 13405, 13406, 13407, 13408, 13409, 13414, 13415, 13416, 14401, 14402, 14403, 14404, 14405, 14406, 14407, 14408, 14409, 14410, 14411, 14412, 14413, 14414, 14415, 15401, 15402, 15403, 15404, 15405, 15406, 15407, 15408, 15409, 15410, 15411, 15412, 15413, 15414, 15415, 15416 ],
|
||||
"Yellow": [ 11501, 11502, 11503, 11504, 11505, 11506, 11507, 11508, 11509, 11510, 12501, 12502, 12503, 12504, 12505, 12506, 12508, 12509, 12510, 13501, 13502, 13503, 13504, 13505, 13506, 13507, 13509, 14501, 14502, 14503, 14504, 14505, 14506, 14508, 14509, 15501, 15502, 15503, 15504, 15505, 15506, 15507, 15508, 15509, 15511 ]
|
||||
}
|
||||
}
|
BIN
Source/GrasscutterTools/Resources/IconGrasscutter.ico
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
Source/GrasscutterTools/Resources/IconGrasscutter.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
Source/GrasscutterTools/Resources/ImgHome.jpg
Normal file
After Width: | Height: | Size: 175 KiB |