AttachHardDisk() 공개 메소드

public AttachHardDisk ( Harddisk hardDisk ) : void
hardDisk Harddisk
리턴 void
예제 #1
0
 public void initCpu()
 {
     if (cpu == null)
     {
         cpu = new CPU(this, "ksp");
         cpu.AttachHardDisk(hardDisk);
         cpu.Boot();
     }
 }
예제 #2
0
 public void initCpu()
 {
     if (cpu == null)
     {
         cpu = new CPU(this, "ksp");
         cpu.AttachHardDisk(hardDisk);
         cpu.Boot();
     }
 }
예제 #3
0
        public override void OnStart(PartModule.StartState state)
        {
            cpu = new CPU(this, "ksp");

            if (hardDisk == null)
            {
                hardDisk = new Harddisk(MemSize);
            }

            cpu.AttachHardDisk(hardDisk);
            cpu.Boot();
        }
예제 #4
0
파일: kOSProcessor.cs 프로젝트: itsbth/KOS
        public override void OnStart(PartModule.StartState state)
        {
            //Do not start from editor and at KSP first loading
            if (state == StartState.Editor || state == StartState.None)
            {
                return;
            }

            cpu = new CPU(this, "ksp");

            if (hardDisk == null)
            {
                hardDisk = new Harddisk(MemSize);
            }

            cpu.AttachHardDisk(hardDisk);
            cpu.Boot();
        }
예제 #5
0
        public override void OnStart(PartModule.StartState state)
        {
            //Do not start from editor and at KSP first loading
            if (state == StartState.Editor || state == StartState.None)
            {
                return;
            }

            cpu = new CPU(this, "ksp");

            if (hardDisk == null) hardDisk = new Harddisk(MemSize);

            cpu.AttachHardDisk(hardDisk);
            cpu.Boot();
        }