private void ReadGlobalModel() { var fileChunk = Data.GetChunkByName("MWMO"); var defChunk = Data.GetChunkByName("MODF"); if (fileChunk == null || defChunk == null) return; IsGlobalModel = true; ModelDefinition = WorldModelHandler.WorldModelDefinition.Read(defChunk.GetStream()); ModelFile = fileChunk.GetStream().ReadCString(); }
public WmoDrawer(Microsoft.Xna.Framework.Game game, string path, WorldModelHandler.WorldModelDefinition def) : base(game) { _path = path; _def = def; }