yog-script-analyze 0.4.0

Yog Script (.ys, .yns) analyzed: its lexer, parser and syntax tree, names resolved, the class index model — what the build and the editors read a source with.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace Yog;

using System.Threading.Tasks;

/// The game's time: its side's ticks, which stop with the game (paused,
/// lagging) where real time doesn't.
[Intrinsic]
public static class GameTime {
    /// Done once `delay` ticks of its side have passed (`GameTime.Delay(20t)`).
    public static Task Delay(Ticks delay);
    /// Done at its side's next tick.
    public static Task NextTick();
    /// Done at the first tick `condition` holds, checked each tick.
    public static Task Until(Func<bool> condition);
    /// `action` run every `period` ticks of its side; the task finishes
    /// only when `action` panics.
    public static Task Every(Ticks period, Action action);
}