• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Flexibility.StructureValueCollection类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Blamite.Flexibility.StructureValueCollection的典型用法代码示例。如果您正苦于以下问题:C# StructureValueCollection类的具体用法?C# StructureValueCollection怎么用?C# StructureValueCollection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



StructureValueCollection类属于Blamite.Flexibility命名空间,在下文中一共展示了StructureValueCollection类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Load

 private void Load(StructureValueCollection values)
 {
     Magic = (int) values.GetInteger("magic");
     ParentMagic = (int) values.GetInteger("parent magic");
     GrandparentMagic = (int) values.GetInteger("grandparent magic");
     // No description stringid :(
 }
开发者ID:ChadSki,项目名称:Assembly,代码行数:7,代码来源:SecondGenTagClass.cs


示例2: Load

 private void Load(StructureValueCollection values)
 {
     Magic = (int)values.GetInteger("magic");
     ParentMagic = (int)values.GetInteger("parent magic");
     GrandparentMagic = (int)values.GetInteger("grandparent magic");
     Description = new StringID((int)values.GetIntegerOrDefault("stringid", 0));
 }
开发者ID:Chrisco93,项目名称:Assembly,代码行数:7,代码来源:ThirdGenTagClass.cs


示例3: ThirdGenHeader

        public ThirdGenHeader(StructureValueCollection values, EngineDescription info, string buildString,
			FileSegmenter segmenter)
        {
            BuildString = buildString;
            HeaderSize = info.HeaderSize;
            Load(values, segmenter);
        }
开发者ID:ChadSki,项目名称:Assembly,代码行数:7,代码来源:ThirdGenHeader.cs


示例4: StructureReader

        private long _offset; // The offset that the reader is currently at

        #endregion Fields

        #region Constructors

        /// <summary>
        ///     (private) Constructs a new StructureReader.
        /// </summary>
        /// <param name="reader">The IReader to read from.</param>
        private StructureReader(IReader reader)
        {
            _reader = reader;
            _baseOffset = reader.Position;
            _offset = _baseOffset;
            _collection = new StructureValueCollection();
        }
开发者ID:ChadSki,项目名称:Assembly,代码行数:17,代码来源:StructureReader.cs


示例5: Serialize

 /// <summary>
 ///     Serializes this instance.
 /// </summary>
 /// <returns>A collection of structure values.</returns>
 public StructureValueCollection Serialize()
 {
     var result = new StructureValueCollection();
     result.SetInteger("virtual address", VirtualAddress);
     result.SetInteger("size", Size);
     return result;
 }
开发者ID:ChadSki,项目名称:Assembly,代码行数:11,代码来源:ThirdGenInteropSection.cs


示例6: Serialize

 /// <summary>
 ///     Serializes this instance.
 /// </summary>
 /// <returns>The serialized structure values.</returns>
 public StructureValueCollection Serialize()
 {
     var values = new StructureValueCollection();
     values.SetInteger("range start index", (uint) StartIndex);
     values.SetInteger("range size", (uint) Size);
     return values;
 }
开发者ID:ChadSki,项目名称:Assembly,代码行数:11,代码来源:ThirdGenMultilingualStringList.cs


示例7: StructureWriter

        private long _offset; // The offset that the writer is currently at

        #endregion Fields

        #region Constructors

        private StructureWriter(StructureValueCollection values, IWriter writer)
        {
            _writer = writer;
            _baseOffset = writer.Position;
            _offset = _baseOffset;
            _collection = values;
        }
开发者ID:ChadSki,项目名称:Assembly,代码行数:13,代码来源:StructureWriter.cs


示例8: ThirdGenLanguageGlobals

        public ThirdGenLanguageGlobals(StructureValueCollection values, FileSegmenter segmenter, IPointerConverter localePointerConverter, BuildInformation buildInfo)
        {
            LocaleArea = new FileSegmentGroup(localePointerConverter);

            _languages = LoadLanguages(values, segmenter, buildInfo);
            _alignment = buildInfo.SegmentAlignment;
        }
