示例#1
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;
 }
示例#2
0
文件: VM.cs 项目: RHY3756547/FreeSO
 public void ReplaceNet(VMNetDriver driver)
 {
     lock (Driver)
     {
         Driver = driver;
     }
 }
示例#3
0
文件: VM.cs 项目: Daribon/FreeSO
 /// <summary>
 /// Constructs a new Virtual Machine instance.
 /// </summary>
 /// <param name="context">The VMContext instance to use.</param>
 public VM(VMContext context, VMNetDriver driver)
 {
     context.VM = this;
     this.Context = context;
     this.Driver = driver;
 }