Class CopyAppTypingsBuildStep
Pre-build step: mirrors the project's TypeScript declarations from the OneJS project folder into StreamingAssets/typings, which is the copy a player can read. ModManager distributes them to <persistentDataPath>/typings/ at runtime so mod authors get IntelliSense and a typecheck that knows the game's C# API.
Files copied:
- app.d.ts: C# type declarations (the game's own assemblies)
- global.d.ts: the OneJS runtime globals (no DOM in a player, so these are declared by hand)
public class CopyAppTypingsBuildStep : IPreprocessBuildWithReport, IOrderedCallback
- Inheritance
-
objectCopyAppTypingsBuildStep
- Implements
Properties
- callbackOrder
Returns a numeric value that determines the order in which the build callback is invoked.
Methods
- OnPreprocessBuild(BuildReport)
Implement this method to receive a callback before the build is started.