public Binding(IBinder binder, Cobject value, Bool isSealed, Bool isOpaque) { Binder = binder; Value = value; IsSealed = isSealed; IsOpaque = isOpaque; }
public static void Draw(SpriteBatch spriteBatch, GameTime gameTime, bool IsHidingUI) { if (ScreenManager.Ingame || (ScreenManager.Paused && !ScreenManager.Editing)) { if (ScreenManager.Paused) { if (!IsHidingUI) { PauseMenu.Draw(spriteBatch); } } Level.DrawBackground(spriteBatch); if (PPlayer.DeathCountdown != 0) { PPlayer.Player.Draw(spriteBatch, gameTime); SquareObject.DrawSquares(SquareObject.sqObjectArray, spriteBatch, 17, 16); foreach (Entity entity in Entity.EntityList) { if (entity.Active) { entity.Draw(spriteBatch, gameTime); } } if (MessageBox.GameMessage != null) { if (!IsHidingUI) { MessageBox.GameMessage.Draw(spriteBatch); } } for (int w = 0; w < Checkpoint.checkpointList.Count; w++) { if (((Checkpoint.checkpointList[w] != null) && (Vector2.Distance(Checkpoint.checkpointList[w].collectable.Position + Level.Offset, new Vector2(400f, 300f)) < 550f)) && (Checkpoint.checkpointList[w].collectable != null)) { if (PPlayer.CurrentCheckpoint == Checkpoint.checkpointList[w].ID) { Checkpoint.checkpointList[w].collectable.Draw(spriteBatch, Color.Red); } else { Checkpoint.checkpointList[w].collectable.Draw(spriteBatch); } } } foreach (Collectable Cobject in Collectable.collectableList) { if ((Cobject != null) && (Vector2.Distance(Cobject.Position + Level.Offset, new Vector2(400f, 300f)) < 550f)) { Cobject.Draw(spriteBatch); } } for (int i = 0; i < Level.ChaliceList.Count; i++) { Level.ChaliceList[i].Draw(spriteBatch); } } } }
private static void Outcome(Cobject expectedValue, Cobject actual, IScope scope, IStack stack) { actual.Eval(scope, stack); var actualValue = stack.Pop(); var equals = actualValue.Equals(expectedValue); if (!equals) { G.C.WriteLine($"{expectedValue} != {actualValue} ;;{actual}"); } }