public WorldDictionaryItem(IWorldDictionary <WorldDictionaryItem> worldDictionary, BackgroundBlock background, int x, int y) { this._worldDictionary = worldDictionary; this._foreground = null; this._background = background; this.X = x; this.Y = y; }
public static bool TryUpdate <T>(this IWorldDictionary <T> worldDictionary, int x, int y, BackgroundBlock oldBlock, BackgroundBlock newBlock) where T : struct { return(worldDictionary.TryUpdate(new Point(x, y), oldBlock, newBlock)); }
public static void Update <T>(this IWorldDictionary <T> worldDictionary, int x, int y, BackgroundBlock oldBlock, BackgroundBlock newBlock) where T : struct { worldDictionary.Update(new Point(x, y), oldBlock, newBlock); }