https://github.com/ezfndev/usmapparser
Single header only libary to parse .usmap files
https://github.com/ezfndev/usmapparser
Last synced: 9 months ago
JSON representation
Single header only libary to parse .usmap files
- Host: GitHub
- URL: https://github.com/ezfndev/usmapparser
- Owner: EZFNDEV
- License: mit
- Created: 2021-07-28T13:53:59.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-28T14:12:34.000Z (almost 5 years ago)
- Last Synced: 2025-04-05T00:12:30.230Z (about 1 year ago)
- Language: C++
- Size: 931 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
# usmapParser
You can download Fortnite mappings at https://benbot.app/api/v1/mappings
## Usage
NOTE: You need oo2core_5_win64.dll in your dir
1. Include "usmapParser.hpp"
2. Load a usmap (only oodle compressed are supported atm) using `usmapParser::LoadByPath(YOUR_PATH);`
3. Parse the usmap using `usmapParser::Parse();`
4. You can now access Names, Enums and Schemas
# Names, Enums, Schemas datatype
static std::vector Names;
static std::vector Enums;
static std::vector Schemas;
# Structs
class FPropertyTag {
public:
FPropertyTag* InnerType;
FPropertyTag* ValueType;
EPropertyType Type;
std::string StructType;
std::string EnumName;
};
struct Property {
std::string Name;
uint16_t SchemaIdx;
uint8_t ArraySize;
FPropertyTag Data;
};
struct Schema {
std::vector Properties;
std::string Name;
std::string SuperType;
uint16_t PropCount;
};
struct Enum {
std::string Name;
std::vector ValueNames;
};