예제 #1
0
파일: ILink.cs 프로젝트: Jeb44/ProjectBlue
 /// <summary>
 /// Handle the request when severity fits with the mask and continue the chain, if another part is there.
 /// </summary>
 /// <param name="message">String that should be written somewhere.</param>
 /// <param name="severity"></param>
 public void Request(string message, LinkLevel severity)
 {
     if ((severity & mask) != 0)
     {
         HandleRequest(message);
     }
     if (next != null)
     {
         next.Request(message, severity);
     }
 }
예제 #2
0
        public Context(string rid,
                       string projectFileOrFolder,
                       bool isVerbose,
                       IEnumerable <string> msBuildProperties,
                       LinkLevel link,
                       bool isNoCrossGen,
                       string outputPath)
        {
            Rid = rid;
            ProjectFileOrFolder = projectFileOrFolder;
            IsVerbose           = isVerbose;
            MsBuildProperties   = msBuildProperties;
            Link         = link;
            IsNoCrossGen = isNoCrossGen;
            OutputPath   = outputPath;

            CurrentPlatform = rid == null?Platform.Current() :
                                  rid.StartsWith("win") ? Platform.Value.Windows :
                                  rid.StartsWith("osx") ? Platform.Value.MacOs : Platform.Value.Linux;

            TempPublishPath = Path.Combine(projectFileOrFolder, "dotnetwarp_temp");
        }
예제 #3
0
파일: ILink.cs 프로젝트: Jeb44/ProjectBlue
 public ILink(LinkLevel mask, ILink next)
 {
     this.mask = mask;
     this.next = next;
 }
예제 #4
0
파일: ILink.cs 프로젝트: Jeb44/ProjectBlue
 public ILink(LinkLevel mask)
 {
     this.mask = mask;
 }
예제 #5
0
파일: Logger.cs 프로젝트: Jeb44/ProjectBlue
 public UnityConsoleLogger(LinkLevel mask)
     : base(mask)
 {
 }
예제 #6
0
파일: Logger.cs 프로젝트: Jeb44/ProjectBlue
 public IngameConsoleLogger(LinkLevel mask)
     : base(mask)
 {
     //add stuff
 }
예제 #7
0
파일: Logger.cs 프로젝트: Jeb44/ProjectBlue
 public FileLogger(LinkLevel mask, string path)
     : base(mask)
 {
     Path = path;
 }