Browse Source

make top-level classes public

master
Colin McMillen 4 years ago
parent
commit
8720896e87
  1. 2
      Shared/Clock.cs
  2. 2
      Shared/Debug.cs
  3. 2
      Shared/ExtensionMethods.cs
  4. 3
      Shared/FSM.cs
  5. 2
      Shared/FpsCounter.cs
  6. 2
      Shared/Line.cs
  7. 4
      Shared/Sprites.cs
  8. 2
      Shared/Text.cs
  9. 2
      Shared/Timer.cs

2
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);
}

2
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;

2
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);

3
Shared/FSM.cs

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

2
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;

2
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);
}

4
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<string, SpriteAnimation> animations;

2
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) {

2
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;

Loading…
Cancel
Save