//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 4.0.2
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
using System.Runtime.InteropServices;

namespace com.taptap.tapsdk.bindings.csharp {

public class Bindings {
#if UNITY_IOS
  public const string DLL_NAME = "__Internal";
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
  public const string DLL_NAME = "bindings-csharp";
#else
  public const string DLL_NAME = "bindings-csharp";
#endif
  public static void InitSDK(BridgeConfig config) {
    BindingsPINVOKE.InitSDK(BridgeConfig.getCPtr(config));
    if (BindingsPINVOKE.SWIGPendingException.Pending) throw BindingsPINVOKE.SWIGPendingException.Retrieve();
  }

  public static void SetCurrentGame(BridgeGame game) {
    BindingsPINVOKE.SetCurrentGame(BridgeGame.getCPtr(game));
    if (BindingsPINVOKE.SWIGPendingException.Pending) throw BindingsPINVOKE.SWIGPendingException.Retrieve();
  }

  public static void SetCurrentUser(BridgeUser user) {
    BindingsPINVOKE.SetCurrentUser(BridgeUser.getCPtr(user));
  }

  public static void OnWindowForeground() {
    BindingsPINVOKE.OnWindowForeground();
  }

  public static void OnWindowBackground() {
    BindingsPINVOKE.OnWindowBackground();
  }

  public static readonly int DEV_TYPE_LOCAL = BindingsPINVOKE.DEV_TYPE_LOCAL_get();
  public static readonly int DEV_TYPE_SANDBOX = BindingsPINVOKE.DEV_TYPE_SANDBOX_get();
  public static readonly int DEV_TYPE_CLOUD = BindingsPINVOKE.DEV_TYPE_CLOUD_get();
}

}
