Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Feature/light and vob misc #37

Closed
wants to merge 13 commits into from
Closed

Conversation

JucanAndreiDaniel
Copy link
Collaborator

Copy link
Collaborator

@JaXt0r JaXt0r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests were all green!
Mostly = default! change requests.

PxCs.Tests/PxWorldTest.cs Outdated Show resolved Hide resolved
PxCs/Data/Vob/PxLightPresetData.cs Outdated Show resolved Hide resolved
PxCs/Data/Vob/PxVobAnimateData.cs Show resolved Hide resolved
PxCs/Data/Vob/PxVobCodeMasterData.cs Outdated Show resolved Hide resolved
PxCs/Data/Vob/PxVobData.cs Outdated Show resolved Hide resolved
PxCs/Data/Vob/PxVobNpcData.cs Outdated Show resolved Hide resolved
PxCs/Data/Vob/PxVobNpcData.cs Outdated Show resolved Hide resolved
PxCs/Data/Vob/PxVobNpcData.cs Outdated Show resolved Hide resolved
PxCs/Data/Vob/PxVobNpcData.cs Outdated Show resolved Hide resolved
PxCs/Data/Vob/PxVobNpcData.cs Show resolved Hide resolved
Copy link
Collaborator

@JaXt0r JaXt0r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few naming conventions and PxVmNpc already exists (with less properties). Please check comments and thank you for the additional properties.

PxCs/Data/Vob/PxVobNpcData.cs Outdated Show resolved Hide resolved

namespace PxCs.Data.Mesh
{
public class PxLightMapData
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a vob? I mean does it inherit from PxVobData?
If not, then it shouldn't be inside Vob namespace, I guess.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in mesh namespace as it is used by meshes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you meant to comment to PxLightPresetData:
LightPreset is also defined under VOb in phoenix (now zenkit)


namespace PxCs.Data.Vob
{
public class PxLightPresetData
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a vob? I mean does it inherit from PxVobData?
If not, then it shouldn't be inside Vob namespace, I guess.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is both a vob and a light, inside phoenix it is declared as such

struct Light : public VirtualObject, public LightPreset 

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Light presets are not VObs but the have the same content as lights. Notice that LightPreset does not inherit from VirtualObject

@@ -1,10 +1,81 @@
using System;
using System.Numerics;

namespace PxCs.Data.Vob
{
[Serializable]
public class PxVobNpcData : PxVobData
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Will help us with future NPC stuff.

But this isn't a VOB, this is a VM entry.

  • Please check PxCs.Data.Vm.PxVmNpcData and add your elements here.
  • Do you load this data already? Please do so if not.
  • Please enlarge the existing PxVmTest to check a few on these

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duh, you're totally right, my mistake

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JaXt0r
Copy link
Collaborator

JaXt0r commented Dec 6, 2023

I'm currently switching to ZenKit's C# implementation. You can keep this for now, but you might consider checking it, if your implementation is there already.

@lmichaelis
Copy link
Member

This PR is now obsolete due to the switch to ZenKitCS.

@lmichaelis lmichaelis closed this Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants