Example #1
0
    public void load(int stage)
    {
        clear();

        data[stage] = new GameRPGStage();

        loadLayer(stage);
        loadEMSG(stage);
        loadDTL(stage);
        loadEvent(stage);
        loadInfo(stage);

        Debug.Log("GameRPGData loaded. " + stage);
    }
Example #2
0
    public void active(int id)
    {
        activeID       = id;
        activeRPGStage = GameRPGData.instance.getData(activeID);
        activeDTL      = activeRPGStage.DTL;
        activeInfo     = activeRPGStage.Info;

        byte[] block = new byte[activeDTL.Width * activeDTL.Height];
        for (int i = 0; i < activeDTL.Width * activeDTL.Height; i++)
        {
            block[i] = (activeDTL.Points[i].Move == 0 ? (byte)0 : GameRPGPathFinder.BLOCK);
        }

        GameRPGPathFinder.instance.initMap(activeDTL.Width,
                                           activeDTL.Height, block);

        isVisibleLayer = true;
    }
Example #3
0
    public void clear()
    {
        visibleLayer(true);

        clearStage();

        activeID       = GameDefine.INVALID_ID;
        activeDTL      = null;
        activeRPGStage = null;
        activeInfo     = null;

        objsLayer1 = null;
        objsLayer0 = null;

        movement      = null;
        gameAnimation = null;

        animations.Clear();
    }