本文整理汇总了C#中GenericWriter.WriteFlag方法的典型用法代码示例。如果您正苦于以下问题:C# GenericWriter.WriteFlag方法的具体用法?C# GenericWriter.WriteFlag怎么用?C# GenericWriter.WriteFlag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericWriter
的用法示例。
在下文中一共展示了GenericWriter.WriteFlag方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.WriteType(ItemType);
writer.Write(ItemChildren);
writer.Write(ItemChangeReset);
writer.WriteFlag(Resource);
writer.WriteType(HarvestSystem);
}
break;
}
}
示例2: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(2);
switch (version)
{
case 2:
writer.Write(_ShowUsesRemaining);
goto case 1;
case 1:
{
writer.Write(_Crafter);
if (version < 2)
{
writer.Write((int)_Quality);
}
else
{
writer.WriteFlag(_Quality);
}
}
goto case 0;
case 0:
writer.Write(_UsesRemaining);
break;
}
}
示例3: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(1);
switch (version)
{
case 1:
writer.WriteFlag(Display);
goto case 0;
case 0:
{
writer.Write(MaleTitle);
writer.Write(FemaleTitle);
}
break;
}
}
示例4: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(2);
switch (version)
{
case 2:
{
writer.Write(NotifyPlayer);
}
goto case 1;
case 1:
{
writer.WriteFlag(SearchMode);
writer.Write(SearchCapsIgnore);
}
goto case 0;
case 0:
{
writer.WriteBlockList(WhitespaceAliases, writer.Write);
writer.WriteBlockList(KeyWords, writer.Write);
writer.Write(LogEnabled);
writer.Write(ConsoleWrite);
writer.Write(PageStaff);
writer.Write(NotifyStaff);
writer.WriteFlag(NotifyAccess);
writer.Write(Jail);
JailPoint.Serialize(writer);
writer.Write(Squelch);
writer.Write(Kick);
writer.Write(Ban);
}
break;
}
}
示例5: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.WriteType(Object);
writer.Write(ObjectChildren);
writer.Write(ObjectChangeReset);
writer.WriteFlag(ObjectNameSearch);
writer.Write(ObjectNameIgnoreCaps);
writer.Write(ObjectNameReq);
writer.Write(ObjectNameChangeReset);
writer.Write(ObjectHueReq);
writer.Write(ObjectHueChangeReset);
}
break;
}
}
示例6: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(3);
switch (version)
{
case 3:
{
writer.Write(IsDuel);
writer.Write(IsDungeon);
}
goto case 2;
case 2:
{
writer.WriteType(Battle);
writer.Write(BattleChildren);
writer.Write(ChangeBattleReset);
writer.Write(Map);
writer.Write(RegionName);
}
goto case 1;
case 1:
{
writer.WriteFlag(AccessPlayer);
writer.WriteFlag(AccessKiller);
}
goto case 0;
case 0:
{
writer.WriteFlag(NotoCompare);
writer.WriteFlag(NotoPlayer);
writer.WriteFlag(NotoKiller);
}
break;
}
}
示例7: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.Write(Threshold);
writer.WriteFlag(DetectAction);
}
break;
}
}
示例8: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
ConnectionInfo.Serialize(writer);
writer.Write(Enabled);
writer.Write(UseTransactions);
writer.Write(LoadDataInFile);
writer.WriteFlag(Encoding);
writer.WriteFlag(Priority);
writer.WriteFlag(HiddenAccessLevel);
writer.Write(CharUpdateInterval);
writer.Write(StatusUpdateInterval);
}
break;
}
}
示例9: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(2);
switch (version)
{
case 2:
{
writer.WriteFlag(KeywordSearch);
writer.Write(KeywordIgnoreCaps);
writer.Write(KeywordReq);
writer.Write(KeywordChangeReset);
}
goto case 1;
case 1:
{
writer.Write(CheckAmount);
}
goto case 0;
case 0:
{
writer.WriteType(Item);
writer.Write(ItemChildren);
writer.Write(ItemChangeReset);
}
break;
}
}
示例10: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
writer.Write( (int) m_Charges );
writer.Write(LaunchID);
writer.Write(LaunchHue);
writer.Write(LaunchSpeed);
writer.WriteFlag(LaunchRender);
writer.Write(LaunchSound);
writer.Write(LaunchRangeMin);
writer.Write(LaunchRangeMax);
writer.Write(LaunchHeightMin);
writer.Write(LaunchHeightMax);
writer.Write(TrailID);
writer.Write(TrailHue);
writer.Write(TrailSpeed);
writer.Write(TrailDuration);
writer.WriteFlag(TrailRender);
writer.Write(TrailSound);
writer.Write(ExplodeID);
writer.Write(ExplodeHue);
writer.Write(ExplodeSpeed);
writer.Write(ExplodeDuration);
writer.WriteFlag(ExplodeRender);
writer.Write(ExplodeSound);
writer.WriteFlag(StarsEffect);
writer.Write(StarsHue);
writer.Write(StarsSound);
writer.Write(StarsRangeMin);
writer.Write(StarsRangeMax);
writer.WriteList(Stars, writer.Write);
writer.WriteList(StarHues, writer.Write);
}
示例11: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version;
writer.Write(version = 0);
writer.WriteFlag(Expansion);
writer.Write(Owner);
switch (version)
{
case 0:
{
writer.Write(BankBox);
writer.Write(Backpack);
writer.Write(StatCap);
writer.Write(RawStr);
writer.Write(RawDex);
writer.Write(RawInt);
writer.Write(SkillsCap);
Skills.Serialize(writer);
}
break;
}
}
示例12: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.Write(Phrase);
writer.WriteFlag(Search);
writer.Write(IgnoreCase);
writer.Write(SpeechChangeReset);
}
break;
}
}