本文整理汇总了C#中RbSerializerN.serialize方法的典型用法代码示例。如果您正苦于以下问题:C# RbSerializerN.serialize方法的具体用法?C# RbSerializerN.serialize怎么用?C# RbSerializerN.serialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RbSerializerN
的用法示例。
在下文中一共展示了RbSerializerN.serialize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje)
{
var obj = (DebugProperty) obje;
serializer.serialize(buffer, obj.key);
serializer.serialize(buffer, obj.value);
}
示例2: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje)
{
var obj = (TeamMessage) obje;
serializer.serialize(buffer, obj.sender);
serializer.serialize(buffer, obj.recipient);
serializer.serialize(buffer, obj.message);
}
示例3: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje)
{
var obj = (BulletCommand) obje;
serializer.serialize(buffer, obj.power);
serializer.serialize(buffer, obj.fireAssistValid);
serializer.serialize(buffer, obj.fireAssistAngle);
serializer.serialize(buffer, obj.bulletId);
}
示例4: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje)
{
var obj = (BulletStatus) obje;
serializer.serialize(buffer, obj.bulletId);
serializer.serialize(buffer, obj.victimName);
serializer.serialize(buffer, obj.isActive);
serializer.serialize(buffer, obj.x);
serializer.serialize(buffer, obj.y);
}
示例5: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (KeyReleasedEvent) objec;
serializer.serialize(buffer, obj.KeyChar);
serializer.serialize(buffer, obj.KeyCode);
serializer.serialize(buffer, obj.KeyLocation);
serializer.serialize(buffer, obj.ID);
serializer.serialize(buffer, obj.ModifiersEx);
serializer.serialize(buffer, obj.When);
}
示例6: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (MouseClickedEvent) objec;
serializer.serialize(buffer, obj.Button);
serializer.serialize(buffer, obj.ClickCount);
serializer.serialize(buffer, obj.X);
serializer.serialize(buffer, obj.Y);
serializer.serialize(buffer, obj.ID);
serializer.serialize(buffer, obj.ModifiersEx);
serializer.serialize(buffer, obj.When);
}
示例7: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (RobotStatus) objec;
serializer.serialize(buffer, obj.energy);
serializer.serialize(buffer, obj.x);
serializer.serialize(buffer, obj.y);
serializer.serialize(buffer, obj.bodyHeading);
serializer.serialize(buffer, obj.gunHeading);
serializer.serialize(buffer, obj.radarHeading);
serializer.serialize(buffer, obj.velocity);
serializer.serialize(buffer, obj.bodyTurnRemaining);
serializer.serialize(buffer, obj.radarTurnRemaining);
serializer.serialize(buffer, obj.gunTurnRemaining);
serializer.serialize(buffer, obj.distanceRemaining);
serializer.serialize(buffer, obj.gunHeat);
serializer.serialize(buffer, obj.others);
serializer.serialize(buffer, obj.numSentries);
serializer.serialize(buffer, obj.roundNum);
serializer.serialize(buffer, obj.numRounds);
serializer.serialize(buffer, obj.time);
}
示例8: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (SkippedTurnEvent)objec;
serializer.serialize(buffer, obj.skippedTurn);
}
示例9: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (MouseWheelMovedEvent) objec;
serializer.serialize(buffer, obj.ClickCount);
serializer.serialize(buffer, obj.X);
serializer.serialize(buffer, obj.Y);
serializer.serialize(buffer, obj.ScrollType);
serializer.serialize(buffer, obj.ScrollAmount);
serializer.serialize(buffer, obj.WheelRotation);
serializer.serialize(buffer, obj.ID);
serializer.serialize(buffer, obj.ModifiersEx);
serializer.serialize(buffer, obj.When);
}
示例10: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, Object obje)
{
RoundEndedEvent evnt = (RoundEndedEvent) obje;
serializer.serialize(buffer, evnt.round);
serializer.serialize(buffer, evnt.turns);
serializer.serialize(buffer, evnt.totalTurns);
}
示例11: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (HitByBulletEvent) objec;
serializer.serialize(buffer, RbSerializerN.Bullet_TYPE, obj.bullet);
serializer.serialize(buffer, obj.bearing);
}
示例12: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (BattleEndedEvent) objec;
serializer.serialize(buffer, obj.aborted);
serializer.serialize(buffer, RbSerializerN.BattleResults_TYPE, obj.results);
}
示例13: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (Bullet) objec;
serializer.serialize(buffer, obj.headingRadians);
serializer.serialize(buffer, obj.x);
serializer.serialize(buffer, obj.y);
serializer.serialize(buffer, obj.power);
serializer.serialize(buffer, obj.ownerName);
serializer.serialize(buffer, obj.victimName);
serializer.serialize(buffer, obj._isActive);
}
示例14: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (BulletHitBulletEvent) objec;
// no need to transmit whole bullet, rest of it is already known to proxy side
serializer.serialize(buffer, obj.bullet.getBulletId());
serializer.serialize(buffer, RbSerializerN.Bullet_TYPE, obj.hitBullet);
}
示例15: serialize
public void serialize(RbSerializerN serializer, ByteBuffer buffer, object objec)
{
var obj = (HitRobotEvent) objec;
serializer.serialize(buffer, obj.name);
serializer.serialize(buffer, obj.bearing);
serializer.serialize(buffer, obj.energy);
serializer.serialize(buffer, obj.atFault);
}