NodeWorld

WorldContentReport

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public static class WorldContentReport

Namespace NodeWorld.SDK.Editor.

The content check of a world at publication: the bundle each platform has just built goes through the players' own check (WorldContentCheck, same code, same verdict), and the creator sees what the players' games will remove: « Le composant X sur l'objet Y n'est pas autorisé : il sera retiré chez les joueurs ». Publishing goes on. The messages are in French when the computer is in French, in English otherwise.

Properties

French

csharp
public static bool French { get; }

The messages are written in French (the computer's language is French).

Findings

csharp
public static IReadOnlyList<(string target, ContentFinding finding)> Findings { get; }

What the last publication's bundles hold that the players' games will remove, per build target.

Methods

Clear

csharp
public static void Clear()

Forgets the previous publication's findings (a new build starts).

Check

csharp
public static ContentCheckResult Check(string target, string bundlePath)

Checks the bundle built for target, writes each finding to the console and keeps it for the window.

Summary

csharp
public static string Summary()

The summary line of the build's end dialog, or an empty string when nothing is removed.

Draw

csharp
public static void Draw()

Draws the last publication's findings (the World Publisher's Build tab).