示例#1
0
    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);
    }
示例#2
0
    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);
        }
    }
示例#3
0
    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);
    }