This repository has been archived on 2022-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
irreligious/src/model/GameState.ts

14 lines
319 B
TypeScript
Raw Normal View History

2021-08-18 15:36:02 -05:00
/// <reference path="./IResource.ts" />
class GameState {
private _resources: {[key: string]: IResource} = {};
public addResource (key: string, resource: IResource): void {
this._resources[key] = resource;
}
public advance (time: number): void {
console.log(`Advancing state by ${time}ms...`);
}
}