Skip to content

Commit 6485f44

Browse files
committed
added more doc strings
1 parent 77041f1 commit 6485f44

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main/kotlin/org/scratchapi/scratchdsl/SpecialInputs.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,25 @@ package org.scratchapi.scratchdsl
55
import kotlinx.serialization.encodeToString
66
import kotlinx.serialization.json.*
77

8+
/** Creates a [SpecialLocation] corresponding to the sprite. */
89
val SpriteBuilder.specialLocation get() = SpecialLocation.of(name)
910

11+
/** Creates a [CloneTarget] corresponding to the sprite. */
1012
val SpriteBuilder.cloneTarget get() = CloneTarget.of(name)
1113

14+
/** Creates a [TouchObject] corresponding to the sprite. */
1215
val SpriteBuilder.touchObject get() = TouchObject.of(name)
1316

17+
/** Creates a [DistanceObject] corresponding to the sprite. */
1418
val SpriteBuilder.distanceObject get() = DistanceObject.of(name)
1519

20+
/** Creates a [PropertyTarget] corresponding to the sprite. */
1621
val SpriteBuilder.propertyTarget get() = PropertyTarget.of(name)
1722

23+
/** Creates a [Property] corresponding to the variable. */
1824
val VariableLike.property get() = Property.of(name)
1925

26+
/** Creates a [SensingKey] corresponding to the [KeyboardKey] instance. */
2027
val KeyboardKey.sensingKey get() = SensingKey.of(this)
2128

2229
abstract class NormalShadowExpressionShouldCopy(opcode: String?) : NormalShadowExpression(opcode), ShadowShouldCopy {

0 commit comments

Comments
 (0)