make top-level classes public
This commit is contained in:
parent
66ce866b12
commit
8720896e87
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
|
@ -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> {
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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) {
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user