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


C# Writer.WriteProperty方法代码示例

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


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

示例1: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Balance", Balance);
     writer.WriteProperty("LastDay", LastDay);
     writer.WriteProperty("LastHour", LastHour);
     writer.WriteProperty("BankLoan", BankLoan);
     writer.WriteProperty("BankCreditRating", BankCreditRating);
     writer.WriteProperty("Ownership", Ownership);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:8,代码来源:Finance.cs

示例2: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Forname", Forname);
     writer.WriteProperty("Surname", Surname);
     writer.WriteProperty("Sentence", Sentence);
     writer.WriteProperty("Served", Served);
     writer.WriteProperty("Nitg", Nitg);
     if (Reputations != null) {
         foreach (string reputation in Reputations) {
             writer.WriteProperty("Reputation", reputation);
         }
         writer.WriteProperty("ReputationRevealed", ReputationRevealed);
     }
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:13,代码来源:PrisonerBio.cs

示例3: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Type", Type);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:3,代码来源:ObjectBase.cs

示例4: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Version", Version);
     writer.WriteProperty("TimeIndex", TimeIndex);
     if (EnabledMisconduct) {
         writer.WriteProperty("EnabledMisconduct", EnabledMisconduct);
     }
     if (FailureConditions) {
         writer.WriteProperty("FailureConditions", FailureConditions);
     }
     if (EnabledVisibility) {
         writer.WriteProperty("EnabledVisibility", EnabledVisibility);
     } else {
         Nodes.Remove("Visibility");
     }
     if (EnabledDecay) {
         writer.WriteProperty("EnabledDecay", EnabledDecay);
     } else {
         // erase all dirt
         var cellNodes = Nodes["Cells"][0].ListNodes().ToList();
         cellNodes.ForEach(node => node.Properties.Remove("Con"));
     }
     if (UnlimitedFunds) {
         writer.WriteProperty("UnlimitedFunds", UnlimitedFunds);
     }
     if (EnabledIntake) {
         writer.WriteProperty("EnabledIntake", EnabledIntake);
     }
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:28,代码来源:Prison.cs

示例5: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Size", Prisoners.Count);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:3,代码来源:Diggers.cs

示例6: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Id.i", Id);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:3,代码来源:ReformStudent.cs

示例7: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Progress", Progress);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:3,代码来源:ResearchItem.cs

示例8: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("ObjectId.i", ObjectId);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:3,代码来源:Penalty.cs

示例9: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Prisoner.i", PrisonerId);
     writer.WriteProperty("Coverage", Coverage);
     writer.WriteProperty("Suspicion", Suspicion);
     writer.WriteProperty("HighestSuspicion", HighestSuspicion);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:6,代码来源:Informant.cs

示例10: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Size", Log.Count);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:3,代码来源:VictoryLog.cs

示例11: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Size", PenaltyList.Values.Sum(penList => penList.Count));
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:3,代码来源:Penalties.cs

示例12: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("TimeWithoutIncident", TimeWithoutIncident);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:3,代码来源:Misconduct.cs

示例13: WriteProperties

 public override void WriteProperties(Writer writer) {
     writer.WriteProperty("Type", Type);
     writer.WriteProperty("Category", Category);
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:4,代码来源:Prisoner.cs

示例14: WriteNodes

 public override void WriteNodes(Writer writer) {
     if (IsEntrance) {
         writer.WriteProperty("Entrance", IsEntrance);
     }
 }
开发者ID:tdmike,项目名称:PASaveEditor,代码行数:5,代码来源:TunnelCell.cs


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