本文整理汇总了C#中Server.GenericWriter.WriteFlag方法的典型用法代码示例。如果您正苦于以下问题:C# GenericWriter.WriteFlag方法的具体用法?C# GenericWriter.WriteFlag怎么用?C# GenericWriter.WriteFlag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericWriter
的用法示例。
在下文中一共展示了GenericWriter.WriteFlag方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.Write(AllowPlayerSearch);
writer.Write(AllowPlayerDelete);
writer.WriteFlag(RankingOrder);
}
break;
}
}
示例2: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.Write(PopupCommand);
writer.Write(LoginPopup);
writer.Write(VirtuePopup);
writer.WriteFlag(EditAccess);
}
break;
}
}
示例3: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.Write(Enabled);
writer.Write(Force);
writer.Write(Impacts);
writer.Write(Density);
writer.WriteFlag(Direction);
writer.Write(EffectID);
writer.Write(EffectHue);
writer.Write(EffectSpeed);
writer.WriteFlag(EffectRender);
writer.Write(ImpactEffectID);
writer.Write(ImpactEffectHue);
writer.Write(ImpactEffectSpeed);
writer.Write(ImpactEffectDuration);
writer.WriteFlag(ImpactEffectRender);
writer.Write(ImpactEffectSound);
}
break;
}
}
示例4: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.Write(BlessedFor);
writer.WriteFlag(_AccessMask);
writer.WriteFlag(_AccessTemp);
}
break;
}
}
示例5: Serialize
public void Serialize(GenericWriter writer)
{
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.Write(ID);
writer.WriteFlag(_State);
writer.Write(Account);
writer.Write(Email);
writer.Write(Total);
writer.Write(_Credit);
writer.Write(_Time.Stamp);
writer.Write(Version);
writer.Write(_InternalVersion);
writer.Write(_Notes);
writer.Write(_Extra);
writer.Write(DeliverFrom);
writer.Write(DeliverTo);
writer.Write(DeliveryTime.Stamp);
}
break;
}
}
示例6: Serialize
public virtual void Serialize(GenericWriter writer)
{
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.WriteType(
_Info,
t =>
{
if (t != null)
{
_Info.Serialize(writer);
}
});
writer.Write(_Enabled);
writer.Write(_Name);
writer.WriteFlag(_DefaultPriority);
if (_LastGlobalTick != null)
{
writer.Write(true);
writer.Write(_LastGlobalTick.Value);
}
else
{
writer.Write(false);
}
if (_NextGlobalTick != null)
{
writer.Write(true);
writer.Write(_NextGlobalTick.Value);
}
else
{
writer.Write(false);
}
writer.Write(Delay);
writer.Write(Interval);
}
break;
}
}
示例7: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.Write(_Token);
writer.Write(_Crafter);
writer.Write(UseDelay);
writer.Write(FuseDelay);
writer.Write(IgniteEffectID);
writer.Write(IgniteEffectHue);
writer.Write(IgniteEffectSpeed);
writer.WriteFlag(IgniteEffectRender);
writer.Write(IgniteEffectSound);
writer.Write(FailEffectID);
writer.Write(FailEffectHue);
writer.Write(FailEffectSpeed);
writer.Write(FailEffectDuration);
writer.WriteFlag(FailEffectRender);
writer.Write(FailEffectSound);
}
break;
}
}
示例8: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(1);
switch (version)
{
case 1:
{
writer.Write(GumpWidth);
writer.Write(GumpHeight);
writer.Write(GumpPadding);
writer.Write(GumpBackground);
writer.Write(GumpForeground);
writer.WriteFlag(GumpFlow);
writer.WriteFlag(GumpTextColor);
writer.Write(GumpDisplayPercent);
writer.Write(GumpDisplayText);
}
goto case 0;
case 0:
{
writer.Write(PositionCommand);
writer.Write(ToggleCommand);
}
break;
}
}
示例9: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(0);
switch (version)
{
case 0:
{
writer.Write(Text);
writer.WriteFlag(TextColor);
writer.Write(Scrollbar);
writer.Write(Background);
}
break;
}
}
示例10: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.SetVersion(0);
writer.Write(Name);
writer.Write(Summary);
writer.Write(Token);
writer.Write(Available);
writer.Write(AutoJoin);
writer.WriteFlag(Access);
writer.WriteFlag(ProfanityAction);
writer.WriteFlag(TextColor);
writer.Write(TextHue);
writer.Write(UserLimit);
writer.Write(SpamDelay);
writer.WriteBlockDictionary(
Bans,
(w, k, v) =>
{
w.Write(k);
w.Write(v);
});
}
示例11: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
var 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, (w, a) => w.Write(a));
writer.WriteBlockList(KeyWords, (w, k) => w.Write(k));
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;
}
}
示例12: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(1);
switch (version)
{
case 1:
writer.Write(Active);
goto case 0;
case 0:
{
writer.Write(_MultiID);
writer.Write(_Center);
writer.WriteFlag(_Render);
writer.Write(_Duration);
writer.Write(_Speed);
writer.Write(_Interval);
}
break;
}
}
示例13: Serialize
public virtual void Serialize(GenericWriter writer)
{
int version = writer.SetVersion(7);
if (version > 5)
{
writer.WriteBlock(
w =>
{
if (version > 6)
{
Serial.Serialize(w);
}
else
{
w.WriteType(Serial, t => Serial.Serialize(w));
}
});
}
switch (version)
{
case 7:
case 6:
case 5:
writer.Write(Hidden);
goto case 4;
case 4:
writer.Write(FloorItemDelete);
goto case 3;
case 3:
case 2:
writer.Write(Gate);
goto case 1;
case 1:
{
writer.Write(Category);
writer.Write(Ranked);
writer.Write(InviteWhileRunning);
}
goto case 0;
case 0:
{
if (version < 6)
{
writer.WriteBlock(w => w.WriteType(Serial, t => Serial.Serialize(w)));
}
writer.Write(DebugMode);
writer.WriteFlag(State);
writer.Write(Name);
writer.Write(Description);
writer.Write(AutoAssign);
writer.Write(UseTeamColors);
writer.Write(IgnoreCapacity);
writer.Write(SubCommandPrefix);
writer.Write(QueueAllowed);
writer.Write(SpectateAllowed);
writer.Write(KillPoints);
writer.Write(PointsBase);
writer.Write(PointsRankFactor);
writer.Write(IdleKick);
writer.Write(IdleThreshold);
writer.WriteFlag(LastState);
writer.Write(LastStateChange);
writer.Write(LightLevel);
writer.Write(LogoutDelay);
writer.WriteItemList(Doors, true);
writer.WriteBlock(w => w.WriteType(Options, t => Options.Serialize(w)));
writer.WriteBlock(w => w.WriteType(Schedule, t => Schedule.Serialize(w)));
writer.WriteBlock(w => w.WriteType(BattleRegion, t => BattleRegion.Serialize(w)));
writer.WriteBlock(w => w.WriteType(SpectateRegion, t => SpectateRegion.Serialize(w)));
writer.WriteBlockList(Teams, (w, team) => w.WriteType(team, t => team.Serialize(w)));
}
break;
}
}
示例14: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
var version = writer.SetVersion(0);
switch (version)
{
case 0:
{
Schedule.Serialize(writer);
writer.Write(Timeout);
writer.WriteFlag(NotifyAccess);
writer.Write(NotifyStaff);
}
break;
}
}
示例15: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
int version = writer.SetVersion(1);
switch (version)
{
case 1:
writer.Write(UID);
goto case 0;
case 0:
{
writer.WriteFlag(Stat);
writer.Write(Offset);
writer.Write(Duration);
}
break;
}
}