protected void AddLogEntry(Character character, ContainerAccess access, int definition = 0, int quantity = 0) { if (!IsLogging()) { return; } ContainerLogger.AddLogEntry(character, access, definition, quantity); }
public virtual void SetLogging(bool state, Character character, bool writeLog = false) { if (IsLogging() == state) { return; } DynamicProperties.Update(k.log, (state) ? 1 : 0); if (writeLog && character != Character.None) { ContainerLogger.AddLogEntry(character, state ? ContainerAccess.LogStart : ContainerAccess.LogStop); } }