Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdRoll/rustenstein
/ get_sprite
Method
get_sprite
src/cache.rs:192–194 ·
view source on GitHub ↗
(&self, index: usize)
Source
from the content-addressed store, hash-verified
190
}
191
192
pub fn get_sprite(&self, index: usize) -> &(CompShape, Vec<u8>) {
193
&self.sprites[index]
194
}
195
196
pub fn get_sound(&self, index: usize) -> &Vec<u8> {
197
&self.sounds[index]
Callers
1
draw_weapon
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected