This question is related to this question.
I'm trying to spoof the PUN-event with event-code 1 (UpdateNestedObjectEvent) using a photon server/plugin.
This page describes really well how to create/spoof events.
Photon.Hive.Plugin.IPluginHist#BroadcastEvent(..., Dictionary<byte, object> data, ...) allows you to spoof an event, the data needs to be supplied in the form of a Dictionary<byte, object>.
The problem:
Dictionary<byte, object> data is received via "parameters" in ExitGames.Client.Photon.EventData while a non-spoofed event uses "CustomData".
Is there any way to force the use of/edit "CustomData" in EventData?
I know that this problem can be solved by changing code in either:
NestedObjectRoot#OnEvent(EventData eventData)
NestedObjectRoot#LateUpdate()
to also support my spoofed packets with their data in "parameters".
But is far from ideal as it is not really spoofing. I just send 2 different types of events under the same event-code.
I'm trying to spoof the PUN-event with event-code 1 (UpdateNestedObjectEvent) using a photon server/plugin.
This page describes really well how to create/spoof events.
Photon.Hive.Plugin.IPluginHist#BroadcastEvent(..., Dictionary<byte, object> data, ...) allows you to spoof an event, the data needs to be supplied in the form of a Dictionary<byte, object>.
The problem:
Dictionary<byte, object> data is received via "parameters" in ExitGames.Client.Photon.EventData while a non-spoofed event uses "CustomData".
Is there any way to force the use of/edit "CustomData" in EventData?
I know that this problem can be solved by changing code in either:
NestedObjectRoot#OnEvent(EventData eventData)
NestedObjectRoot#LateUpdate()
to also support my spoofed packets with their data in "parameters".
But is far from ideal as it is not really spoofing. I just send 2 different types of events under the same event-code.