Example #1
0
 public override void Initialize(CompProperties vprops)
 {
     base.Initialize(vprops);
     this.props = (vprops as CompPropertiesSnow);
     if (this.props == null)
     {
         Log.Warning("Props went horribly wrong.");
         this.props.snowDepth = 1f;
         this.props.snowRadius = 5f;
         this.props.heatSuckMinTemperature = -10f;
         this.props.coldPerSecond = 200f;
     }
 }
Example #2
0
 public override void Initialize(CompProperties vprops)
 {
     base.Initialize(vprops);
     props = (vprops as CompPropertiesSnow);
     if (props == null)
     {
         Log.Warning("Props went horribly wrong.");
         props.snowDepth              = 1f;
         props.snowRadius             = 5f;
         props.heatSuckMinTemperature = -10f;
         props.coldPerSecond          = 200f;
     }
 }