开发者ID:iBotPeaches,项目名称:Assembly,代码行数:7,代码来源:ThirdGenLanguageGlobals.cs


示例9: Load

        private void Load(StructureValueCollection values, IReader reader, FileSegmentGroup metaArea,
			EngineDescription buildInfo)
        {
            Name = new StringID(values.GetInteger("name stringid"));

            LoadPermutations(values, reader, metaArea, buildInfo);
        }
开发者ID:ChadSki,项目名称:Assembly,代码行数:7,代码来源:ThirdGenModelRegion.cs


示例10: Serialize

 public StructureValueCollection Serialize(IList<ITagClass> classList)
 {
     var result = new StructureValueCollection();
     result.SetInteger("memory address", (MetaLocation != null) ? MetaLocation.AsPointer() : 0);
     result.SetInteger("class index", (Class != null) ? (uint) classList.IndexOf(Class) : 0xFFFFFFFF);
     result.SetInteger("datum index salt", Index.Salt);
     return result;
 }
开发者ID:ChadSki,项目名称:Assembly,代码行数:8,代码来源:ThirdGenTag.cs


示例11: ReadObjects

 /// <summary>
 /// Reads all child objects of this reflexive.
 /// </summary>
 /// <param name="values">The values read from the parent.</param>
 /// <param name="reader">The stream to read from.</param>
 /// <param name="metaArea">The meta area of the cache file.</param>
 /// <param name="stringIDs">The string ID source for the cache file.</param>
 /// <param name="buildInfo">The build info for the cache file.</param>
 /// <returns>The objects that were read.</returns>
 public ScriptObject[] ReadObjects(StructureValueCollection values, IReader reader, FileSegmentGroup metaArea, StringIDSource stringIDs, BuildInformation buildInfo)
 {
     int count = (int)values.GetInteger(_countEntryName);
     uint address = (uint)values.GetInteger(_addressEntryName);
     var layout = buildInfo.GetLayout(_layoutName);
     var entries = ReflexiveReader.ReadReflexive(reader, count, address, layout, metaArea);
     return entries.Select(e => ReadScriptObject(e, reader, metaArea, stringIDs, buildInfo)).ToArray();
 }
开发者ID:iBotPeaches,项目名称:Assembly,代码行数:17,代码来源:ScriptObjectReflexive.cs


示例12: WriteStructure

        public static void WriteStructure(StructureValueCollection values, StructureLayout layout, IWriter writer)
        {
            var structWriter = new StructureWriter(values, writer);
            layout.Accept(structWriter);

            if (layout.Size > 0)
                structWriter.SeekWriter(layout.Size);
        }
开发者ID:ChadSki,项目名称:Assembly,代码行数:8,代码来源:StructureWriter.cs


示例13: Free

 public static void Free(StructureValueCollection values, MetaAllocator allocator)
 {
     FreeBitArray(values, "number of raw pool bitfields", "raw pool bitfield table address", allocator);
     FreeBitArray(values, "number of raw pool 2 bitfields", "raw pool 2 bitfield table address", allocator);
     FreeBitArray(values, "number of raw pool 3 bitfields", "raw pool 3 bitfield table address", allocator);
     FreeBitArray(values, "number of tag bitfields", "tag bitfield table address", allocator);
     FreeBitArray(values, "number of tag 2 bitfields", "tag 2 bitfield table address", allocator);
 }
开发者ID:ChadSki,项目名称:Assembly,代码行数:8,代码来源:ThirdGenZoneSet.cs


示例14: Load

        private void Load(StructureValueCollection values, IReader reader, FileSegmentGroup metaArea,
			EngineDescription buildInfo)
        {
            ModelResourceIndex = new DatumIndex(values.GetInteger("model resource datum index"));

            LoadSections(values, reader, metaArea, buildInfo);
            LoadBoundingBoxes(values, reader, metaArea, buildInfo);
        }
