コード例 #1
0
ファイル: Avatar.cs プロジェクト: justen/henge
 public Avatar(ComponentType type)
     : base(type)
 {
     this.Pets	= new List<Npc>();
     this.Log	= new List<LogEntry>();
     this.Ancestors = new List<string>();
 }
コード例 #2
0
ファイル: Location.cs プロジェクト: justen/henge
 public Location(int x, int y, int z, ComponentType type)
     : base(type)
 {
     this.X					= x;
     this.Y					= y;
     this.Z					= z;
     this.Index				= ((ulong)x << 32) | (ulong)y;
     this.Inhabitants 		= new List<Avatar>();
     this.Structures			= new List<Edifice>();
     this.Fauna				= new List<Npc>();
     this.Regions 			= new List<Region>();
     this.Visible			= new List<Location>();
     this.TracesIn			= new List<Trait>();
     this.TracesOut			= new List<Trait>();
     this.InvertVisibility	= true;
 }