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