From 8720896e87c2061863412eb41d2e60f5bdb9a09b Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 9 Mar 2020 12:22:33 -0400 Subject: [PATCH] make top-level classes public --- Shared/Clock.cs | 2 +- Shared/Debug.cs | 2 +- Shared/ExtensionMethods.cs | 2 +- Shared/FSM.cs | 3 +-- Shared/FpsCounter.cs | 2 +- Shared/Line.cs | 2 +- Shared/Sprites.cs | 4 ++-- Shared/Text.cs | 2 +- Shared/Timer.cs | 2 +- 9 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Shared/Clock.cs b/Shared/Clock.cs index 087437e..0ddccda 100644 --- a/Shared/Clock.cs +++ b/Shared/Clock.cs @@ -1,7 +1,7 @@ using System; namespace SemiColinGames { - class Clock { + public class Clock { public static void AddModelTime(double seconds) { ModelTime += TimeSpan.FromSeconds(seconds); } diff --git a/Shared/Debug.cs b/Shared/Debug.cs index e382b87..372c244 100644 --- a/Shared/Debug.cs +++ b/Shared/Debug.cs @@ -3,7 +3,7 @@ using Microsoft.Xna.Framework.Graphics; using System.Collections.Generic; namespace SemiColinGames { - static class Debug { + public static class Debug { struct DebugRect { public Rectangle Rect; public Color Color; diff --git a/Shared/ExtensionMethods.cs b/Shared/ExtensionMethods.cs index fa5d6a4..c7b1a51 100644 --- a/Shared/ExtensionMethods.cs +++ b/Shared/ExtensionMethods.cs @@ -7,7 +7,7 @@ using System.IO; // Methods are ordered alphabetically by type name. namespace SemiColinGames { - static class ExtensionMethods { + public static class ExtensionMethods { // ContentManager public static string LoadString(this ContentManager content, string path) { string fullPath = Path.Combine(content.RootDirectory, path); diff --git a/Shared/FSM.cs b/Shared/FSM.cs index cda01a7..dfe8cc2 100644 --- a/Shared/FSM.cs +++ b/Shared/FSM.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; namespace SemiColinGames { public interface IState { diff --git a/Shared/FpsCounter.cs b/Shared/FpsCounter.cs index 3e60ef8..bdbd43b 100644 --- a/Shared/FpsCounter.cs +++ b/Shared/FpsCounter.cs @@ -1,7 +1,7 @@ using System; namespace SemiColinGames { - class FpsCounter { + public class FpsCounter { private readonly int[] frameTimes = new int[60]; private double fps = 0; private int idx = 0; diff --git a/Shared/Line.cs b/Shared/Line.cs index 1b9166f..5d243a3 100644 --- a/Shared/Line.cs +++ b/Shared/Line.cs @@ -2,7 +2,7 @@ using System; namespace SemiColinGames { - class Line { + public class Line { public static Point[] Rasterize(Point p1, Point p2) { return Line.Rasterize(p1.X, p1.Y, p2.X, p2.Y); } diff --git a/Shared/Sprites.cs b/Shared/Sprites.cs index e4cffd6..15118ac 100644 --- a/Shared/Sprites.cs +++ b/Shared/Sprites.cs @@ -4,7 +4,7 @@ using Newtonsoft.Json.Linq; using System.Collections.Generic; namespace SemiColinGames { - static class Sprites { + public static class Sprites { public static Sprite Executioner; public static Sprite Ninja; @@ -45,7 +45,7 @@ namespace SemiColinGames { } } - class Sprite { + public class Sprite { public readonly TextureRef Texture; private readonly Dictionary animations; diff --git a/Shared/Text.cs b/Shared/Text.cs index a62c0de..cadbb84 100644 --- a/Shared/Text.cs +++ b/Shared/Text.cs @@ -2,7 +2,7 @@ using Microsoft.Xna.Framework.Graphics; namespace SemiColinGames { - static class Text { + public static class Text { // Outlined text in black. public static void DrawOutlined( SpriteBatch spriteBatch, SpriteFont font, string text, Vector2 position, Color color) { diff --git a/Shared/Timer.cs b/Shared/Timer.cs index 31cd058..cb160c7 100644 --- a/Shared/Timer.cs +++ b/Shared/Timer.cs @@ -2,7 +2,7 @@ using System.Diagnostics; namespace SemiColinGames { - class Timer { + public class Timer { private readonly Stopwatch stopwatch = new Stopwatch(); private readonly double targetTime;