Beispiel #1
0
    public override void OnCardLoad(ChaFile f, BlockHeader bh, bool nopng, bool nostatus)
    {
        var map = f.dict.Get <GuidMap>("guidmap");

        coordRewriter.map  = map;
        customRewriter.map = map;
        for (int i = 0; i < f.coordinate.Length; i++)
        {
            map.baseprefix = "coordinate[" + i + "]";
            coordRewriter.ToFake(f.coordinate[i]);
        }
        map.baseprefix = "custom";
        customRewriter.ToFake(f.custom);
    }