Example #1
0
        public SWIGTYPE_p_unsigned_short cast()
        {
            IntPtr cPtr = SLikeNetPINVOKE.UnsignedShortPointer_cast(swigCPtr);
            SWIGTYPE_p_unsigned_short ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_short(cPtr, false);

            return(ret);
        }
Example #2
0
        public static UnsignedShortPointer frompointer(SWIGTYPE_p_unsigned_short t)
        {
            IntPtr cPtr = SLikeNetPINVOKE.UnsignedShortPointer_frompointer(SWIGTYPE_p_unsigned_short.getCPtr(t));
            UnsignedShortPointer ret = (cPtr == IntPtr.Zero) ? null : new UnsignedShortPointer(cPtr, false);

            return(ret);
        }
 internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_short obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Example #4
0
 public void DecomposeTeamLocked(Packet packet, SWIGTYPE_p_p_SLNet__TM_World world, SWIGTYPE_p_p_SLNet__TM_TeamMember teamMember, SWIGTYPE_p_p_SLNet__TM_Team team, SWIGTYPE_p_unsigned_short currentMembers, SWIGTYPE_p_unsigned_short memberLimitIncludingBalancing, SWIGTYPE_p_bool balancingIsActive, SWIGTYPE_p_unsigned_char joinPermissions)
 {
     SLikeNetPINVOKE.TeamManager_DecomposeTeamLocked(swigCPtr, Packet.getCPtr(packet), SWIGTYPE_p_p_SLNet__TM_World.getCPtr(world), SWIGTYPE_p_p_SLNet__TM_TeamMember.getCPtr(teamMember), SWIGTYPE_p_p_SLNet__TM_Team.getCPtr(team), SWIGTYPE_p_unsigned_short.getCPtr(currentMembers), SWIGTYPE_p_unsigned_short.getCPtr(memberLimitIncludingBalancing), SWIGTYPE_p_bool.getCPtr(balancingIsActive), SWIGTYPE_p_unsigned_char.getCPtr(joinPermissions));
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        private SWIGTYPE_p_unsigned_short GetHelper(uint position)
        {
            SWIGTYPE_p_unsigned_short ret = new SWIGTYPE_p_unsigned_short(SLikeNetPINVOKE.RakNetListUnsignedShort_GetHelper(swigCPtr, position), false);

            return(ret);
        }
        public ushort Pop()
        {
            SWIGTYPE_p_unsigned_short ret = PopHelper();

            return(UnsignedShortPointer.frompointer(ret).value());
        }
        public ushort Get(uint position)
        {
            SWIGTYPE_p_unsigned_short ret = GetHelper(position);

            return(UnsignedShortPointer.frompointer(ret).value());
        }
        private SWIGTYPE_p_unsigned_short PopHelper()
        {
            SWIGTYPE_p_unsigned_short ret = new SWIGTYPE_p_unsigned_short(SLikeNetPINVOKE.RakNetListUnsignedShort_PopHelper(swigCPtr), false);

            return(ret);
        }