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