Ejemplo n.º 1
0
 public virtual Component GetComponent(TypeOfComponent type)
 {
     foreach (Component c in Components)
     {
         if (c.typeOfComponent == type)
         {
             return(c);
         }
     }
     return(null);
 }
Ejemplo n.º 2
0
 public BodyComponent(TypeOfComponent typeOfComponent, GameObject owner) : base(typeOfComponent, owner)
 {
 }
Ejemplo n.º 3
0
 public Component(TypeOfComponent typeOfComponent, GameObject owner)
 {
     this.typeOfComponent = typeOfComponent;
     this.owner           = owner;
 }
Ejemplo n.º 4
0
 public override Component GetComponent(TypeOfComponent type)
 {
     return(base.GetComponent(type));
 }
Ejemplo n.º 5
0
 public WeaponComponent(TypeOfComponent typeOfComponent, GameObject owner) : base(typeOfComponent, owner)
 {
     Attacks = new List <Attack>();
 }
Ejemplo n.º 6
0
 }                             // read only
 public HappeningArgs(TypeOfComponent requires, string text)
 {
     this.requires = requires;
     this.text     = text;
 }
Ejemplo n.º 7
0
 public ContainerComponent(TypeOfComponent typeOfComponent, GameObject owner) : base(typeOfComponent, owner)
 {
     Contains = new List <Item>();
 }