Class MyMeteorShower
  
  
  
  
    Inheritance
    System.Object
    
    MyMeteorShower
   
  
  
  Assembly: Sandbox.Game.dll
  Syntax
  
    [MySessionComponentDescriptor]
[StaticEventOwner]
public class MyMeteorShower : MySessionComponentBase, IMyUserInputComponent
   
  Constructors
  
  
  
  
  MyMeteorShower()
  
  
  Declaration
  
  Properties
  
  
  
  
  IsRequiredByGame
  
  
  Declaration
  
    public override bool IsRequiredByGame { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  Overrides
  
  Methods
  
  
  
  
  BeforeStart()
  
  
  Declaration
  
    public override void BeforeStart()
   
  Overrides
  
  
  
  
  CalculateShowerTime(MyEnvironmentHostilityEnum)
  
  
  Declaration
  
    public static TimeSpan CalculateShowerTime(MyEnvironmentHostilityEnum hostility)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.TimeSpan |  | 
    
  
  
  
  
  CalculateShowerTime(MyEnvironmentHostilityEnum, MyEnvironmentHostilityEnum, TimeSpan)
  
  
  Declaration
  
    public static TimeSpan CalculateShowerTime(MyEnvironmentHostilityEnum newHostility, MyEnvironmentHostilityEnum oldHostility, TimeSpan oldTime)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.TimeSpan |  | 
    
  
  
  
  
  Draw()
  
  
  Declaration
  
    public override void Draw()
   
  Overrides
  
  
  
  
  GetActivationTime(MyEnvironmentHostilityEnum, Double, Double)
  
  
  Declaration
  
    public static double GetActivationTime(MyEnvironmentHostilityEnum hostility, double defaultMinMinutes, double defaultMaxMinutes)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Double |  | 
    
  
  
  
  
  GetInitialTime(MyEnvironmentHostilityEnum)
  
  
  Declaration
  
    public static Nullable<TimeSpan> GetInitialTime(MyEnvironmentHostilityEnum hostility)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Nullable<System.TimeSpan> |  | 
    
  
  
  
  
  LoadData()
  
  
  Declaration
  
    public override void LoadData()
   
  Overrides
  
  
  
  
  MeteorWave(Object)
  
  
  Declaration
  
    [MyGlobalEventHandler]
public static void MeteorWave(object senderEvent)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | senderEvent |  | 
    
  
  
  
  
  StartDebugWave(Vector3D, Nullable<Int32>, Single)
  
  
  Declaration
  
    public static void StartDebugWave(Vector3D pos, Nullable<int> amount = null, float radius = 100F)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Vector3D | pos |  | 
      
        | System.Nullable<System.Int32> | amount |  | 
      
        | System.Single | radius |  | 
    
  
  
  
  
  UnloadData()
  
  
  Declaration
  
    protected override void UnloadData()
   
  Overrides