예제 #1
0
파일: RakNet.cs 프로젝트: hw233/ysz
        public static string StatisticsToStringHelper(RakNetStatistics s, string buffer, int verbosityLevel)
        {
            string ret = RakNetPINVOKE.StatisticsToStringHelper(RakNetStatistics.getCPtr(s), buffer, verbosityLevel);

            return(ret);
        }
        public virtual RakNetStatistics GetStatistics(SystemAddress systemAddress, RakNetStatistics rns)
        {
            IntPtr           cPtr = RakNetPINVOKE.RakPeerInterface_GetStatistics__SWIG_0(swigCPtr, SystemAddress.getCPtr(systemAddress), RakNetStatistics.getCPtr(rns));
            RakNetStatistics ret  = (cPtr == IntPtr.Zero) ? null : new RakNetStatistics(cPtr, false);

            if (RakNetPINVOKE.SWIGPendingException.Pending)
            {
                throw RakNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public virtual bool GetStatistics(int index, RakNetStatistics rns)
        {
            bool ret = RakNetPINVOKE.RakPeerInterface_GetStatistics__SWIG_2(swigCPtr, index, RakNetStatistics.getCPtr(rns));

            return(ret);
        }
예제 #4
0
        public override bool GetStatistics(uint index, RakNetStatistics rns)
        {
            bool ret = RakNetPINVOKE.RakPeer_GetStatistics__SWIG_2(swigCPtr, index, RakNetStatistics.getCPtr(rns));

            return(ret);
        }