示例#1
0
        public RescueWireframeOwner Owner()
        {
            long returnNdx = Owner5(nativeNdx);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueWireframeOwner myReturn = new RescueWireframeOwner(returnNdx);
                int isA = myReturn.IsA();
                switch (isA)
                {
                case RescueObject.R_RescueBlockUnit:
                    myReturn = new RescueBlockUnit(returnNdx);
                    break;

                case RescueObject.R_RescueGeobody:
                    myReturn = new RescueGeobody(returnNdx);
                    break;

                case RescueObject.R_RescueSurface:
                    myReturn = new RescueSurface(returnNdx);
                    break;
                }
                return(myReturn);
            }
        }
示例#2
0
        public bool RemoveFrom(RescueBlockUnit existingObject)
        {
            bool myReturn = RemoveFrom3(nativeNdx
                                        , (existingObject == null) ? 0 : existingObject.nativeNdx);

            return(myReturn);
        }
示例#3
0
        public bool DropBlockUnit(RescueBlockUnit blockUnitToDrop)
        {
            bool myReturn = DropBlockUnit9(nativeNdx
                                           , (blockUnitToDrop == null) ? 0 : blockUnitToDrop.nativeNdx);

            return(myReturn);
        }
        public bool DeleteBlockUnit(RescueBlockUnit existingBlockUnit)
        {
            bool myReturn = DeleteBlockUnit10(nativeNdx
                                              , (existingBlockUnit == null) ? 0 : existingBlockUnit.nativeNdx);

            return(myReturn);
        }
        public RescueBlockUnit BlockUnitBelowMe()
        {
            long returnNdx = BlockUnitBelowMe7(nativeNdx);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlockUnit myReturn = new RescueBlockUnit(returnNdx);
                return(myReturn);
            }
        }
示例#6
0
        public RescueBlockUnit ParentBlockUnit()
        {
            long returnNdx = ParentBlockUnit19(nativeNdx);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlockUnit myReturn = new RescueBlockUnit(returnNdx);
                return(myReturn);
            }
        }
示例#7
0
        public RescueBlockUnit ObjectIdentifiedBy(long identifier)
        {
            long returnNdx = ObjectIdentifiedBy7(nativeNdx
                                                 , identifier);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlockUnit myReturn = new RescueBlockUnit(returnNdx);
                return(myReturn);
            }
        }
示例#8
0
        public RescueBlockUnit ObjectNamed(string nameIn)
        {
            long returnNdx = ObjectNamed6(nativeNdx
                                          , nameIn);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlockUnit myReturn = new RescueBlockUnit(returnNdx);
                return(myReturn);
            }
        }
示例#9
0
        public RescueBlockUnit NthObject(long ordinal)
        {
            long returnNdx = NthObject5(nativeNdx
                                        , ordinal);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlockUnit myReturn = new RescueBlockUnit(returnNdx);
                return(myReturn);
            }
        }
        public RescueBlockUnit NthBlockUnit(long zeroBasedOrdinal)
        {
            long returnNdx = NthBlockUnit11(nativeNdx
                                            , zeroBasedOrdinal);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlockUnit myReturn = new RescueBlockUnit(returnNdx);
                return(myReturn);
            }
        }
示例#11
0
        public RescueBlockUnit BlockUnitForUnit(RescueUnit unitToFind)
        {
            long returnNdx = BlockUnitForUnit8(nativeNdx
                                               , (unitToFind == null) ? 0 : unitToFind.nativeNdx);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueBlockUnit myReturn = new RescueBlockUnit(returnNdx);
                return(myReturn);
            }
        }
示例#12
0
        public static RescuePropertyGroup MakeRescuePropertyGroup(string groupNameIn,
                                                                  RescueBlockUnit blockUnitIn)
        {
            long returnNdx = MakeRescuePropertyGroup0(groupNameIn,
                                                      (blockUnitIn == null) ? 0 : blockUnitIn.nativeNdx);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescuePropertyGroup myReturn = new RescuePropertyGroup(returnNdx);
                return(myReturn);
            }
        }
示例#13
0
 public void AddTo(RescueBlockUnit newObject)
 {
     AddTo2(nativeNdx
            , (newObject == null) ? 0 : newObject.nativeNdx);
 }
 public void AddBlockUnit(RescueBlockUnit existingBlockUnit)
 {
     AddBlockUnit9(nativeNdx
                   , (existingBlockUnit == null) ? 0 : existingBlockUnit.nativeNdx);
 }
 public void SetBlockUnitBelowMe(RescueBlockUnit existingUnit)
 {
     SetBlockUnitBelowMe9(nativeNdx
                          , (existingUnit == null) ? 0 : existingUnit.nativeNdx);
 }
 public void SetBlockUnitAboveMe(RescueBlockUnit existingUnit)
 {
     SetBlockUnitAboveMe8(nativeNdx
                          , (existingUnit == null) ? 0 : existingUnit.nativeNdx);
 }