This file contains 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
package Character | |
import ClosureEvents | |
import ArchOnePerPlayer | |
import ArchCallback | |
import initlater Arena | |
public class Character | |
use AlwaysOnePerPlayer | |
static let onDeath = new LinkedList<MiddlewareBinary<Character, unit>> | |
static let onPick = new LinkedList<MiddlewareUnary<Character>> |
This file contains 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
package ArchCameraControl | |
import ArchOnePerPlayer | |
import ArchCallback | |
import ArchPlayers | |
import ClosureEvents | |
public class CameraControl | |
use OnePerPlayer | |
protected CameraConfig cc |
This file contains 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
import { EventEmitter, Directive, Input, AfterViewInit, Output, OnDestroy } from '@angular/core'; | |
import { NgForm, FormGroup } from '@angular/forms'; | |
import { NgRedux } from '@angular-redux/store'; | |
import { fromJS, is } from 'immutable'; | |
import { AppState, ActionTypes } from '../store'; | |
import { Observable } from 'rxjs/Observable'; | |
import { Subject } from 'rxjs/Subject'; | |
function isSame(a: any, b: any) { | |
return is(fromJS(a), fromJS(b)); |
This file contains 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
// Generate tag. Inspired by C++'s lock tags: http://en.cppreference.com/w/cpp/thread/lock_tag | |
struct generate_t {}; | |
constexpr generate_t generate; | |
class texture { | |
public: | |
// OpenGL identifies textures by an integer "name". Ref: https://www.opengl.org/sdk/docs/man/html/glGenTextures.xhtml | |
GLuint name; | |