示例#1
0
        public static void Initialize(string ApplicationID, DiscordEventHandlers handlers, int autoRegister, string SteamID)
        {
            IntPtr AppID = ConvertString(ApplicationID);
            IntPtr Steam = ConvertString(SteamID);

            RPC.Discord_Initialize(AppID, ref handlers, autoRegister, Steam);
            Discord.handlers = handlers;
            FreePointers(AppID, Steam);
        }
示例#2
0
 internal static extern void Discord_Initialize(IntPtr applicationId, ref DiscordEventHandlers handlers, int autoRegister, IntPtr optionalSteamId);
示例#3
0
 public static Task InitializeAsync(string ApplicationID, DiscordEventHandlers handlers, int autoRegister, string SteamID)
 {
     Initialize(ApplicationID, handlers, autoRegister, SteamID);
     return(Task.FromResult(0));
 }