Skip to content

Commit a74cb17

Browse files
committed
update comments for used files
1 parent a58c67b commit a74cb17

1 file changed

Lines changed: 14 additions & 18 deletions

File tree

CathodeLib/Scripts/Level.cs

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class Level
4242
public Movers Movers;
4343
public EnvironmentMaps EnvironmentMaps;
4444
public PathBarrierResources PathBarrierResources;
45-
public SoundFlashModels SoundFlashModels;
45+
//public SoundFlashModels SoundFlashModels;
4646
public CollisionMaps CollisionMaps;
4747
public RadiosityInstanceMap RadInstanceMap;
4848
public AlphaLightLevel AlphaLight;
@@ -95,7 +95,7 @@ public class State
9595
/// </summary>
9696
public Action OnSaveTick;
9797

98-
public const int NumberOfTicks = 32;
98+
public const int NumberOfTicks = 31;
9999

100100
/// <summary>
101101
/// A container for data related to a level in the game's "ENV" folder
@@ -141,7 +141,7 @@ public void Load()
141141
Parallel.Invoke(
142142
() => { EnvironmentMaps = new EnvironmentMaps(world + "ENVIRONMENTMAP.BIN", Movers); OnLoadTick?.Invoke(); },
143143
() => { PathBarrierResources = new PathBarrierResources(world + "PATH_BARRIER_RESOURCES", Resources); OnLoadTick?.Invoke(); },
144-
() => { SoundFlashModels = new SoundFlashModels(world + "SOUNDFLASHMODELS.DAT", _global.Textures, Textures); OnLoadTick?.Invoke(); },
144+
//() => { SoundFlashModels = new SoundFlashModels(world + "SOUNDFLASHMODELS.DAT", _global.Textures, Textures); OnLoadTick?.Invoke(); },
145145
() => { CollisionMaps = new CollisionMaps(world + "COLLISION.MAP", Materials, MaterialMaps); OnLoadTick?.Invoke(); }
146146
);
147147

@@ -163,22 +163,18 @@ public void Load()
163163

164164
Parallel.Invoke(
165165
() => { GalaxyItems = new GalaxyItems(renderable + "GALAXY/GALAXY.ITEMS_BIN"); OnLoadTick?.Invoke(); },
166-
() => { GalaxyDefinition = new GalaxyDefinition(renderable + "GALAXY/GALAXY.DEFINITION_BIN"); OnLoadTick?.Invoke(); }
166+
() => { GalaxyDefinition = new GalaxyDefinition(renderable + "GALAXY/GALAXY.DEFINITION_BIN"); OnLoadTick?.Invoke(); } //Not used at runtime, but useful to regenerate GalaxyItems.
167167
);
168168

169169
Commands = new Commands(world + "COMMANDS" + (File.Exists(world + "COMMANDS.PAK") ? ".PAK" : ".BIN"), EnvironmentAnimations, CollisionMaps, RenderableElements); OnLoadTick?.Invoke();
170170

171-
//RENDERABLE/DAMAGE/*
172-
//RENDERABLE/RADIOSITY_RUNTIME.BIN
173-
//WORLD/BEHAVIOR_TREE.DB
174-
//WORLD/COLLISION.HKX
175-
//WORLD/COLLISION.HKX64
176-
//WORLD/CUTSCENE_DIRECTOR_DATA.BIN
177-
//WORLD/LEVEL.STR
178-
//WORLD/OCCLUDER_TRIANGLE_BVH.BIN
179-
//WORLD/PHYSICS.HKX
180-
//WORLD/PHYSICS.HKX64
181-
//WORLD/RADIOSITY_COLLISION_MAPPING.BIN
171+
//The following files are used by the game, but not handled yet:
172+
// - RENDERABLE/RADIOSITY_RUNTIME.BIN
173+
// - WORLD/RADIOSITY_COLLISION_MAPPING.BIN
174+
// - WORLD/BEHAVIOR_TREE.DB
175+
// - WORLD/COLLISION.HKX / HKX64
176+
// - WORLD/PHYSICS.HKX / HKX64
177+
// - WORLD/OCCLUDER_TRIANGLE_BVH.BIN
182178

183179
int stateCount = 1; // we always implicitly have one state (the default state: state zero)
184180
using (BinaryReader reader = new BinaryReader(File.OpenRead(world + "EXCLUSIVE_MASTER_RESOURCE_INDICES")))
@@ -265,7 +261,7 @@ public void Save()
265261
Parallel.Invoke(
266262
() => { EnvironmentMaps.Save(); OnSaveTick?.Invoke(); },
267263
() => { PathBarrierResources.Save(); OnSaveTick?.Invoke(); },
268-
() => { SoundFlashModels.Save(); OnSaveTick?.Invoke(); },
264+
//() => { SoundFlashModels.Save(); OnSaveTick?.Invoke(); },
269265
() => { CollisionMaps.Save(); OnSaveTick?.Invoke(); },
270266
() => { RadInstanceMap.Save(); OnSaveTick?.Invoke(); },
271267
() => { AlphaLight.Save(); OnSaveTick?.Invoke(); },
@@ -313,8 +309,8 @@ public void ImportFromGlobal()
313309
}
314310

315311
//Import global textures referenced by sound flash models
316-
for (int i = 0; i < SoundFlashModels.Entries.Count; i++)
317-
SoundFlashModels.Entries[i].Texture?.RemapToLevel(this);
312+
//for (int i = 0; i < SoundFlashModels.Entries.Count; i++)
313+
// SoundFlashModels.Entries[i].Texture?.RemapToLevel(this);
318314
}
319315

320316
/// <summary>

0 commit comments

Comments
 (0)