initial commit
This commit is contained in:
commit
e31dcc097d
16 changed files with 1147 additions and 0 deletions
398
.gitignore
vendored
Normal file
398
.gitignore
vendored
Normal file
|
@ -0,0 +1,398 @@
|
|||
/_/
|
||||
/WBM/dll
|
||||
|
||||
# Unaltered
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/csharp
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=csharp
|
||||
|
||||
### Csharp ###
|
||||
## 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/
|
||||
[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
|
||||
*.tlog
|
||||
*.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
|
||||
|
||||
# Nuget personal access tokens and Credentials
|
||||
nuget.config
|
||||
|
||||
# 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
|
||||
|
||||
# VS Code files for those working on multiple tools
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Windows Installer files from build outputs
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# JetBrains Rider
|
||||
.idea/
|
||||
*.sln.iml
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/csharp
|
3
.vscode/extensions.json
vendored
Normal file
3
.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"recommendations": ["esbenp.prettier-vscode", "ms-dotnettools.csharp"]
|
||||
}
|
11
.vscode/settings.json
vendored
Normal file
11
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"cSpell.words": ["Behaviour", "headshot", "wbm"],
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnPaste": true,
|
||||
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
|
||||
"[csharp]": {
|
||||
"editor.defaultFormatter": "ms-dotnettools.csharp"
|
||||
}
|
||||
}
|
19
LICENSE
Normal file
19
LICENSE
Normal file
|
@ -0,0 +1,19 @@
|
|||
Copyright (c) 2021 developomp
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||
OR OTHER DEALINGS IN THE SOFTWARE.
|
162
README.md
Normal file
162
README.md
Normal file
|
@ -0,0 +1,162 @@
|
|||
# [War Brokers Mods (WBM)](https://github.com/developomp/WBM)
|
||||
|
||||

