All pastes #274640 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-12-10 21:14 UTC
rendered paste body
namespace Delegates
{
    public delegate bool GetTableName(uint nTable, char buf, uint buflen);
}

namespace ISXWoW
{
    public class WoWDB
    {
        private Dictionary<string, DataTable> table = new Dictionary<string, DataTable>();
        private static Delegates.GetTableName getTableName = Stubs.GetTableName;

        internal class Stubs
        {
            static public bool GetTableName(uint nTable, char buf, uint buflen)
            {
                IntPtr Address = LavishVM.GetAPI("ISXWoW.WoWDB", "GetTableName", 1);
                WoWDB.getTableName = (Delegates.GetTableName)Marshal.GetDelegateForFunctionPointer(Address, typeof(Delegates.GetTableName));
                return false;
            }
        }


        #region Constructors
        public WoWDB()
        {
        }
        #endregion Constructors

        #region Public Methods
        #endregion
    }
}