-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop3d' of https://github.com/mono/MonoGame into dev…
…elop3d
- Loading branch information
Showing
64 changed files
with
1,654 additions
and
411 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
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
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,10 @@ | ||
using System; | ||
|
||
namespace Microsoft.Xna.Framework | ||
{ | ||
public class GameUpdateRequiredException : Exception | ||
{ | ||
|
||
} | ||
} | ||
|
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,17 @@ | ||
using System; | ||
|
||
namespace Microsoft.Xna.Framework.GamerServices | ||
{ | ||
public sealed class LeaderboardEntry | ||
{ | ||
|
||
public long Rating {get; set;} | ||
public PropertyDictionary Columns {get; internal set;} | ||
public Gamer Gamer {get; internal set;} | ||
|
||
public LeaderboardEntry () | ||
{ | ||
} | ||
} | ||
} | ||
|
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,21 @@ | ||
using System; | ||
|
||
namespace Microsoft.Xna.Framework.GamerServices | ||
{ | ||
public struct LeaderboardIdentity | ||
{ | ||
public int GameMode {get; set;} | ||
public LeaderboardKey Key {get; set;} | ||
|
||
public static LeaderboardIdentity Create(LeaderboardKey aKey) | ||
{ | ||
return new LeaderboardIdentity() { Key = aKey}; | ||
} | ||
|
||
public static LeaderboardIdentity Create(LeaderboardKey aKey, int aGameMode) | ||
{ | ||
return new LeaderboardIdentity() { Key = aKey, GameMode = aGameMode}; | ||
} | ||
} | ||
} | ||
|
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,13 @@ | ||
using System; | ||
|
||
namespace Microsoft.Xna.Framework.GamerServices | ||
{ | ||
public enum LeaderboardKey | ||
{ | ||
BestScoreLifeTime, | ||
BestScoreRecent, | ||
BestTimeLifeTime, | ||
BestTimeRecent, | ||
} | ||
} | ||
|
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,77 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.Xna.Framework.GamerServices | ||
{ | ||
public sealed class LeaderboardReader : IDisposable | ||
{ | ||
public LeaderboardReader () | ||
{ | ||
} | ||
|
||
public IAsyncResult BeginPageDown(AsyncCallback aAsyncCallback, object aAsyncState) | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
public IAsyncResult BeginPageUp(AsyncCallback aAsyncCallback, object aAsyncState) | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
public LeaderboardReader EndPageDown(IAsyncResult result) | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
public LeaderboardReader EndPageUp(IAsyncResult result) | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
public static void BeginRead (LeaderboardIdentity id, SignedInGamer gamer, int leaderboardPageSize, AsyncCallback leaderboardReadCallback, SignedInGamer gamer2) | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
public static LeaderboardReader EndRead(IAsyncResult result) | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
public void PageDown() | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
public void PageUp() | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
public bool CanPageDown { | ||
get; | ||
set; | ||
} | ||
|
||
public bool CanPageUp { | ||
get; | ||
set; | ||
} | ||
|
||
public IEnumerable<LeaderboardEntry> Entries { | ||
get; | ||
set; | ||
} | ||
|
||
#region IDisposable implementation | ||
|
||
public void Dispose () | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
#endregion | ||
} | ||
} | ||
|
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,26 @@ | ||
using System; | ||
|
||
namespace Microsoft.Xna.Framework.GamerServices | ||
{ | ||
public sealed class LeaderboardWriter : IDisposable | ||
{ | ||
public LeaderboardWriter () | ||
{ | ||
} | ||
|
||
public LeaderboardEntry GetLeaderboard(LeaderboardIdentity aLeaderboardIdentity) | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
#region IDisposable implementation | ||
|
||
void IDisposable.Dispose () | ||
{ | ||
throw new NotImplementedException (); | ||
} | ||
|
||
#endregion | ||
} | ||
} | ||
|
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,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.Xna.Framework.GamerServices | ||
{ | ||
public class PropertyDictionary | ||
{ | ||
private Dictionary<string,object> PropDictionary = new Dictionary<string, object>(); | ||
public int GetValueInt32 (string aKey) | ||
{ | ||
return (int)PropDictionary[aKey]; | ||
} | ||
|
||
public DateTime GetValueDateTime (string aKey) | ||
{ | ||
return (DateTime)PropDictionary[aKey]; | ||
} | ||
|
||
public void SetValue(string aKey, DateTime aValue) | ||
{ | ||
if(PropDictionary.ContainsKey(aKey)) | ||
{ | ||
PropDictionary[aKey] = aValue; | ||
} | ||
else | ||
{ | ||
PropDictionary.Add(aKey,aValue); | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.