A game framework written with osu! in mind.

Use language primitive types.

+7 -11
+2 -2
.editorconfig
··· 112 #Roslyn language styles 113 114 #Style - type names 115 - dotnet_style_predefined_type_for_locals_parameters_members = true:silent 116 - dotnet_style_predefined_type_for_member_access = true:silent 117 csharp_style_var_when_type_is_apparent = true:none 118 csharp_style_var_for_built_in_types = true:none 119 csharp_style_var_elsewhere = true:silent
··· 112 #Roslyn language styles 113 114 #Style - type names 115 + dotnet_style_predefined_type_for_locals_parameters_members = true:warning 116 + dotnet_style_predefined_type_for_member_access = true:warning 117 csharp_style_var_when_type_is_apparent = true:none 118 csharp_style_var_for_built_in_types = true:none 119 csharp_style_var_elsewhere = true:silent
+3 -4
osu.Framework.Tests/Visual/Input/TestSceneInputManager.cs
··· 1 // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2 // See the LICENCE file in the repository root for full licence text. 3 4 - using System; 5 using osu.Framework.Allocation; 6 using osu.Framework.Configuration; 7 using osu.Framework.Graphics; ··· 112 var currentState = inputManager.CurrentState; 113 var mouse = currentState.Mouse; 114 inputManagerStatus.Text = $"{inputManager}"; 115 - mouseStatus.Text = $"Mouse: {mouse.Position} {mouse.Scroll} " + String.Join(" ", mouse.Buttons); 116 - keyboardStatus.Text = "Keyboard: " + String.Join(" ", currentState.Keyboard.Keys); 117 - joystickStatus.Text = "Joystick: " + String.Join(" ", currentState.Joystick.Buttons); 118 base.Update(); 119 } 120
··· 1 // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2 // See the LICENCE file in the repository root for full licence text. 3 4 using osu.Framework.Allocation; 5 using osu.Framework.Configuration; 6 using osu.Framework.Graphics; ··· 111 var currentState = inputManager.CurrentState; 112 var mouse = currentState.Mouse; 113 inputManagerStatus.Text = $"{inputManager}"; 114 + mouseStatus.Text = $"Mouse: {mouse.Position} {mouse.Scroll} " + string.Join(" ", mouse.Buttons); 115 + keyboardStatus.Text = "Keyboard: " + string.Join(" ", currentState.Keyboard.Keys); 116 + joystickStatus.Text = "Joystick: " + string.Join(" ", currentState.Joystick.Buttons); 117 base.Update(); 118 } 119
+1 -3
osu.Framework/Audio/Track/ITrackStore.cs
··· 1 // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2 // See the LICENCE file in the repository root for full licence text. 3 4 - using System; 5 - 6 namespace osu.Framework.Audio.Track 7 { 8 public interface ITrackStore : IAdjustableResourceStore<Track> ··· 12 /// </summary> 13 /// <param name="length">The length of the virtual track.</param> 14 /// <returns>A new virtual track.</returns> 15 - Track GetVirtual(double length = Double.PositiveInfinity); 16 } 17 }
··· 1 // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2 // See the LICENCE file in the repository root for full licence text. 3 4 namespace osu.Framework.Audio.Track 5 { 6 public interface ITrackStore : IAdjustableResourceStore<Track> ··· 10 /// </summary> 11 /// <param name="length">The length of the virtual track.</param> 12 /// <returns>A new virtual track.</returns> 13 + Track GetVirtual(double length = double.PositiveInfinity); 14 } 15 }
+1 -2
osu.Framework/Input/States/ButtonStates.cs
··· 1 // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2 // See the LICENCE file in the repository root for full licence text. 3 4 - using System; 5 using System.Collections; 6 using System.Collections.Generic; 7 using System.Linq; ··· 67 pressedButtons.AddRange(other.pressedButtons); 68 } 69 70 - public override string ToString() => $@"{GetType().ReadableName()}({String.Join(" ", pressedButtons)})"; 71 72 public IEnumerator<TButton> GetEnumerator() => ((IEnumerable<TButton>)pressedButtons).GetEnumerator(); 73 IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
··· 1 // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2 // See the LICENCE file in the repository root for full licence text. 3 4 using System.Collections; 5 using System.Collections.Generic; 6 using System.Linq; ··· 66 pressedButtons.AddRange(other.pressedButtons); 67 } 68 69 + public override string ToString() => $@"{GetType().ReadableName()}({string.Join(" ", pressedButtons)})"; 70 71 public IEnumerator<TButton> GetEnumerator() => ((IEnumerable<TButton>)pressedButtons).GetEnumerator(); 72 IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();