コード例 #1
0
        public static bool HasProperty(this BlockDefinition.Property property, BlockDefinition.Property flag)
        {
            int intProperty = (int)property;
            int intFlag     = (int)flag;

            return((intProperty & intFlag) == intFlag);
        }
コード例 #2
0
ファイル: BlockController.cs プロジェクト: avirule/Wyd
 public bool CheckBlockHasProperty(ushort blockId, BlockDefinition.Property property) =>
 (BlockDefinitions[blockId].Properties & property) == property;
コード例 #3
0
ファイル: BlockController.cs プロジェクト: avirule/Wyd
 public HashSet <ushort> GetPropertyBucket(BlockDefinition.Property property) => _PropertiesBuckets[property];