Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 28a39de

Browse files
authored
ReadMe.
ReadMe.
1 parent 737802f commit 28a39de

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,23 @@ int main() {
8888
dynstatFree(&dynstat); return 0;
8989
}
9090
```
91+
92+
Java:
93+
```java
94+
import dynstatj.DynStat;
95+
import dynstatj.DynStatEffect;
96+
97+
public class Main {
98+
public static void main(String[] args) {
99+
DynStat dynstat = new DynStat(100, 0);
100+
101+
dynstat.addEffect(new DynStatEffect((stat, mod) -> { return stat - (1 * mod); }, 0.0001f));
102+
103+
while(true) {
104+
dynstat.proc();
105+
106+
System.out.println(dynstat.getStatRndf());
107+
}
108+
}
109+
}
110+
```

0 commit comments

Comments
 (0)