예제 #1
0
 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();
 }
예제 #2
0
 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();
 }
예제 #3
0
파일: Actor.cs 프로젝트: indij/KatanaMUD
 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();
 }
예제 #4
0
파일: Room.cs 프로젝트: indij/KatanaMUD
 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();
 }
예제 #5
0
 public AddingContainer(JsonContainer primary, Func <IEnumerable <IDictionaryStore> > enumerator)
 {
     _primary    = primary;
     _enumerator = enumerator;
 }
예제 #6
0
파일: Item.cs 프로젝트: indij/KatanaMUD
 public Item()
 {
     StatsInternal = new Spam.JsonContainer(this, null);
     Attributes    = new Spam.JsonContainer(this, null);
     OnConstruct();
 }