Exemple #1
0
        private LocalBuilder BuildVisualContainer(IVisualContainer visualContainer, ILGenerator il)
        {
            var cType        = visualContainer.GetType();
            var pnlLocalVar  = Construct(cType, il);
            var addChildMeth = cType.GetMethod(
                nameof(IVisualContainer.AddChild));

            if (addChildMeth == null)
            {
                throw new InvalidOperationException("Can't add child to " + cType);
            }

            //foreach (var child in visualContainer.Children)
            visualContainer.Children.RunOnEachChild(child =>
            {
                var childLocalVar = Reconstruct(child, il);
                il.Emit(OpCodes.Ldloc, pnlLocalVar);
                il.Emit(OpCodes.Ldloc, childLocalVar);
                il.Emit(OpCodes.Callvirt, addChildMeth);
            });

            return(pnlLocalVar);
        }
 public TapPointsMergingAnimation([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #3
0
 public ComboText([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #4
0
 public AvatarDisplay([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #5
0
 public CuteIdol([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
     Visible = false;
 }
Exemple #6
0
 public MiniCube([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
 public MltdStageScalingResponder([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #8
0
 public RibbonsLayer([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #9
0
 public SongTitle([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #10
0
 public MltdStage([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #11
0
 protected BackgroundBase([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #12
0
 public VisualContainer([NotNull] BaseGame game, [CanBeNull] IVisualContainer parent)
     : base(game, parent)
 {
     Components = new BaseGameComponentCollection(this);
 }
Exemple #13
0
 protected BufferedVisual([NotNull] BaseGame game, [CanBeNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #14
0
 public FpsOverlay([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #15
0
 public BackgroundImage([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #16
0
 public SlideMotion([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #17
0
 protected TextOverlayBase([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
 public OutlinedTextOverlay([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #19
0
 public TapPoints([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #20
0
 public TrackDisplay([NotNull] BaseGame game, [CanBeNull] IVisualContainer parent)
     : base(game, parent)
 {
 }
Exemple #21
0
 public HitRankAnimation([NotNull] BaseGame game, [NotNull] IVisualContainer parent)
     : base(game, parent)
 {
 }