Line | |
---|
1 | package net.oni2.aeinstaller.backend.mods;
|
---|
2 |
|
---|
3 | import java.io.File;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * @author Christian Illy
|
---|
7 | */
|
---|
8 | public class Mod implements Comparable<Mod> {
|
---|
9 | private double aeVersion;
|
---|
10 | private int node;
|
---|
11 | private int packageNumber;
|
---|
12 |
|
---|
13 | public double getAEVersion() {
|
---|
14 | return aeVersion;
|
---|
15 | }
|
---|
16 |
|
---|
17 | public boolean hasSeparatePlatformDirs() {
|
---|
18 | return aeVersion >= 2;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public File getLocalPath() {
|
---|
22 | // TODO
|
---|
23 | return null;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public boolean newerAvailable() {
|
---|
27 | //TODO
|
---|
28 | return false;
|
---|
29 | }
|
---|
30 |
|
---|
31 | public boolean localAvailable() {
|
---|
32 | //TODO
|
---|
33 | return false;
|
---|
34 | }
|
---|
35 |
|
---|
36 | public int getPackageNumber() {
|
---|
37 | return packageNumber;
|
---|
38 | }
|
---|
39 |
|
---|
40 | @Override
|
---|
41 | public int compareTo(Mod o) {
|
---|
42 | return getPackageNumber() - o.getPackageNumber();
|
---|
43 | }
|
---|
44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.