예제 #1
0
        // Most of the properties are configured here.
        public BeatBlock(int beatBlockTypeId, float speed, float hitboxPlaybackSpeedScale, IAnimationCurve animationCurve, float intensity, bool comboable, int comboFactor, int layoutLayer, float sizeScalingFactor, bool sizeScalable, GameSpaceOccupationOverTimeTemplate hitBoxSpaceOccupation, GameSpaceOccupationOverTimeTemplate animationSpaceOccupation, IAnimationGameObjectController animationGameObjectController, IHitboxGameObjectController hitboxGameObjectController)
        {
            BeatBlockTypeId               = beatBlockTypeId;
            Speed                         = speed;
            HitboxPlaybackSpeedScale      = hitboxPlaybackSpeedScale;
            AnimationCurve                = animationCurve;
            Intensity                     = intensity;
            Comboable                     = comboable;
            this.comboFactor              = comboFactor;
            LayoutLayer                   = layoutLayer;
            this.sizeScalingFactor        = sizeScalingFactor;
            SizeScalable                  = sizeScalable;
            this.hitBoxSpaceOccupation    = hitBoxSpaceOccupation;
            this.animationSpaceOccupation = animationSpaceOccupation;
            AnimationGameObjectController = animationGameObjectController;
            HitboxGameObjectController    = hitboxGameObjectController;
            OnLayoutTrack                 = false;

            GameSpaceAreaOccupation = new BeatBlockGameSpaceOccupation(() => this.hitBoxSpaceOccupation, () => this.animationSpaceOccupation, () => this.GridPosition);
        }
예제 #2
0
 private IHitboxGameObjectController hitboxGameObjectController;         // 13
 public BeatBlockBuilder_Recyclable HitBoxGameObjectController(IHitboxGameObjectController t)
 {
     setchecks[13] = true;
     hitboxGameObjectController = t;
     return(this);
 }