Josh Posted June 27, 2014 Share Posted June 27, 2014 The map class handles loading of the Leadwerks .map file format. The format has not been documented because it changes frequently as new features are added. It's now on it's 28th version. However, the loader is always backwards-compatible with older versions of the format. If you want to look at how the file format is structured, the attached code will demonstrate it. Map.cpp 3 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
RomSteady Posted June 28, 2014 Share Posted June 28, 2014 Would it be possible to release the object class IDs as well? It's the only part left to be able to handle Map::ReadObject. Quote Link to comment Share on other sites More sharing options...
Josh Posted June 28, 2014 Author Share Posted June 28, 2014 const int Object::PivotClass = 1; const int Object::ModelClass = 2; const int Object::CameraClass = 3; const int Object::DirectionalLightClass=4; const int Object::SpotLightClass=5; const int Object::PointLightClass=6; const int Object::ListenerClass=7; const int Object::Vec2Class=8; const int Object::Vec3Class=9; const int Object::Vec4Class=10; const int Object::Mat4Class=11; const int Object::SurfaceClass=12; const int Object::BrushClass=13; const int Object::EmitterClass=14; const int Object::AttractorClass=15; const int Object::JointClass=17; const int Object::LensFlareClass=18; const int Object::BoneClass=19; const int Object::TerrainClass=20; const int Object::TerrainPatchClass=21; const int Object::BufferClass=22; const int Object::ContextClass=23; const int Object::ShaderClass = 24; const int Object::ComponentClass = 25; const int Object::TextureClass = 26; const int Object::MaterialClass = 27; 3 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
RomSteady Posted June 28, 2014 Share Posted June 28, 2014 Thank you. Quote Link to comment Share on other sites More sharing options...
Azure_Zero Posted July 2, 2014 Share Posted July 2, 2014 I think a useful new functions for maps would be GetCameras (returns a list of camera) GetLights (returns a list of lights) GetModels (returns a list of Models) etc if folks need quick access to specific entity types Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.