本文整理汇总了C#中Server.GenericReader.ReadMap方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadMap方法的具体用法?C# GenericReader.ReadMap怎么用?C# GenericReader.ReadMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadMap方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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();
}
示例2: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Level = reader.ReadInt();
m_TargetMap = reader.ReadMap();
}
示例3: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Point = reader.ReadPoint3D();
m_Map = reader.ReadMap();
}
示例4: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
/*int version = */
reader.ReadInt();
m_MapDest = reader.ReadMap();
m_LocDest = reader.ReadPoint3D();
}
示例5: Deserialize
private void Deserialize(GenericReader reader)
{
int version = reader.ReadInt();
switch (version)
{
case 0:
{
_Map = reader.ReadMap();
_Location = reader.ReadPoint3D();
break;
}
}
}
示例6: 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;
}
}
示例7: 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();
}
示例8: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
Point = reader.ReadPoint2D();
Range = reader.ReadInt();
Map = reader.ReadMap();
int count = reader.ReadInt();
Messages = new string[ count ];
for ( int i = 0; i < count; i++ )
Messages[i] = reader.ReadString();
OnMessage = reader.ReadInt();
}
示例9: 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();
}
示例10: 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;
}
}
}
示例11: Deserialize
// Legacy... binary serialization only used in v1.00, deserialization preserved to migrate data.
public static SR_Rune Deserialize(GenericReader reader, int version)
{
SR_Rune rune = null;
string name = reader.ReadString();
bool isRunebook = reader.ReadBool();
Map targetMap = reader.ReadMap();
Point3D targetLoc = reader.ReadPoint3D();
if (isRunebook)
rune = new SR_Rune(name, isRunebook);
else
rune = new SR_Rune(name, targetMap, targetLoc);
int count = reader.ReadInt();
for (int i = 0; i < count; i++)
rune.AddRune(SR_Rune.Deserialize(reader, version));
return rune;
}
示例12: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_CompletedBy = reader.ReadMobile();
goto case 0;
}
case 0:
{
m_Level = (int)reader.ReadInt();
m_Completed = reader.ReadBool();
m_Decoder = reader.ReadMobile();
m_Map = reader.ReadMap();
m_Location = reader.ReadPoint2D();
if ( version == 0 && m_Completed )
m_CompletedBy = m_Decoder;
break;
}
}
if ( Core.AOS && m_Decoder != null && LootType == LootType.Regular)
LootType = LootType.Blessed;
}
示例13: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch (version)
{
case 3:
{
m_AllowPets = reader.ReadBool();
goto case 2;
}
case 2:
{
m_MaxSkills = reader.ReadInt();
m_MinSkills = reader.ReadInt();
goto case 1;
}
case 1:
{
m_EntranceMap = reader.ReadMap();
goto case 0;
}
case 0:
{
m_DungeonName = reader.ReadString();
m_Size = reader.ReadInt();
m_MaxPlayers = reader.ReadInt();
m_EntrancePoint = reader.ReadPoint3D();
break;
}
}
UnRegisterDungeon(this);
RegisterDungeon(this);
}
示例14: Deserialize
public override void Deserialize( GenericReader reader ) {
base.Deserialize( reader );
int version = reader.ReadInt();
switch( version ) {
case 6: {
_minZ = reader.ReadInt();
_maxZ = reader.ReadInt();
goto case 5;
}
case 5: {
m_EditAccessLevel = (AccessLevel)reader.ReadInt();
goto case 4;
}
case 4: {
m_RegionArea = ReadRect3DArray( reader );
m_Flags = (RegionFlag)reader.ReadInt();
m_RestrictedSpells = ReadBitArray( reader );
m_RestrictedSkills = ReadBitArray( reader );
m_Active = reader.ReadBool();
m_RegionName = reader.ReadString();
m_RegionPriority = reader.ReadInt();
m_Music = (MusicName)reader.ReadInt();
m_PlayerLogoutDelay = reader.ReadTimeSpan();
m_LightLevel = reader.ReadInt();
if( version <= 4 ) {
reader.ReadMap();
reader.ReadPoint3D();
reader.ReadMap();
reader.ReadPoint3D();
}
break;
}
case 3: //pre-RunUO 2.0
{
m_LightLevel = reader.ReadInt();
goto case 2;
}
case 2: {
m_Music = (MusicName)reader.ReadInt();
goto case 1;
}
case 1: {
List<Rectangle2D> rects2d = ReadRect2DArray( reader );
foreach( Rectangle2D rect in rects2d ) {
Rectangle3D newrect = Server.Region.ConvertTo3D( rect );
DoChooseArea( null, this.Map, newrect.Start, newrect.End, this );
}
m_RegionPriority = reader.ReadInt();
m_PlayerLogoutDelay = reader.ReadTimeSpan();
m_RestrictedSpells = ReadBitArray( reader );
m_RestrictedSkills = ReadBitArray( reader );
m_Flags = (RegionFlag)reader.ReadInt();
m_RegionName = reader.ReadString();
break;
}
case 0: {
List<Rectangle2D> rects2d = ReadRect2DArray( reader );
foreach( Rectangle2D rect in rects2d ) {
Rectangle3D newrect = Server.Region.ConvertTo3D( rect );
DoChooseArea( null, this.Map, newrect.Start, newrect.End, this );
}
m_RestrictedSpells = ReadBitArray( reader );
m_RestrictedSkills = ReadBitArray( reader );
m_Flags = (RegionFlag)reader.ReadInt();
m_RegionName = reader.ReadString();
break;
}
}
m_AllControls.Add( this );
if( RegionNameTaken( m_RegionName ) )
m_RegionName = FindNewName( m_RegionName );
UpdateRegion();
}
示例15: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
_Level = reader.ReadInt();
_MessageIndex = reader.ReadInt();
_TargetMap = reader.ReadMap();
_TargetLocation = reader.ReadPoint3D();
}