开发者ID:ChadSki,项目名称:Assembly,代码行数:8,代码来源:ThirdGenScenarioBSP.cs


示例15: LoadLanguages

        private List<ThirdGenLanguage> LoadLanguages(StructureValueCollection values, FileSegmenter segmenter, BuildInformation buildInfo)
        {
            StructureValueCollection[] languageSet = values.GetArray("languages");

            var result = from language in languageSet
                         select new ThirdGenLanguage(language, segmenter, LocaleArea, buildInfo);
            return result.ToList<ThirdGenLanguage>();
        }
开发者ID:iBotPeaches,项目名称:Assembly,代码行数:8,代码来源:ThirdGenLanguageGlobals.cs


示例16: Load

        private void Load(StructureValueCollection values, IReader reader, FileSegmentGroup metaArea, BuildInformation buildInfo)
        {
            ResourceIndex = new DatumIndex(values.GetInteger("resource datum index"));

            LoadRegions(values, reader, metaArea, buildInfo);
            LoadSections(values, reader, metaArea, buildInfo);
            LoadBoundingBox(values, reader, metaArea, buildInfo);
        }
开发者ID:iBotPeaches,项目名称:Assembly,代码行数:8,代码来源:ThirdGenRenderModel.cs


示例17: Load

        private void Load(StructureValueCollection values, IModelSubmesh[] submeshes)
        {
            IndexBufferStart = (int)values.GetInteger("index buffer start");
            IndexBufferCount = (int)values.GetInteger("index buffer count");
            VertexBufferCount = (int)values.GetInteger("vertex buffer count");

            int submeshIndex = (int)values.GetInteger("parent submesh index");
            Submesh = submeshes[submeshIndex];
        }
开发者ID:iBotPeaches,项目名称:Assembly,代码行数:9,代码来源:ThirdGenModelVertexGroup.cs


示例18: ThirdGenGlobal

        public ThirdGenGlobal(StructureValueCollection values, ExpressionTable allExpressions)
        {
            Name = values.GetString("name");
            Type = (short)values.GetInteger("type");

            DatumIndex valueIndex = new DatumIndex(values.GetInteger("expression index"));
            if (valueIndex.IsValid)
                Value = allExpressions.FindExpression(valueIndex);
        }
开发者ID:Chrisco93,项目名称:Assembly,代码行数:9,代码来源:ThirdGenGlobal.cs


示例19: ThirdGenLanguage

 public ThirdGenLanguage(StructureValueCollection values, FileSegmenter segmenter, FileSegmentGroup localeArea, BuildInformation buildInfo)
 {
     _pointerLayout = buildInfo.GetLayout("locale index table entry");
     _encryptionKey = buildInfo.LocaleKey;
     _symbols = buildInfo.LocaleSymbols;
     _localeArea = localeArea;
     _sizeAlign = (_encryptionKey != null) ? AES.BlockSize : 1;
     Load(values, segmenter, localeArea);
 }
开发者ID:iBotPeaches,项目名称:Assembly,代码行数:9,代码来源:ThirdGenLanguage.cs


示例20: LoadLanguages

        private List<ThirdGenLanguage> LoadLanguages(StructureValueCollection values, FileSegmenter segmenter,
			EngineDescription buildInfo)
        {
            StructureValueCollection[] languageSet = values.GetArray("languages");

            IEnumerable<ThirdGenLanguage> result =
                languageSet.Select((l, i) => new ThirdGenLanguage((GameLanguage) i, l, segmenter, LocaleArea, buildInfo));
            return result.ToList();
        }
开发者ID:ChadSki,项目名称:Assembly,代码行数:9,代码来源:ThirdGenLanguageGlobals.cs



注:本文中的Blamite.Flexibility.StructureValueCollection类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IO.FileSegmentGroup类代码示例发布时间:2022-05-24
下一篇:
C# TagInterface.TagReference类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap