9
9
10
10
public class SpotAnimDefinition extends CachedNode {
11
11
12
- public static CacheArchive gameDefinitionsCacheArchive ;
13
- public static NodeCache spotAnimDefinitionCache = new NodeCache (64 );
14
- public static NodeCache spotAnimModelCache = new NodeCache (30 );
15
- public static CacheArchive aCacheArchive_2582 ;
12
+ private static CacheArchive definitionArchive ;
13
+ private static NodeCache definitionCache = new NodeCache (64 );
14
+ private static NodeCache modelCache = new NodeCache (30 );
15
+ private static CacheArchive modelArchive ;
16
16
public int animationId ;
17
17
public int modelId ;
18
18
public int contrast = 0 ;
@@ -33,26 +33,26 @@ public SpotAnimDefinition() {
33
33
}
34
34
35
35
public static SpotAnimDefinition forId (int id ) {
36
- SpotAnimDefinition spotAnimDefinition = (SpotAnimDefinition ) spotAnimDefinitionCache .get (id );
36
+ SpotAnimDefinition spotAnimDefinition = (SpotAnimDefinition ) definitionCache .get (id );
37
37
if (spotAnimDefinition != null )
38
38
return spotAnimDefinition ;
39
- byte [] is = gameDefinitionsCacheArchive .getFile (13 , id );
39
+ byte [] is = definitionArchive .getFile (13 , id );
40
40
spotAnimDefinition = new SpotAnimDefinition ();
41
41
spotAnimDefinition .id = id ;
42
42
if (is != null )
43
43
spotAnimDefinition .readValues (new Buffer (is ));
44
- spotAnimDefinitionCache .put (id , spotAnimDefinition );
44
+ definitionCache .put (id , spotAnimDefinition );
45
45
return spotAnimDefinition ;
46
46
}
47
47
48
48
public static void clearSpotAnimCache () {
49
- spotAnimDefinitionCache .clear ();
50
- spotAnimModelCache .clear ();
49
+ definitionCache .clear ();
50
+ modelCache .clear ();
51
51
}
52
52
53
53
public static void initializeSpotAnimCache (CacheArchive arg1 , CacheArchive arg2 ) {
54
- aCacheArchive_2582 = arg1 ;
55
- gameDefinitionsCacheArchive = arg2 ;
54
+ modelArchive = arg1 ;
55
+ definitionArchive = arg2 ;
56
56
}
57
57
58
58
public void readValues (Buffer buffer ) {
@@ -88,9 +88,9 @@ public void readValue(int opcode, Buffer buffer) {
88
88
}
89
89
90
90
public Model getModel (int arg0 ) {
91
- Model model = (Model ) spotAnimModelCache .get ((long ) id );
91
+ Model model = (Model ) modelCache .get ((long ) id );
92
92
if (model == null ) {
93
- model = Model .getModel (aCacheArchive_2582 , modelId );
93
+ model = Model .getModel (modelArchive , modelId );
94
94
if (model == null ) {
95
95
return null ;
96
96
}
@@ -101,7 +101,7 @@ public Model getModel(int arg0) {
101
101
}
102
102
model .createBones ();
103
103
model .applyLighting (64 + ambient , contrast + 850 , -30 , -50 , -30 , true );
104
- spotAnimModelCache .put ((long ) id , model );
104
+ modelCache .put ((long ) id , model );
105
105
}
106
106
Model class40_sub5_sub17_sub5_0_ ;
107
107
if (animationId == -1 || arg0 == -1 ) {
0 commit comments