import { Component, OnInit } from '@angular/core';
import { ServerGridModel } from "../../../models/serverGrid.model";
import { Server } from "../../../server";
import { TribeLogConfigModel } from "../../../models/tribeLogConfig.model";
import { SharedLogConfigModel } from "../../../models/sharedLogConfig.model";
import { TravelDataConfigModel } from "../../../models/travelDataConfig.model";

@Component({
  selector: 'app-grid',
  templateUrl: './grid.component.html'
})
export class GridComponent implements OnInit {
  private grid: ServerGridModel;
  private tribeLog: TribeLogConfigModel;
  private sharedLog: SharedLogConfigModel;
  private travelData: TravelDataConfigModel;

  constructor(private server: Server) {
    this.grid = server.serverGrid;
    this.tribeLog = server.serverGrid.TribeLogConfig;
    this.sharedLog = server.serverGrid.SharedLogConfig;
    this.travelData = server.serverGrid.TravelDataConfig;
  }

  ngOnInit() {
  }
}
