Skip to content

Instantly share code, notes, and snippets.

@0x0ade
0x0ade / Common.cs
Created August 5, 2017 11:05
YO! Noid 2: Enter The Void - Custom aspect ratio MonoMod
#pragma warning disable CS0626 // Method, operator, or accessor is marked external and has no attributes on it
using UnityEngine;
using MonoMod;
using System;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public static class Common {
using System;
using System.Collections.Generic;
using System.Numerics;
using SDL2;
using ImGuiNET;
using ImGuiSDL2CS;
namespace YourGameNamespace {
public class YourGameWindow : ImGuiSDL2CSWindow {

Keybase proof

I hereby claim:

  • I am 0x0ade on github.
  • I am 0x0ade (https://keybase.io/0x0ade) on keybase.
  • I have a public key ASA4Um_a3qXLTgxxLnb7RasnXoMY7KNKfhD7ka0nye-ZHAo

To claim this, I am signing this object:

@0x0ade
0x0ade / HookGenTest.cs
Last active June 19, 2021 23:11
TerrariaHooks / HookGen example using On. += and IL. +=
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Mono.Cecil;
using Mono.Cecil.Cil;
using MonoMod.RuntimeDetour.HookGen;
using System;
using System.IO;
using System.Reflection;
using Terraria;
using Terraria.ModLoader;

The following IDs were copied from the Celeste FMOD Studio project.
They can be found in event:/char/madeline/footstep - thanks to Kevin Regamey from PowerUp Audio!

Entries marked as (unused) don't have any sound associated to them.
ID 20 doesn't have a sound associated to it in the public Celeste FMOD Studio project.
IDs 38 - 44 aren't listed in the FMOD Studio project comment. The names for those IDs were chosen by the community and match the sound file names and in-game usage.
The surface index parameter goes up to 50, but IDs 45 - 50 aren't used.

  1. null
  2. asphalt