| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- /* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.1
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
- namespace RakNet {
- using System;
- using System.Runtime.InteropServices;
- public class TeamSelection : IDisposable {
- private HandleRef swigCPtr;
- protected bool swigCMemOwn;
- internal TeamSelection(IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new HandleRef(this, cPtr);
- }
- internal static HandleRef getCPtr(TeamSelection obj) {
- return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
- }
- ~TeamSelection() {
- Dispose();
- }
- public virtual void Dispose() {
- lock(this) {
- if (swigCPtr.Handle != IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- RakNetPINVOKE.delete_TeamSelection(swigCPtr);
- }
- swigCPtr = new HandleRef(null, IntPtr.Zero);
- }
- GC.SuppressFinalize(this);
- }
- }
- public TeamSelection() : this(RakNetPINVOKE.new_TeamSelection__SWIG_0(), true) {
- }
- public TeamSelection(JoinTeamType itt) : this(RakNetPINVOKE.new_TeamSelection__SWIG_1((int)itt), true) {
- }
- public TeamSelection(JoinTeamType itt, TM_Team param) : this(RakNetPINVOKE.new_TeamSelection__SWIG_2((int)itt, TM_Team.getCPtr(param)), true) {
- }
- public TeamSelection(JoinTeamType itt, byte param) : this(RakNetPINVOKE.new_TeamSelection__SWIG_3((int)itt, param), true) {
- }
- public JoinTeamType joinTeamType {
- set {
- RakNetPINVOKE.TeamSelection_joinTeamType_set(swigCPtr, (int)value);
- }
- get {
- JoinTeamType ret = (JoinTeamType)RakNetPINVOKE.TeamSelection_joinTeamType_get(swigCPtr);
- return ret;
- }
- }
- public static TeamSelection AnyAvailable() {
- TeamSelection ret = new TeamSelection(RakNetPINVOKE.TeamSelection_AnyAvailable(), true);
- return ret;
- }
- public static TeamSelection SpecificTeam(TM_Team specificTeamToJoin) {
- TeamSelection ret = new TeamSelection(RakNetPINVOKE.TeamSelection_SpecificTeam(TM_Team.getCPtr(specificTeamToJoin)), true);
- return ret;
- }
- public static TeamSelection NoTeam(byte noTeamSubcategory) {
- TeamSelection ret = new TeamSelection(RakNetPINVOKE.TeamSelection_NoTeam(noTeamSubcategory), true);
- return ret;
- }
- }
- }
|