Beispiel #1
0
 static void Main(string[] args)
 {
     string fname = @"I:\GitHub\ScidNET\tests\ScidNET.Tests\bases\endings";
     var fmode = fileModeT.FMODE_Both;
     var db = new scidBaseT();
     db.Open(fmode, fname, false);
     var ie = db.getIndexEntry(1u);
     var err = db.getGame(ie,db.bbuf);
     var er2 = db.game.Decode(db.bbuf, 3);
     var er3 = db.game.WriteToPGN(db.tbuf);
     var pgn = db.tbuf.GetBuffer();
     var mv = db.game.GetCurrentMove();
     
     //var mv = gm.getMove(0);
     //var mu = mv.
     //var mvstr = mv.getSAN();
     //    var gfile = new GFile();
     //    gfile.Open(fname, fmode);
     //    var idx = new Index();
     //    var err = idx.Open(fname);
     //    var ie = idx.GetEntry(1u);
     //    var fm = gfile.ReadGame(ie.GetOffset(), ie.GetLength());
 }
Beispiel #2
0
 public ushort importGame(scidBaseT sourceBase, uint gNum) {
   ushort ret = ScidPINVOKE.scidBaseT_importGame(swigCPtr, scidBaseT.getCPtr(sourceBase), gNum);
   return ret;
 }
Beispiel #3
0
 public ushort importGames(scidBaseT sourceBase, SWIGTYPE_p_HFilter filter, Progress progress) {
   ushort ret = ScidPINVOKE.scidBaseT_importGames(swigCPtr, scidBaseT.getCPtr(sourceBase), SWIGTYPE_p_HFilter.getCPtr(filter), Progress.getCPtr(progress));
   if (ScidPINVOKE.SWIGPendingException.Pending) throw ScidPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #4
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(scidBaseT obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }