-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement support for UTexture2D, 3D, etc; and implement a dozen of c…
…omponent stubs to help with the deserialization of properties.
- Loading branch information
Showing
21 changed files
with
607 additions
and
13 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
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,15 @@ | ||
using UELib.Branch; | ||
|
||
namespace UELib.Engine | ||
{ | ||
/// <summary> | ||
/// Implements UBrushComponent/Engine.BrushComponent | ||
/// </summary> | ||
[UnrealRegisterClass] | ||
[BuildGeneration(BuildGeneration.UE3)] | ||
public class UBrushComponent : UPrimitiveComponent | ||
{ | ||
// TODO: CachedPhysBrushData | ||
protected override void Deserialize() => base.Deserialize(); | ||
} | ||
} |
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,15 @@ | ||
using UELib.Branch; | ||
|
||
namespace UELib.Engine | ||
{ | ||
/// <summary> | ||
/// Implements UDecalComponent/Engine.DecalComponent | ||
/// </summary> | ||
[UnrealRegisterClass] | ||
[BuildGeneration(BuildGeneration.UE3)] | ||
public class UDecalComponent : UPrimitiveComponent | ||
{ | ||
// TODO: StaticReceivers | ||
protected override void Deserialize() => base.Deserialize(); | ||
} | ||
} |
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,15 @@ | ||
using UELib.Branch; | ||
|
||
namespace UELib.Engine | ||
{ | ||
/// <summary> | ||
/// Implements ULightComponent/Engine.LightComponent | ||
/// </summary> | ||
[UnrealRegisterClass] | ||
[BuildGeneration(BuildGeneration.UE3)] | ||
public class ULightComponent : UActorComponent | ||
{ | ||
// TODO: InclusionConvexVolumes, ExclusionConvexVolumes | ||
protected override void Deserialize() => base.Deserialize(); | ||
} | ||
} |
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,31 @@ | ||
using UELib.Branch; | ||
|
||
namespace UELib.Engine | ||
{ | ||
/// <summary> | ||
/// Implements UMeshComponent/Engine.MeshComponent | ||
/// </summary> | ||
[UnrealRegisterClass] | ||
[BuildGeneration(BuildGeneration.UE3)] | ||
public class UMeshComponent : UPrimitiveComponent | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Implements USkeletalMeshComponent/Engine.SkeletalMeshComponent | ||
/// </summary> | ||
[UnrealRegisterClass] | ||
[BuildGeneration(BuildGeneration.UE3)] | ||
public class USkeletalMeshComponent : UMeshComponent | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Implements UStaticMeshComponent/Engine.StaticMeshComponent | ||
/// </summary> | ||
[UnrealRegisterClass] | ||
[BuildGeneration(BuildGeneration.UE3)] | ||
public class UStaticMeshComponent : UModelComponent | ||
{ | ||
} | ||
} |
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,29 @@ | ||
using UELib.Branch; | ||
using UELib.Core; | ||
|
||
namespace UELib.Engine | ||
{ | ||
/// <summary> | ||
/// Implements UModelComponent/Engine.ModelComponent | ||
/// </summary> | ||
[UnrealRegisterClass] | ||
[BuildGeneration(BuildGeneration.UE3)] | ||
public class UModelComponent : UPrimitiveComponent | ||
{ | ||
public UObject Model; | ||
public int ZoneIndex; | ||
|
||
protected override void Deserialize() | ||
{ | ||
base.Deserialize(); | ||
|
||
_Buffer.Read(out Model); | ||
Record(nameof(Model), Model); | ||
|
||
_Buffer.Read(out ZoneIndex); | ||
Record(nameof(ZoneIndex), ZoneIndex); | ||
|
||
// TODO: Elements (structure not implemented), ComponentIndex, Nodes | ||
} | ||
} | ||
} |
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,23 @@ | ||
namespace UELib.Core | ||
{ | ||
/// <summary> | ||
/// Implements UPrimitive/Engine.Primitive | ||
/// </summary> | ||
[UnrealRegisterClass] | ||
public class UPrimitive : UObject | ||
{ | ||
public UBox BoundingBox; | ||
public USphere BoundingSphere; | ||
|
||
protected override void Deserialize() | ||
{ | ||
base.Deserialize(); | ||
|
||
_Buffer.ReadStruct(out BoundingBox); | ||
Record(nameof(BoundingBox), BoundingBox); | ||
|
||
_Buffer.ReadStruct(out BoundingSphere); | ||
Record(nameof(BoundingSphere), BoundingSphere); | ||
} | ||
} | ||
} |
Oops, something went wrong.