public ItemTemplate() { Stats = new Spam.JsonContainer(this, null); Requirements = new Spam.JsonContainer(this, null); Attributes = new Spam.JsonContainer(this, null); Items = new ParentChildRelationshipContainer <ItemTemplate, Item, Guid>(this, child => child.ItemTemplate, (child, parent) => child.ItemTemplate = parent); OnConstruct(); }
public RaceTemplate() { Stats = new Spam.JsonContainer(this, null); Actors = new ParentChildRelationshipContainer <RaceTemplate, Actor, Guid>(this, child => child.RaceTemplate, (child, parent) => child.RaceTemplate = parent); ClassTemplates = new ObservableHashSet <ClassTemplate>(); ClassTemplates.ItemsAdded += ClassTemplates_ItemsAdded; ClassTemplates.ItemsRemoved += ClassTemplates_ItemsRemoved; OnConstruct(); }
public Actor() { StatsInternal = new Spam.JsonContainer(this, null); Attributes = new Spam.JsonContainer(this, null); Cash = new Spam.JsonContainer(this, null); Abilities = new Spam.JsonContainer(this, null); Items = new ParentChildRelationshipContainer <Actor, Item, Guid>(this, child => child.Actor, (child, parent) => child.Actor = parent); OnConstruct(); }
public Room() { Cash = new Spam.JsonContainer(this, null); HiddenCash = new Spam.JsonContainer(this, null); Stats = new Spam.JsonContainer(this, null); Actors = new ParentChildRelationshipContainer <Room, Actor, Guid>(this, child => child.Room, (child, parent) => child.Room = parent); Items = new ParentChildRelationshipContainer <Room, Item, Guid>(this, child => child.Room, (child, parent) => child.Room = parent); OnConstruct(); }
public AddingContainer(JsonContainer primary, Func <IEnumerable <IDictionaryStore> > enumerator) { _primary = primary; _enumerator = enumerator; }
public Item() { StatsInternal = new Spam.JsonContainer(this, null); Attributes = new Spam.JsonContainer(this, null); OnConstruct(); }