yog-script-analyze 0.6.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
namespace Yog;

/// An item a mod declares (`item Gem { … }`), as a stack of it is used:
/// made for each use (its constructor subscribes) until stacks keep state.
[Intrinsic]
public abstract class ItemObject {
    /// A player used it (right-clicked holding it).
    public event Action<Player> Use;

    /// The stack this client's player holds (`offHand`: in its other hand)
    /// as a `T`, its `saved` and `synced` members the stack's (the server's,
    /// as the game sent it); `null` when it holds no `T`.
    [Reified]
    public static T? Held<T>(bool offHand) where T : ItemObject;
}