Gary Tierney
59a651a1eb
Fix code-style in prayer plugin
...
Adds named arguments to enum declarations along with lookup functions, fixes
continuation indent, and replaces Map<Player, ArrayList<Prayer>> with a
SetMultimap<Player, Prayer>.
2018-03-31 21:58:53 +01:00
Gary Tierney
28c85d1ecc
Remove now invalid packageName from prayer plugin
2018-03-31 21:57:28 +01:00
Trevor Flynn
1c0b1d827f
Fix to allow multiple prayers.
...
Fixed not caching enum values.
2018-03-31 21:49:59 +01:00
Trevor Flynn
94783da9e5
Ported prayer plugin to kotlin
2018-03-31 21:49:59 +01:00
Major
9c4eff712e
Move Position destructuring functions to their own object
2018-03-28 21:36:34 +01:00
Major
3c26d0acf1
Merge pull request #387 from Major-/kotlin-experiments-pos
...
Improve ::position command message
2018-03-28 19:44:07 +01:00
Major
284cad3ef4
Merge pull request #386 from Major-/kotlin-experiments
...
Improve woodcutting, fishing, mining plugin code
2018-03-28 17:52:25 +01:00
Major
0316753f46
Improve ::position command message
2018-03-28 17:48:07 +01:00
Major
4b68b8e47e
Separate prospecting actions
2018-03-28 17:39:51 +01:00
Major
0d7b2ea6e8
Add prospecting on expired rocks
2018-03-28 17:39:51 +01:00
Major
6941fc9de0
Fix nitpicks in Mining plugin
...
Also adds equals() and hashcode() implementations to the various
Mining actions.
2018-03-28 17:39:50 +01:00
Major
173623b76b
Fix nitpicks in Woodcutting plugin
2018-03-28 17:39:46 +01:00
Major
45a0b43eee
Remove incorrect Gunnarsgrunn fishing spots
...
The spots are actually on Tutorial Island and result in two
fishing spots stacked on top of each other.
2018-03-28 01:43:19 +01:00
Major
b2f48815bf
Fix nitpicks in Fishing plugin
2018-03-28 01:43:19 +01:00
Gary Tierney
5d77ed5e4b
Remove plugin script stub
2018-03-27 22:35:12 +01:00
Gary Tierney
179c35fc2d
Add IntelliJ kotlinc configuration
...
This removes the need for the plugin stub.
2018-03-27 22:35:12 +01:00
Gary Tierney
d8116478d4
Remove dependency on embedded kotlin compiler
...
This is a large change that significantly simplifies the plugin build system by
having the kotlinc handle everything related to script compilation. Since we
no longer use package name rewriting, the "packageName" option has been dropped
from the gradle script API and has been removed from existing plugins.
In addition to simplifying the build system, it should also significantly speed
up build times. Previously we ran 2 build processes for every plugin and
didn't have fully working incremental compilation for scripts compared to 1
build process with built-in incremental compilation.
There were also some random pieces of code that referenced kotlinc directly, so
those have either been removed or refactored out.
2018-03-27 22:35:05 +01:00
Trevor Flynn
97896a34a4
Add implementation of runecrafting skill
2018-01-17 22:25:21 +00:00
Major
397d9b2d6a
Merge pull request #366 from apollo-rsps/kotlin-experiments-areas
...
Port the area actions plugin
2017-09-26 13:57:29 +01:00
Major
6e3ddff51a
Correctly import api.Definitions
2017-09-24 22:56:48 +01:00
Major
046f373c9e
Add packages to plugins
2017-09-24 22:35:07 +01:00
Major
b4e8a7136b
Add skill extension properties
2017-09-24 19:44:17 +01:00
Major
ce1bcba893
Port Area plugin to Kotlin
2017-09-24 18:50:13 +01:00
Major
cb9e6f353d
Let plugins intercept Events
...
Support for PlayerEvents already exists, but general event
support wasn't included in the original KotlinPluginScript.
2017-09-24 18:13:17 +01:00
Major
ae3d3c7ce2
Add destructuring operators for Position
2017-09-24 03:48:55 +01:00
Major
8c2f086ae5
Remove meta.toml files
...
Since plugins were moved to gradle they aren't used anyway.
2017-09-24 02:40:33 +01:00
Trevor Flynn
01f2bdda58
Port Fishing plugin to kotlin ( #347 )
...
This also fixes a bunch of bugs.
2017-09-24 02:00:38 +01:00
Major
64ee653423
Rename dls.kt to dsl.kt
2017-09-23 19:37:31 +01:00
Gary Tierney
179632337f
Merge pull request #360 from apollo-rsps/kotlin-shops
...
Add shops in kotlin
2017-09-23 13:40:38 +01:00
Gary Tierney
53521e7e0d
Update varrock plugin package name
2017-09-23 13:30:23 +01:00
Trevor Flynn
22df59500e
Add varrock shops
2017-09-23 04:13:47 +01:00
Major
52c25946b9
Add shops plugin
...
Thanks to tlf30 for a lot of work on this.
2017-09-23 04:12:08 +01:00
Major
6d202abbc2
Support lookup_x inputs with the id at the end
2017-09-23 04:11:44 +01:00
Arin
1c8bc3a009
Add door support in Kotlin ( #356 )
...
Adds support for doors as a Kotlin plugin, based on the previous ruby plugin by shiver.
2017-09-20 11:29:36 +01:00
Gary Tierney
100cfa929d
Merge pull request #355 from tlf30/kotlin-experiments-woodcutting
...
Added woodcutting plugin for Kotlin
2017-09-19 19:31:11 +01:00
Gary Tierney
2cd160feb3
Refactor woodcutting to use coroutines
2017-09-19 19:02:29 +01:00
Trevor Flynn
75a9b828b2
Fix all issues. Wood cutting now works.
2017-09-19 19:02:29 +01:00
Trevor Flynn
da7c7e10b4
Woodcutting now uses Async Action
2017-09-19 19:02:29 +01:00
Trevor Flynn
3e6415f0d2
Initial commit on new woodcutting branch
2017-09-19 19:02:29 +01:00
Gary Tierney
76dd8ba192
Refactor asynchronous actions to avoid thread usage
...
Adds custom coroutines specifically for use within Actions. This
implements all features of the previous system, however, does not rely
on a separate executor to wake up continuations.
Note: since Actions are still ran by an executor and a small chance of
overlap exists the ActionCoroutine implementation uses atomic counters
and references.
2017-09-19 01:52:10 +01:00
Gary Tierney
169d89ffc0
Clear static object REMOVE messages when re-adding
2017-09-17 20:27:50 +01:00
Gary Tierney
8a3decfc54
Enable experimental coroutines for all kotlin projects
2017-09-17 19:37:14 +01:00
Gary Tierney
1f33619ac6
Add source information to remapped scripts
2017-09-17 19:36:58 +01:00
Gary Tierney
89516dab63
Rewrite package names in compiled script files
2017-09-17 18:42:19 +01:00
Gary Tierney
112b8aab57
Add basic detekt configuration
2017-09-17 04:28:10 +01:00
Gary Tierney
a6ab74df58
Merge pull request #354 from apollo-rsps/editorconfig
...
Add kotlin to .editorconfig
2017-09-17 03:34:38 +01:00
Gary Tierney
40095d65e5
Add explicit stop() to async actions
2017-09-17 03:24:59 +01:00
Gary Tierney
0dc6879bdc
Refactor mining to use async actions
2017-09-17 03:13:03 +01:00
Trevor Flynn
a54485e263
Finish up porting mining plugin to Kotlin
2017-09-17 03:12:43 +01:00
Trevor Flynn
e61f4ef95a
Adding support for mining skill
2017-09-17 03:11:03 +01:00