freenukum 0.4.0

A clone of the 1991 DOS game Duke Nukem 1
Documentation
1
2
3
4
5
6
7
8
9
10
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: Wolfgang Silbermayr <wolfgang@silbermayr.at>

use sdl2::surface::Surface;

pub type TileIndex = usize;

pub trait TileProvider {
    fn get_tile(&self, index: TileIndex) -> Option<&Surface>;
}