/// <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; }
/// <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; }
/// <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; }