예제 #1
0
        /// <summary>
        /// The poke.
        /// </summary>
        public void Poke()
        {
            uint Address = (uint)(this.offsetInMap + map.SelectedMeta.magic);

            this.FindByNameAndTagType();
            RTH_Imports.Poke(Address, (uint)this.identInt32, 32);
        }
예제 #2
0
파일: Bitmask.cs 프로젝트: forksnd/Blam_BSP
        /// <summary>
        /// The poke.
        /// </summary>
        public void Poke()
        {
            uint Address = (uint)(this.offsetInMap + map.SelectedMeta.magic);

            switch (this.bitCount)
            {
            case 8:
            {
                RTH_Imports.Poke(Address, Convert.ToByte(this.value), 8);
                break;
            }

            case 16:
            {
                RTH_Imports.Poke(Address, (uint)Convert.ToInt16(this.value), 16);
                break;
            }

            case 32:
            {
                RTH_Imports.Poke(Address, (uint)Convert.ToInt32(this.value), 32);
                break;
            }
            }
        }
예제 #3
0
        /// <summary>
        /// The poke.
        /// </summary>
        public void Poke()
        {
            uint Address = (uint)(this.offsetInMap + map.SelectedMeta.magic);

            switch (ValueType)
            {
            case IFPIO.ObjectEnum.Short:
            {
                RTH_Imports.Poke(Address, (uint)Convert.ToInt16(this.Value), 16);
                break;
            }

            case IFPIO.ObjectEnum.Int:
            {
                RTH_Imports.Poke(Address, (uint)Convert.ToInt32(this.Value), 32);
                break;
            }

            case IFPIO.ObjectEnum.UShort:
            {
                RTH_Imports.Poke(Address, Convert.ToUInt16(this.Value), 16);
                break;
            }

            case IFPIO.ObjectEnum.UInt:
            {
                RTH_Imports.Poke(Address, Convert.ToUInt32(this.Value), 32);
                break;
            }

            case IFPIO.ObjectEnum.Float:
            {
                uint val = Convert.ToUInt32(Convert.ToSingle(this.Value));
                RTH_Imports.Poke(Address, val, 32);
                break;
            }

            case IFPIO.ObjectEnum.Unknown:
            {
                RTH_Imports.Poke(Address, RTH_Imports.ConvertFloat(Convert.ToSingle(this.Value)), 32);
                break;
            }

            case IFPIO.ObjectEnum.Byte:
            {
                RTH_Imports.Poke(Address, Convert.ToByte(this.Value), 8);
                break;
            }
            }
        }
예제 #4
0
        public void Poke()
        {
            uint Address = (uint)(this.offsetInMap + map.SelectedMeta.magic);

            try
            {
                uint StringID = (uint)(((ushort)this.sidIndexer) | ((byte)map.Strings.Length[this.sidIndexer] << 24));
                RTH_Imports.Poke(Address, StringID, 32);
            }
            catch
            {
                MessageBox.Show("Net: Something is wrong with this Sid " + this.EntName + " Offset " + this.chunkOffset.ToString());
            }
        }
예제 #5
0
파일: SID.cs 프로젝트: forksnd/Blam_BSP
        /// <summary>
        /// The poke.
        /// </summary>
        public void Poke()
        {
            uint Address = (uint)(this.offsetInMap + map.SelectedMeta.magic);

            try
            {
                uint StringID =
                    (uint)(((ushort)this.sidIndexer) | ((byte)map.Strings.Length[this.sidIndexer] << 24));
                RTH_Imports.Poke(Address, StringID, 32);
            }
            catch (Exception ex)
            {
                Global.ShowErrorMsg(
                    "Net: Something is wrong with this Sid " + this.EntName + " Offset " + this.chunkOffset, ex);
            }
        }
예제 #6
0
파일: Indices.cs 프로젝트: forksnd/Blam_BSP
        /// <summary>
        /// The poke.
        /// </summary>
        public void Poke()
        {
            if (this.isNulledOutReflexive)
            {
                return;
            }

            string tempstring1 = this.comboBox1.Text;

            if (tempstring1.Contains(" Is Invalid. On Line ") || tempstring1.Contains("Something is wrong with this ") ||
                tempstring1.Contains(" : Value is Too Small To Be An Index") ||
                tempstring1.Contains(" : Value is Too Large To Be The Indexer"))
            {
                return;
            }

            if (tempstring1 == "nulled")
            {
                this.Value = -1;
            }

            if (tempstring1.Contains(" : "))
            {
                int counter;
                for (counter = 0; counter < tempstring1.Length; counter++)
                {
                    if (tempstring1[counter] == ' ')
                    {
                        break;
                    }
                }

                this.Value = Convert.ToInt32(tempstring1.Substring(0, counter));
            }

            uint Address = (uint)(this.offsetInMap + map.SelectedMeta.magic);

            switch (ValueType)
            {
            case IFPIO.ObjectEnum.Short:
            {
                RTH_Imports.Poke(Address, (uint)Convert.ToInt16(this.Value), 16);
                break;
            }

            case IFPIO.ObjectEnum.Int:
            {
                RTH_Imports.Poke(Address, (uint)Convert.ToInt32(this.Value), 32);
                break;
            }

            case IFPIO.ObjectEnum.UShort:
            {
                RTH_Imports.Poke(Address, Convert.ToUInt16(this.Value), 16);
                break;
            }

            case IFPIO.ObjectEnum.UInt:
            {
                RTH_Imports.Poke(Address, Convert.ToUInt32(this.Value), 32);
                break;
            }

            case IFPIO.ObjectEnum.Float:
            {
                RTH_Imports.Poke(Address, RTH_Imports.ConvertFloat(Convert.ToSingle(this.Value)), 32);
                break;
            }

            case IFPIO.ObjectEnum.Unknown:
            {
                RTH_Imports.Poke(Address, RTH_Imports.ConvertFloat(Convert.ToSingle(this.Value)), 32);
                break;
            }

            case IFPIO.ObjectEnum.Byte:
            {
                RTH_Imports.Poke(Address, Convert.ToByte(this.Value), 8);
                break;
            }
            }
        }