This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module EndGate.Input.Assets { | |
export class Keys { | |
/** | |
* Back key. | |
*/ | |
public static get Back(): string { | |
return 'back'; | |
} | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="../Interfaces/IDisposable.ts" /> | |
/// <reference path="../Interfaces/ITyped.ts" /> | |
/// <reference path="../GameTime.ts" /> | |
/// <reference path="../Graphics/Graphic2d.ts" /> | |
/// <reference path="../Assets/Sizes/Size2d.ts" /> | |
/// <reference path="../Assets/Vectors/Vector2d.ts" /> | |
/// <reference path="Camera/Camera2d.ts" /> | |
/// <reference path="IRenderer.ts" /> | |
/// <reference path="Camera/Camera2dRenderer.ts" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArrayStore : IStore | |
{ | |
private List<int[]> _arrays; | |
private int _rowIndex = -1; | |
private int _index = -1; | |
private int _capacity = DefaultCapacityPerLine; | |
private const int DefaultCapacityPerLine = 20; | |
public ArrayStore() : this(DefaultCapacityPerLine) { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Color { | |
public A: number; | |
public B: number; | |
public R: number; | |
public G: number; | |
public static AliceBlue: Color = new Color("#F0F8FF"); | |
public static AntiqueWhite: Color = new Color("#FAEBD7"); | |
public static Aqua: Color = new Color("#00FFFF"); | |
public static Aquamarine: Color = new Color("#7FFFD4"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Client { | |
static Events = { | |
Initialized: 'client.events.initialized', | |
PlayerJoined: 'client.events.playerJoined', | |
PlayerUpdate: 'client.events.playerUpdate', | |
PlayerLocation: 'client.events.playerLocation', | |
PlayerMessage: 'client.events.playerMessage', | |
PlayerLeave: 'client.events.playerLeave', | |
ChunkLoaded: 'client.events.chunkLoaded', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Tiled { | |
export class Tileset { | |
firstgid: number; | |
image: string; | |
imageheight: number; | |
imagewidth: number; | |
margin: number; | |
name: string; | |
properties: {}; | |
spacing: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IfRenderer : HtmlRenderer | |
{ | |
public IfRenderer(IHost host) : base(host) { } | |
public override IEnumerable<string> Elements | |
{ | |
get { yield return "if"; } | |
} | |
public override void Render(Parrot.Infrastructure.IParrotWriter writer, IRendererFactory rendererFactory, Nodes.Statement statement, IDictionary<string, object> documentHost, object model) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[assembly: WebActivator.PreApplicationStartMethod(typeof(Devterest.Web.App_Start.SimpleInjectorConfig), "Start")] | |
namespace Devterest.Web.App_Start | |
{ | |
using System; | |
using System.Web.Mvc; | |
using SimpleInjector; | |
using SimpleInjector.Integration.Web.Mvc; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MvcApplication1.Controllers | |
{ | |
using Microsoft.AspNet.SignalR; | |
public class Chat : Hub | |
{ | |
public void SendMessage(string text) | |
{ | |
Clients.All.sendMessage(text); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void ForEach<T>(IEnumerable<T> items, int size, Action<IEnumerable<T>, int> action) | |
{ | |
//temporary list | |
List<T> internalItems = new List<T>(); | |
int c = 0; | |
foreach (var item in items) | |
{ | |
internalItems.Add(item); | |
c += 1; |