public override void Init(tso.simantics.VMContext context)
        {
            base.Init(context);
            //context.World.AddComponent(this.WorldUI);

            /** Aquarium, we will allow the load and main functions to run for this object **/
        }
Example #2
0
 public override void Init(tso.simantics.VMContext context)
 {
     base.Init(context);
     var testa = 0;
     //also run the main function of all people because i'm a massochist
     //ExecuteEntryPoint(1, context);
 }
Example #3
0
 public void Update(tso.common.rendering.framework.model.UpdateState state)
 {
     foreach (var scene in Scenes)
     {
         scene.Update(state);
     }
     foreach (var scene in External)
     {
         scene.Update(state);
     }
 }
        public override void Init(tso.simantics.VMContext context)
        {
            base.Init(context);
            //context.World.AddComponent(this.WorldUI);

            /** Aquarium, we will allow the load and main functions to run for this object **/
            if (Object.OBJ.GUID == 0x98E0F8BD){
                this.Thread.EnqueueAction(new tso.simantics.engine.VMQueuedAction {
                    Callee = this,
                    /** Main function **/
                    Routine = context.VM.Assemble(Object.Resource.Get<BHAV>(4124))
                });
            }
        }
Example #5
0
 public override void Update(tso.common.rendering.framework.model.UpdateState state)
 {
 }
Example #6
0
 public override void Update(tso.common.rendering.framework.model.UpdateState state)
 {
     base.Update(state);
     vm.Update(state.Time);
 }