@adatechnology/game-contracts 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -854,6 +854,14 @@ interface TestableItem {
854
854
  animations?: AnimationClipSpec[];
855
855
  /** Can be grabbed and thrown. */
856
856
  movable?: boolean;
857
+ /**
858
+ * A picture of the item for menus, search results and the label of the aimed item: the URL of an image (an SVG silhouette is drawn in the text colour, so give it one colour with
859
+ * the tones as opacity) or the SVG markup itself (starts with `<svg`). Optional: an item without one shows its name only.
860
+ * The room draws it as a CSS mask, so a URL on another origin needs CORS headers (or must be same-origin), and the host must trust the URL: it is loaded as given, not sanitized.
861
+ */
862
+ thumbnail?: string;
863
+ /** Author and licence of the thumbnail, shown as the tooltip of the picture in the inspector (e.g. `Skoll, CC BY 3.0`). */
864
+ thumbnailCredit?: string;
857
865
  }
858
866
  /** A scripted check a module brings: the host calls `run` with its own context (the test room passes a `ScenarioContext`). */
859
867
  interface ModuleScenario<Context = unknown> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/game-contracts",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "license": "MIT",
5
5
  "description": "The contracts every game module depends on, and nothing else: destruction (parts, hits, events, DestructibleImpl), weapons (shots), fluids (containers, item uses), item animations and the TestableModule a module hands the test room. Types plus tiny checkers, no runtime dependencies.",
6
6
  "keywords": [