app/models/PlayerAgent.js
//reconstruct a new agent based on serializable obj
reconstruct a new agent based on serializable obj
reconstruct a new agent based on serializable obj
static reconstruct(serializable, manager = null) {
    const res = new PlayerAgent(
      serializable.name,
      {},
      serializable.type,
      manager
    )
    Object.assign(res, serializable)
    return res
  }
static reconstruct ( serializable , manager = null ) { const res = new PlayerAgent ( serializable . name , { } , serializable . type , manager ) Object . assign ( res , serializable ) return res }
reconstruct a new agent based on serializable obj
reconstruct a new agent based on serializable obj