LogStart() public static method

public static LogStart ( ) : void
return void
Beispiel #1
0
    void logStart()
    {
        TraceLogger.LogStart();
        ProgramLogger.LogStart();

        // log all the gnomes you can talk to and their positions
        NPCQuestTalk[] gnomes = Object.FindObjectsOfType(typeof(NPCQuestTalk)) as NPCQuestTalk[];
        foreach (NPCQuestTalk gnome in gnomes)
        {
            if (gnome.name.Contains("Gnome"))
            {
                TraceLogger.LogKV("gnome", gnome.name + ", " + gnome.transform.position);
            }
        }
    }
Beispiel #2
0
            /// <summary>
            /// Write to a register
            /// </summary>
            /// <param name="aRegister">The register to write to</param>
            /// <param name="aValue">The new value of aRegister</param>
            public void Write(Registers aRegister, Int32 aValue)
            {
                Debug.Assert(accessMap.ContainsKey(aRegister));
                if (Connection != null)
                {
                    byte?command = accessMap[aRegister].writeCommand;
                    if (command.HasValue)
                    {
                        byte[] theCommand = { (byte)command };
                        sysLog.LogStart("Write", "Write " + aValue + " to " + command);
                        lock (Connection)
                        {
                            SendLong(aValue);

                            Connection.TransmitBinary(theCommand);
                        }
                    }
                }
            }
Beispiel #3
0
 internal static void LogStart(string identifier, string message, params object[] args)
 {
     log.LogStart(identifier, string.Format(message, args));
     started = true;
 }