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); } } }
/// <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); } } } }
internal static void LogStart(string identifier, string message, params object[] args) { log.LogStart(identifier, string.Format(message, args)); started = true; }