本文整理汇总了C#中Server.GenericReader.ReadPoint3D方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadPoint3D方法的具体用法?C# GenericReader.ReadPoint3D怎么用?C# GenericReader.ReadPoint3D使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadPoint3D方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
case 0:
{
m_MultiID = reader.ReadInt();
m_Offset = reader.ReadPoint3D();
m_ShipName = reader.ReadString();
if ( version == 0 )
reader.ReadUInt();
break;
}
}
if ( LootType == LootType.Newbied )
LootType = LootType.Blessed;
if ( Weight == 0.0 )
Weight = 1.0;
}
示例2: Deserialize
public void Deserialize( GenericReader reader )
{
int version = reader.ReadInt();
switch( version )
{
case 1:
{
m_SpellType = ScriptCompiler.FindTypeByName(reader.ReadString());
m_Icon = reader.ReadInt();
m_Location = reader.ReadPoint3D();
m_School = (School)reader.ReadInt();
break;
}
case 0:
{
int bad = reader.ReadInt();
m_Icon = reader.ReadInt();
m_Location = reader.ReadPoint3D();
m_SpellType = null;
m_School = School.Invalid;
break;
}
}
}
示例3: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_AreaStart = reader.ReadPoint3D();
m_AreaEnd = reader.ReadPoint3D();
SetRegion();
}
示例4: PeerlessInstance
public PeerlessInstance( GenericReader reader )
{
m_Owner = reader.ReadItem<PeerlessPlatform>();
m_Light = reader.ReadItem();
m_Map = reader.ReadMap();
m_EntranceLocation = reader.ReadPoint3D();
m_BossSpawnLocation = reader.ReadPoint3D();
m_RegionBounds = reader.ReadRect2D();
Mobile boss = reader.ReadMobile();
if ( boss != null )
boss.Delete();
Initialize();
}
示例5: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
int count;
count = reader.ReadInt();
for (int i = 0; i < count; i++)
m_WallCoordinates.Add(reader.ReadPoint3D());
count = reader.ReadInt();
for (int i = 0; i < count; i++)
m_StartLocations.Add(reader.ReadPoint3D());
m_GameTime = reader.ReadTimeSpan();
m_RegionControl = reader.ReadItem() as BMregion;
m_ExitLosers = reader.ReadPoint3D();
if (version >= 1)
{
m_LinkBombs = reader.ReadBool();
m_ChanceForUpgrade = reader.ReadInt();
if (version >= 2)
{
m_DanageWhileFS = reader.ReadBool();
if (version >= 3)
m_WriteScoreboard = reader.ReadBool();
{
if (version >= 4)
{
m_ExitWinner = reader.ReadPoint3D();
m_ExitOnDraw = reader.ReadPoint3D();
m_AutoStart = reader.ReadBool();
m_KeepOpenJoin = reader.ReadBool();
}
}
}
}
m_Running = false;
m_OpenJoin = false;
}
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Point = reader.ReadPoint3D();
m_Map = reader.ReadMap();
}
示例7: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
/*int version = */
reader.ReadInt();
m_MapDest = reader.ReadMap();
m_LocDest = reader.ReadPoint3D();
}
示例8: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
/*int version = */
reader.ReadInt();
m_Dest = reader.ReadPoint3D();
m_QuestStep = reader.ReadInt();
}
示例9: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_PointDest = reader.ReadPoint3D();
m_MapDest = reader.ReadMap();
m_Locked = reader.ReadBool();
m_Active = reader.ReadBool();
}
示例10: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 0:
ToLocation = reader.ReadPoint3D();
ToMap = reader.ReadMap();
break;
}
}
示例11: Deserialize
private void Deserialize(GenericReader reader)
{
int version = reader.ReadInt();
switch (version)
{
case 0:
{
_Map = reader.ReadMap();
_Location = reader.ReadPoint3D();
break;
}
}
}
示例12: Load
public void Load( GenericReader reader )
{
int version = reader.ReadInt();
if ( version >= 1 )
{
c_Hue = reader.ReadInt();
c_Name = reader.ReadString();
}
c_TypeString = reader.ReadString();
c_ItemID = reader.ReadInt();
c_Location = reader.ReadPoint3D();
c_Map = reader.ReadMap();
}
示例13: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
/*int version = */
reader.ReadInt();
m_Addon = reader.ReadItem() as BaseAddonContainer;
m_Offset = reader.ReadPoint3D();
if ( m_Addon != null )
m_Addon.OnComponentLoaded( this );
AddonComponent.ApplyLightTo( this );
}
示例14: Deserialize
public void Deserialize(GenericReader reader)
{
Point = reader.ReadPoint3D();
Island = reader.ReadInt();
NumLinks = reader.ReadInt();
Links = new SectorNode[8];
Distances = new int[8];
for (int i = 0; i < NumLinks; i++)
{
int x = reader.ReadInt(), y = reader.ReadInt();
Links[i] = m_Nodes[x, y];
Distances[i] = reader.ReadInt();
}
}
示例15: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_DestLoc = reader.ReadPoint3D();
m_DestMap = reader.ReadMap();
m_Charges = reader.ReadInt();
break;
}
}
}