make top-level classes public

This commit is contained in:
Colin McMillen 2020-03-09 12:22:33 -04:00
parent 66ce866b12
commit 8720896e87
9 changed files with 10 additions and 11 deletions

View File

@ -1,7 +1,7 @@
using System; using System;
namespace SemiColinGames { namespace SemiColinGames {
class Clock { public class Clock {
public static void AddModelTime(double seconds) { public static void AddModelTime(double seconds) {
ModelTime += TimeSpan.FromSeconds(seconds); ModelTime += TimeSpan.FromSeconds(seconds);
} }

View File

@ -3,7 +3,7 @@ using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic; using System.Collections.Generic;
namespace SemiColinGames { namespace SemiColinGames {
static class Debug { public static class Debug {
struct DebugRect { struct DebugRect {
public Rectangle Rect; public Rectangle Rect;
public Color Color; public Color Color;

View File

@ -7,7 +7,7 @@ using System.IO;
// Methods are ordered alphabetically by type name. // Methods are ordered alphabetically by type name.
namespace SemiColinGames { namespace SemiColinGames {
static class ExtensionMethods { public static class ExtensionMethods {
// ContentManager // ContentManager
public static string LoadString(this ContentManager content, string path) { public static string LoadString(this ContentManager content, string path) {
string fullPath = Path.Combine(content.RootDirectory, path); string fullPath = Path.Combine(content.RootDirectory, path);

View File

@ -1,5 +1,4 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
namespace SemiColinGames { namespace SemiColinGames {
public interface IState<T> { public interface IState<T> {

View File

@ -1,7 +1,7 @@
using System; using System;
namespace SemiColinGames { namespace SemiColinGames {
class FpsCounter { public class FpsCounter {
private readonly int[] frameTimes = new int[60]; private readonly int[] frameTimes = new int[60];
private double fps = 0; private double fps = 0;
private int idx = 0; private int idx = 0;

View File

@ -2,7 +2,7 @@
using System; using System;
namespace SemiColinGames { namespace SemiColinGames {
class Line { public class Line {
public static Point[] Rasterize(Point p1, Point p2) { public static Point[] Rasterize(Point p1, Point p2) {
return Line.Rasterize(p1.X, p1.Y, p2.X, p2.Y); return Line.Rasterize(p1.X, p1.Y, p2.X, p2.Y);
} }

View File

@ -4,7 +4,7 @@ using Newtonsoft.Json.Linq;
using System.Collections.Generic; using System.Collections.Generic;
namespace SemiColinGames { namespace SemiColinGames {
static class Sprites { public static class Sprites {
public static Sprite Executioner; public static Sprite Executioner;
public static Sprite Ninja; public static Sprite Ninja;
@ -45,7 +45,7 @@ namespace SemiColinGames {
} }
} }
class Sprite { public class Sprite {
public readonly TextureRef Texture; public readonly TextureRef Texture;
private readonly Dictionary<string, SpriteAnimation> animations; private readonly Dictionary<string, SpriteAnimation> animations;

View File

@ -2,7 +2,7 @@
using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Graphics;
namespace SemiColinGames { namespace SemiColinGames {
static class Text { public static class Text {
// Outlined text in black. // Outlined text in black.
public static void DrawOutlined( public static void DrawOutlined(
SpriteBatch spriteBatch, SpriteFont font, string text, Vector2 position, Color color) { SpriteBatch spriteBatch, SpriteFont font, string text, Vector2 position, Color color) {

View File

@ -2,7 +2,7 @@
using System.Diagnostics; using System.Diagnostics;
namespace SemiColinGames { namespace SemiColinGames {
class Timer { public class Timer {
private readonly Stopwatch stopwatch = new Stopwatch(); private readonly Stopwatch stopwatch = new Stopwatch();
private readonly double targetTime; private readonly double targetTime;