Ejemplo n.º 1
0
 public virtual bool CanInstallToHardpoint(Entity shipEntity, Hardpoint slot)
 {
     return Size == slot.Size && slot.Type == HardpointType.Module;
 }
Ejemplo n.º 2
0
 public HardpointComponent(Hardpoint hardpoint)
 {
     Hardpoint = hardpoint;
 }
Ejemplo n.º 3
0
 public static FloatRect GetIconBoundingBox(Hardpoint hardpoint)
 {
     float size = Lengths[hardpoint.Size] / 10;
     return new FloatRect(Vector2.Zero, new Vector2(size*2));
 }