Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #801 from kieransouth/develop
Browse files Browse the repository at this point in the history
Added ClientAppId and ServerAppId to Covalence provider
  • Loading branch information
lukespragg committed Sep 8, 2016
2 parents 6cc620b + dae1994 commit 3ac1809
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Oxide.Core/Libraries/Covalence/Covalence.cs
Expand Up @@ -43,6 +43,18 @@ public class Covalence : Library
[LibraryProperty("Game")]
public string Game => provider == null ? string.Empty : provider.GameName;

/// <summary>
/// Gets the Steam app ID of the game's client, if available
/// </summary>
[LibraryProperty("ClientAppId")]
public uint ClientAppId => provider == null ? 0 : provider.ClientAppId;

/// <summary>
/// Gets the Steam app ID of the game's server, if available
/// </summary>
[LibraryProperty("ServerAppId")]
public uint ServerAppId => provider == null ? 0 : provider.ServerAppId;

// The logger
private Logger logger;

Expand Down
10 changes: 10 additions & 0 deletions Oxide.Core/Libraries/Covalence/ICovalenceProvider.cs
Expand Up @@ -10,6 +10,16 @@ public interface ICovalenceProvider
/// </summary>
string GameName { get; }

/// <summary>
/// Gets the Steam app ID of the game's client for which this provider provides
/// </summary>
uint ClientAppId { get; }

/// <summary>
/// Gets the Steam app ID of the game's server for which this provider provides
/// </summary>
uint ServerAppId { get; }

/// <summary>
/// Creates the game-specific server object
/// </summary>
Expand Down

0 comments on commit 3ac1809

Please sign in to comment.