Example #1
0
        static public Nook GetChangeNook(this NookSystem item, string path, Nook src_nook)
        {
            Nook dst_nook = item.GetNook(path);

            if (src_nook != null && src_nook.IsPresent())
            {
                src_nook.MoveTo(dst_nook);
            }

            return(dst_nook);
        }
Example #2
0
 public Nook_Basic(string p, NookSystem n)
 {
     path        = p;
     nook_system = n;
 }
Example #3
0
 static public IEnumerable <Nook> GetNooks(this NookSystem item, string path)
 {
     return(item.GetPaths(path)
            .Convert(p => item.GetNook(p)));
 }
Example #4
0
 static public Nook GetNook(this NookSystem item, string path)
 {
     return(new Nook_Basic(path, item));
 }
Example #5
0
 public NookSystem_SubPath(string s, NookSystem n)
 {
     sub_path    = s;
     nook_system = n;
 }