# dumpspace-api






Crate that allows you to have static, always up to date offsets for any game supported on Dumpspace.
## Usage
```rust
use dumpspace_api::*;
setup!("6b77eceb"); // must be called at the top of the crate root with the dumpspace game hash
fn main() {
let off = offset!("UWorld", "OwningGameInstance"); // literal 0x228
let size = class_size!("AActor");
let gworld = global_offset!("OFFSET_GWORLD");
let name = enum_name!("EFortRarity", 1); // "EFortRarity__Uncommon"
}
```
## Features
* Automatic caching and cache invalidation on offset update
* Zero cost at runtime; all offsets are generated at compile time
* Fully threadsafe and no memory requirement
[Docs](https://docs.rs/dumpspace-api/)
Project based on Spuckwaffel's original [C++ API](https://github.com/Spuckwaffel/Dumpspace-API).