private void Copy(ParticleGenerator other)
 {
     m_sName    = other.m_sName;
     m_Flush    = other.m_Flush;
     m_Discard  = other.m_Discard;
     m_sTexture = other.m_sTexture;
     m_Texture  = other.m_Texture;
     m_Method   = other.m_Method;
     m_bValid   = other.m_bValid;
 }
Пример #2
0
 private void Copy(ParticleGenerator other)
 {
     m_sName        = other.m_sName;
     m_Flush        = other.m_Flush;
     m_Discard      = other.m_Discard;
     m_sTexture     = other.m_sTexture;
     m_Texture      = other.m_Texture;
     m_Method       = other.m_Method;
     m_fRate        = other.m_fRate;
     m_fEmitVel     = other.m_fEmitVel;
     m_Attitude     = other.m_Attitude;
     m_PitchWidth   = other.m_PitchWidth;
     m_HeadingWidth = other.m_HeadingWidth;
     m_PointSize    = other.m_PointSize;
     m_PointSizeMin = other.m_PointSizeMin;
     m_PointScaleA  = other.m_PointScaleA;
     m_PointScaleB  = other.m_PointScaleB;
     m_PointScaleC  = other.m_PointScaleC;
     m_bValid       = other.m_bValid;
 }
Пример #3
0
 /// </Summary>copy constructor<//Summary>
 public ParticleGenerator(string sName, ParticleGenerator other) : base(sName)
 {
     m_sName = sName;
     Copy(other);
     try
     {
         m_VB = new VertexBuffer(typeof(CustomVertex.PositionColoredTextured), m_Discard,
                                 CGameEngine.Device3D, Usage.Dynamic | Usage.WriteOnly | Usage.Points,
                                 CustomVertex.PositionColoredTextured.Format, Pool.Default);
         m_bValid = true;
     }
     catch (DirectXException d3de)
     {
         Console.AddLine("Unable to create vertex buffer for " + m_sTexture);
         Console.AddLine(d3de.ErrorString);
     }
     catch (Exception e)
     {
         Console.AddLine("Unable to create vertex buffer for " + m_sTexture);
         Console.AddLine(e.Message);
     }
 }