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


C# IUnrealStream.SerializeEnum方法代码示例

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


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

示例1: Serialize

 public void Serialize(IUnrealStream stream)
 {
     stream.SerializeEnum(ref this.CombatAppearance);
     stream.Serialize(ref this.CasualID);
     stream.Serialize(ref this.FullBodyID);
     stream.Serialize(ref this.TorsoID);
     stream.Serialize(ref this.ShoulderID);
     stream.Serialize(ref this.ArmID);
     stream.Serialize(ref this.LegID);
     stream.Serialize(ref this.SpecID);
     stream.Serialize(ref this.Tint1ID);
     stream.Serialize(ref this.Tint2ID);
     stream.Serialize(ref this.Tint3ID);
     stream.Serialize(ref this.PatternID);
     stream.Serialize(ref this.PatternColorID);
     stream.Serialize(ref this.HelmetID);
     stream.Serialize(ref this.HasMorphHead);
     
     if (this.HasMorphHead == true)
     {
         stream.Serialize(ref this.MorphHead);
     }
 }
开发者ID:Juvidoh,项目名称:me3-lazarus,代码行数:23,代码来源:Appearance.cs

示例2: Serialize

        public void Serialize(IUnrealStream stream)
        {
            stream.Serialize(ref this.IsFemale);
            stream.Serialize(ref this.PlayerClassName);
            stream.Serialize(ref this.Level);
            stream.Serialize(ref this.CurrentXP);
            stream.Serialize(ref this.FirstName);
            stream.Serialize(ref this.LastName);
            stream.SerializeEnum(ref this.Origin);
            stream.SerializeEnum(ref this.Notoriety);
            stream.Serialize(ref this.TalentPoints);
            stream.Serialize(ref this.MappedPower1);
            stream.Serialize(ref this.MappedPower2);
            stream.Serialize(ref this.MappedPower3);
            stream.Serialize(ref this.Appearance);
            stream.Serialize(ref this.Powers);
            stream.Serialize(ref this.Weapons);

            if (stream.Version >= 18)
            {
                stream.Serialize(ref this.LoadoutWeapons);
            }

            if (stream.Version >= 19)
            {
                stream.Serialize(ref this.HotKeys);
            }

            stream.Serialize(ref this.Credits);
            stream.Serialize(ref this.Medigel);
            stream.Serialize(ref this.Eezo);
            stream.Serialize(ref this.Iridium);
            stream.Serialize(ref this.Palladium);
            stream.Serialize(ref this.Platinum);
            stream.Serialize(ref this.Probes);
            stream.Serialize(ref this.CurrentFuel);

            if (stream.Version >= 25)
            {
                stream.Serialize(ref this.FaceCode);
            }
            else
            {
                throw new Exception();
            }

            if (stream.Version >= 26)
            {
                stream.Serialize(ref this.ClassFriendlyName);
            }
        }
开发者ID:Juvidoh,项目名称:me3-lazarus,代码行数:51,代码来源:Player.cs

示例3: Serialize

 protected void Serialize(IUnrealStream stream)
 {
     stream.Serialize(ref this.DebugName);
     stream.Serialize(ref this.SecondsPlayed);
     stream.Serialize(ref this.Disc);
     stream.Serialize(ref this.BaseLevelName);
     stream.SerializeEnum(ref this.Difficulty);
     stream.SerializeEnum(ref this.EndGameState);
     stream.Serialize(ref this.TimeStamp);
     stream.Serialize(ref this.SaveLocation);
     stream.Serialize(ref this.SaveRotation);
     stream.Serialize(ref this.CurrentLoadingTip);
     stream.Serialize(ref this.LevelRecords);
     stream.Serialize(ref this.StreamingRecords);
     stream.Serialize(ref this.KismetRecords);
     stream.Serialize(ref this.DoorRecords);
     stream.Serialize(ref this.PawnRecords);
     stream.Serialize(ref this.PlayerRecord);
     stream.Serialize(ref this.HenchmanRecords);
     stream.Serialize(ref this.PlotRecord);
     stream.Serialize(ref this.ME1PlotRecord);
     stream.Serialize(ref this.GalaxyMapRecord);
     stream.Serialize(ref this.DependentDLC);
 }
开发者ID:Juvidoh,项目名称:me3-lazarus,代码行数:24,代码来源:SaveFile.cs


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