moved variable initiation back to WBMVariables.cs
This commit is contained in:
parent
5030768c95
commit
aadfd6be25
2 changed files with 10 additions and 16 deletions
13
WBM/WBM.cs
13
WBM/WBM.cs
|
@ -6,7 +6,6 @@ using UnityEngine.Networking;
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
|
@ -17,18 +16,6 @@ namespace WBM
|
|||
{
|
||||
Logger.LogDebug("Initializing");
|
||||
|
||||
// Initialization moved to Start() because of BepInEx error
|
||||
this.data = new Data.SerializableData();
|
||||
this.killStreakAudioDict = new Dictionary<string, AudioClip>();
|
||||
this.killStreakSFXDictionary = new Dictionary<int, string>()
|
||||
{
|
||||
{10, "rampage"},
|
||||
{20, "killing spree"},
|
||||
{30, "unstoppable"},
|
||||
{50, "godlike"},
|
||||
{69, "nice"},
|
||||
};
|
||||
|
||||
this.webguy = FindObjectOfType<webguy>();
|
||||
|
||||
System.Type webguyType = typeof(webguy);
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace WBM
|
|||
// websocket data stuff
|
||||
private WebSocketSharp.Server.WebSocketServer server;
|
||||
private ushort serverPort = 24601;
|
||||
private Data.SerializableData data;
|
||||
private Data.SerializableData data = new Data.SerializableData();
|
||||
|
||||
// internal or temporary
|
||||
private bool _showConfig;
|
||||
|
@ -69,10 +69,17 @@ namespace WBM
|
|||
private ConfigEntry<KeyboardShortcut> clearDeathLogShortcut;
|
||||
|
||||
// Audio
|
||||
private Dictionary<string, AudioClip> killStreakAudioDict;
|
||||
private Dictionary<string, AudioClip> killStreakAudioDict = new Dictionary<string, AudioClip>();
|
||||
private string audioPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "assets/audio");
|
||||
private AudioSource killStreakAudioSource;
|
||||
private Dictionary<int, string> killStreakSFXDictionary;
|
||||
private Dictionary<int, string> killStreakSFXDictionary = new Dictionary<int, string>()
|
||||
{
|
||||
{10, "rampage"},
|
||||
{20, "killing spree"},
|
||||
{30, "unstoppable"},
|
||||
{50, "godlike"},
|
||||
{69, "nice"},
|
||||
};
|
||||
|
||||
// memory stuff
|
||||
private static BindingFlags bindFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue