Skip to content

Commit

Permalink
Update Version Numbers - Release TIme
Browse files Browse the repository at this point in the history
  • Loading branch information
silentbaws committed Aug 7, 2020
1 parent b41e7a1 commit 132cb60
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
3 changes: 1 addition & 2 deletions XLMultiplayer/Info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"Id": "XLMultiplayer",
"DisplayName": "Silents Multiplayer Mod",
"Author": "Silentbaws",
"Version": "0.10.2",
"GameVersion": "0.3.0",
"Version": "0.10.3",
"ManagerVersion": "0.22.6",
"Requirements": [ ],
"AssemblyName": "XLMultiplayer.dll",
Expand Down
31 changes: 25 additions & 6 deletions XLMultiplayer/MultiplayerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,13 @@
using UnityEngine.Networking;
using Valve.Sockets;

// TODO: v0.10.0

// TODO: Console player list

// TODO: game of skate.... maybe?

// TODO: Make replays save audio

// TODO: Redo the multiplayer texture system
// -> Send paths for non-custom gear


namespace XLMultiplayer {
public enum OpCode : byte {
Connect = 0,
Expand Down Expand Up @@ -445,7 +440,7 @@ public IEnumerator LoadMap(string path) {
//Load map with path
LevelSelectionController levelSelectionController = GameStateMachine.Instance.LevelSelectionObject.GetComponentInChildren<LevelSelectionController>();

IndexPath targetIndex = Traverse.Create(levelSelectionController).Method("GetIndexForLevel", target).GetValue<IndexPath>();
IndexPath targetIndex = GetIndexForLevel(target);
Traverse.Create(levelSelectionController).Method("OnLevelHighlighted", targetIndex).GetValue();

string texturePath = Path.ChangeExtension(target.path, "png");
Expand All @@ -469,6 +464,30 @@ public IEnumerator LoadMap(string path) {
yield break;
}


private IndexPath GetIndexForLevel(LevelInfo level) {
if (level == null) {
return new IndexPath(new int[2]);
}
int num = LevelManager.Instance.Levels.IndexOf(level);
if (num >= 0) {
return new IndexPath(new int[]
{
0,
num
});
}
num = LevelManager.Instance.CustomLevels.IndexOf(level);
if (num >= 0) {
return new IndexPath(new int[]
{
1,
num
});
}
return new IndexPath(new int[2]);
}

public void Update() {
FrameWatch.Restart();

Expand Down
2 changes: 1 addition & 1 deletion XLMultiplayerServer/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public enum OpCode : byte {

public class Server {
// TODO: Update version number with versions
private string VERSION_NUMBER = "0.10.2";
private string VERSION_NUMBER = "0.10.3";

public LogMessage LogMessageCallback;
public LogChatMessage LogChatMessageCallback;
Expand Down

0 comments on commit 132cb60

Please sign in to comment.