/// <summary> /// Loads the meshes for the landblock<para /> /// This isn't used by ACE, but we still retain it for the following reason:<para /> /// its useful, concise, high level overview code for everything needed to load landblocks, all their objects, scenery, polygons /// without getting into all of the low level methods that acclient uses to do it /// </summary> private void LoadMeshes(List <LandblockInstance> objects) { LandblockMesh = new LandblockMesh(Id); LoadLandObjects(); LoadBuildings(); LoadWeenies(objects); LoadScenery(); }
/// <summary> /// Loads the meshes for the landblock /// </summary> public void LoadMeshes(List <AceObject> objects) { CellLandblock = DatManager.CellDat.ReadFromDat <CellLandblock>(Id.Raw | 0xFFFF); LandblockInfo = DatManager.CellDat.ReadFromDat <LandblockInfo>((uint)Id.Landblock << 16 | 0xFFFE); LandblockMesh = new LandblockMesh(Id); LoadLandObjects(); LoadBuildings(); LoadWeenies(objects); LoadScenery(); }