Exemple #1
0
    public void Clone(TileKnowledge tileKnowledge)
    {
        path = tileKnowledge.path;
        tiles.Clear();
        tileIDPool = tileKnowledge.tileIDPool;

        for (int i = 0; i < tileKnowledge.tiles.Count; ++i)
        {
            TileType tileType = new TileType();
            tileType.Clone(tileKnowledge.tiles [i]);
            tiles.Add(tileType);
        }
    }