Parsing Hashtable Data

I used two platforms demo for interaction:
【Android NDK RealTime:demo_loadBalancing】
【Unity RealTime:demo-particle-unity】

Android:mLoadBalancingClient.opRaiseEvent (false, count, 0)
> Unity:OnEvent ( Photon.EventData Photo event) works normally and gets the detailed information;

However, I don't know how to parse the data sent by unity on Android platform
public Hashtable WriteEvMove()
            Hashtable evContent = new Hashtable();
            evContent[(byte)1] = new byte[] { (byte)this.PosX, (byte)this.PosY };
            return evContent;
this.LoadBalancingPeer.OpRaiseEvent(DemoConstants.EvPosition, this.particlePlayer.WriteEvMove(), new RaiseEventOptions(), new SendOptions() { Reliability = this.SendReliable });
public virtual bool OpRaiseEvent(byte eventCode, object customEventContent, RaiseEventOptions raiseEventOptions, SendOptions sendOptions)
	paramDict[(byte)ParameterCode.Code] = (byte)eventCode;
	if (customEventContent != null)
		paramDict[(byte)ParameterCode.Data] = customEventContent;
	//UnityEngine.Debug.Log("this.SendOperation(OperationCode.RaiseEvent, paramDict, sendOptions);   OperationCode.RaiseEvent = " + OperationCode.RaiseEvent);
	return this.SendOperation(OperationCode.RaiseEvent, paramDict, sendOptions);

void NetworkLogic::customEventAction(int playerNr, nByte eventCode, const ExitGames::Common::Object& eventContent)
	ExitGames::Common::Hashtable evData = ExitGames::Common::ValueObject<ExitGames::Common::Hashtable>(eventContent);
	//??????????? I don't know how to get the value of posx, posy

I don't know how to get the value of posx, posy

Best Answer


  • @Kaiserludi admin

    It works fine. Thank you very much. <3