예제 #1
0
 /// <summary>
 /// Constructs a new Virtual Machine instance.
 /// </summary>
 /// <param name="context">The VMContext instance to use.</param>
 public VM(VMContext context, VMNetDriver driver, VMHeadlineRendererProvider headline)
 {
     context.VM    = this;
     this.Context  = context;
     this.Driver   = driver;
     Headline      = headline;
     OnBHAVChange += VM_OnBHAVChange;
 }
예제 #2
0
 /// <summary>
 /// Constructs a new Virtual Machine instance.
 /// </summary>
 /// <param name="context">The VMContext instance to use.</param>
 public VM(VMContext context, VMHeadlineRendererProvider headline)
 {
     context.VM    = this;
     this.Context  = context;
     Headline      = headline;
     FreeWill      = new VMFreeWill(this);
     OnBHAVChange += VM_OnBHAVChange;
 }
예제 #3
0
파일: VM.cs 프로젝트: RHY3756547/FreeSO
 /// <summary>
 /// Constructs a new Virtual Machine instance.
 /// </summary>
 /// <param name="context">The VMContext instance to use.</param>
 public VM(VMContext context, VMNetDriver driver, VMHeadlineRendererProvider headline)
 {
     context.VM = this;
     this.Context = context;
     this.Driver = driver;
     Headline = headline;
     OnBHAVChange += VM_OnBHAVChange;
 }
예제 #4
0
파일: VM.cs 프로젝트: kevinmel2000/FreeSO
        /// <summary>
        /// Constructs a new Virtual Machine instance.
        /// </summary>
        /// <param name="context">The VMContext instance to use.</param>
        public VM(VMContext context, VMNetDriver driver, VMHeadlineRendererProvider headline)
        {
            context.VM   = this;
            Context      = context;
            Driver       = driver;
            Headline     = headline;
            Scheduler    = new VMScheduler(this);
            GameTickRate = FSOEnvironment.RefreshRate;

            TS1 = Content.Content.Get().TS1;
        }