From 5d42792d512dfa3b23118d27adcc25012de27a00 Mon Sep 17 00:00:00 2001 From: "SND\\AstrorEnales_cp" Date: Tue, 17 Jan 2012 20:37:05 +0000 Subject: [PATCH] Fixed nearly all signatures (1 class left :)) --- ANX.Framework/GamerServices/AvatarRenderer.cs | 152 +++++++++++++++- ANX.Framework/GamerServices/Guide.cs | 166 +++++++++++++++++- ANX.Framework/GamerServices/SignedInGamer.cs | 109 +++++++++++- .../Net/AvailableNetworkSessionCollection.cs | 27 ++- ANX.Framework/Net/LocalNetworkGamer.cs | 72 ++++++++ ANX.Framework/Net/NetworkSession.cs | 42 ++++- ANX.Framework/Net/NetworkSessionProperties.cs | 92 +++++++++- ANX.Framework/Storage/StorageContainer.cs | 8 +- 8 files changed, 646 insertions(+), 22 deletions(-) diff --git a/ANX.Framework/GamerServices/AvatarRenderer.cs b/ANX.Framework/GamerServices/AvatarRenderer.cs index bcc6715a..4926321c 100644 --- a/ANX.Framework/GamerServices/AvatarRenderer.cs +++ b/ANX.Framework/GamerServices/AvatarRenderer.cs @@ -1,5 +1,7 @@ #region Using Statements using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; #endregion // Using Statements @@ -52,11 +54,147 @@ using System; namespace ANX.Framework.GamerServices { - public class AvatarRenderer : IDisposable - { - public void Dispose() - { - throw new NotImplementedException(); - } - } + public class AvatarRenderer : IDisposable + { + public const int BoneCount = 71; + + public bool IsDisposed + { + get + { + throw new NotImplementedException(); + } + } + + public Vector3 AmbientLightColor + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public Vector3 LightColor + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public Vector3 LightDirection + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public AvatarRendererState State + { + get + { + throw new NotImplementedException(); + } + } + + public Matrix World + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public Matrix View + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public Matrix Projection + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public ReadOnlyCollection ParentBones + { + get + { + throw new NotImplementedException(); + } + } + + public ReadOnlyCollection BindPose + { + get + { + throw new NotImplementedException(); + } + } + + public AvatarRenderer(AvatarDescription avatarDescription) + { + throw new NotImplementedException(); + } + + public AvatarRenderer(AvatarDescription avatarDescription, bool useLoadingEffect) + { + throw new NotImplementedException(); + } + + ~AvatarRenderer() + { + Dispose(); + } + + public void Dispose() + { + throw new NotImplementedException(); + } + + protected void Dispose(bool disposing) + { + throw new NotImplementedException(); + } + + public void Draw(IAvatarAnimation animation) + { + throw new NotImplementedException(); + } + + public void Draw(IList bones, AvatarExpression expression) + { + throw new NotImplementedException(); + } + } } diff --git a/ANX.Framework/GamerServices/Guide.cs b/ANX.Framework/GamerServices/Guide.cs index ee2d1ef7..dfd4ba43 100644 --- a/ANX.Framework/GamerServices/Guide.cs +++ b/ANX.Framework/GamerServices/Guide.cs @@ -1,5 +1,6 @@ #region Using Statements using System; +using System.Collections.Generic; #endregion // Using Statements @@ -52,7 +53,166 @@ using System; namespace ANX.Framework.GamerServices { - public static class Guide - { - } + public static class Guide + { + public static bool IsTrialMode + { + get + { + throw new NotImplementedException(); + } + } + + public static bool SimulateTrialMode + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public static bool IsVisible + { + get + { + throw new NotImplementedException(); + } + } + + public static bool IsScreenSaverEnabled + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public static NotificationPosition NotificationPosition + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public static IAsyncResult BeginShowMessageBox(PlayerIndex player, string title, + string text, IEnumerable buttons, int focusButton, MessageBoxIcon icon, + AsyncCallback callback, object asyncState) + { + throw new NotImplementedException(); + } + + public static IAsyncResult BeginShowMessageBox(string title, string text, + IEnumerable buttons, int focusButton, MessageBoxIcon icon, + AsyncCallback callback, object asyncState) + { + throw new NotImplementedException(); + } + + public static int? EndShowMessageBox(IAsyncResult result) + { + throw new NotImplementedException(); + } + + public static void ShowSignIn(int paneCount, bool onlineOnly) + { + throw new NotImplementedException(); + } + + public static IAsyncResult BeginShowKeyboardInput(PlayerIndex player, string title, + string description, string defaultText, AsyncCallback callback, object asyncState) + { + throw new NotImplementedException(); + } + + public static IAsyncResult BeginShowKeyboardInput(PlayerIndex player, string title, + string description, string defaultText, AsyncCallback callback, object asyncState, + bool usePasswordMode) + { + throw new NotImplementedException(); + } + + public static string EndShowKeyboardInput(IAsyncResult result) + { + throw new NotImplementedException(); + } + + public static void ShowMessages(PlayerIndex player) + { + throw new NotImplementedException(); + } + + public static void ShowFriends(PlayerIndex player) + { + throw new NotImplementedException(); + } + + public static void ShowPlayers(PlayerIndex player) + { + throw new NotImplementedException(); + } + + public static void ShowFriendRequest(PlayerIndex player, Gamer gamer) + { + throw new NotImplementedException(); + } + + public static void ShowPlayerReview(PlayerIndex player, Gamer gamer) + { + throw new NotImplementedException(); + } + + public static void ShowGamerCard(PlayerIndex player, Gamer gamer) + { + throw new NotImplementedException(); + } + + public static void ShowParty(PlayerIndex player) + { + throw new NotImplementedException(); + } + + public static void ShowPartySessions(PlayerIndex player) + { + throw new NotImplementedException(); + } + + public static void ShowComposeMessage(PlayerIndex player, string text, + IEnumerable recipients) + { + throw new NotImplementedException(); + } + + public static void DelayNotifications(TimeSpan delay) + { + throw new NotImplementedException(); + } + + public static void ShowGameInvite(PlayerIndex player, IEnumerable recipients) + { + throw new NotImplementedException(); + } + + public static void ShowGameInvite(string sessionId) + { + throw new NotImplementedException(); + } + + public static void ShowMarketplace(PlayerIndex player) + { + throw new NotImplementedException(); + } + } } diff --git a/ANX.Framework/GamerServices/SignedInGamer.cs b/ANX.Framework/GamerServices/SignedInGamer.cs index 4abf726a..4c44ca65 100644 --- a/ANX.Framework/GamerServices/SignedInGamer.cs +++ b/ANX.Framework/GamerServices/SignedInGamer.cs @@ -1,5 +1,6 @@ #region Using Statements using System; +using ANX.Framework.Audio; #endregion // Using Statements @@ -52,12 +53,110 @@ using System; namespace ANX.Framework.GamerServices { - public sealed class SignedInGamer : Gamer + public sealed class SignedInGamer : Gamer + { + public PlayerIndex PlayerIndex { - public PlayerIndex PlayerIndex + get { - get; - private set; + throw new NotImplementedException(); } - } + } + + public bool IsSignedInToLive + { + get + { + throw new NotImplementedException(); + } + } + + public bool IsGuest + { + get + { + throw new NotImplementedException(); + } + } + + public GameDefaults GameDefaults + { + get + { + throw new NotImplementedException(); + } + } + + public GamerPrivileges Privileges + { + get + { + throw new NotImplementedException(); + } + } + + public int PartySize + { + get + { + throw new NotImplementedException(); + } + } + + public GamerPresence Presence + { + get + { + throw new NotImplementedException(); + } + } + + public event EventHandler SignedIn; + public event EventHandler SignedOut; + + public bool IsFriend(Gamer gamer) + { + throw new NotImplementedException(); + } + + public FriendCollection GetFriends() + { + throw new NotImplementedException(); + } + + public bool IsHeadset(Microphone microphone) + { + throw new NotImplementedException(); + } + + public IAsyncResult BeginAwardAchievement(string achievementKey, AsyncCallback callback, object asyncState) + { + throw new NotImplementedException(); + } + + public void EndAwardAchievement(IAsyncResult result) + { + throw new NotImplementedException(); + } + + public void AwardAchievement(string achievementKey) + { + throw new NotImplementedException(); + } + + public IAsyncResult BeginGetAchievements(AsyncCallback callback, object asyncState) + { + throw new NotImplementedException(); + } + + public AchievementCollection EndGetAchievements(IAsyncResult result) + { + throw new NotImplementedException(); + } + + public AchievementCollection GetAchievements() + { + throw new NotImplementedException(); + } + } } diff --git a/ANX.Framework/Net/AvailableNetworkSessionCollection.cs b/ANX.Framework/Net/AvailableNetworkSessionCollection.cs index e93e6ce5..085f7ff2 100644 --- a/ANX.Framework/Net/AvailableNetworkSessionCollection.cs +++ b/ANX.Framework/Net/AvailableNetworkSessionCollection.cs @@ -1,4 +1,6 @@ using System; +using System.Collections.ObjectModel; +using System.Collections.Generic; #region License @@ -49,7 +51,30 @@ namespace ANX.Framework.Net { - public sealed class AvailableNetworkSessionCollection + public sealed class AvailableNetworkSessionCollection : + ReadOnlyCollection, IDisposable { + public bool IsDisposed + { + get + { + throw new NotImplementedException(); + } + } + + internal AvailableNetworkSessionCollection(IList sessions) + : base(sessions) + { + } + + ~AvailableNetworkSessionCollection() + { + Dispose(); + } + + public void Dispose() + { + throw new NotImplementedException(); + } } } diff --git a/ANX.Framework/Net/LocalNetworkGamer.cs b/ANX.Framework/Net/LocalNetworkGamer.cs index cce3aefe..28ffdf8c 100644 --- a/ANX.Framework/Net/LocalNetworkGamer.cs +++ b/ANX.Framework/Net/LocalNetworkGamer.cs @@ -1,4 +1,5 @@ using System; +using ANX.Framework.GamerServices; #region License @@ -51,5 +52,76 @@ namespace ANX.Framework.Net { public sealed class LocalNetworkGamer : NetworkGamer { + public SignedInGamer SignedInGamer + { + get + { + throw new NotImplementedException(); + } + } + + public bool IsDataAvailable + { + get + { + throw new NotImplementedException(); + } + } + + public void EnableSendVoice(NetworkGamer remoteGamer, bool enable) + { + throw new NotImplementedException(); + } + + public void SendData(byte[] data, SendDataOptions options) + { + throw new NotImplementedException(); + } + + public void SendData(byte[] data, SendDataOptions options, NetworkGamer recipient) + { + throw new NotImplementedException(); + } + + public void SendData(byte[] data, int offset, int count, SendDataOptions options) + { + throw new NotImplementedException(); + } + + public void SendData(byte[] data, int offset, int count, SendDataOptions options, + NetworkGamer recipient) + { + throw new NotImplementedException(); + } + + public void SendData(PacketWriter data, SendDataOptions options) + { + throw new NotImplementedException(); + } + + public void SendData(PacketWriter data, SendDataOptions options, NetworkGamer recipient) + { + throw new NotImplementedException(); + } + + public int ReceiveData(byte[] data, out NetworkGamer sender) + { + throw new NotImplementedException(); + } + + public int ReceiveData(byte[] data, int offset, out NetworkGamer sender) + { + throw new NotImplementedException(); + } + + public int ReceiveData(PacketReader data, out NetworkGamer sender) + { + throw new NotImplementedException(); + } + + public void SendPartyInvites() + { + throw new NotImplementedException(); + } } } diff --git a/ANX.Framework/Net/NetworkSession.cs b/ANX.Framework/Net/NetworkSession.cs index 510277b7..f3640938 100644 --- a/ANX.Framework/Net/NetworkSession.cs +++ b/ANX.Framework/Net/NetworkSession.cs @@ -49,7 +49,47 @@ namespace ANX.Framework.Net { - public sealed class NetworkSession + public sealed class NetworkSession : IDisposable { + public const int MaxSupportedGamers = 31; + public const int MaxPreviousGamers = 100; + + public bool IsDisposed + { + get + { + throw new NotImplementedException(); + } + } + + ~NetworkSession() + { + Dispose(); + } + + public void Dispose() + { + throw new NotImplementedException(); + } + + public void Update() + { + throw new NotImplementedException(); + } + + public void StartGame() + { + throw new NotImplementedException(); + } + + public void EndGame() + { + throw new NotImplementedException(); + } + + public void ResetReady() + { + throw new NotImplementedException(); + } } } diff --git a/ANX.Framework/Net/NetworkSessionProperties.cs b/ANX.Framework/Net/NetworkSessionProperties.cs index 193ecbbd..9d8c8c56 100644 --- a/ANX.Framework/Net/NetworkSessionProperties.cs +++ b/ANX.Framework/Net/NetworkSessionProperties.cs @@ -1,4 +1,6 @@ using System; +using System.Collections.Generic; +using System.Collections; #region License @@ -49,7 +51,95 @@ namespace ANX.Framework.Net { - public class NetworkSessionProperties + public class NetworkSessionProperties : IList, ICollection, + IEnumerable, IEnumerable { + #region IList Member + + public int IndexOf(int? item) + { + throw new NotImplementedException(); + } + + public void Insert(int index, int? item) + { + throw new NotImplementedException(); + } + + public void RemoveAt(int index) + { + throw new NotImplementedException(); + } + + public int? this[int index] + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + #endregion + + #region ICollection Member + + public void Add(int? item) + { + throw new NotImplementedException(); + } + + public void Clear() + { + throw new NotImplementedException(); + } + + public bool Contains(int? item) + { + throw new NotImplementedException(); + } + + public void CopyTo(int?[] array, int arrayIndex) + { + throw new NotImplementedException(); + } + + public int Count + { + get { throw new NotImplementedException(); } + } + + public bool IsReadOnly + { + get { throw new NotImplementedException(); } + } + + public bool Remove(int? item) + { + throw new NotImplementedException(); + } + + #endregion + + #region IEnumerable Member + + public IEnumerator GetEnumerator() + { + throw new NotImplementedException(); + } + + #endregion + + #region IEnumerable Member + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException(); + } + + #endregion } } diff --git a/ANX.Framework/Storage/StorageContainer.cs b/ANX.Framework/Storage/StorageContainer.cs index e445857e..2c965133 100644 --- a/ANX.Framework/Storage/StorageContainer.cs +++ b/ANX.Framework/Storage/StorageContainer.cs @@ -126,7 +126,7 @@ namespace ANX.Framework.Storage return GetDirectoryNames("*"); } - public string[] GetDirectoryNames(string searchPattern = "*") + public string[] GetDirectoryNames(string searchPattern) { List dirs = new List(); foreach (DirectoryInfo dir in baseDirectory.EnumerateDirectories(searchPattern)) @@ -142,7 +142,7 @@ namespace ANX.Framework.Storage return GetFileNames("*"); } - public string[] GetFileNames(string searchPattern = "*") + public string[] GetFileNames(string searchPattern) { List files = new List(); foreach (FileInfo file in baseDirectory.EnumerateFiles(searchPattern)) @@ -163,8 +163,8 @@ namespace ANX.Framework.Storage return OpenFile(file, fileMode, fileAccess, FileShare.None); } - public Stream OpenFile(string file, FileMode fileMode, - FileAccess fileAccess = FileAccess.ReadWrite, FileShare fileShare = FileShare.None) + public Stream OpenFile(string file, FileMode fileMode, FileAccess fileAccess, + FileShare fileShare) { return File.Open(GetTestFullPath(file), fileMode, fileAccess, fileShare); }