NetLogo / Tortoise

Compiler and runtime engine for NetLogo models that runs in JavaScript 🐢
https://netlogoweb.org
Other
56 stars 27 forks source link

Tutorial Extension APIs #222

Closed iloveivyxuan closed 1 year ago

iloveivyxuan commented 4 years ago

This PR includes tutorial-related APIs. Those APIs only work in Turtle Universe, but we have dummy implementations for NetLogo Web, which will print a log in the command center. There are also simple tests to ensure those commands won't cause any error in NetLogo Web.

There's something new in BrowserCompiler. We use a new variable lastCompiledModel to do the cache. So it would shorten compilation time for an additional command, reporter, raw command, or procedure. All these things are used in Turtle Universe and may not influence NetLogo Web.

LaCuneta commented 1 year ago

Smaller PRs will be made for TU features/changes being merged back to Tortoise.