本文整理汇总了C#中DoorFacing类的典型用法代码示例。如果您正苦于以下问题:C# DoorFacing类的具体用法?C# DoorFacing怎么用?C# DoorFacing使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DoorFacing类属于命名空间,在下文中一共展示了DoorFacing类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(GenericReader reader)
{
//base.SkipDeserialize( reader );
base.Deserialize( reader );
int version = reader.ReadInt();
/*
switch (version)
{
case 1:
m_Altar = reader.ReadItem() as CCSummoningAltar;
goto case 0;
case 0:
// Version 0
PointDest = reader.ReadPoint3D();
Name = reader.ReadString();
Active = reader.ReadBool();
m_OneSideArea = reader.ReadRect2D();
break;
}
*/
switch (version)
{
case 0:
m_Facing = (DoorFacing)reader.ReadInt();
m_Altar = reader.ReadItem() as CCSummoningAltar;
break;
}
}
示例2: CCMagicDoor
public CCMagicDoor( DoorFacing facing )
: base()
{
m_Facing = facing;
ItemID = 0x677;
Visible = true;
}
示例3: DestroyableBarredMetalDoor
public DestroyableBarredMetalDoor(DoorFacing facing)
: base(0x685 + (2 * (int)facing), 0x686 + (2 * (int)facing), 0xEC, 0xF3, BaseDestroyableDoor.GetOffset(facing))
{
Name = "Barred Metal Door";
Weight = 1.0;
HitsMax = 50;
Hits = 50;
}
示例4: YardIronGate
public YardIronGate( Mobile from, int price, DoorFacing facing, Point3D loc) : base(facing)
{
m_Value = price;
m_Placer = from;
Movable = false;
MoveToWorld( loc, from.Map );
Name = from.Name + "'s Gate";
}
示例5: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Facing = (DoorFacing)reader.ReadInt();
break;
}
}
}
示例6: YardGate
public YardGate(int itemID, Mobile placer, int price, BaseHouse house, Point3D location, DoorFacing facing)
: base(itemID, itemID + 1, GetOpenedSound(itemID), GetClosedSound(itemID), BaseDoor.GetOffset(facing))
{
Placer = placer;
Price = price;
Movable = false;
MoveToWorld(location, placer.Map);
if (house == null)
{
FindHouseOfPlacer();
}
else
{
House = house;
}
SetName();
}
示例7: AddDoor
public static BaseDoor AddDoor(int x, int y, int z, DoorFacing facing)
{
int doorZ = z;
int doorTop = doorZ + 20;
if (!m_Map.CanFit(x, y, z, 16, false, false))
return null;
if (y == 1743 && x >= 1343 && x <= 1344)
return null;
if (y == 1679 && x >= 1392 && x <= 1393)
return null;
if (x == 1320 && y >= 1618 && y <= 1640)
return null;
if (x == 1383 && y >= 1642 && y <= 1643)
return null;
BaseDoor door = new DarkWoodDoor(facing);
WeakEntityCollection.Add("door", door);
door.MoveToWorld(new Point3D(x, y, z), m_Map);
++m_Count;
return door;
}
示例8: StrongWoodDoor
public StrongWoodDoor( DoorFacing facing )
: base(0x6E5 + ( 2 * (int) facing ), 0x6E6 + ( 2 * (int) facing ), 0xEA, 0xF1, BaseDoor.GetOffset( facing ))
{
}
示例9: BarredMetalDoor2
public BarredMetalDoor2( DoorFacing facing )
: base(0x1FED + ( 2 * (int) facing ), 0x1FEE + ( 2 * (int) facing ), 0xEC, 0xF3, BaseDoor.GetOffset( facing ))
{
}
示例10: MediumWoodDoor
public MediumWoodDoor( DoorFacing facing )
: base(0x6B5 + ( 2 * (int) facing ), 0x6B6 + ( 2 * (int) facing ), 0xEA, 0xF1, BaseDoor.GetOffset( facing ))
{
}
示例11: LightWoodDoor
public LightWoodDoor( DoorFacing facing )
: base(0x6D5 + ( 2 * (int) facing ), 0x6D6 + ( 2 * (int) facing ), 0xEA, 0xF1, BaseDoor.GetOffset( facing ))
{
}
示例12: LargeGargishQueenDoor
public LargeGargishQueenDoor( DoorFacing facing )
: base(0x4D1A + GetIdOffset( facing ), 0x4D1B + GetIdOffset( facing ), -1, -1, BaseDoor.GetOffset( facing ))
{
}
示例13: GenericHouseDoor
public GenericHouseDoor( DoorFacing facing, int baseItemID, int openedSound, int closedSound, bool autoAdjust )
: base( facing, baseItemID + (autoAdjust ? (2 * (int)facing) : 0), baseItemID + 1 + (autoAdjust ? (2 * (int)facing) : 0), openedSound, closedSound, BaseDoor.GetOffset( facing ) )
{
}
示例14: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_Level = (SecureLevel)reader.ReadInt();
goto case 0;
}
case 0:
{
if ( version < 1 )
m_Level = SecureLevel.Anyone;
m_Facing = (DoorFacing)reader.ReadInt();
break;
}
}
}
示例15: IronGate
public IronGate( DoorFacing facing )
: base(0x824 + ( 2 * (int) facing ), 0x825 + ( 2 * (int) facing ), 0xEC, 0xF3, BaseDoor.GetOffset( facing ))
{
}