Exemplo n.º 1
0
        // 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;
            //};
        }
Exemplo n.º 2
0
 // 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 !!!
 }
Exemplo n.º 3
0
 public WorldInst(WorldDef def) : this()
 {
     this.definition = def;
 }