[clipMap_t] added clip map importer

This commit is contained in:
TheApadayo 2016-12-28 21:30:34 -05:00
parent f8abf2b8ec
commit 72a7f8c226
2 changed files with 738 additions and 493 deletions

View File

@ -4,7 +4,14 @@ namespace Assets
{
void IMapEnts::load(Game::XAssetHeader* header, std::string name, Components::ZoneBuilder::Zone* builder)
{
Components::FileSystem::File ents(name + ".ents");
std::string basename(name);
basename.erase(0, 8);
basename.erase(basename.end() - 7, basename.end());
Components::Logger::Print("Using basename %s for mapents %s\n", basename.c_str(), name.c_str());
Components::FileSystem::File ents(Utils::String::VA("mapents/%s.ents", basename.c_str()));
if (ents.exists())
{
Game::MapEnts* entites = builder->getAllocator()->allocate<Game::MapEnts>();

File diff suppressed because it is too large Load Diff