Beispiel #1
0
        public static void Init()
        {
            collectionsToReplace  = ResourceExtractor.GetResourceFolders();
            spriteSheetsToReplace = ResourceExtractor.GetCollectionFiles();
            foreach (string s in spriteSheetsToReplace)
            {
                ETGModConsole.Log(s);
            }
            replacedCollections = new List <tk2dSpriteCollectionData>();

            Hook hook = new Hook(typeof(tk2dSpriteCollectionData).GetMethod("Init", BindingFlags.NonPublic | BindingFlags.Instance), typeof(SpriteReplacer).GetMethod("Replace"));
        }