本文整理汇总了C#中Server.Items.BaseBoard类的典型用法代码示例。如果您正苦于以下问题:C# BaseBoard类的具体用法?C# BaseBoard怎么用?C# BaseBoard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BaseBoard类属于Server.Items命名空间,在下文中一共展示了BaseBoard类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ValidateDefault
public static bool ValidateDefault( Mobile from, BaseBoard board )
{
if ( from.AccessLevel >= AccessLevel.GameMaster )
{
return true;
}
if ( !from.Alive )
{
return false;
}
if ( board.IsChildOf( from.Backpack ) )
{
return true;
}
object root = board.RootParent;
if ( root is Mobile && root != from )
{
return false;
}
if ( board.Deleted || board.Map != from.Map || !from.InRange( board.GetWorldLocation(), 1 ) )
{
return false;
}
IHouse house = HousingHelper.FindHouseAt( board );
return ( house != null && house.IsOwner( from ) );
}
示例2: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
this.m_Board = (BaseBoard)reader.ReadItem();
if (this.m_Board == null || this.Parent == null)
this.Delete();
break;
}
}
}
示例3: PieceBlackKnight
public PieceBlackKnight( BaseBoard board )
: base(0x358F, "black knight", board)
{
}
示例4: PieceWhiteBishop
public PieceWhiteBishop( BaseBoard board )
: base(0x3585, "white bishop", board)
{
}
示例5: PieceWhiteRook
public PieceWhiteRook( BaseBoard board )
: base(0x3586, "white rook", board)
{
}
示例6: PieceBlackKing
public PieceBlackKing( BaseBoard board )
: base(0x358E, "black king", board)
{
}
示例7: PieceWhitePawn
public PieceWhitePawn( BaseBoard board )
: base(0x3589, "white pawn", board)
{
}
示例8: PieceWhiteQueen
public PieceWhiteQueen( BaseBoard board )
: base(0x358A, "white queen", board)
{
}
示例9: BasePiece
public BasePiece( int itemID, string name, BaseBoard board )
: base(itemID)
{
m_Board = board;
Name = name;
}
示例10: PieceWhiteKnight
public PieceWhiteKnight( BaseBoard board )
: base(0x3588, "white knight", board)
{
}
示例11: PieceBlackRook
public PieceBlackRook( BaseBoard board )
: base(0x358D, "black rook", board)
{
}
示例12: BasePiece
public BasePiece(int itemID, BaseBoard board)
: base(itemID)
{
this.m_Board = board;
}
示例13: PieceBlackQueen
public PieceBlackQueen( BaseBoard board )
: base(0x3591, "black queen", board)
{
}
示例14: PieceBlackPawn
public PieceBlackPawn( BaseBoard board )
: base(0x3590, "black pawn", board)
{
}
示例15: PieceBlackBishop
public PieceBlackBishop( BaseBoard board )
: base(0x358C, "black bishop", board)
{
}