public Result(Params warpParams) { Start = null; End = null; FinalEntrance = null; WarpParams = warpParams; }
/// <summary> /// Gets a record to one baseEntranceIndex point /// </summary> /// <param name="baseEntranceIndex"></param> /// <param name="givenEntrance"></param> /// <returns>True if found, else false</returns> public static bool TryGetEntranceByIndex(EntranceIndex entranceIndex, out EntranceStruct ent) { OcarinaDataContext db = new OcarinaDataContext(); ent = new EntranceStruct(); ent.Index = entranceIndex; EntranceIndex e = ent.Index; ent.Definition = db.EntranceDefs.SingleOrDefault (x => x.SceneId == e.SceneId && x.EntranceNum == e.EntranceNum); if (ent.Definition == null) { return(false); } return(true); }