Skip to content

Commit

Permalink
ReadMe.
Browse files Browse the repository at this point in the history
ReadMe.
  • Loading branch information
xzripper authored Jul 7, 2024
1 parent 737802f commit 28a39de
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,23 @@ int main() {
dynstatFree(&dynstat); return 0;
}
```

Java:
```java
import dynstatj.DynStat;
import dynstatj.DynStatEffect;

public class Main {
public static void main(String[] args) {
DynStat dynstat = new DynStat(100, 0);

dynstat.addEffect(new DynStatEffect((stat, mod) -> { return stat - (1 * mod); }, 0.0001f));

while(true) {
dynstat.proc();

System.out.println(dynstat.getStatRndf());
}
}
}
```

0 comments on commit 28a39de

Please sign in to comment.