// generate a WorldDef-object from the retrieved sql-results protected void WorldDefFromSQLResults(GUC.Utilities.Threading.AbstractRunnable sender, DBAgent.FinishedQueueEventHandlerArgs e) { // convert the sql-query-results from string to their respective datatypes sqlResultInUse = true; sqlResults = e.GetSQLResults(); DBTables.ConvertSQLResults(sqlResults, colGetTypeInfo, false); // construct the WorldDef-object according to the converted sql-data worldDef = new WorldDef(this); ApplyWorldEffects(ref worldDef, ref sqlResults, ref colGetTypeInfo); // initalize VobInst-objects from database via loaders of the VobSystem //VobSystem.VobInstLoader vobInstLoader = new VobSystem.VobInstLoader(ref worldDef); //vobInstLoader.Start(); //vobInstLoader.FinishedLoading += delegate (object sender, FinishedLoadingArgs e) //{ // // release control over sqlResults on finishing line // sqlResultInUse = false; //}; }
// actually apply all the world-parameters defined in the database // (like current and future weather, global effects, etc.) protected static void ApplyWorldEffects(ref WorldDef worldDef, ref List <List <List <object> > > sqlResults, ref List <List <DBTables.ColumnGetTypeInfo> > colGetTypeInfo) { // !!! TO DO !!! }
public WorldInst(WorldDef def) : this() { this.definition = def; }