Example #1
0
 /* Initialization */
 public Toner()
 {
     _loadHAnimationHook        = Fun_LoadHAnimation.Hook(LoadHAnimation).Activate();
     _loadTextureDictionaryHook = Fun_LoadTextureDictionary.Hook(LoadTextureDictionary).Activate();
     _loadClumpHook             = Fun_LoadClump.Hook(LoadClump).Activate();
     _loadSplineHook            = Fun_LoadSpline.Hook(LoadSpline).Activate();
     _loadDeltaMorphHook        = Fun_LoadDeltaMorph.Hook(LoadDeltaMorph).Activate();
     _loadWorldHook             = Fun_LoadWorld.Hook(LoadWorld).Activate();
     _loadUvAnimHook            = Fun_LoadUVAnim.Hook(LoadUvAnim).Activate();
     _loadMaestroHook           = Fun_LoadMaestro.Hook(LoadMaestro).Activate();
     _loadCameraTmbHook         = Fun_LoadCameraTmb.Hook(LoadCameraTmb).Activate();
 }
Example #2
0
 /// <summary>
 /// Reads a ANM/HAnim stream from a .ONE archive. Returns address of a decompressed ANM file.
 /// </summary>
 /// <param name="fileIndex">The index of the file inside the .ONE archive (starting with 2)</param>
 /// <param name="addressToDecompressTo">The address to which the file inside the ONE archive will be decompressed to.</param>
 /// <returns>The address containing the read in ANM (H Anim - Character Animation) stream.</returns>
 public void *LoadHAnimation(int fileIndex, void *addressToDecompressTo) => Fun_LoadHAnimation.GetWrapper()(fileIndex, addressToDecompressTo, ref this);