|
||||
e
|
||||
|
||||
> **IF YOU USE THIS TO DEVELOP HACKS YOUR MOM IS GAY.**
|
||||
|
||||
<p align="center">
|
||||
<img src="images/WBM.png" alt="WBM logo"/>
|
||||
</p>
|
||||
|
||||
> **WARNING**<br />
|
||||
> WBM only works with steam clients. It is **NOT compatible with browsers**.
|
||||
|
||||
**W**ar **B**rokers **M**ods, AKA **WBM** is a unofficial mod for [War Brokers](https://store.steampowered.com/app/750470).<br />
|
||||
|
||||
Example:<br />
|
||||

|
||||
|
||||
## Installation
|
||||
|
||||
Officially supported platforms: Windows, MacOS, and Linux
|
||||
|
||||
> **WARNING**<br />
|
||||
> I do not upload WBM anywhere other than github. If you find it elsewhere, IT IS NOT UPLOADED BY ME.
|
||||
|
||||
### Installing BepInEx
|
||||
|
||||
1. Download the latest version of BepInEx **version 5** from [here](https://github.com/BepInEx/BepInEx/releases).
|
||||
|
||||
| Platform | Filename |
|
||||
| ------------: | :---------------------------- |
|
||||
| Linux & MacOS | BepInEx_unix\_**5**.Y.Z.W.zip |
|
||||
| Windows 64bit | BepInEx_x64\_**5**.Y.Z.W.zip |
|
||||
| Windows 32bit | BepInEx_x86\_**5**.Y.Z.W.zip |
|
||||
|
||||
2. Extract (Unzip) the content**s** to where the game executable is located.
|
||||
|
||||

|
||||
|
||||
3. If you are using Linux or MacOS, you must also perform the following setup:
|
||||
|
||||
https://docs.bepinex.dev/v5.4.11/articles/advanced/steam_interop.html
|
||||
|
||||
4. Run the game at least once to generate necessary files.
|
||||
|
||||
### Installing WBM
|
||||
|
||||
1. [Download](https://github.com/developomp/WBM/releases/latest) the latest version of WBM
|
||||
2. Put the dll file in the `<Game foler>BepInEx/plugins` folder.
|
||||
|
||||
### Setting up OBS
|
||||
|
||||
WIP...
|
||||
|
||||
That's it! Now you're a proud user of WBM!
|
||||
|
||||
## Features
|
||||
|
||||
Full list of features:
|
||||
|
||||
- [x] in-game overlays
|
||||
- [ ] OBS overlays
|
||||
- [ ] design custom OBS overlays
|
||||
- [ ] customize game audio, textures, and text.
|
||||
|
||||
- available data:
|
||||
|
||||
- [ ] kill streak per player
|
||||
- [x] longest kill per player per match
|
||||
- [x] kills Elo
|
||||
- [x] games Elo
|
||||
- [x] kills Elo earned/lost
|
||||
- [x] games Elo earned/lost
|
||||
- [x] total headshot count per player
|
||||
- [ ] headshot count per player per weapon
|
||||
- [ ] hit accuracy per match
|
||||
- [ ] damage dealt per player per match
|
||||
- [ ] game version
|
||||
- [ ] game mode
|
||||
- [ ] team score
|
||||
- [x] kills per player per match
|
||||
- [x] deaths per player per match
|
||||
- [ ] server id
|
||||
- [ ] streamer ID
|
||||
- [ ] survivors left in a BR match
|
||||
- [ ] teammate name
|
||||
- [ ] played game history (win, lose, and by how much)
|
||||
- [ ] ping in millisecond per player
|
||||
- [ ] if a player is a bot or not
|
||||
- [ ] Daily and history record
|
||||
|
||||
# Building
|
||||
|
||||
If you are a casual user, this is completely unnecessary. This is only recommended for fellow developers.
|
||||
|
||||
> Assumes that working directory is project root.
|
||||
|
||||
1. Install .NET sdk.
|
||||
|
||||
MacOS:
|
||||
|
||||
https://docs.microsoft.com/en-us/dotnet/core/install/macos
|
||||
|
||||
Windows:
|
||||
|
||||
https://docs.microsoft.com/en-us/dotnet/core/install/windows
|
||||
|
||||
Linux:
|
||||
|
||||
https://docs.microsoft.com/en-us/dotnet/core/install/linux
|
||||
|
||||
Arch linux:
|
||||
|
||||
```bash
|
||||
pacman -S dotnet-sdk
|
||||
```
|
||||
|
||||
2. Clone this repository.
|
||||
3. Copy the following DLL files from `<WB install path>/war_brokers_Data/Managed` (in WB) to `./WBM/dll`. Create directory if it does not exist.
|
||||
|
||||
- `Assembly-CSharp.dll`
|
||||
- `Assembly-CSharp-firstpass.dll`
|
||||
- `UnityEngine.*.dll`
|
||||
|
||||
4. Run the build command.
|
||||
|
||||
Build in debug mode
|
||||
|
||||
```bash
|
||||
dotnet build
|
||||
```
|
||||
|
||||
Build in release mode
|
||||
|
||||
```bash
|
||||
dotnet build --configuration Release
|
||||
```
|
||||
|
||||
5. The built dll can be found at:
|
||||
|
||||
- `./WBM/bin/Debug/net48/WBM.dll`
|
||||
- `./WBM/bin/Release/net48/WBM.dll`
|
||||
|
||||
## Bug reports / Suggestions
|
||||
|
||||
If you have a cool idea that will make WBM better, or if WBM misbehaves in any way (no matter how minor the problem is), feel free go to the [Issues page](https://github.com/developomp/WBM/issues) and open a new issue!
|
||||
|
||||
If you need help, join [my discord server!](https://discord.gg/JWzU496EFZ)
|
||||
|
||||
## Contributing
|
||||
|
||||
- use GH pull request
|
||||
- use vscode and install [recommended extensions](.vscode/extensions.json). This is required for code formatting.
|
||||
|
||||
## License
|
||||
|
||||
This project is licenced under the [MIT License](https://opensource.org/licenses/MIT).
|
||||
|
||||
Fonts:
|
||||
|
||||
- https://fonts.google.com/specimen/Architects+Daughter : OFL (used in WBM logo)
|
34
WBM.sln
Normal file
34
WBM.sln
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.6.30114.105
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WBM", "WBM\WBM.csproj", "{E68CB773-9142-4185-AC1D-B216F4DD23C9}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Release|x64.Build.0 = Release|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{E68CB773-9142-4185-AC1D-B216F4DD23C9}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
35
WBM/Data.cs
Normal file
35
WBM/Data.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
namespace WBM
|
||||
{
|
||||
public class Data
|
||||
{
|
||||
public enum TeamEnum
|
||||
{
|
||||
None,
|
||||
Red,
|
||||
Blue
|
||||
}
|
||||
|
||||
public struct PlayerStatsStruct
|
||||
{
|
||||
public int kills;
|
||||
public int deaths;
|
||||
public int damage;
|
||||
public int longestKill;
|
||||
public int points;
|
||||
public int headShots;
|
||||
public int vote;
|
||||
public int mapVote;
|
||||
public int gamesElo;
|
||||
public int gamesEloDelta;
|
||||
public int killsElo;
|
||||
public int killsEloDelta;
|
||||
}
|
||||
|
||||
public struct TeamInfoStruct
|
||||
{
|
||||
public int index;
|
||||
public int score;
|
||||
public int deaths;
|
||||
}
|
||||
}
|
||||
}
|
6
WBM/Util.cs
Normal file
6
WBM/Util.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
namespace WBM
|
||||
{
|
||||
class Util
|
||||
{
|
||||
}
|
||||
}
|
67
WBM/WBM.cs
Normal file
67
WBM/WBM.cs
Normal file
|
@ -0,0 +1,67 @@
|
|||
using BepInEx;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
[BepInPlugin("com.developomp.wbm", "War Brokers Mods", "1.0.0.0")]
|
||||
public partial class WBM : BaseUnityPlugin
|
||||
{
|
||||
private void Start()
|
||||
{
|
||||
Logger.LogDebug("WBM: Initializing");
|
||||
this._webguy = FindObjectOfType<webguy>();
|
||||
|
||||
System.Type webguyType = typeof(webguy);
|
||||
|
||||
showEloRef = webguyType.GetField("KDOBENAOLLF", bindFlags);
|
||||
showSquadServerRef = webguyType.GetField("PHPIBBCFKFI", bindFlags);
|
||||
showTestingServerRef = webguyType.GetField("LHHEGFHLNJE", bindFlags);
|
||||
playerStatsArrayRef = webguyType.GetField("NAFCGDLLFJC", bindFlags);
|
||||
currentAreaRef = webguyType.GetField("FLJLJNLDFAM", bindFlags);
|
||||
playersActiveRef = webguyType.GetField("EPNEEBOFKHA", bindFlags);
|
||||
killListRef = webguyType.GetField("IKKEILIBONF", bindFlags);
|
||||
teamListRef = webguyType.GetField("MNEJLPDLMBH", bindFlags);
|
||||
localPlayerIndexRef = webguyType.GetField("ALEJJPEPFOG", bindFlags);
|
||||
|
||||
showElo = true;
|
||||
showSquadServer = true;
|
||||
showTestingServer = true;
|
||||
|
||||
Logger.LogDebug("WBM: Ready!");
|
||||
}
|
||||
|
||||
private void OnGUI()
|
||||
{
|
||||
int xOffset = 40;
|
||||
int yOffset = 325;
|
||||
|
||||
GUI.skin.box.fontSize = 15;
|
||||
|
||||
GUI.Box(
|
||||
new Rect(xOffset, yOffset, 200, 60),
|
||||
@"War Brokers Mods
|
||||
Made by [LP] POMP
|
||||
v1.0.0.0"
|
||||
);
|
||||
if (localPlayerIndex > 0)
|
||||
{
|
||||
Data.PlayerStatsStruct playerStat = this.MyPlayerStats;
|
||||
|
||||
string killsEloDeltaSign = playerStat.killsEloDelta >= 0 ? "+" : "";
|
||||
string gamesEloDeltaSign = playerStat.gamesEloDelta >= 0 ? "+" : "";
|
||||
|
||||
GUI.Box(
|
||||
new Rect(xOffset, yOffset + 65, 200, 130),
|
||||
$@"kills Elo: {playerStat.killsElo} {killsEloDeltaSign}{playerStat.killsEloDelta}
|
||||
games Elo: {playerStat.gamesElo} {gamesEloDeltaSign}{playerStat.gamesEloDelta}
|
||||
K/D: {playerStat.kills} / {playerStat.deaths}
|
||||
Damage: {playerStat.damage}
|
||||
Longest Kill: {playerStat.longestKill}
|
||||
Points: {playerStat.points}
|
||||
HeadShots: {playerStat.headShots}"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
239
WBM/WBM.csproj
Normal file
239
WBM/WBM.csproj
Normal file
|
@ -0,0 +1,239 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net48</TargetFramework>
|
||||
<ErrorOnDuplicatePublishOutputFiles>true</ErrorOnDuplicatePublishOutputFiles>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<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' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="BepInEx">
|
||||
<HintPath>dll\BepInEx.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp">
|
||||
<HintPath>dll\Assembly-CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp-firstpass">
|
||||
<HintPath>dll\Assembly-CSharp-firstpass.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Analytics.DataPrivacy">
|
||||
<HintPath>dll\Unity.Analytics.DataPrivacy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.TextMeshPro">
|
||||
<HintPath>dll\Unity.Timeline.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Timeline">
|
||||
<HintPath>dll\Unity.Timeline.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine">
|
||||
<HintPath>dll\UnityEngine.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.AccessibilityModule">
|
||||
<HintPath>dll\UnityEngine.AccessibilityModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.Advertisements">
|
||||
<HintPath>dll\UnityEngine.Advertisements.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.AIModule">
|
||||
<HintPath>dll\UnityEngine.AIModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.AndroidJNIModule">
|
||||
<HintPath>dll\UnityEngine.AndroidJNIModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.AnimationModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.AnimationModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.AssetBundleModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.AssetBundleModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.AudioModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.AudioModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.ClothModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.ClothModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.ClusterInputModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.ClusterInputModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.ClusterRendererModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.ClusterRendererModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.CoreModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.CrashReportingModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.CrashReportingModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.DirectorModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.DirectorModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.DSPGraphModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.DSPGraphModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.GameCenterModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.GameCenterModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.GridModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.GridModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.HotReloadModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.HotReloadModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.ImageConversionModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.ImageConversionModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.IMGUIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.IMGUIModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.InputLegacyModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.InputLegacyModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.InputModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.InputModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.JSONSerializeModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.JSONSerializeModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.LocalizationModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.LocalizationModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.Monetization">
|
||||
<HintPath>dll\UnityEngine.Monetization.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.ParticleSystemModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.ParticleSystemModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.PerformanceReportingModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.PerformanceReportingModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.Physics2DModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.Physics2DModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.PhysicsModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.ProfilerModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.ProfilerModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.ScreenCaptureModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.ScreenCaptureModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.SharedInternalsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.SharedInternalsModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.SpriteMaskModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.SpriteMaskModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.SpriteShapeModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.SpriteShapeModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.StreamingModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.StreamingModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.SubstanceModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.SubstanceModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.SubsystemsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.SubsystemsModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.TerrainModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.TerrainModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.TerrainPhysicsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.TerrainPhysicsModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.TextCoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.TextCoreModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.TextRenderingModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.TextRenderingModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.TilemapModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.TilemapModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.TLSModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.TLSModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UIElementsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UIElementsModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UIModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UmbraModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UmbraModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UNETModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UNETModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UnityAnalyticsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UnityAnalyticsModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UnityConnectModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UnityConnectModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UnityTestProtocolModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UnityTestProtocolModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UnityWebRequestAssetBundleModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UnityWebRequestAssetBundleModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UnityWebRequestAudioModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UnityWebRequestAudioModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UnityWebRequestModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UnityWebRequestModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UnityWebRequestTextureModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UnityWebRequestTextureModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.UnityWebRequestWWWModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.VehiclesModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.VehiclesModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.VFXModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.VFXModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.VideoModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.VideoModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.VRModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.VRModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.WindModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.WindModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.XRModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<HintPath>dll\UnityEngine.XRModule.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
173
WBM/WBMVariable.cs
Normal file
173
WBM/WBMVariable.cs
Normal file
|
@ -0,0 +1,173 @@
|
|||
using System.Reflection;
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
public partial class WBM
|
||||
{
|
||||
private webguy _webguy;
|
||||
// private ushort serverPort = 24601;
|
||||
private static BindingFlags bindFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static;
|
||||
|
||||
private FieldInfo showEloRef;
|
||||
private bool showElo
|
||||
{
|
||||
get
|
||||
{
|
||||
return (bool)showEloRef.GetValue(this._webguy);
|
||||
}
|
||||
set
|
||||
{
|
||||
showEloRef.SetValue(this._webguy, value);
|
||||
}
|
||||
}
|
||||
|
||||
private FieldInfo showSquadServerRef;
|
||||
private bool showSquadServer
|
||||
{
|
||||
get
|
||||
{
|
||||
return (bool)showSquadServerRef.GetValue(this._webguy);
|
||||
}
|
||||
set
|
||||
{
|
||||
showSquadServerRef.SetValue(this._webguy, value);
|
||||
}
|
||||
}
|
||||
|
||||
private FieldInfo showTestingServerRef;
|
||||
private bool showTestingServer
|
||||
{
|
||||
get
|
||||
{
|
||||
return (bool)showTestingServerRef.GetValue(this._webguy);
|
||||
}
|
||||
set
|
||||
{
|
||||
showTestingServerRef.SetValue(this._webguy, value);
|
||||
}
|
||||
}
|
||||
|
||||
private FieldInfo playerStatsArrayRef;
|
||||
private Data.PlayerStatsStruct[] playerStatsArray
|
||||
{
|
||||
get
|
||||
{
|
||||
PDEMAFHPNBD[] rawPlayerStatsArray = (PDEMAFHPNBD[])playerStatsArrayRef.GetValue(this._webguy);
|
||||
Data.PlayerStatsStruct[] result = new Data.PlayerStatsStruct[rawPlayerStatsArray.Length];
|
||||
|
||||
for (int i = 0; i < rawPlayerStatsArray.Length; i++)
|
||||
{
|
||||
PDEMAFHPNBD currentlyParsing = rawPlayerStatsArray[i];
|
||||
|
||||
result[i] = new Data.PlayerStatsStruct
|
||||
{
|
||||
kills = currentlyParsing.CFMGCOGACPA,
|
||||
deaths = currentlyParsing.GABHLIIJHBJ,
|
||||
damage = currentlyParsing.CECNBFABADA,
|
||||
longestKill = currentlyParsing.GDFIBEEKMJA,
|
||||
points = currentlyParsing.HNHFAABONHO,
|
||||
headShots = currentlyParsing.GJLLOFLEHHD,
|
||||
vote = currentlyParsing.JCBAKMONPGC,
|
||||
mapVote = currentlyParsing.BOFANBBCNOH,
|
||||
gamesElo = currentlyParsing.IBHFIBAOKCB,
|
||||
gamesEloDelta = currentlyParsing.JMGOHGIGLPI,
|
||||
killsElo = currentlyParsing.GBIABKEEFOC,
|
||||
killsEloDelta = currentlyParsing.JAAKOCPIGJL,
|
||||
};
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
private Data.PlayerStatsStruct MyPlayerStats
|
||||
{
|
||||
get
|
||||
{
|
||||
PDEMAFHPNBD[] rawPlayerStatsArray = (PDEMAFHPNBD[])playerStatsArrayRef.GetValue(this._webguy); ;
|
||||
PDEMAFHPNBD currentlyParsing = rawPlayerStatsArray[localPlayerIndex];
|
||||
|
||||
return new Data.PlayerStatsStruct
|
||||
{
|
||||
kills = currentlyParsing.CFMGCOGACPA,
|
||||
deaths = currentlyParsing.GABHLIIJHBJ,
|
||||
damage = currentlyParsing.CECNBFABADA,
|
||||
longestKill = currentlyParsing.GDFIBEEKMJA,
|
||||
points = currentlyParsing.HNHFAABONHO,
|
||||
headShots = currentlyParsing.GJLLOFLEHHD,
|
||||
vote = currentlyParsing.JCBAKMONPGC,
|
||||
mapVote = currentlyParsing.BOFANBBCNOH,
|
||||
gamesElo = currentlyParsing.IBHFIBAOKCB,
|
||||
gamesEloDelta = currentlyParsing.JMGOHGIGLPI,
|
||||
killsElo = currentlyParsing.GBIABKEEFOC,
|
||||
killsEloDelta = currentlyParsing.JAAKOCPIGJL,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private FieldInfo currentAreaRef;
|
||||
private int currentArea
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)currentAreaRef.GetValue(this._webguy);
|
||||
}
|
||||
set
|
||||
{
|
||||
currentAreaRef.SetValue(this._webguy, value);
|
||||
}
|
||||
}
|
||||
|
||||
private FieldInfo playersActiveRef;
|
||||
private bool[] playersActive
|
||||
{
|
||||
get
|
||||
{
|
||||
return (bool[])playersActiveRef.GetValue(this._webguy);
|
||||
}
|
||||
set
|
||||
{
|
||||
playersActiveRef.SetValue(this._webguy, value);
|
||||
}
|
||||
}
|
||||
|
||||
private FieldInfo killListRef;
|
||||
private int[] killList
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int[])killListRef.GetValue(this._webguy);
|
||||
}
|
||||
set
|
||||
{
|
||||
killListRef.SetValue(this._webguy, value);
|
||||
}
|
||||
}
|
||||
|
||||
private FieldInfo teamListRef;
|
||||
private Data.TeamEnum[] teamList
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Data.TeamEnum[])teamListRef.GetValue(this._webguy);
|
||||
}
|
||||
set
|
||||
{
|
||||
teamListRef.SetValue(this._webguy, value);
|
||||
}
|
||||
}
|
||||
|
||||
private FieldInfo localPlayerIndexRef;
|
||||
private int localPlayerIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)localPlayerIndexRef.GetValue(this._webguy);
|
||||
}
|
||||
set
|
||||
{
|
||||
localPlayerIndexRef.SetValue(this._webguy, value);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
BIN
images/WBM.png
Normal file
BIN
images/WBM.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
BIN
images/WBM.xcf
Normal file
BIN
images/WBM.xcf
Normal file
Binary file not shown.
BIN
images/example.png
Normal file
BIN
images/example.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 754 KiB |
BIN
images/example.xcf
Normal file
BIN
images/example.xcf
Normal file
Binary file not shown.
BIN
images/local_files.png
Normal file
BIN
images/local_files.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
Loading…
Add table
Add a link
Reference in a new issue