Init
This commit is contained in:
174
bindings/csharp/interfaces/TM_World.cs
Normal file
174
bindings/csharp/interfaces/TM_World.cs
Normal file
@ -0,0 +1,174 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.12
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
namespace SLNet {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class TM_World : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal TM_World(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(TM_World obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~TM_World() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
SLikeNetPINVOKE.delete_TM_World(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public TM_World() : this(SLikeNetPINVOKE.new_TM_World(), true) {
|
||||
}
|
||||
|
||||
public TeamManager GetTeamManager() {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.TM_World_GetTeamManager(swigCPtr);
|
||||
TeamManager ret = (cPtr == IntPtr.Zero) ? null : new TeamManager(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void AddParticipant(RakNetGUID rakNetGUID) {
|
||||
SLikeNetPINVOKE.TM_World_AddParticipant(swigCPtr, RakNetGUID.getCPtr(rakNetGUID));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void RemoveParticipant(RakNetGUID rakNetGUID) {
|
||||
SLikeNetPINVOKE.TM_World_RemoveParticipant(swigCPtr, RakNetGUID.getCPtr(rakNetGUID));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void SetAutoManageConnections(bool autoAdd) {
|
||||
SLikeNetPINVOKE.TM_World_SetAutoManageConnections(swigCPtr, autoAdd);
|
||||
}
|
||||
|
||||
public void GetParticipantList(RakNetListRakNetGUID participantList) {
|
||||
SLikeNetPINVOKE.TM_World_GetParticipantList(swigCPtr, RakNetListRakNetGUID.getCPtr(participantList));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public void ReferenceTeam(TM_Team team, ulong networkId, bool applyBalancing) {
|
||||
SLikeNetPINVOKE.TM_World_ReferenceTeam(swigCPtr, TM_Team.getCPtr(team), networkId, applyBalancing);
|
||||
}
|
||||
|
||||
public void DereferenceTeam(TM_Team team, byte noTeamSubcategory) {
|
||||
SLikeNetPINVOKE.TM_World_DereferenceTeam(swigCPtr, TM_Team.getCPtr(team), noTeamSubcategory);
|
||||
}
|
||||
|
||||
public uint GetTeamCount() {
|
||||
uint ret = SLikeNetPINVOKE.TM_World_GetTeamCount(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public TM_Team GetTeamByIndex(uint index) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.TM_World_GetTeamByIndex(swigCPtr, index);
|
||||
TM_Team ret = (cPtr == IntPtr.Zero) ? null : new TM_Team(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public TM_Team GetTeamByNetworkID(ulong teamId) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.TM_World_GetTeamByNetworkID(swigCPtr, teamId);
|
||||
TM_Team ret = (cPtr == IntPtr.Zero) ? null : new TM_Team(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint GetTeamIndex(TM_Team team) {
|
||||
uint ret = SLikeNetPINVOKE.TM_World_GetTeamIndex(swigCPtr, TM_Team.getCPtr(team));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void ReferenceTeamMember(TM_TeamMember teamMember, ulong networkId) {
|
||||
SLikeNetPINVOKE.TM_World_ReferenceTeamMember(swigCPtr, TM_TeamMember.getCPtr(teamMember), networkId);
|
||||
}
|
||||
|
||||
public void DereferenceTeamMember(TM_TeamMember teamMember) {
|
||||
SLikeNetPINVOKE.TM_World_DereferenceTeamMember(swigCPtr, TM_TeamMember.getCPtr(teamMember));
|
||||
}
|
||||
|
||||
public uint GetTeamMemberCount() {
|
||||
uint ret = SLikeNetPINVOKE.TM_World_GetTeamMemberCount(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public TM_TeamMember GetTeamMemberByIndex(uint index) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.TM_World_GetTeamMemberByIndex(swigCPtr, index);
|
||||
TM_TeamMember ret = (cPtr == IntPtr.Zero) ? null : new TM_TeamMember(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public ulong GetTeamMemberIDByIndex(uint index) {
|
||||
ulong ret = SLikeNetPINVOKE.TM_World_GetTeamMemberIDByIndex(swigCPtr, index);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public TM_TeamMember GetTeamMemberByNetworkID(ulong teamMemberId) {
|
||||
IntPtr cPtr = SLikeNetPINVOKE.TM_World_GetTeamMemberByNetworkID(swigCPtr, teamMemberId);
|
||||
TM_TeamMember ret = (cPtr == IntPtr.Zero) ? null : new TM_TeamMember(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public uint GetTeamMemberIndex(TM_TeamMember teamMember) {
|
||||
uint ret = SLikeNetPINVOKE.TM_World_GetTeamMemberIndex(swigCPtr, TM_TeamMember.getCPtr(teamMember));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool SetBalanceTeams(bool balanceTeams, byte noTeamSubcategory) {
|
||||
bool ret = SLikeNetPINVOKE.TM_World_SetBalanceTeams(swigCPtr, balanceTeams, noTeamSubcategory);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool GetBalanceTeams() {
|
||||
bool ret = SLikeNetPINVOKE.TM_World_GetBalanceTeams(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void SetHost(RakNetGUID _hostGuid) {
|
||||
SLikeNetPINVOKE.TM_World_SetHost(swigCPtr, RakNetGUID.getCPtr(_hostGuid));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public RakNetGUID GetHost() {
|
||||
RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.TM_World_GetHost(swigCPtr), true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public byte GetWorldId() {
|
||||
byte ret = SLikeNetPINVOKE.TM_World_GetWorldId(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
SLikeNetPINVOKE.TM_World_Clear(swigCPtr);
|
||||
}
|
||||
|
||||
public static int JoinRequestHelperComp(SWIGTYPE_p_SLNet__TM_World__JoinRequestHelper key, SWIGTYPE_p_SLNet__TM_World__JoinRequestHelper data) {
|
||||
int ret = SLikeNetPINVOKE.TM_World_JoinRequestHelperComp(SWIGTYPE_p_SLNet__TM_World__JoinRequestHelper.getCPtr(key), SWIGTYPE_p_SLNet__TM_World__JoinRequestHelper.getCPtr(data));
|
||||
if (SLikeNetPINVOKE.SWIGPendingException.Pending) throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user