Exemplo n.º 1
0
 public Boot(int uid, string naam, BootType type, string locatie)
 {
     this.UID = uid;
     this.Naam = naam;
     this.Type = type;
     this.Locatie = locatie;
 }
Exemplo n.º 2
0
 public Profiel(int uid, string naam, string bemanning, BootType type)
 {
     this.UID = uid;
     this.Naam = naam;
     this.Bemanning = bemanning;
     this.Type = type;
 }
Exemplo n.º 3
0
 public Boot(string naam, double prijs, BootType boottype, bool motor, double tankinhoud)
     : base(naam, prijs)
 {
     BootType = boottype;
     Motor = motor;
     Tankinhoud = tankinhoud;
 }
Exemplo n.º 4
0
	private void setBootType (BootType type) {
		this.type = type;
		setDescription(type.getDescription());
		switch (type) {
			case BootType.LEATHER: setSprite(leather); break;
			case BootType.IRON: setSprite(iron); break;
			case BootType.STEEL: setSprite(steel); break;
			default: Debug.Log("Unknown Boot Type"); break;
		}
	}
Exemplo n.º 5
0
 /// <summary>
 /// The helper for several boot type setting methods, as they
 /// essentially send the same sequence of messages.
 /// </summary>
 /// <param name="bootType">The desired boot type.</param>
 public static NextBoot SetNextBoot(byte deviceId, BootType bootType, bool uefi, bool persistent, byte bootInstance = 0x00)
 {
     if (clients.ContainsKey(deviceId))
     {
         return(clients[deviceId].SetNextBoot(bootType, uefi, persistent, bootInstance));
     }
     else
     {
         return(new NextBoot((byte)CompletionCode.InvalidDevice));
     }
 }
Exemplo n.º 6
0
 public DhcpFormat(BootType bootType)
 {
     op                = (byte)bootType;
     chaddr            = new byte[HardwareAddressLength];
     sname             = new byte[ServerNameLength];
     file              = new byte[BootFileLength];
     cookie            = DhcpCookie;
     options           = new byte[MaxOptionsLength];
     flags             = 0x8000; // Request broadcast responses
     optionsUsedLength = 0;
 }
Exemplo n.º 7
0
        public string InsertProductType(BootType bootType)
        {
            try
            {
                db_1525596_co5027Entities db = new db_1525596_co5027Entities();
                db.BootTypes.Add(bootType);
                db.SaveChanges();

                return(bootType.ShoeName + " Inserted Successfull");
            }
            catch (Exception e)
            {
                return("Error:" + e);
            }
        }
Exemplo n.º 8
0
 //this method sets the listArray with the avaliable BootTypes.  These will allow different types of reset, either Enterprise, Factory, or regular reset
 private void setArray()
 {
     if (listArray == null || bootTypes == null)
     {
         //Get the various Boot Types from the BootType enum
         bootTypes = BootType.Values();
         //create a data structure to hold our various Boot Types
         listArray = new String[bootTypes.Length];
         //Loop over our Boot Types and add each to our new Boot Types data structure
         for (int i = 0; i < bootTypes.Length; i++)
         {
             String bootTypeName = bootTypes[i].Name();
             listArray[i] = bootTypes[i].Name();
         }
     }
 }
Exemplo n.º 9
0
        public string DeleteProductType(int id)
        {
            try
            {
                db_1525596_co5027Entities db = new db_1525596_co5027Entities();
                BootType bootType            = db.BootTypes.Find(id);

                db.BootTypes.Attach(bootType);
                db.BootTypes.Remove(bootType);
                db.SaveChanges();

                return(bootType.ShoeName + " Deleted Successfull");
            }
            catch (Exception e)
            {
                return("Error:" + e);
            }
        }
Exemplo n.º 10
0
        public string UpdateProductType(int id, BootType bootType)
        {
            try
            {
                db_1525596_co5027Entities db = new db_1525596_co5027Entities();
                //get the info from the db
                BootType p = db.BootTypes.Find(id);

                p.ShoeName = bootType.ShoeName;

                db.SaveChanges();
                return(bootType.ShoeName + " Updated Successfull");
            }
            catch (Exception e)
            {
                return("Error:" + e);
            }
        }
