public override void OnLoad(EventArgs e) { this.ti.OnLoad(e); this.si.CurrentState = 0x00; this.si.OnLoad(e); this.zcr.OnLoad(e); ZertzBallRenderer.GenerateBalls(ZertzBallContainer.Offset(), this.rc, this.zcr, 0x00); ZertzRingRenderer.GenerateRings(this.rc, this.boardR, this.game, this.zcr, this.hls, 0x40); this.OnResize(e); //this.rc.Add(0x100,); }
public static ZertzBallRenderer[] GenerateBalls(ZertzBallContainer zbc, RenderContainer rc, ZertzCupRenderer zcr, int offsetid) { int id = offsetid; ZertzBallType zbt; ZertzBallRenderer zbr; ZertzBallRenderer[] list = new ZertzBallRenderer[zbc.Total]; int j = 0x00; for (byte b = 0x00; b < 0x03; b++) { zbt = (ZertzBallType)b; for (int i = 0x00; i < zbc[zbt]; i++) { zbr = new ZertzBallRenderer(zbt); list[j++] = zbr; rc.Add(id++, zbr); zbr.RenderMover = RenderMoveManager.GenerateStaticMover(zcr.CommonContainer.Add(zbr)); } } return(list); }