public void InitializeSupports() { this.supports = new List <StabilityEntity.Support>(); if (this.grounded) { return; } List <EntityLink> entityLinks = base.GetEntityLinks(true); for (int i = 0; i < entityLinks.Count; i++) { EntityLink item = entityLinks[i]; if (item.IsMale()) { if (item.socket is StabilitySocket) { this.supports.Add(new StabilityEntity.Support(this, item, (item.socket as StabilitySocket).support)); } if (item.socket is ConstructionSocket) { this.supports.Add(new StabilityEntity.Support(this, item, (item.socket as ConstructionSocket).support)); } } } }
public void InitializeSupports() { this.supports = new List <StabilityEntity.Support>(); if (this.grounded) { return; } List <EntityLink> entityLinks = this.GetEntityLinks(true); for (int index = 0; index < entityLinks.Count; ++index) { EntityLink link = entityLinks[index]; if (link.IsMale()) { if (link.socket is StabilitySocket) { this.supports.Add(new StabilityEntity.Support(this, link, (link.socket as StabilitySocket).support)); } if (link.socket is ConstructionSocket) { this.supports.Add(new StabilityEntity.Support(this, link, (link.socket as ConstructionSocket).support)); } } } }