コード例 #1
0
ファイル: GameObject.cs プロジェクト: rdavidson1994/TakeSword
 public GameObject(ISchedule schedule, FrozenTraitStore?traits = null)
 {
     if (traits == null)
     {
         traits = FrozenTraitStore.Empty();
     }
     this.traits = new MirrorTraitStore(traits);
     Location    = new OffscreenLocation();
     Schedule    = schedule;
     contents    = new HashSet <GameObject>();
     Name        = new SimpleName("nameless object");
 }
コード例 #2
0
ファイル: GameObject.cs プロジェクト: rdavidson1994/TakeSword
 public GameObject(ILocation?location = null, FrozenTraitStore?traits = null)
 {
     if (location == null)
     {
         location = new OffscreenLocation();
     }
     if (traits == null)
     {
         traits = FrozenTraitStore.Empty();
     }
     this.traits = new MirrorTraitStore(traits);
     Location    = location;
     Location.BeEntered(this);
     Schedule = Location.Schedule;
     contents = new HashSet <GameObject>();
     Name     = new SimpleName("nameless object");
 }
コード例 #3
0
 public MirrorTraitStore(FrozenTraitStore basis)
 {
     this.baseStore   = basis;
     this.activeStore = basis;
 }