Exemplo n.º 1
0
    /// <summary>
    /// Adds detailed system specifications regarding the users/players device to the parameters.
    /// </summary>
    /// <param name="parameters">
    /// The parameters which will be sent to the server <see cref="Dictionary<System.String, System.Object>"/>
    /// </param>
    private Hashtable AddSystemSpecs(GA_Error.SeverityType severity, string type, string message)
    {
        string addmessage = "";
        if (message != "")
            addmessage =  ": " + message;

        Hashtable parameters = new Hashtable()
        {
            { GA_ServerFieldTypes.Fields[GA_ServerFieldTypes.FieldType.Severity], severity.ToString() },
            { GA_ServerFieldTypes.Fields[GA_ServerFieldTypes.FieldType.Message], type + addmessage },
            { GA_ServerFieldTypes.Fields[GA_ServerFieldTypes.FieldType.Level], GA.SettingsGA.CustomArea.Equals(string.Empty)?Application.loadedLevelName:GA.SettingsGA.CustomArea }
        };

        return parameters;
    }
        public override void OnEnter()
        {
            GA_Error.NewEvent(severityType, Message.Value, null);

            Finish();
        }