private IEnumerable <ExecutionMessage> PlayerLocation(List <SExpression> args, Environment e) { var pv = Player.self.transform.position; var head = new SInt((int)Math.Round(pv.x, 0)); var tail = new SInt((int)Math.Round(pv.y, 0)); yield return(new ExecutionMessage(ExecStatus.DONE, new SPair(head, tail))); }
private IEnumerable <ExecutionMessage> MoveDown(List <SExpression> args, Environment e) { Player.self.MovePlayer(0, -1); while (Player.self.isMoving) { yield return(new ExecutionMessage(ExecStatus.PENDING_PRIMATIVE, new SEmptyList())); } yield return(new ExecutionMessage(ExecStatus.DONE, new SEmptyList())); }
private IEnumerable <ExecutionMessage> WorldInfo(List <SExpression> args, Environment e) { yield return(null); }