public static Type GetGroup(Background.Id id) { if (id == 0) { return(typeof(Background)); } return(GetGroup((int)id)); }
public BackgroundBlock GenerateBlock(Background.Id id) { try { return(new BackgroundBlock(id)); } catch (ArgumentException ex) { throw new NotSupportedException("There is no Block assosicated with this query.", ex); } }
public IBlockQuery <Background.Id, BlocksItem> this[Background.Id id] => this.Background[id];
public BackgroundBlock(Background.Id id) { this._id = id; }
public static void Place(this Blocks blocks, int x, int y, Background.Id block) { blocks.Place(x, y, new BackgroundBlock(block)); }
public static void Set(this IBlockSettable <ForegroundBlock, BackgroundBlock> blocks, Background.Id block) { blocks.Set(new BackgroundBlock(block)); }
public static void SetMany <T>(this IEnumerable <IEnumerable <T> > blocks, Background.Id block) where T : IBlockSettable <ForegroundBlock, BackgroundBlock> { blocks.SetMany(new BackgroundBlock(block)); }
public static void Set(this IEnumerable <BlocksItem> blocks, Background.Id block) { blocks.Set(new BackgroundBlock(block)); }
public static void Set(this BlocksItem blocks, Background.Id block) { blocks.Set(new BackgroundBlock(block)); }
public bool ShouldIndex(Background.Id id, BackgroundBlock?block) { return(this._innerFilter?.ShouldIndex(id, block) != false && this._backgroundPredicate(id, block)); }
public static PackAttribute GetPackage(Background.Id id) { return(GetPackageInternal((int)id)); }
public static void SetPackage(Background.Id id, PackAttribute package) { SetPackageInternal((int)id, package); }
public IBlockQuery <Background.Id, ReadOnlyWorldDictionaryItem> this[Background.Id id] => this.Background[id];
internal bool HasBlockInternal(Background.Id id) { return(this.HasPack(ItemServices.GetPackage(id))); }