Mise à jour du dépôt en fonction du .gitignore
This commit is contained in:
parent
1f0f033fad
commit
4a59748e67
224 changed files with 6785 additions and 0 deletions
20
LandblockExtraction/DatEngine/CellEngine.cs
Normal file
20
LandblockExtraction/DatEngine/CellEngine.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using AC2RE.Definitions;
|
||||
|
||||
namespace LandblockExtraction.DatEngine {
|
||||
public class CellEngine {
|
||||
private DatReader cellReader;
|
||||
|
||||
public CellEngine() {
|
||||
cellReader = new(@"X:\DatFiles\cell_1.dat");
|
||||
}
|
||||
|
||||
public CLandBlockData? GetLandBlockData(uint id) {
|
||||
DataId dataId = new DataId(id);
|
||||
if (!cellReader.contains(dataId)) return null;
|
||||
using (var data = cellReader.getFileReader(dataId)) {
|
||||
CLandBlockData cLandBlockData = new(data);
|
||||
return cLandBlockData;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue