make top-level classes public
This commit is contained in:
parent
66ce866b12
commit
8720896e87
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace SemiColinGames {
|
||||
class Clock {
|
||||
public class Clock {
|
||||
public static void AddModelTime(double seconds) {
|
||||
ModelTime += TimeSpan.FromSeconds(seconds);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SemiColinGames {
|
||||
public interface IState<T> {
|
||||
|
@ -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,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,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,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,7 +2,7 @@
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace SemiColinGames {
|
||||
class Timer {
|
||||
public class Timer {
|
||||
|
||||
private readonly Stopwatch stopwatch = new Stopwatch();
|
||||
private readonly double targetTime;
|
||||
|
Loading…
Reference in New Issue
Block a user