All Downloads are FREE. Search and download functionalities are using the official Maven repository.

view.entity-module.ContainerBasedEntity.js Maven / Gradle / Ivy

import { Entity } from './Entity.js'

/* global PIXI */

export class ContainerBasedEntity extends Entity {
  constructor () {
    super()
    Object.assign(this.defaultState, {
      children: []
    })
  }

  initDisplay () {
    super.initDisplay()
    this.graphics = new PIXI.Container()
  }

  updateDisplay (state, changed, globalData) {
    super.updateDisplay(state, changed, globalData)
  }

  get childrenContainer () {
    return this.graphics
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy