-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ArchipelagoMW/development
Update for AP 0.1.5
- Loading branch information
Showing
6 changed files
with
92 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ public enum ArchipelagoPacketType | |
Say, | ||
GetDataPackage, | ||
DataPackage, | ||
Sync | ||
Sync, | ||
Bounced, | ||
Bounce | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace Archipelago.MultiClient.Net.Models | ||
{ | ||
public class GameData | ||
{ | ||
[JsonProperty("item_name_to_id")] | ||
public Dictionary<string, int> LocationLookup { get; set; } | ||
|
||
[JsonProperty("location_name_to_id")] | ||
public Dictionary<string, int> ItemLookup { get; set; } | ||
|
||
[JsonProperty("version")] | ||
public int Version { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Collections.Generic; | ||
using Archipelago.MultiClient.Net.Enums; | ||
using Newtonsoft.Json; | ||
|
||
namespace Archipelago.MultiClient.Net.Packets | ||
{ | ||
public class BouncePacket : ArchipelagoPacketBase | ||
{ | ||
public override ArchipelagoPacketType PacketType => ArchipelagoPacketType.Bounce; | ||
|
||
[JsonProperty("games")] | ||
public List<string> Games { get; set; } | ||
|
||
[JsonProperty("slots")] | ||
public List<int> Slots { get; set; } | ||
|
||
[JsonProperty("tags")] | ||
public List<string> Tags { get; set; } | ||
|
||
[JsonProperty("data")] | ||
public Dictionary<string, object> Data { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
using Archipelago.MultiClient.Net.Enums; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Linq; | ||
|
||
namespace Archipelago.MultiClient.Net.Packets | ||
{ | ||
public class BouncedPacket : BouncePacket | ||
{ | ||
public override ArchipelagoPacketType PacketType => ArchipelagoPacketType.Bounced; | ||
} | ||
} |