DB/LiquidMaterial: Difference between revisions

From wowdev
Jump to navigation Jump to search
(New page: This file got added with Wrath of the Lich King. It defines the cost of the barber's work. It got added in build 8334. This is no official patch, so this data is not confirmed. ==Struct...)
 
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
This file got added with Wrath of the Lich King. It defines the cost of the barber's work.  
Note that mapping to shaders etc is hardcoded. (see table below)


It got added in build 8334. This is no official patch, so this data is not confirmed.
{{Template:Sandbox/VersionRange|min_expansionlevel=3}}
==Structure==
{| style="background:#FCFCFC; color:black"
|-
! width="80" | Column
! width="180 " | Field
! width="80" | Type
! width="600" | Notes
|-
|1  || ID  || Integer  ||
|-
|2  || LiquidVertexFormat  || Flags  ||
|-
|3  || flags  || Boolean  || &1: isTransparent
|}


==Structure==
== mapping as of 15464 ==
  '''Column Field Type '''
  switch (materialId)
  1 ID Integer
  {
  2 Unknown Integer or Boolean
  case 1:
  3 Unknown Integer or Boolean
    return new Liquid::CMaterialWater();
  case 2:
    return new Liquid::CMaterialMagma();
  case 3:
    return new Liquid::CMaterialWater(); // "Water 2.0"
  case 4:
    return new Liquid::CMaterialMagma(); // yes, twice
  case 5:
    return new Liquid::CMaterialMercury();
  case 10:
    return new Liquid::CMaterialFog();
   
  case 8:
  default:
    return new Liquid::CMaterialDebug();
}
 
==6.0.1.18179==
struct LiquidMaterialRec {
  uint32_t m_ID;
  uint32_t m_LVF;
  uint32_t m_flags;  // &1: IsTransparent, &2: IsVisualOnly
  };
[[Category:DBC]][[Category:3.0.2.8905]]
[[Category:DBC_WotLK]]
[[Category:DBC_WoD]][[Category:6.0.1.18179]]

Latest revision as of 00:54, 23 April 2020

Note that mapping to shaders etc is hardcoded. (see table below)

≥ Wrath

Structure

Column Field Type Notes
1 ID Integer
2 LiquidVertexFormat Flags
3 flags Boolean &1: isTransparent

mapping as of 15464

switch (materialId)
{
  case 1:
    return new Liquid::CMaterialWater();
  case 2:
    return new Liquid::CMaterialMagma();
  case 3:
    return new Liquid::CMaterialWater(); // "Water 2.0"
  case 4:
    return new Liquid::CMaterialMagma(); // yes, twice
  case 5:
    return new Liquid::CMaterialMercury();
  case 10:
    return new Liquid::CMaterialFog();

  case 8:
  default:
    return new Liquid::CMaterialDebug();
}

6.0.1.18179

struct LiquidMaterialRec {
  uint32_t m_ID;
  uint32_t m_LVF;
  uint32_t m_flags;  // &1: IsTransparent, &2: IsVisualOnly
};