PUN Custom Types - W V Q P?

Options
So I was trying to figure out what custom type codes/ids are used for PUN, and from what I can gather the only 4 being used (from searching the PUN source code) are casts from capital ASCII W, V, Q, and P....

Mostly I'm just curious, but does anyone have any idea how or why this ended up being the case? I don't think I've ever seen network ID numbers assigned using ASCII codes before, and W V Q and P seem completely random... how did this happen?

Also does anyone know if these are the only 4 ids I shouldn't use? On a related note, are the only event codes that should not be used the ones that are > 200? I can't find either of these (somewhat important) facts in the documentation anywhere, though perhaps I'm looking in the wrong place....

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited April 2018
    Options
    Hi @williamh,

    Thank you for choosing Photon!

    You can find details about the 4 custom types registered by default in PUN here and also anything about Photon Serialization on the same page.

    I think you should not mix:
    - network ID (ActorNumber or PhotonViewID or something else)
    - custom serialization (known/supported data exchange) type ID (0..255)
    - custom event code (0..199)
    - etc.