yasshi2525/RushHour

View on GitHub
client/src/models/station.ts

Summary

Maintainability
A
1 hr
Test Coverage
import { Monitorable, MonitorContainer } from "common/interfaces/monitor";
import {
  SpriteProperty,
  SpriteContainerProperty
} from "common/interfaces/pixi";
import { SpriteModel, SpriteContainer } from "./sprite";

const defaultValues: { [index: string]: {} } = {
  alpha: 1
};

export class Station extends SpriteModel implements Monitorable {
  setupDefaultValues() {
    super.setupDefaultValues();
    this.addDefaultValues(defaultValues);
  }
}

export class StationContainer extends SpriteContainer<Station, SpriteProperty>
  implements MonitorContainer {
  constructor(options: SpriteContainerProperty) {
    super(options, Station);
  }

  protected getChildOptions() {
    return this.getBasicChildOptions();
  }
}