Esempio n. 1
0
 /// <summary>
 /// c-tor
 /// </summary>
 /// <param name="prefabType"></param>
 /// <param name="position"></param>
 /// <param name="anglesInContainer"></param>
 public MyMwcObjectBuilder_PrefabLight(MyMwcObjectBuilder_PrefabLight_TypesEnum prefabType, MyMwcObjectBuilder_Prefab_AppearanceEnum appearance, MyMwcVector3Short position, Vector3 anglesInContainer, float?prefabMaxHealth, float prefabHealthRatio, string displayName, float electricCapacity, bool?causesAlarm, int aiPriority)
     : base((int)prefabType, appearance, position, anglesInContainer, prefabMaxHealth, prefabHealthRatio, displayName, electricCapacity, causesAlarm, aiPriority)
 {
     PointFalloff    = SpotFalloff = 1.0f;
     PointIntensity  = SpotIntensity = 1.0f;
     SpotRange       = SpotRange = 100.0f;
     PointColor      = SpotColor = new Vector4(1, 1, 1, 1);
     PointSpecular   = SpotSpecular = new Vector3(0, 0, 0);
     PointOffset     = 0;
     Effect          = MyLightEffectTypeEnum.NORMAL;
     SpotAgle        = 1;
     ShadowsDistance = 200;
 }
 /// <summary>
 /// c-tor
 /// </summary>
 /// <param name="prefabType"></param>
 /// <param name="position"></param>
 /// <param name="anglesInContainer"></param>
 public MyMwcObjectBuilder_PrefabLight(MyMwcObjectBuilder_PrefabLight_TypesEnum prefabType, MyMwcObjectBuilder_Prefab_AppearanceEnum appearance, MyMwcVector3Short position, Vector3 anglesInContainer, float? prefabMaxHealth, float prefabHealthRatio, string displayName, float electricCapacity, bool? causesAlarm, int aiPriority)
     : base((int)prefabType, appearance, position, anglesInContainer, prefabMaxHealth, prefabHealthRatio, displayName, electricCapacity, causesAlarm, aiPriority)
 {
     PointFalloff = SpotFalloff = 1.0f;
     PointIntensity = SpotIntensity = 1.0f;
     SpotRange = SpotRange = 100.0f;
     PointColor = SpotColor = new Vector4(1, 1, 1, 1);
     PointSpecular = SpotSpecular = new Vector3(0, 0, 0);
     PointOffset = 0;
     Effect = MyLightEffectTypeEnum.NORMAL;
     SpotAgle = 1;
     ShadowsDistance = 200;
 }