Advertisement
expired6978

Weather

Jan 4th, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.23 KB | None | 0 0
  1. class TESWeather : public TESForm
  2. {
  3. public:
  4.     enum { kTypeID = kFormType_Weather };
  5.  
  6.     enum { kNumColorTypes = 17 };
  7.     enum { kNumTimeOfDay = 4 };
  8.  
  9.     enum ColorTypes {
  10.         kColorType_SkyUpper = 0,
  11.         kColorType_FogNear = 1,
  12.         kColorType_Unk = 2,
  13.         kColorType_Ambient = 3,
  14.         kColorType_Sunlight = 4,
  15.         kColorType_Sun = 5,
  16.         kColorType_Stars = 6,
  17.         kColorType_SkyLower = 7,
  18.         kColorType_Horizon = 8,
  19.         kColorType_EffectLighting = 9,
  20.         kColorType_CloudLODDiffuse = 10,
  21.         kColorType_CloudLODAmbient = 11,
  22.         kColorType_FogFar = 12,
  23.         kColorType_SkyStatics = 13,
  24.         kColorType_WaterMultiplier = 14,
  25.         kColorType_SunGlare = 15,
  26.         kColorType_MoonGlare = 16
  27.     };
  28.  
  29.     enum TimeOfDay {
  30.         kTime_Sunrise = 0,
  31.         kTime_Day = 1,
  32.         kTime_Sunset = 2,
  33.         kTime_Night = 3
  34.     };
  35.  
  36.     // 110
  37.     struct ColorType
  38.     {
  39.         UInt32  time[kNumTimeOfDay];
  40.     };
  41.  
  42.     // 13
  43.     struct General
  44.     {
  45.         //UInt8 unk00[0x13];            // 00
  46.         UInt8   unk00[3];
  47.         UInt8   transDelta;             // Div 1000
  48.         UInt8   sunGlare;               // Div 256
  49.         UInt8   sunDamage;              // Div 256
  50.         UInt16  pad06;
  51.         UInt32  unk08;
  52.         UInt32  unk0C;
  53.         UInt8   unk10;
  54.         UInt8   windDirection;          // Div (256/360)
  55.         UInt8   windDirRange;           // Div (256/180)
  56.         UInt8   pad13;
  57.     };
  58.  
  59.     // 20
  60.     struct FogDistance
  61.     {
  62.         float   nearDay;
  63.         float   farDay;             // 10
  64.         float   nearNight;          // 14
  65.         float   farNight;           // 18
  66.         float   powerDay;           // 1C
  67.         float   powerNight;
  68.         float   maxDay;
  69.         float   maxNight;
  70.     };
  71.  
  72.     struct CloudAlpha
  73.     {
  74.         float   time[kNumTimeOfDay];
  75.     };
  76.  
  77.     TESTexture1024  texture[0x20];                  // 014
  78.     UInt8           unk114[0x20];                   // 114 - cleared to 0x7F
  79.     UInt8           unk134[0x20];                   // 134 - cleared to 0x7F
  80.     UInt8           unk154[0x200];                  // 154
  81.     CloudAlpha      cloudAlpha[0x20];               // 354
  82.     UInt32          unk554;                         // 554
  83.     General         general;                        // 558
  84.     //UInt8         pad56B;                         // 56B
  85.     FogDistance     fogDistance;                    // 56C
  86.     ColorType       colorTypes[kNumColorTypes];     // 58C
  87.     TESAIForm::Data unk69C;                         // 69C
  88.     UnkArray        unk6A4;                         // 6A4
  89.     UInt32          pad6B0;                         // 6B0 - not init'd
  90.     TESImageSpace   * imageSpaces[kNumTimeOfDay];
  91.     BGSLightingTemplate::Data::Color    directionalAmbient[kNumTimeOfDay];  // 6C4
  92.     TESModel        unk744; // 744
  93.     BGSShaderParticleGeometryData   * particleShader;   // 758
  94.     BGSReferenceEffect              * referenceEffect;  // 75C
  95. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement