Beispiel #1
0
        public void Center(RegionSelector selector, Pattern pattern)
        {
            Vector3          centerVec = selector.GetCenter();
            BlockCoordinates center    = new BlockCoordinates((int)centerVec.X, (int)centerVec.Y, (int)centerVec.Z);

            RegionSelector centerRegion = new RegionSelector(selector.Player);

            centerRegion.SelectPrimary(center);
            centerRegion.SelectSecondary(centerVec);
            SetBlocks(centerRegion.GetSelectedBlocks(), pattern);
        }
Beispiel #2
0
        public void Center(RegionSelector selector, Pattern pattern)
        {
            Vector3          centerVec = selector.GetCenter();
            BlockCoordinates center    = new Vector3((float)Math.Truncate(centerVec.X), (float)Math.Truncate(centerVec.Y), (float)Math.Truncate(centerVec.Z));

            RegionSelector centerRegion = new RegionSelector(selector.Player);

            centerRegion.SelectPrimary(center);
            centerRegion.SelectSecondary(centerVec);
            SetBlocks(centerRegion.GetSelectedBlocks(), pattern);
        }