当前位置: 首页>>代码示例>>C#>>正文


C# Layer.LoadAlbedo方法代码示例

本文整理汇总了C#中Layer.LoadAlbedo方法的典型用法代码示例。如果您正苦于以下问题:C# Layer.LoadAlbedo方法的具体用法?C# Layer.LoadAlbedo怎么用?C# Layer.LoadAlbedo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Layer的用法示例。


在下文中一共展示了Layer.LoadAlbedo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Load


//.........这里部分代码省略.........
				int argb2 = _with1.ReadInt32();
				int r2 = (argb2)&0xFF;
				int g2 = (argb2>>8)&0xFF;
				int b2 = (argb2>>16)&0xFF;
				int a2 = (argb2>>24)&0xFF;
				MinimapContourColor = new Color(r2,g2,b2,a2);
				int argb3 = _with1.ReadInt32();
				int r3 = (argb3)&0xFF;
				int g3 = (argb3>>8)&0xFF;
				int b3 = (argb3>>16)&0xFF;
				int a3 = (argb3>>24)&0xFF;
				MinimapShoreColor = new Color(r3,g3,b3,a3);
				int argb4 = _with1.ReadInt32();
				int r4 = (argb4)&0xFF;
				int g4 = (argb4>>8)&0xFF;
				int b4 = (argb4>>16)&0xFF;
				int a4 = (argb4>>24)&0xFF;
				MinimapLandStartColor = new Color(r4,g4,b4,a4);
				int argb5 = _with1.ReadInt32();
				int r5 = (argb5)&0xFF;
				int g5 = (argb5>>8)&0xFF;
				int b5 = (argb5>>16)&0xFF;
				int a5 = (argb5>>24)&0xFF;
				MinimapLandEndColor = new Color(r5,g5,b5,a5);
                
                if (VersionMinor > 56)
                {
                    Unknown14 = _with1.ReadSingle(); //Not sure what this is.
                }
                Count = 10;
                for (int i = 0; i <= Count - 1; i++)
                {
                    Layer Layer = new Layer();
                    Layer.LoadAlbedo(Stream);
                    Layers.Add(Layer);
                }
                for (int i = 0; i <= Count - 2; i++)
                {
                    Layers[i].LoadNormal(Stream);
                }
            }
            Unknown7 = _with1.ReadInt32();
            //?
            Unknown8 = _with1.ReadInt32();
            //?

            int DecalCount = _with1.ReadInt32();
            for (int i = 0; i <= DecalCount - 1; i++)
            {
                Decal Feature = new Decal();
                Feature.Load(Stream);
                Decals.Add(Feature);
            }

            int GroupCount = _with1.ReadInt32();
            for (int i = 0; i <= GroupCount - 1; i++)
            {
                IntegerGroup Group = new IntegerGroup();
                Group.Load(Stream);
                DecalGroups.Add(Group);
            }

            _with1.ReadInt32();
            //Width again
            _with1.ReadInt32();
            //Height again
开发者ID:ZoneBeat,项目名称:FAForeverMapEditor,代码行数:67,代码来源:Map.cs


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