Exemplo n.º 11
0
        void StartNetwork(BootType bootType)
        {
            Assert.IsFalse(bootType == BootType.Manual);
            StopAllCoroutines();

            IEnumerator routine = null;
            var         mgr     = _networkManager;

            switch (bootType)
            {
            case BootType.Host: routine = StartConnectLoop(() => mgr.client != null, () => mgr.StartHost()); break;

            case BootType.Client: routine = StartConnectLoop(() => mgr.client != null, StartClient); break;

            case BootType.Server: routine = StartConnectLoop(() => NetworkServer.active, () => mgr.StartServer()); break;
            }

            StartCoroutine(routine);
        }
        public SsboBootFlags(bool parameterLocked, BootFlags bootFlags,
                             BootType bootType, BootLocks bootLocks,
                             BootOverrides bootOverrides, byte bootInstance)
        {
            //  Ipmi Spec on Instance:
            //  10001b to 11111b = internal device instance number 1 to 15, respectively
            if (bootInstance != 0)
            {
                bootInstance = (byte)((bootInstance ^ 0x10) & 0x1F);
            }

            this.parameterLocked = parameterLocked;

            this.parameterSelector =
                (byte)SystemBootOptionsParameter.BootFlags;

            this.parameterData = new byte[5] {
                (byte)bootFlags, (byte)bootType,
                (byte)bootLocks, (byte)bootOverrides, (byte)bootInstance
            };
        }
Exemplo n.º 13
0
    void BootManager()
    {
        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            sphereBoots             = new BootType();
            sphereBoots.name        = "Sphere Boots";
            sphereBoots.bootOffsetY = -1f;

            offsetY = sphereBoots.bootOffsetY;
            print(sphereBoots.name);

            sphereBoots.maxAbilityUseCount = 2;
            bootAmmo = sphereBoots.maxAbilityUseCount;
            print("Number of uses: " + bootAmmo);

            gameObject.AddComponent <BasicBoots>();
            Destroy(GetComponent <RocketBoots>());
        }

        if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            bridgeBoots             = new BootType();
            bridgeBoots.name        = "Bridge Boots";
            bridgeBoots.bootOffsetY = -1f;

            offsetY = bridgeBoots.bootOffsetY;
            print(bridgeBoots.name);

            bridgeBoots.maxAbilityUseCount = 1;
            bootAmmo = bridgeBoots.maxAbilityUseCount;
            print("Number of uses: " + bootAmmo);

            gameObject.AddComponent <RocketBoots>();
            Destroy(GetComponent <BasicBoots>());
        }
    }
        public SsboBootFlags(bool parameterLocked, BootFlags bootFlags,
            BootType bootType, BootLocks bootLocks,
            BootOverrides bootOverrides, byte bootInstance)
        {
            //  Ipmi Spec on Instance:
            //  10001b to 11111b = internal device instance number 1 to 15, respectively
            if(bootInstance != 0)
                bootInstance = (byte)((bootInstance ^ 0x10) & 0x1F);

            this.parameterLocked = parameterLocked;

            this.parameterSelector =
                (byte)SystemBootOptionsParameter.BootFlags;

            this.parameterData = new byte[5] { (byte)bootFlags, (byte)bootType,
                (byte)bootLocks, (byte)bootOverrides, (byte)bootInstance };
        }
 private void ClearBootData()
 {
     this.bootType = BootType.Default;
     this.isInit   = false;
     this.loadData = null;
 }
	/// <summary>
	/// ゲームをはじめから開始
	/// </summary>
	public void OpenStartGame()
	{
		ClearBootData();
		bootType = BootType.Start;
		Open();
	}
Exemplo n.º 17
0
 public Boot(Guid id, string description, DateTimeOffset introduceAt, string name, string photoUrl, decimal price, ProductType productType, int rating, int stock, Option option, BootType bootType, int size)
     : base(id, description, introduceAt, name, photoUrl, price, productType, rating, stock, option)
 {
     BootType = bootType;
     Size     = size;
     Validate();
 }
Exemplo n.º 18
0
	public void init (BootType bootType, int armor) {
		base.init();

		this.armor = armor;
		setBootType(bootType);
	}
Exemplo n.º 19
0
 //起動データをクリア
 protected virtual void ClearBootData()
 {
     bootType = BootType.Default;
     isInit   = false;
     loadData = null;
 }
Exemplo n.º 20
0
 public IBootBuilder WithType(BootType type)
 {
     _type = type;
     return(this);
 }
Exemplo n.º 21
0
 /// <summary>
 /// ゲームをはじめから開始
 /// </summary>
 public void OpenStartGame()
 {
     ClearBootData();
     bootType = BootType.Start;
     Open();
 }
Exemplo n.º 22
0
 public HeroBuilder WithBoot(BootType boot)
 {
     _hero.Boot = boot;
     return(this);
 }
Exemplo n.º 23
0
 public WriteBootCommand(WriteBootCommand otherCommand, long offset, long size) : base(otherCommand, offset, size)
 {
     BootTypeValue = otherCommand.BootTypeValue;
     Unknown2      = otherCommand.Unknown2;
 }
	/// <summary>
	/// セーブデータをロードしてゲーム再開
	/// </summary>
	/// <param name="loadData">ロードするセーブデータ</param>
	public void OpenLoadGame(AdvSaveData loadData)
	{
		ClearBootData();
		bootType = BootType.Load;
		this.loadData = loadData;
		Open();
	}
        /// <summary>
        /// The helper for several boot type setting methods, as they
        /// essentially send the same sequence of messages.
        /// </summary>
        /// <param name="bootType">The desired boot type.</param>
        public virtual NextBoot SetNextBoot(BootType bootType, bool uefi, bool persistent, byte instance, bool requireCommit = false)
        {
            byte completionCode = 0x00;

            SsboSetInProgress req = new SsboSetInProgress(
                                    false, SboSetInProgress.SetInProgress);

            SetSystemBootOptionsResponse response =
                                        (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                                        req, typeof(SetSystemBootOptionsResponse));

            completionCode = response.CompletionCode;

            SsboBootInfoAcknowledge ack = new SsboBootInfoAcknowledge(
                                          false,
                                          SboBootInfoAcknowledgeMask.EnableWriteBiosFlag,
                                          SboBootInfoAcknowledgeData.None);

            response = (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                        ack, typeof(SetSystemBootOptionsResponse));

            if (completionCode == 0x00)
                completionCode = response.CompletionCode;

            BootFlags bootFlags = BootFlags.BootFlagsValid;

            if (persistent)
                bootFlags = (bootFlags | BootFlags.AllSubsequentBoots);

            if (uefi)
                bootFlags = (bootFlags | BootFlags.EfiBootType);

            SsboBootFlags flags = new SsboBootFlags(
                                    false, bootFlags, bootType, 0, 0, instance);

            response = (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                                    flags, typeof(SetSystemBootOptionsResponse));

            if (completionCode == 0x00)
                completionCode = response.CompletionCode;

            if (requireCommit)
            {
                req = new SsboSetInProgress(false, SboSetInProgress.CommitWrite);

                response = (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                            req, typeof(SetSystemBootOptionsResponse));

                if (completionCode == 0x00)
                    completionCode = response.CompletionCode;
            }

            req = new SsboSetInProgress(false, SboSetInProgress.SetComplete);

            response = (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                         req, typeof(SetSystemBootOptionsResponse));

            if (completionCode == 0x00)
                completionCode = response.CompletionCode;

            NextBoot nextboot = new NextBoot(completionCode);
            nextboot.BootDevice = bootType;

            return nextboot;
        }
	/// <summary>
	/// シーン回想としてシーンを開始
	/// </summary>
	/// <param name="scenaioLabel">シーンラベル</param>
	public void OpenSceneGallery(string scenaioLabel)
	{
		ClearBootData();
		bootType = BootType.SceneGallery;
		this.scenaioLabel = scenaioLabel;
		Open();
	}
Exemplo n.º 27
0
        public bool TryGetBootType(string fileName, out BootType bootType)
        {
            throw new NotImplementedException();

            // _mappings.TryGetValue(fileName, out bootType);
        }
	//起動データをクリア
	void ClearBootData()
	{
		bootType = BootType.Default;
		isInit = false;
		loadData = null;
	}
Exemplo n.º 29
0
 //起動データをクリア
 void ClearBootData()
 {
     bootType = BootType.Default;
     isInit   = false;
     loadData = null;
 }
Exemplo n.º 30
0
 /// <summary>
 /// The helper for several boot type setting methods, as they
 /// essentially send the same sequence of messages.
 /// </summary>
 /// <param name="bootType">The desired boot type.</param>
 public static NextBoot SetNextBoot(byte deviceId, BootType bootType, bool uefi, bool persistent, byte bootInstance = 0x00)
 {
     if (clients.ContainsKey(deviceId))
     {
         return clients[deviceId].SetNextBoot(bootType, uefi, persistent, bootInstance);
     }
     else
     {
         return new NextBoot((byte)CompletionCode.InvalidDevice);
     }
 }
        /// <summary>
        /// The helper for several boot type setting methods, as they
        /// essentially send the same sequence of messages.
        /// </summary>
        /// <param name="bootType">The desired boot type.</param>
        public virtual NextBoot SetNextBoot(BootType bootType, bool uefi, bool persistent, byte instance, bool requireCommit = false)
        {
            byte completionCode = 0x00;

            SsboSetInProgress req = new SsboSetInProgress(
                false, SboSetInProgress.SetInProgress);

            SetSystemBootOptionsResponse response =
                (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                    req, typeof(SetSystemBootOptionsResponse));

            completionCode = response.CompletionCode;

            SsboBootInfoAcknowledge ack = new SsboBootInfoAcknowledge(
                false,
                SboBootInfoAcknowledgeMask.EnableWriteBiosFlag,
                SboBootInfoAcknowledgeData.None);

            response = (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                ack, typeof(SetSystemBootOptionsResponse));

            if (completionCode == 0x00)
            {
                completionCode = response.CompletionCode;
            }


            BootFlags bootFlags = BootFlags.BootFlagsValid;

            if (persistent)
            {
                bootFlags = (bootFlags | BootFlags.AllSubsequentBoots);
            }

            if (uefi)
            {
                bootFlags = (bootFlags | BootFlags.EfiBootType);
            }

            SsboBootFlags flags = new SsboBootFlags(
                false, bootFlags, bootType, 0, 0, instance);

            response = (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                flags, typeof(SetSystemBootOptionsResponse));


            if (completionCode == 0x00)
            {
                completionCode = response.CompletionCode;
            }

            if (requireCommit)
            {
                req = new SsboSetInProgress(false, SboSetInProgress.CommitWrite);

                response = (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                    req, typeof(SetSystemBootOptionsResponse));

                if (completionCode == 0x00)
                {
                    completionCode = response.CompletionCode;
                }
            }

            req = new SsboSetInProgress(false, SboSetInProgress.SetComplete);

            response = (SetSystemBootOptionsResponse)this.IpmiSendReceive(
                req, typeof(SetSystemBootOptionsResponse));

            if (completionCode == 0x00)
            {
                completionCode = response.CompletionCode;
            }

            NextBoot nextboot = new NextBoot(completionCode);

            nextboot.BootDevice = bootType;

            return(nextboot);
        }
Exemplo n.º 32
0
        internal override void SetParamaters(byte[] data)
        {
            if (base.CompletionCode == 0)
            {
                byte flags = (byte)(((byte)(data[1] & 0x3C)) >> 2);

                switch (flags)
                {
                    case 0:
                        _bootDevice = BootType.NoOverride;
                        break;
                    case 1:
                        _bootDevice = BootType.ForcePxe;
                        break;
                    case 2:
                        _bootDevice = BootType.ForceDefaultHdd;
                        break;
                    case 3:
                        _bootDevice = BootType.ForceDefaultHddSafeMode;
                        break;
                    case 4:
                        _bootDevice = BootType.ForceDefaultDiagPartition;
                        break;
                    case 5:
                        _bootDevice = BootType.ForceDefaultDvd;
                        break;
                    case 6:
                        _bootDevice = BootType.ForceIntoBiosSetup;
                        break;
                    case 15:
                        _bootDevice = BootType.ForceFloppyOrRemovable;
                        break;
                    default:
                        _bootDevice = BootType.Unknown;
                        break;
                }
            }        
        
        }