示例#1
0
文件: Panel.cs 项目: drusepth/Panel
 // Allows developers to add traits that will be combined into
 // personalities.
 // f - A function to run on Object o and return a numerical amount
 //     representing how much this trait would favor the given object,
 //     on a scale of -100 to 100.
 public void AddTrait(LikeabilityFunction func)
 {
     possible_traits.Add(new Trait(func));
 }
示例#2
0
文件: Panel.cs 项目: drusepth/Panel
 // Allows developers to add traits that will be combined into
 // personalities.
 // f - A function to run on Object o and return a numerical amount
 //     representing how much this trait would favor the given object,
 //     on a scale of -100 to 100.
 public void AddTrait(LikeabilityFunction func)
 {
     possible_traits.Add(new Trait(func));
 }
示例#3
0
文件: Panel.cs 项目: drusepth/Panel
 public Trait(LikeabilityFunction func)
 {
     foo = func;
 }
示例#4
0
文件: Panel.cs 项目: drusepth/Panel
 public Trait(LikeabilityFunction func)
 {
     foo = func;
 }