Skip to content

Add transformation to handle PxClientID #2

@PathogenDavid

Description

@PathogenDavid

PxClientID is a typedef used for IDs assigned by PxScene. Right now I'm pretty sure that they don't get translated at all (or maybe they're completely untyped.)

We should transform the PxClientID typedef from this:

typedef PxU8 PxClientID;
static const PxClientID PX_DEFAULT_CLIENT = 0;
static const PxClientID PX_MAX_CLIENTS = 128;

Into something like this:

struct PxClientID
{
    public readonly ubyte Id;

    private PxClientId(ubyte id)
        => Id = id;

    //TODO: Operators?

    public static readonly PxClientID Default = new PxClientID(0);
    public static readonly PxClientID MaxValue = new PxClientId(128);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions