import { _decorator, Component, Node, Prefab } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('BlockMgr')
export class BlockMgr extends Component {

    @property(Prefab)
    BO:Prefab=null;

    @property(Prefab)
    BT:Prefab=null;

    @property(Prefab)
    HO:Prefab=null;
    
    @property(Prefab)
    I:Prefab=null;

    @property(Prefab)
    L7:Prefab=null;

    @property(Prefab)
    L:Prefab=null;

    @property(Prefab)
    LMT:Prefab=null;

    @property(Prefab)
    LS:Prefab=null;

    @property(Prefab)
    LT:Prefab=null;

    @property(Prefab)
    MI:Prefab=null;

    @property(Prefab)
    O:Prefab=null;

    @property(Prefab)
    P:Prefab=null;

    @property(Prefab)
    RB7:Prefab=null;

    @property(Prefab)
    RBT:Prefab=null;

    @property(Prefab)
    RM7:Prefab=null;

    @property(Prefab)
    RMT:Prefab=null;

    @property(Prefab)
    RS:Prefab=null;

    @property(Prefab)
    RT:Prefab=null;

    @property(Prefab)
    S7:Prefab=null;

    @property(Prefab)
    SJ:Prefab=null;

    @property(Prefab)
    SS:Prefab=null;

    @property(Prefab)
    T:Prefab=null;

    @property(Prefab)
    U:Prefab=null;


    blocksPrefab={};

    public static instance:BlockMgr=null;
    protected onLoad(): void {
     
        this.blocksPrefab["BO"]=this.BO;
        this.blocksPrefab["BT"]=this.BT;
        this.blocksPrefab["HO"]=this.HO;
        this.blocksPrefab["I"]=this.I;
        this.blocksPrefab["L7"]=this.L7;
        this.blocksPrefab["L"]=this.L;
        this.blocksPrefab["LMT"]=this.LMT;
        this.blocksPrefab["LS"]=this.LS;
        this.blocksPrefab["LT"]=this.LT;
        this.blocksPrefab["MI"]=this.MI;
        this.blocksPrefab["O"]=this.O;
        this.blocksPrefab["P"]=this.P;
        this.blocksPrefab["RB7"]=this.RB7;
        this.blocksPrefab["RBT"]=this.RBT;
        this.blocksPrefab["RM7"]=this.RM7;
        this.blocksPrefab["RMT"]=this.RMT;
        this.blocksPrefab["RS"]=this.RS;
        this.blocksPrefab["RT"]=this.RT;
        this.blocksPrefab["S7"]=this.S7;
        this.blocksPrefab["SJ"]=this.SJ;
        this.blocksPrefab["SS"]=this.SS;
        this.blocksPrefab["T"]=this.T;
        this.blocksPrefab["U"]=this.U;



        BlockMgr.instance=this;

    }

    start() {

    }

    update(deltaTime: number) {
        
    }
}

