public void LogMatchInput(MatchInput matchinput) { string sMatchInput = string.Format("mi:{0}", matchinput.iPlayerActing); int[] arnSerializedMatchInput = matchinput.Serialize(); sMatchInput += LibConversions.ArToStr(arnSerializedMatchInput); //Also print out a friendly human-readable input sMatchInput += "\n" + matchinput.ToString(); WriteToMatchLogFile(sMatchInput); }
public void LogLoadouts(int iPlayer) { for (int iChr = 0; iChr < Player.MAXCHRS; iChr++) { LoadoutManager.Loadout loadout = NetworkMatchSetup.GetLoadout(iPlayer, iChr); string sLoadout = string.Format("lo:{0}:{1}", iPlayer, iChr); int[] arnSerializedLoadout = LoadoutManager.SerializeLoadout(loadout); sLoadout += LibConversions.ArToStr(arnSerializedLoadout); sLoadout += "\n" + loadout; WriteToMatchLogFile(sLoadout); } }
public void SendInput(int indexInput, int[] arSerializedMatchInput) { Debug.LogFormat(LibDebug.AddColor("Sending serialized selection: {0}", LibDebug.Col.BLUE), LibConversions.ArToStr(arSerializedMatchInput)); photonview.RPC("ReceiveMatchInput", RpcTarget.AllBufferedViaServer, indexInput, arSerializedMatchInput); }