Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SpontanCombust committed Aug 20, 2024
1 parent e864ecc commit 5341fec
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions docs/user-manual/diagnostic-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,31 +431,6 @@ var player: CR4Player<Ciri>; // (1)
1. Class `CR4Player` does not take any type arguments. Remove `<Ciri>`.


---

### `same-content-annotation`

Annotations are meant to extend types already existing in the Witcher 3 script code base or types defined in other mods. Even if it may be possible to `@wrapMethod` that is defined in the same mod WIDE discourages this behaviour in favour of simply editing those types instead of using annotations.

```ts linenums="1" title="modSkillFramework/content/scripts/skill_framework.ws"
class SkillFramework {
public function DefineSkill(skillName: name) {
// ...
}
}
```

```ts linenums="1" hl_lines="2"
@wrapMethod(SkillFramework)
function DefineSkill(skillName: name) { // (1)
LogChannel('SF', "Skill defined: " + skillName);
wrappedMethod(skillName);
}
```

1. Putting this in the same mod will work for the script compiler, but will yield undefined behaviour for WIDE.


---


Expand Down

0 comments on commit 5341fec

Please sign in to comment.