Esempio n. 1
0
        /// <summary>
        /// Function that creates a new Engine Object, adds it to the current DyCEBag, and adds a property that references the new Object Engine.
        /// </summary>
        private void AddEngineObject()
        {
            var newEngine = new EngineObject("New Object Engine");

            //TODO: Don't just use the 'General' DyCEBag. This should support references to other DyCEBags as well.
            DB.Instance["General"].Add(newEngine);
            Properties.Add(new EngineProperty("New Property", newEngine));
        }
Esempio n. 2
0
 public ResultObject(EngineObject engine, int seed)
     : base(engine, seed)
 {
     engine.Changed += engineObject_Changed;
 }