-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bbf9e5
commit 930f83e
Showing
8 changed files
with
254 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CPlugVehicleMaterialGroup 0x090E9000 | ||
|
||
0x000 | ||
int[] |
42 changes: 42 additions & 0 deletions
42
Src/GBX.NET/Engines/Plug/CPlugVehicleVisEmitterModel.chunkl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
CPlugVehicleVisEmitterModel 0x090E6000 | ||
|
||
0x002 | ||
bool | ||
|
||
0x003 | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
|
||
0x004 | ||
int | ||
CPlugParticleEmitterModel (external) | ||
CPlugParticleEmitterModel (external) | ||
CPlugParticleEmitterModel (external) | ||
int | ||
int | ||
int | ||
bool | ||
bool | ||
bool | ||
iso4 | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
float | ||
|
||
0x005 | ||
bool |
54 changes: 54 additions & 0 deletions
54
Src/GBX.NET/Engines/Plug/CPlugVehicleVisModelShared.chunkl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
CPlugVehicleVisModelShared 0x090E8000 | ||
|
||
0x005 | ||
SimulationWheel[] SimulationWheels | ||
|
||
0x006 | ||
|
||
0x009 | ||
|
||
0x00A | ||
|
||
0x00F | ||
|
||
0x010 | ||
|
||
0x012 | ||
CPlugVehicleMaterialGroup[]_deprec VehicleMaterialGroups | ||
|
||
0x013 | ||
CFuncKeysReal | ||
CFuncKeysReal | ||
CFuncKeysReal | ||
|
||
0x014 | ||
CPlugVehicleVisEmitterModel[]_deprec VehicleEmitters | ||
|
||
archive SimulationWheel | ||
bool | ||
bool | ||
id Name | ||
|
||
archive VisualArm | ||
VisualId | ||
VisualId | ||
VisualId | ||
bool | ||
bool | ||
int | ||
|
||
archive VisualLight | ||
VisualId | ||
bool | ||
|
||
archive VisualWheel | ||
VisualId | ||
VisualId | ||
VisualId | ||
VisualId | ||
int | ||
bool | ||
|
||
archive VisualId | ||
id | ||
bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
| ||
namespace GBX.NET.Engines.Plug; | ||
|
||
public partial class CPlugVehicleVisModelShared | ||
{ | ||
public VisualVehicle[] VisualVehicles { get; set; } = []; | ||
|
||
public partial class Chunk090E8006 | ||
{ | ||
public override void Read(CPlugVehicleVisModelShared n, GbxReader r) | ||
{ | ||
n.VisualVehicles = new VisualVehicle[r.ReadInt32()]; | ||
} | ||
|
||
public override void Write(CPlugVehicleVisModelShared n, GbxWriter w) | ||
{ | ||
w.Write(n.VisualVehicles.Length); | ||
} | ||
} | ||
|
||
public partial class Chunk090E8009 | ||
{ | ||
public override void Read(CPlugVehicleVisModelShared n, GbxReader r) | ||
{ | ||
for (int i = 0; i < n.VisualVehicles.Length; i++) | ||
{ | ||
n.VisualVehicles[i] ??= new VisualVehicle(); | ||
n.VisualVehicles[i].VisualArms = r.ReadArrayReadable<VisualArm>(); | ||
} | ||
} | ||
|
||
public override void Write(CPlugVehicleVisModelShared n, GbxWriter w) | ||
{ | ||
for (int i = 0; i < n.VisualVehicles.Length; i++) | ||
{ | ||
w.WriteArrayWritable(n.VisualVehicles[i].VisualArms); | ||
} | ||
} | ||
} | ||
|
||
public partial class Chunk090E800A | ||
{ | ||
public override void Read(CPlugVehicleVisModelShared n, GbxReader r) | ||
{ | ||
for (int i = 0; i < n.VisualVehicles.Length; i++) | ||
{ | ||
n.VisualVehicles[i] ??= new VisualVehicle(); | ||
n.VisualVehicles[i].VisualLights = r.ReadArrayReadable<VisualLight>(); | ||
} | ||
} | ||
|
||
public override void Write(CPlugVehicleVisModelShared n, GbxWriter w) | ||
{ | ||
for (int i = 0; i < n.VisualVehicles.Length; i++) | ||
{ | ||
w.WriteArrayWritable(n.VisualVehicles[i].VisualLights); | ||
} | ||
} | ||
} | ||
|
||
public partial class Chunk090E800F | ||
{ | ||
public override void Read(CPlugVehicleVisModelShared n, GbxReader r) | ||
{ | ||
for (int i = 0; i < n.VisualVehicles.Length; i++) | ||
{ | ||
n.VisualVehicles[i] ??= new VisualVehicle(); | ||
n.VisualVehicles[i].VisualWheels = r.ReadArrayReadable<VisualWheel>(); | ||
} | ||
} | ||
|
||
public override void Write(CPlugVehicleVisModelShared n, GbxWriter w) | ||
{ | ||
for (int i = 0; i < n.VisualVehicles.Length; i++) | ||
{ | ||
w.WriteArrayWritable(n.VisualVehicles[i].VisualWheels); | ||
} | ||
} | ||
} | ||
|
||
public partial class Chunk090E8010 | ||
{ | ||
public override void Read(CPlugVehicleVisModelShared n, GbxReader r) | ||
{ | ||
for (int i = 0; i < n.VisualVehicles.Length; i++) | ||
{ | ||
n.VisualVehicles[i] ??= new VisualVehicle(); | ||
n.VisualVehicles[i].U01 = r.ReadReadable<VisualId>(); | ||
n.VisualVehicles[i].U02 = r.ReadReadable<VisualId>(); | ||
n.VisualVehicles[i].U03 = r.ReadReadable<VisualId>(); | ||
n.VisualVehicles[i].U04 = r.ReadReadable<VisualId>(); | ||
n.VisualVehicles[i].U05 = r.ReadInt32(); | ||
} | ||
} | ||
|
||
public override void Write(CPlugVehicleVisModelShared n, GbxWriter w) | ||
{ | ||
for (int i = 0; i < n.VisualVehicles.Length; i++) | ||
{ | ||
w.WriteWritable(n.VisualVehicles[i].U01); | ||
w.WriteWritable(n.VisualVehicles[i].U02); | ||
w.WriteWritable(n.VisualVehicles[i].U03); | ||
w.WriteWritable(n.VisualVehicles[i].U04); | ||
w.Write(n.VisualVehicles[i].U05); | ||
} | ||
} | ||
} | ||
|
||
[ArchiveGenerationOptions(StructureKind = StructureKind.SeparateReadAndWrite)] | ||
public partial class VisualId; | ||
|
||
[ArchiveGenerationOptions(StructureKind = StructureKind.SeparateReadAndWrite)] | ||
public partial class VisualArm; | ||
|
||
[ArchiveGenerationOptions(StructureKind = StructureKind.SeparateReadAndWrite)] | ||
public partial class VisualLight; | ||
|
||
[ArchiveGenerationOptions(StructureKind = StructureKind.SeparateReadAndWrite)] | ||
public partial class VisualWheel; | ||
|
||
public sealed class VisualVehicle | ||
{ | ||
public VisualArm[] VisualArms { get; set; } = []; | ||
public VisualLight[] VisualLights { get; set; } = []; | ||
public VisualWheel[] VisualWheels { get; set; } = []; | ||
public VisualId? U01 { get; set; } | ||
public VisualId? U02 { get; set; } | ||
public VisualId? U03 { get; set; } | ||
public VisualId? U04 { get; set; } | ||
public int U05 { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
CSceneVehicle 0x0A060000 | ||
- inherits: CSceneMobil | ||
- inherits: CSceneMobil | ||
|
||
0x000 | ||
CPlugVehiclePhyTunings VehicleTunings (external) | ||
CMwRefBuffer VehicleMaterials (external) | ||
CSceneVehicleEnvironment Environment | ||
CMwNod | ||
CPlugVehicleVisModelShared VehicleStruct (external) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
CSceneVehicleCar 0x0A02B000 | ||
- inherits: CSceneVehicle | ||
- inherits: CSceneVehicle | ||
|
||
0x00C | ||
float | ||
float | ||
box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CSceneVehicleEnvironment 0x0A033000 | ||
|
||
0x000 | ||
bool | ||
|
||
0x002 | ||
CPlugMaterial[] Materials (external) |