Skip to content

Schema

Code and globals the plugin’s schemas declare, by name like Player.heal. Methods come from a struct or its bases.

Get it with Api.schema().

address(name: string): number
method(object: number | bigint, name: string): number
add(name: string, text: string): void

Where a function, method or static is, found once then kept. A struct’s name gives its [VirtualTable].

Fails with SchemaError.

Where object has a method, through its own vtable for [Virtual(n)] ones.

Fails with SchemaError.

Adds or replaces the plugin’s schema file name.

Fails with SchemaError.

What can go wrong, besides Cancelled, Unsupported and Gone.

Code Error
1 Unknown Nothing by that name in the plugin’s schemas
2 NotFound Declared, but not found, like a signature that didn’t match once
3 NeedsObject A [Virtual(n)] method of a struct with no [VirtualTable], so it needs an object
4 Invalid A schema that doesn’t parse
5 Failed

Made with ♥ by Asgard