Ejemplo n.º 1
0
    public CPlayer CreatePlayer(string Type, E_PLAYER_TEAM Team, string LabelName, SWIGTYPE_p_Core__Physics__IPhysicsStrategy PhysicsStrategy)
    {
        IntPtr  cPtr = testPINVOKE.CGameObjectManager_CreatePlayer__SWIG_1(swigCPtr, Type, (int)Team, LabelName, SWIGTYPE_p_Core__Physics__IPhysicsStrategy.getCPtr(PhysicsStrategy));
        CPlayer ret  = (cPtr == IntPtr.Zero) ? null : new CPlayer(cPtr, false);

        return(ret);
    }
Ejemplo n.º 2
0
 public CWeapon(CWeaponProfile Profile, SWIGTYPE_p_Core__Physics__IPhysicsStrategy Physics) : this(testPINVOKE.new_CWeapon__SWIG_0(CWeaponProfile.getCPtr(Profile), SWIGTYPE_p_Core__Physics__IPhysicsStrategy.getCPtr(Physics)), true)
 {
     if (testPINVOKE.SWIGPendingException.Pending)
     {
         throw testPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 3
0
    public SWIGTYPE_p_Core__Physics__IPhysicsStrategy GetStrategy()
    {
        IntPtr cPtr = testPINVOKE.CPhysicsManager_GetStrategy(swigCPtr);
        SWIGTYPE_p_Core__Physics__IPhysicsStrategy ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Core__Physics__IPhysicsStrategy(cPtr, false);

        return(ret);
    }
Ejemplo n.º 4
0
    public SWIGTYPE_p_Core__Physics__IPhysicsStrategy CreateStrategy(string Label)
    {
        IntPtr cPtr = testPINVOKE.CPhysicsManager_CreateStrategy(swigCPtr, Label);
        SWIGTYPE_p_Core__Physics__IPhysicsStrategy ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Core__Physics__IPhysicsStrategy(cPtr, false);

        return(ret);
    }
Ejemplo n.º 5
0
    public bool PlaceItem(string ProfileName, SWIGTYPE_p_Vector3 Position, SWIGTYPE_p_Core__Physics__IPhysicsStrategy Physics)
    {
        bool ret = testPINVOKE.CItemsManager_PlaceItem__SWIG_0(swigCPtr, ProfileName, SWIGTYPE_p_Vector3.getCPtr(Position), SWIGTYPE_p_Core__Physics__IPhysicsStrategy.getCPtr(Physics));

        if (testPINVOKE.SWIGPendingException.Pending)
        {
            throw testPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 6
0
 internal static HandleRef getCPtr(SWIGTYPE_p_Core__Physics__IPhysicsStrategy obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Ejemplo n.º 7
0
    public bool CreateCustomPlayer(CPlayer Player, E_PLAYER_TEAM Team, string LabelName, SWIGTYPE_p_Core__Physics__IPhysicsStrategy PhysicsStrategy)
    {
        bool ret = testPINVOKE.CGameObjectManager_CreateCustomPlayer__SWIG_1(swigCPtr, CPlayer.getCPtr(Player), (int)Team, LabelName, SWIGTYPE_p_Core__Physics__IPhysicsStrategy.getCPtr(PhysicsStrategy));

        return(ret);
    }
Ejemplo n.º 8
0
 public CPlayerPimpl(string LabelName, SWIGTYPE_p_Core__Physics__IPhysicsStrategy PhysicsStrategy) : this(testPINVOKE.new_CPlayerPimpl(LabelName, SWIGTYPE_p_Core__Physics__IPhysicsStrategy.getCPtr(PhysicsStrategy)), true)
 {
 }