Esempio n. 1
0
    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)));
    }
Esempio n. 2
0
 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()));
 }
Esempio n. 3
0
 private IEnumerable <ExecutionMessage> WorldInfo(List <SExpression> args, Environment e)
 {
     yield return(null);
 }