Ejemplo n.º 1
0
    void LoadLegacyTerrainData(byte[] terrainDatabaseBytes)
    {
        database.Deserialize(terrainDatabaseBytes);
        rendering.Clear();

        // For legacy, we will only show walls. This is so maps like de_dust2
        // continue to work well. Of course..they won't be able to edit the walls..
        foreach (var args in database.EnumerateSides())
        {
            rendering.OnSetSide(args.side, args.value.on, args.value.style);
        }
    }