public function getMaxWeight($type, $pos)
    {
        if (empty($this->assets[$type][$pos])) {
            return null;
        }

        $weights = array();

        foreach ($this->assets[$type][$pos] as $asset) {
            $weights[] = $asset['weight'];
        }

        return max($weights);
    }
public function getMaxWeight($type, $pos)
    {
        if (empty($this->assets[$type][$pos])) {
            return null;
        }

        $weights = array();

        foreach ($this->assets[$type][$pos] as $asset) {
            $weights[] = $asset['weight'];
        }

        return max($weights);
    }
public function getMaxWeight ( $ type , $ pos ) { if ( empty ( $ this -> assets [ $ type ] [ $ pos ] ) ) { return null ; } $ weights = array ( ) ; foreach ( $ this -> assets [ $ type ] [ $ pos ] as $ asset ) { $ weights [ ] = $ asset [ 'weight' ] ; } return max ( $ weights ) ; }
Returns the max weight of added assets
@param string $type
@param string $pos
@return int|null
Returns the max weight of added assets