This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Window x:Class="WPFUI.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:viewModels="clr-namespace:SOSCSRPG.ViewModels;assembly=SOSCSRPG.ViewModels" | |
d:DataContext="{d:DesignInstance viewModels:GameSession}" | |
mc:Ignorable="d" | |
FontSize="11pt" | |
Title="{Binding GameDetails.Title}" Height="768" Width="1024" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ConsoleUpdateExtensions | |
{ | |
internal static readonly Dictionary<IConsole, Dictionary<string, Func>> LineUpdates | |
= new Dictionary<IConsole, Dictionary<string, Func>>(); | |
public static Dictionary<string, Func> GetUpdates(this IConsole console) => LineUpdates.ContainsKey(console) ? LineUpdates[console] : null; | |
public static void AddLineUpdate(this IConsole console, string key, Func value) | |
{ | |
if (!LineUpdates.ContainsKey(console)) | |
{ | |
LineUpdates.Add(console, new Dictionary<string, Func>()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Window x:Class="WPFUI.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:viewModels="clr-namespace:Engine.ViewModels;assembly=Engine" | |
d:DataContext="{d:DesignInstance viewModels:GameSession}" | |
mc:Ignorable="d" | |
FontSize="11pt" | |
Title="{Binding GameDetails.Title}" Height="768" Width="1024" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.ObjectModel; | |
using System.Linq; | |
using Engine.Factories; | |
using Engine.Models; | |
using Engine.Services; | |
namespace Engine.ViewModels | |
{ | |
public class CharacterCreationViewModel : BaseNotificationClass | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace BusinessObjects.RedditZorkQuestion | |
{ | |
public class Bedroom : Room, ICanSleepHere | |
{ | |
public Bedroom(string name) : base(name) | |
{ | |
} | |
public void Sleep(Character character) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace DotNetToolBox.Collections | |
{ | |
public class SortedListWithFloorAndCeilingIntegerKey<TV> : SortedList<Int32, TV> | |
{ | |
#region Floor object methods | |
public int FloorIndexFor(Int32 searchKey) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using BuildAFluentInterface.Interfaces; | |
namespace BuildAFluentInterface | |
{ | |
public class DeleteQueryWithGrammar : ICanAddCondition, ICanAddWhereValue, ICanAddWhereOrRun | |
{ | |
private readonly string _tableName; | |
private readonly List<WhereCondition> _whereConditions = new List<WhereCondition>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace BusinessObjects.RedditRPGQuestion | |
{ | |
public class InventorySystem | |
{ | |
private const int MAXIMUM_SPACES_IN_INVENTORY = 10; |