本文整理汇总了C#中GenericReader.ReadMap方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadMap方法的具体用法?C# GenericReader.ReadMap怎么用?C# GenericReader.ReadMap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadMap方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_House = reader.ReadItem() as BaseHouse;
goto case 0;
}
case 0:
{
m_Description = reader.ReadString();
m_Marked = reader.ReadBool();
m_Target = reader.ReadPoint3D();
m_TargetMap = reader.ReadMap();
CalculateHue();
break;
}
}
}
示例2: LocationStruct
public LocationStruct(GenericReader reader)
{
int version = reader.ReadInt();
Map = reader.ReadMap();
Location = reader.ReadPoint3D();
Name = reader.ReadString();
}
示例3: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 3:
case 2:
{
m_Level = reader.ReadInt();
goto case 1;
}
case 1:
{
m_TargetMap = reader.ReadMap();
break;
}
case 0:
{
m_TargetMap = Map.Felucca;
break;
}
}
if ( version < 2 )
m_Level = GetRandomLevel();
// if( version < 3 && m_TargetMap == Map.Tokuno )
// m_TargetMap = Map.Felucca;
}
示例4: Deserialize
public void Deserialize( GenericReader reader )
{
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_Flag = reader.ReadItem() as IGameFlag;
goto case 0;
}
case 0:
{
m_Members = reader.ReadMobileList();
m_Home = reader.ReadPoint3D();
m_FlagHome = reader.ReadPoint3D();
m_Map = reader.ReadMap();
m_Points = reader.ReadInt();
m_Name = reader.ReadString();
m_Hue = reader.ReadInt();
m_UId = reader.ReadInt();
m_Game = reader.ReadItem() as CTFGame;
break;
}
}
}
示例5: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 2:
{
m_Level = reader.ReadInt();
goto case 1;
}
case 1:
{
m_TargetMap = reader.ReadMap();
break;
}
case 0:
{
m_TargetMap = Map.Trammel;
break;
}
}
if ( version < 2 )
m_Level = GetRandomLevel();
}
示例6: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Target = reader.ReadPoint3D();
m_TargetMap = reader.ReadMap();
}
示例7: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Active = reader.ReadBool();
m_PointDest = reader.ReadPoint3D();
m_MapDest = reader.ReadMap();
}
示例8: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
PointDest = reader.ReadPoint3D();
MapDest = reader.ReadMap();
Locked = reader.ReadBool();
Active = reader.ReadBool();
}
示例9: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 2:
{
m_EventType = (EventType)reader.ReadByte();
goto case 1;
}
case 1:
{
m_TargetLocation = reader.ReadPoint3D();
m_TargetMap = reader.ReadMap();
break;
}
}
}
示例10: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_TargetMap = reader.ReadMap();
break;
}
case 0:
{
m_TargetMap = Map.Trammel;
break;
}
}
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
case 0:
{
m_Description = reader.ReadString();
m_Marked = reader.ReadBool();
m_Target = reader.ReadPoint3D();
m_TargetMap = reader.ReadMap();
break;
}
}
}
示例12: DaviesDeedEntry
public DaviesDeedEntry(GenericReader reader)
{
int version = reader.ReadByte();
m_type = reader.ReadInt();
m_Level = reader.ReadInt();
m_Decoder = reader.ReadMobile();
m_Map = reader.ReadMap();
m_Location2d = reader.ReadPoint2D();
m_Location3d = reader.ReadPoint3D();
m_Bounds = reader.ReadRect2D();
m_Mapnumber = reader.ReadString();
}
示例13: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Target = reader.ReadPoint3D();
m_TargetMap = reader.ReadMap();
if ( version >= 1 )
m_bDispellable = reader.ReadBool();
}
示例14: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
ScoreModifier = 1.0;
switch (version)
{
case 3:
{
ScoringType = (Scoring) reader.ReadInt();
ScoreModifier = reader.ReadDouble();
goto case 2;
}
case 2:
{
m_EventSupplier = reader.ReadItem<EventSupplier>();
m_UseSphereRules = reader.ReadBool();
m_GiveHorses = reader.ReadBool();
goto case 1;
}
case 1:
{
m_MatchMin = reader.ReadInt();
m_LeaveLocation = reader.ReadPoint3D();
m_LeaveMap = reader.ReadMap();
goto case 0;
}
case 0:
{
Started = reader.ReadBool();
m_Active = reader.ReadBool();
m_AcceptingContestants = reader.ReadBool();
m_DMSpawnPoints = reader.ReadStrongItemList<DMSpawnPoint>();
#region Verify loaded spawn points
List<DMSpawnPoint> removalList = new List<DMSpawnPoint>();
foreach (DMSpawnPoint dmSpawnPoint in m_DMSpawnPoints)
if (dmSpawnPoint.StoneLink != this)
removalList.Add(dmSpawnPoint);
foreach (DMSpawnPoint dmSpawnPoint in removalList)
m_DMSpawnPoints.Remove(dmSpawnPoint);
#endregion
m_MountCollection = ReadMountCollection(reader);
break;
}
}
m_Started = false;
AcceptingContestants = false;
Active = false;
}
示例15: Deserialize
public void Deserialize(GenericReader reader)
{
reader.ReadByte();
Level = reader.ReadInt();
Decoder = reader.ReadMobile();
Map = reader.ReadMap();
Location = reader.ReadPoint2D();
Bounds = reader.ReadRect2D();
}