Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
+401
@@ -0,0 +1,401 @@
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Mono auto generated files
|
||||
mono_crash.*
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
[Ww][Ii][Nn]32/
|
||||
[Aa][Rr][Mm]/
|
||||
[Aa][Rr][Mm]64/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
[Ll]ogs/
|
||||
|
||||
# Visual Studio 2015/2017 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# Visual Studio 2017 auto generated files
|
||||
Generated\ Files/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUnit
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
nunit-*.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# Benchmark Results
|
||||
BenchmarkDotNet.Artifacts/
|
||||
|
||||
# .NET Core
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
|
||||
# ASP.NET Scaffolding
|
||||
ScaffoldingReadMe.txt
|
||||
|
||||
# StyleCop
|
||||
StyleCopReport.xml
|
||||
|
||||
# Files built by Visual Studio
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_h.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.iobj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.ipdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
# but not Directory.Build.rsp, as it configures directory-level build defaults
|
||||
!Directory.Build.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*_wpftmp.csproj
|
||||
*.log
|
||||
*.tlog
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opendb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
*.VC.db
|
||||
*.VC.VC.opendb
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# Visual Studio Trace Files
|
||||
*.e2e
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# AxoCover is a Code Coverage Tool
|
||||
.axoCover/*
|
||||
!.axoCover/settings.json
|
||||
|
||||
# Coverlet is a free, cross platform Code Coverage Tool
|
||||
coverage*.json
|
||||
coverage*.xml
|
||||
coverage*.info
|
||||
|
||||
# Visual Studio code coverage results
|
||||
*.coverage
|
||||
*.coveragexml
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||
# in these scripts will be unencrypted
|
||||
PublishScripts/
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# NuGet Symbol Packages
|
||||
*.snupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/[Pp]ackages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/[Pp]ackages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/[Pp]ackages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignorable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# Microsoft Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Microsoft Azure Emulator
|
||||
ecf/
|
||||
rcf/
|
||||
|
||||
# Windows Store app package directories and files
|
||||
AppPackages/
|
||||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
*.appx
|
||||
*.appxbundle
|
||||
*.appxupload
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!?*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.jfm
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
orleans.codegen.cs
|
||||
|
||||
# Including strong name files can present a security risk
|
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||
#*.snk
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
ServiceFabricBackup/
|
||||
*.rptproj.bak
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
*.ndf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
*.rptproj.rsuser
|
||||
*- [Bb]ackup.rdl
|
||||
*- [Bb]ackup ([0-9]).rdl
|
||||
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
node_modules/
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||
*.vbw
|
||||
|
||||
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
|
||||
*.vbp
|
||||
|
||||
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
|
||||
*.dsw
|
||||
*.dsp
|
||||
|
||||
# Visual Studio 6 technical files
|
||||
*.ncb
|
||||
*.aps
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# Paket dependency manager
|
||||
.paket/paket.exe
|
||||
paket-files/
|
||||
|
||||
# FAKE - F# Make
|
||||
.fake/
|
||||
|
||||
# CodeRush personal settings
|
||||
.cr/personal
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
# Cake - Uncomment if you are using it
|
||||
# tools/**
|
||||
# !tools/packages.config
|
||||
|
||||
# Tabs Studio
|
||||
*.tss
|
||||
|
||||
# Telerik's JustMock configuration file
|
||||
*.jmconfig
|
||||
|
||||
# BizTalk build output
|
||||
*.btp.cs
|
||||
*.btm.cs
|
||||
*.odx.cs
|
||||
*.xsd.cs
|
||||
|
||||
# OpenCover UI analysis results
|
||||
OpenCover/
|
||||
|
||||
# Azure Stream Analytics local run output
|
||||
ASALocalRun/
|
||||
|
||||
# MSBuild Binary and Structured Log
|
||||
*.binlog
|
||||
|
||||
# NVidia Nsight GPU debugger configuration file
|
||||
*.nvuser
|
||||
|
||||
# MFractors (Xamarin productivity tool) working folder
|
||||
.mfractor/
|
||||
|
||||
# Local History for Visual Studio
|
||||
.localhistory/
|
||||
|
||||
# Visual Studio History (VSHistory) files
|
||||
.vshistory/
|
||||
|
||||
# BeatPulse healthcheck temp database
|
||||
healthchecksdb
|
||||
|
||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||
MigrationBackup/
|
||||
|
||||
# Ionide (cross platform F# VS Code tools) working folder
|
||||
.ionide/
|
||||
|
||||
# Fody - auto-generated XML schema
|
||||
FodyWeavers.xsd
|
||||
|
||||
# VS Code files for those working on multiple tools
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Windows Installer files from build outputs
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# JetBrains Rider
|
||||
*.sln.iml
|
||||
@@ -0,0 +1,86 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
message(FATAL_ERROR
|
||||
"In-source builds not allowed.
|
||||
Please make a new directory (called a build directory) and run CMake from there.
|
||||
You may need to remove CMakeCache.txt."
|
||||
)
|
||||
endif ()
|
||||
|
||||
project(wowdecomp CXX C)
|
||||
|
||||
if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
message(FATAL_ERROR "wowdecomp targets Windows only.")
|
||||
endif ()
|
||||
|
||||
# x64 is the target. Win32 stays buildable: it is the configuration whose struct layouts can be
|
||||
# checked against Wow.exe 3.3.5a (12340).
|
||||
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
set(WOWDECOMP_ARCH_64 1)
|
||||
add_compile_definitions(WOWDECOMP_ARCH_64=1)
|
||||
elseif (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
set(WOWDECOMP_ARCH_32 1)
|
||||
add_compile_definitions(WOWDECOMP_ARCH_32=1)
|
||||
else ()
|
||||
message(FATAL_ERROR "Unsupported pointer size.")
|
||||
endif ()
|
||||
|
||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
add_compile_definitions(
|
||||
WIN32
|
||||
_WINDOWS
|
||||
NOMINMAX
|
||||
WIN32_LEAN_AND_MEAN
|
||||
_CRT_SECURE_NO_WARNINGS
|
||||
)
|
||||
|
||||
# Third-party code is linked, not decompiled, for now.
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/ThirdParty/CMakeLists.txt)
|
||||
add_subdirectory(ThirdParty)
|
||||
endif ()
|
||||
|
||||
add_subdirectory(Engine/Source/BLPFile)
|
||||
add_subdirectory(Engine/Source/Base)
|
||||
add_subdirectory(Engine/Source/BlizzardCore)
|
||||
add_subdirectory(Engine/Source/ComSat)
|
||||
add_subdirectory(Engine/Source/ConsoleBase)
|
||||
add_subdirectory(Engine/Source/DayNight)
|
||||
add_subdirectory(Engine/Source/Event)
|
||||
add_subdirectory(Engine/Source/FFX)
|
||||
add_subdirectory(Engine/Source/Frame)
|
||||
add_subdirectory(Engine/Source/FrameScript)
|
||||
add_subdirectory(Engine/Source/FrameXML)
|
||||
add_subdirectory(Engine/Source/Gx)
|
||||
add_subdirectory(Engine/Source/Gxu)
|
||||
add_subdirectory(Engine/Source/Images)
|
||||
add_subdirectory(Engine/Source/Model2)
|
||||
add_subdirectory(Engine/Source/Os)
|
||||
add_subdirectory(Engine/Source/Services)
|
||||
add_subdirectory(Engine/Source/ShaderEffect)
|
||||
add_subdirectory(Engine/Source/SoundEngine)
|
||||
add_subdirectory(Engine/Source/Tempest)
|
||||
add_subdirectory(Storm)
|
||||
add_subdirectory(WoW/Common)
|
||||
add_subdirectory(WoW/Source/Battlenet)
|
||||
add_subdirectory(WoW/Source/Console)
|
||||
add_subdirectory(WoW/Source/ConsoleDevice)
|
||||
add_subdirectory(WoW/Source/DB)
|
||||
add_subdirectory(WoW/Source/Game)
|
||||
add_subdirectory(WoW/Source/Glue)
|
||||
add_subdirectory(WoW/Source/Magic)
|
||||
add_subdirectory(WoW/Source/Minigame)
|
||||
add_subdirectory(WoW/Source/Net)
|
||||
add_subdirectory(WoW/Source/Object)
|
||||
add_subdirectory(WoW/Source/ObjectAlloc)
|
||||
add_subdirectory(WoW/Source/ObjectMgrClient)
|
||||
add_subdirectory(WoW/Source/UIUtil)
|
||||
add_subdirectory(WoW/Source/Ui)
|
||||
add_subdirectory(WoW/Source/WorldClient)
|
||||
add_subdirectory(WoW/Source/WowServices)
|
||||
add_subdirectory(WoW/Source/WowSvcs)
|
||||
add_subdirectory(_Triage)
|
||||
add_subdirectory(WoW/Source)
|
||||
@@ -0,0 +1,10 @@
|
||||
file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
||||
|
||||
add_library(BLPFile STATIC
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(BLPFile
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef ENGINE_SOURCE_BLPFILE_TYPES_H
|
||||
#define ENGINE_SOURCE_BLPFILE_TYPES_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
struct C4Pixel;
|
||||
|
||||
struct BlpPalPixel {
|
||||
/* 0000 */ uint8_t m_b;
|
||||
/* 0001 */ uint8_t m_g;
|
||||
/* 0002 */ uint8_t m_r;
|
||||
/* 0003 */ uint8_t m_pad;
|
||||
};
|
||||
|
||||
struct MipBits {
|
||||
/* 0000 */ C4Pixel* m_mip [1];
|
||||
};
|
||||
|
||||
enum MipMapAlgorithm {
|
||||
MMA_BOX = 0,
|
||||
MMA_CUBIC = 1,
|
||||
MMA_FULLDFT = 2,
|
||||
MMA_KAISER = 3,
|
||||
MMA_LINEARLIGHTKAISER = 4,
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "blp.h"
|
||||
@@ -0,0 +1,25 @@
|
||||
#ifndef ENGINE_SOURCE_BLPFILE_BLP_H
|
||||
#define ENGINE_SOURCE_BLPFILE_BLP_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <windows.h>
|
||||
#include "Engine/Source/BLPFile/Types.h"
|
||||
#include "WoW/Common/TextureCache.h"
|
||||
|
||||
struct MipBits;
|
||||
|
||||
class CBLPFile {
|
||||
public:
|
||||
/* 0000 */ MipBits* m_images;
|
||||
/* 0004 */ BLPHeader m_header;
|
||||
/* 0498 */ void* m_inMemoryImage;
|
||||
/* 049C */ int32_t m_inMemoryNeedsFree;
|
||||
/* 04A0 */ uint32_t m_numLevels;
|
||||
/* 04A4 */ uint32_t m_quality;
|
||||
/* 04A8 */ uint32_t m_colorMapping;
|
||||
/* 04AC */ MipMapAlgorithm m_mipMapAlgorithm;
|
||||
/* 04B0 */ uint8_t* m_lockDecompMem;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "BitArray.h"
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_BITARRAY_H
|
||||
#define ENGINE_SOURCE_BASE_BITARRAY_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class CBitArray {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint8_t unk_0008;
|
||||
/* 0009 */ uint8_t unk_0009[23];
|
||||
/* 0020 */ uint8_t unk_0020;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "CDataAllocator.h"
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_CDATAALLOCATOR_H
|
||||
#define ENGINE_SOURCE_BASE_CDATAALLOCATOR_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <windows.h>
|
||||
|
||||
class CDataAllocator {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint32_t unk_0008;
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ uint32_t unk_0010;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "CDataRecycler.h"
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_CDATARECYCLER_H
|
||||
#define ENGINE_SOURCE_BASE_CDATARECYCLER_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class CDataRecycler {
|
||||
public:
|
||||
struct Node {
|
||||
/* 0000 */ CDataRecycler::Node* m_next;
|
||||
/* 0004 */ void* m_data;
|
||||
/* 0008 */ uint32_t m_bytes;
|
||||
};
|
||||
struct NodeBlock {
|
||||
/* 0000 */ CDataRecycler::NodeBlock* m_next;
|
||||
/* 0004 */ CDataRecycler::Node m_nodes [1];
|
||||
};
|
||||
|
||||
/* 0004 */ int32_t m_nodesRecyclable;
|
||||
/* 0008 */ uint32_t m_nodesPerBlock;
|
||||
/* 000C */ CDataRecycler::NodeBlock* m_nodeBlockList;
|
||||
/* 0010 */ CDataRecycler::Node* m_nodeFullList;
|
||||
/* 0014 */ CDataRecycler::Node* m_nodeEmptyList;
|
||||
|
||||
virtual ~CDataRecycler();
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_CDATASTORE_H
|
||||
#define ENGINE_SOURCE_BASE_CDATASTORE_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
||||
|
||||
add_library(Base STATIC
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(Base
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
#include "DynamicString.h"
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_DYNAMICSTRING_H
|
||||
#define ENGINE_SOURCE_BASE_DYNAMICSTRING_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class CDynamicString {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint32_t unk_0008;
|
||||
};
|
||||
|
||||
class DynamicString {
|
||||
public:
|
||||
/* 0000 */ uint8_t unk_0000;
|
||||
/* 0001 */ uint8_t unk_0001;
|
||||
/* 0002 */ uint16_t unk_0002;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint32_t unk_0008;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "FileCache.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_FILECACHE_H
|
||||
#define ENGINE_SOURCE_BASE_FILECACHE_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "Prop.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_PROP_H
|
||||
#define ENGINE_SOURCE_BASE_PROP_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "RCString.h"
|
||||
@@ -0,0 +1,29 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_RCSTRING_H
|
||||
#define ENGINE_SOURCE_BASE_RCSTRING_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class TRefCnt {
|
||||
public:
|
||||
/* 0004 */ uint32_t m_refcnt;
|
||||
|
||||
virtual ~TRefCnt();
|
||||
};
|
||||
|
||||
class RCString : public TRefCnt {
|
||||
public:
|
||||
/* 0008 */ uint8_t* m_str;
|
||||
};
|
||||
|
||||
class CStringMemory {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint32_t unk_0008;
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ uint32_t unk_0010;
|
||||
/* 0014 */ uint32_t unk_0014;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "Status.h"
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_STATUS_H
|
||||
#define ENGINE_SOURCE_BASE_STATUS_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include "Engine/Source/Base/Types.h"
|
||||
#include "Storm/H/stpl.h"
|
||||
|
||||
class CStatus {
|
||||
public:
|
||||
struct STATUSENTRY {
|
||||
/* 0000 */ char* m_text;
|
||||
/* 0004 */ STATUS_TYPE m_severity;
|
||||
/* 0008 */ TSLink<CStatus::STATUSENTRY> m_link;
|
||||
};
|
||||
|
||||
/* 0000 */ TSExplicitList<CStatus::STATUSENTRY> m_statusList;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef ENGINE_SOURCE_BASE_TYPES_H
|
||||
#define ENGINE_SOURCE_BASE_TYPES_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
enum STATUS_TYPE {
|
||||
STATUS_INFO = 0,
|
||||
STATUS_WARNING = 1,
|
||||
STATUS_ERROR = 2,
|
||||
STATUS_FATAL = 3,
|
||||
STATUS_NUMTYPES = 4,
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,27 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_INCLUDE_BLIZZARD_UTIL_BUFFER_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_INCLUDE_BLIZZARD_UTIL_BUFFER_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace Blizzard {
|
||||
namespace Util {
|
||||
template <class T, int N>
|
||||
struct BufferData {
|
||||
/* 0000 */ uint32_t m_elements;
|
||||
/* 0004 */ T* m_data;
|
||||
/* 0008 */ T m_local [N];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace Util {
|
||||
template <int N, class T>
|
||||
struct Buffer {
|
||||
/* 0000 */ Blizzard::Util::BufferData<T, N> unk_0000;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_INCLUDE_BLIZZARD_UTIL_HASHMAP_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_INCLUDE_BLIZZARD_UTIL_HASHMAP_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "Filestack_Streaming.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_FILE_FILESTACK_STREAMING_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_FILE_FILESTACK_STREAMING_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "Filestack_Win32.h"
|
||||
@@ -0,0 +1,170 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_FILE_FILESTACK_WIN32_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_FILE_FILESTACK_WIN32_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include "Engine/Source/BlizzardCore/BlizzardCore/Source/System/Memory/Types.h"
|
||||
|
||||
namespace Blizzard { namespace File { struct Filesystem; }}
|
||||
namespace Blizzard { namespace File { struct ProcessDirParms; }}
|
||||
namespace Blizzard { namespace File { struct StreamRecord; }}
|
||||
namespace Blizzard { namespace File { struct StreamingInfo; }}
|
||||
namespace System_File { namespace Stacked { struct FileParms; }}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
struct FileInfo {
|
||||
/* 0000 */ char* m_path;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ int64_t m_size;
|
||||
/* 0010 */ int32_t m_attributes;
|
||||
/* 0014 */ uint8_t unk_0014[4];
|
||||
/* 0018 */ Blizzard::Time::Timestamp m_createTime;
|
||||
/* 0020 */ Blizzard::Time::Timestamp m_modTime;
|
||||
/* 0028 */ Blizzard::Time::Timestamp m_accessTime;
|
||||
/* 0030 */ int32_t m_existence;
|
||||
/* 0034 */ int32_t m_regularFile;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
union FileInfoMask {
|
||||
/* 0000 */ uint8_t unk_0000[4];
|
||||
/* 0000 */ uint32_t m_all;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace System_File {
|
||||
namespace Stacked {
|
||||
typedef bool (__stdcall* FileFunc )(Blizzard::File::Filesystem* fs, System_File::Stacked::FileParms* parms);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
struct Functions {
|
||||
/* 0000 */ System_File::Stacked::FileFunc m_cd;
|
||||
/* 0004 */ System_File::Stacked::FileFunc m_close;
|
||||
/* 0008 */ System_File::Stacked::FileFunc m_create;
|
||||
/* 000C */ System_File::Stacked::FileFunc m_cwd;
|
||||
/* 0010 */ System_File::Stacked::FileFunc m_dirwalk;
|
||||
/* 0014 */ System_File::Stacked::FileFunc m_exists;
|
||||
/* 0018 */ System_File::Stacked::FileFunc m_flush;
|
||||
/* 001C */ System_File::Stacked::FileFunc m_getfileinfo;
|
||||
/* 0020 */ System_File::Stacked::FileFunc m_getfreespace;
|
||||
/* 0024 */ System_File::Stacked::FileFunc m_getpos;
|
||||
/* 0028 */ System_File::Stacked::FileFunc m_getrootchars;
|
||||
/* 002C */ System_File::Stacked::FileFunc m_isabspath;
|
||||
/* 0030 */ System_File::Stacked::FileFunc m_isreadonly;
|
||||
/* 0034 */ System_File::Stacked::FileFunc m_makeabspath;
|
||||
/* 0038 */ System_File::Stacked::FileFunc m_mkdir;
|
||||
/* 003C */ System_File::Stacked::FileFunc m_move;
|
||||
/* 0040 */ System_File::Stacked::FileFunc m_copy;
|
||||
/* 0044 */ System_File::Stacked::FileFunc m_open;
|
||||
/* 0048 */ System_File::Stacked::FileFunc m_read;
|
||||
/* 004C */ System_File::Stacked::FileFunc m_readp;
|
||||
/* 0050 */ System_File::Stacked::FileFunc m_rmdir;
|
||||
/* 0054 */ System_File::Stacked::FileFunc m_setcachemode;
|
||||
/* 0058 */ System_File::Stacked::FileFunc m_seteof;
|
||||
/* 005C */ System_File::Stacked::FileFunc m_setfileinfo;
|
||||
/* 0060 */ System_File::Stacked::FileFunc m_setpos;
|
||||
/* 0064 */ System_File::Stacked::FileFunc m_unlink;
|
||||
/* 0068 */ System_File::Stacked::FileFunc m_write;
|
||||
/* 006C */ System_File::Stacked::FileFunc m_writep;
|
||||
/* 0070 */ System_File::Stacked::FileFunc m_shutdown;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
struct Filesystem {
|
||||
/* 0000 */ Blizzard::File::Filesystem* m_original;
|
||||
/* 0004 */ Blizzard::File::Filesystem* m_next;
|
||||
/* 0008 */ Blizzard::File::Functions m_verbs;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
typedef bool (__stdcall* ProcessDirCallback_interface )(const Blizzard::File::ProcessDirParms* parms);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
typedef Blizzard::File::ProcessDirCallback_interface ProcessDirCallback;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
typedef Blizzard::File::StreamRecord* Stream;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
struct StreamRecord {
|
||||
/* 0000 */ void* m_fileHandle;
|
||||
/* 0004 */ int32_t m_mode;
|
||||
/* 0008 */ bool m_infoValid;
|
||||
/* 0009 */ uint8_t unk_0009[3];
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ Blizzard::File::FileInfo m_info;
|
||||
/* 0048 */ Blizzard::File::StreamingInfo* m_streaming;
|
||||
/* 004C */ char* m_pathname;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace offset_in_Blizzard {
|
||||
namespace File {
|
||||
namespace Functions_to_System_File {
|
||||
namespace Stacked {
|
||||
typedef uintptr_t FileFunc;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace System_File {
|
||||
namespace Stacked {
|
||||
struct FileParms {
|
||||
/* 0000 */ offset_in_Blizzard::File::Functions_to_System_File::Stacked::FileFunc m_verb;
|
||||
/* 0004 */ char* m_path;
|
||||
/* 0008 */ char* m_newpath;
|
||||
/* 000C */ Blizzard::File::Stream m_stream;
|
||||
/* 0010 */ Blizzard::File::FileInfo* m_info;
|
||||
/* 0014 */ uint32_t m_extra;
|
||||
/* 0018 */ Blizzard::File::FileInfo m_info2;
|
||||
/* 0050 */ Blizzard::File::FileInfoMask m_has;
|
||||
/* 0054 */ Blizzard::File::FileInfoMask m_want;
|
||||
/* 0058 */ int32_t m_mode;
|
||||
/* 005C */ void* m_buffer;
|
||||
/* 0060 */ int32_t m_amount;
|
||||
/* 0064 */ uint8_t unk_0064[4];
|
||||
/* 0068 */ int64_t m_pos;
|
||||
/* 0070 */ int32_t m_posMode;
|
||||
/* 0074 */ char* m_cwdbuf;
|
||||
/* 0078 */ int32_t m_cwdbuflen;
|
||||
/* 007C */ bool m_recursive;
|
||||
/* 007D */ bool m_makeCanonical;
|
||||
/* 007E */ uint8_t unk_007E[2];
|
||||
/* 0080 */ void* m_cookie;
|
||||
/* 0084 */ Blizzard::File::ProcessDirCallback m_dircallback;
|
||||
/* 0088 */ bool m_sorted;
|
||||
/* 0089 */ bool m_overwrite;
|
||||
/* 008A */ bool m_grantEveryone;
|
||||
/* 008B */ bool m_zeroFillAll;
|
||||
/* 008C */ bool m_supportsSparseFiles;
|
||||
/* 008D */ uint8_t unk_008D[3];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,19 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_FILE_TYPES_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_FILE_TYPES_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
struct ProcessDirParms {
|
||||
/* 0000 */ const char* m_pathRoot;
|
||||
/* 0004 */ const char* m_filename;
|
||||
/* 0008 */ void* m_cookie;
|
||||
/* 000C */ bool m_isDir;
|
||||
/* 000D */ uint8_t unk_000D[3];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "BackgroundCache.h"
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_BACKGROUNDCACHE_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_BACKGROUNDCACHE_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class BackgroundCache {
|
||||
public:
|
||||
/* 0000 */ uint8_t unk_0000;
|
||||
/* 0001 */ uint8_t unk_0001[2];
|
||||
/* 0003 */ uint8_t unk_0003;
|
||||
/* 0004 */ uint8_t unk_0004;
|
||||
/* 0005 */ uint8_t unk_0005;
|
||||
/* 0006 */ uint8_t unk_0006;
|
||||
/* 0007 */ uint8_t unk_0007;
|
||||
/* 0008 */ uint8_t unk_0008;
|
||||
/* 0009 */ uint8_t unk_0009[2];
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "MemoryStorm.h"
|
||||
@@ -0,0 +1,105 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_MEMORYSTORM_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_MEMORYSTORM_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include "Engine/Source/BlizzardCore/BlizzardCore/Source/System/File/Filestack_Win32.h"
|
||||
|
||||
namespace Blizzard { namespace Storage { struct StorageUnit; }}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
typedef int32_t INODE;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace Storage {
|
||||
struct StorageUnitHandle {
|
||||
/* 0000 */ Blizzard::File::INODE m_mNode;
|
||||
/* 0004 */ Blizzard::Storage::StorageUnit* m_mUnit;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace File {
|
||||
struct StreamingInfo {
|
||||
/* 0000 */ Blizzard::Storage::StorageUnitHandle m_storagehandle;
|
||||
/* 0008 */ Blizzard::File::INODE m_inode;
|
||||
/* 000C */ uint32_t m_streamRefCount;
|
||||
/* 0010 */ Blizzard::File::FileInfo m_streaminginfo;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace Storage {
|
||||
struct StorageUnit {
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint32_t unk_0008;
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ uint32_t unk_0010;
|
||||
/* 0014 */ uint32_t unk_0014;
|
||||
/* 0018 */ uint32_t unk_0018;
|
||||
/* 001C */ uint32_t unk_001C;
|
||||
/* 0020 */ uint32_t unk_0020;
|
||||
/* 0024 */ uint32_t unk_0024;
|
||||
/* 0028 */ uint32_t unk_0028;
|
||||
/* 002C */ uint32_t unk_002C;
|
||||
/* 0030 */ uint32_t unk_0030;
|
||||
/* 0034 */ uint32_t unk_0034;
|
||||
/* 0038 */ uint32_t unk_0038;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
class System_SFile {
|
||||
public:
|
||||
/* 0000 */ uint8_t unk_0000[4];
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint32_t unk_0008;
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ uint32_t unk_0010;
|
||||
/* 0014 */ uint32_t unk_0014;
|
||||
/* 0018 */ uint32_t unk_0018;
|
||||
/* 001C */ uint32_t unk_001C;
|
||||
/* 0020 */ uint32_t unk_0020;
|
||||
/* 0024 */ uint32_t unk_0024;
|
||||
/* 0028 */ uint32_t unk_0028;
|
||||
/* 002C */ uint32_t unk_002C;
|
||||
/* 0030 */ uint32_t unk_0030;
|
||||
/* 0034 */ uint32_t unk_0034;
|
||||
/* 0038 */ uint32_t unk_0038;
|
||||
/* 003C */ uint8_t unk_003C[8];
|
||||
/* 0044 */ uint32_t unk_0044;
|
||||
/* 0048 */ uint8_t unk_0048[4];
|
||||
/* 004C */ uint32_t unk_004C;
|
||||
/* 0050 */ uint8_t unk_0050[36];
|
||||
/* 0074 */ uint32_t unk_0074;
|
||||
/* 0078 */ uint8_t unk_0078[12];
|
||||
/* 0084 */ uint32_t unk_0084;
|
||||
/* 0088 */ uint8_t unk_0088[284];
|
||||
/* 01A4 */ uint32_t unk_01A4;
|
||||
/* 01A8 */ uint32_t unk_01A8;
|
||||
/* 01AC */ uint8_t unk_01AC[4];
|
||||
/* 01B0 */ uint32_t unk_01B0;
|
||||
/* 01B4 */ uint32_t unk_01B4;
|
||||
/* 01B8 */ uint8_t unk_01B8[8];
|
||||
/* 01C0 */ uint32_t unk_01C0;
|
||||
/* 01C4 */ uint32_t unk_01C4;
|
||||
};
|
||||
|
||||
class System_SFile_BlockEntryTable {
|
||||
public:
|
||||
/* 0000 */ uint8_t unk_0000[60];
|
||||
/* 003C */ uint32_t unk_003C;
|
||||
/* 0040 */ uint32_t unk_0040;
|
||||
/* 0044 */ uint32_t unk_0044;
|
||||
/* 0048 */ uint32_t unk_0048;
|
||||
/* 004C */ uint8_t unk_004C[4];
|
||||
/* 0050 */ uint32_t unk_0050;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_Log.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_SYSTEM_LOG_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_SYSTEM_LOG_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_MPQGlobals.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_SYSTEM_MPQGLOBALS_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_SYSTEM_MPQGLOBALS_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_TYPES_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MEMORY_TYPES_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace Blizzard {
|
||||
namespace Time {
|
||||
typedef int64_t Timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "String.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_STRING_STRING_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_STRING_STRING_H
|
||||
|
||||
#endif
|
||||
+1
@@ -0,0 +1 @@
|
||||
#include "System_Streaming_HttpCallback.h"
|
||||
@@ -0,0 +1,19 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_SYSTEM_STREAMING_HTTPCALLBACK_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_SYSTEM_STREAMING_HTTPCALLBACK_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class System_Streaming_HttpCallback {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint8_t unk_0004[20];
|
||||
/* 0018 */ uint32_t unk_0018;
|
||||
/* 001C */ uint32_t unk_001C;
|
||||
/* 0020 */ uint32_t unk_0020;
|
||||
/* 0024 */ uint32_t unk_0024;
|
||||
/* 0028 */ uint32_t unk_0028;
|
||||
/* 002C */ uint32_t unk_002C;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_Thread.h"
|
||||
@@ -0,0 +1,30 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_SYSTEM_THREAD_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_SYSTEM_THREAD_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace Blizzard {
|
||||
namespace Thread {
|
||||
typedef void (__stdcall* TLSDestructor_interface )(void*);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace Thread {
|
||||
typedef Blizzard::Thread::TLSDestructor_interface TLSDestructor;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace Thread {
|
||||
struct TLSSlot {
|
||||
/* 0000 */ uint32_t m_key;
|
||||
/* 0004 */ Blizzard::Thread::TLSDestructor m_destructor;
|
||||
/* 0008 */ bool m_initialized;
|
||||
/* 0009 */ uint8_t unk_0009[3];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "Vector.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_VECTOR_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_VECTOR_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_Mopaq_Cache.h"
|
||||
@@ -0,0 +1,25 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MOPAQ_CACHE_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_MOPAQ_CACHE_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class System_Mopaq_Cache {
|
||||
public:
|
||||
/* 0000 */ uint8_t unk_0000[4];
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint8_t unk_0008[16];
|
||||
/* 0018 */ uint64_t unk_0018;
|
||||
/* 0020 */ uint32_t unk_0020;
|
||||
/* 0024 */ uint32_t unk_0024;
|
||||
/* 0028 */ uint32_t unk_0028;
|
||||
/* 002C */ uint8_t unk_002C[1];
|
||||
/* 002D */ uint8_t unk_002D;
|
||||
/* 002E */ uint8_t unk_002E[10];
|
||||
/* 0038 */ uint32_t unk_0038;
|
||||
/* 003C */ uint32_t unk_003C;
|
||||
/* 0040 */ uint8_t unk_0040[20];
|
||||
/* 0054 */ uint32_t unk_0054;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_SFile_ARCHIVEREC.h"
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_SFILE_ARCHIVEREC_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_SFILE_ARCHIVEREC_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class System_SFile_ARCHIVEREC {
|
||||
public:
|
||||
/* 0000 */ uint8_t unk_0000[420];
|
||||
/* 01A4 */ uint32_t unk_01A4;
|
||||
/* 01A8 */ uint32_t unk_01A8;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_Using.h"
|
||||
@@ -0,0 +1,29 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_USING_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_BLIZZARDCORE_SOURCE_SYSTEM_USING_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace System_Using { struct Depends; }
|
||||
|
||||
namespace System_Using {
|
||||
struct Depends {
|
||||
/* 0000 */ uint16_t m_id;
|
||||
/* 0002 */ uint8_t unk_0002[2];
|
||||
/* 0004 */ System_Using::Depends* m_next;
|
||||
};
|
||||
}
|
||||
|
||||
namespace System_Using {
|
||||
struct UsingRec {
|
||||
/* 0000 */ char* m_name;
|
||||
/* 0004 */ uint16_t m_id;
|
||||
/* 0006 */ uint16_t m_refCount;
|
||||
/* 0008 */ void (__stdcall* m_shutdownproc )();
|
||||
/* 000C */ uint16_t m_dependCount;
|
||||
/* 000E */ uint8_t unk_000E[2];
|
||||
/* 0010 */ System_Using::Depends* m_depends;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
||||
|
||||
add_library(BlizzardCore STATIC
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(BlizzardCore
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
#include "OggDecompress.h"
|
||||
@@ -0,0 +1,36 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_OGGDECOMPRESS_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_OGGDECOMPRESS_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
struct vorbis_comment;
|
||||
struct vorbis_info;
|
||||
|
||||
struct OggVorbis_File {
|
||||
/* 0000 */ void* m_datasource;
|
||||
/* 0004 */ int32_t m_seekable;
|
||||
/* 0008 */ uint8_t m_offset[8];
|
||||
/* 0010 */ uint8_t m_end[8];
|
||||
/* 0018 */ uint8_t m_oy[28];
|
||||
/* 0034 */ int32_t m_links;
|
||||
/* 0038 */ int64_t* m_offsets;
|
||||
/* 003C */ int64_t* m_dataoffsets;
|
||||
/* 0040 */ int32_t* m_serialnos;
|
||||
/* 0044 */ int64_t* m_pcmlengths;
|
||||
/* 0048 */ vorbis_info* m_vi;
|
||||
/* 004C */ vorbis_comment* m_vc;
|
||||
/* 0050 */ uint8_t m_pcmOffset[8];
|
||||
/* 0058 */ int32_t m_readyState;
|
||||
/* 005C */ int32_t m_currentSerialno;
|
||||
/* 0060 */ int32_t m_currentLink;
|
||||
/* 0064 */ float m_bittrack;
|
||||
/* 0068 */ float m_samptrack;
|
||||
/* 006C */ uint8_t unk_006C[4];
|
||||
/* 0070 */ uint8_t m_os[360];
|
||||
/* 01D8 */ uint8_t m_vd[112];
|
||||
/* 0248 */ uint8_t m_vb[112];
|
||||
/* 02B8 */ uint8_t m_callbacks[16];
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "SFile2-Core.h"
|
||||
@@ -0,0 +1,43 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_SFILE2_CORE_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_SFILE2_CORE_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace Blizzard { namespace Debug { struct ErrorStackRecord; }}
|
||||
|
||||
namespace Blizzard {
|
||||
namespace Debug {
|
||||
struct ErrorStackRecord {
|
||||
/* 0000 */ Blizzard::Debug::ErrorStackRecord* m_prev;
|
||||
/* 0004 */ int32_t m_level;
|
||||
/* 0008 */ char* m_flattened;
|
||||
/* 000C */ char* m_str;
|
||||
/* 0010 */ int32_t m_code;
|
||||
/* 0014 */ int32_t m_category;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
class SFile {
|
||||
public:
|
||||
/* 0000 */ uint8_t unk_0000[1];
|
||||
};
|
||||
|
||||
class SFileImpl {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint32_t unk_0008;
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ uint32_t unk_0010;
|
||||
/* 0014 */ uint8_t unk_0014[4];
|
||||
/* 0018 */ uint32_t unk_0018;
|
||||
/* 001C */ uint8_t unk_001C[4];
|
||||
/* 0020 */ uint32_t unk_0020;
|
||||
/* 0024 */ uint32_t unk_0024;
|
||||
/* 0028 */ uint32_t unk_0028;
|
||||
/* 002C */ uint32_t unk_002C;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_MPQEncrypt.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_SYSTEM_MPQENCRYPT_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_SYSTEM_MPQENCRYPT_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_SComp.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_SYSTEM_SCOMP_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_SYSTEM_SCOMP_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_SFile2.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_SYSTEM_SFILE2_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_SYSTEM_SFILE2_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "System_SFile_BitPacked.h"
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifndef ENGINE_SOURCE_BLIZZARDCORE_SYSTEM_SFILE_BITPACKED_H
|
||||
#define ENGINE_SOURCE_BLIZZARDCORE_SYSTEM_SFILE_BITPACKED_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class System_SFile_BitPacked {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
||||
|
||||
add_library(ComSat STATIC
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(ComSat
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
#include "ComSatSoundIOSoundEngine.h"
|
||||
@@ -0,0 +1,50 @@
|
||||
#ifndef ENGINE_SOURCE_COMSAT_COMSATSOUNDIOSOUNDENGINE_H
|
||||
#define ENGINE_SOURCE_COMSAT_COMSATSOUNDIOSOUNDENGINE_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace ComSat {
|
||||
struct Manager {
|
||||
/* 0000 */ uint8_t unk_0000 [8];
|
||||
/* 0008 */ int32_t unk_0008;
|
||||
/* 000C */ int32_t unk_000C;
|
||||
/* 0010 */ uint8_t unk_0010 [4];
|
||||
/* 0014 */ int32_t unk_0014;
|
||||
/* 0018 */ uint8_t unk_0018 [4];
|
||||
/* 001C */ int32_t unk_001C;
|
||||
/* 0020 */ int16_t unk_0020;
|
||||
/* 0022 */ uint8_t unk_0022[2];
|
||||
/* 0024 */ int32_t unk_0024;
|
||||
/* 0028 */ int32_t unk_0028;
|
||||
/* 002C */ uint8_t unk_002C [4];
|
||||
/* 0030 */ int32_t unk_0030;
|
||||
/* 0034 */ int32_t unk_0034;
|
||||
/* 0038 */ int32_t unk_0038;
|
||||
/* 003C */ uint8_t unk_003C [44];
|
||||
/* 0068 */ int32_t unk_0068;
|
||||
};
|
||||
}
|
||||
|
||||
namespace ComSat {
|
||||
struct Session {
|
||||
/* 0000 */ uint8_t unk_0000 [4];
|
||||
/* 0004 */ int32_t unk_0004;
|
||||
/* 0008 */ uint8_t unk_0008 [8];
|
||||
/* 0010 */ int32_t unk_0010;
|
||||
/* 0014 */ int32_t unk_0014;
|
||||
};
|
||||
}
|
||||
|
||||
namespace ComSat {
|
||||
namespace Sound {
|
||||
struct Manager {
|
||||
/* 0000 */ uint8_t unk_0000 [12];
|
||||
/* 000C */ int32_t unk_000C;
|
||||
/* 0010 */ uint8_t unk_0010 [8];
|
||||
/* 0018 */ int32_t unk_0018;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef ENGINE_SOURCE_COMSAT_TYPES_H
|
||||
#define ENGINE_SOURCE_COMSAT_TYPES_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace ComSat {
|
||||
namespace Sound {
|
||||
struct IOSoundEngine {
|
||||
/* 0000 */ uint8_t unk_0000 [8];
|
||||
/* 0008 */ int32_t unk_0008;
|
||||
/* 000C */ uint8_t unk_000C[4];
|
||||
/* 0010 */ int32_t unk_0010;
|
||||
/* 0014 */ int32_t unk_0014;
|
||||
/* 0018 */ uint8_t unk_0018 [4];
|
||||
/* 001C */ int32_t unk_001C;
|
||||
/* 0020 */ uint8_t unk_0020 [4];
|
||||
/* 0024 */ int32_t unk_0024;
|
||||
/* 0028 */ int32_t unk_0028;
|
||||
/* 002C */ int32_t unk_002C;
|
||||
/* 0030 */ uint8_t unk_0030 [32804];
|
||||
/* 8054 */ int32_t unk_8054;
|
||||
/* 8058 */ int32_t unk_8058;
|
||||
/* 805C */ int32_t unk_805C;
|
||||
/* 8060 */ int32_t unk_8060;
|
||||
/* 8064 */ int32_t unk_8064;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
||||
|
||||
add_library(ConsoleBase STATIC
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(ConsoleBase
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
#include "ConsoleVar.h"
|
||||
@@ -0,0 +1,41 @@
|
||||
#ifndef ENGINE_SOURCE_CONSOLEBASE_CONSOLEVAR_H
|
||||
#define ENGINE_SOURCE_CONSOLEBASE_CONSOLEVAR_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include "Engine/Source/Base/RCString.h"
|
||||
#include "Storm/H/stpl.h"
|
||||
|
||||
class CVar;
|
||||
struct HASHKEY_STRI;
|
||||
|
||||
class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
||||
public:
|
||||
/* 0018 */ uint32_t m_category;
|
||||
/* 001C */ uint32_t m_flags;
|
||||
/* 0020 */ RCString m_stringValue;
|
||||
/* 002C */ float m_floatValue;
|
||||
/* 0030 */ int32_t m_intValue;
|
||||
/* 0034 */ int32_t m_modified;
|
||||
/* 0038 */ RCString m_defaultValue;
|
||||
/* 0044 */ RCString m_resetValue;
|
||||
/* 0050 */ RCString m_latchedValue;
|
||||
/* 005C */ RCString m_help;
|
||||
/* 0068 */ bool (__stdcall* m_callback )(CVar*, const char*, const char*, void*);
|
||||
/* 006C */ void* m_arg;
|
||||
};
|
||||
|
||||
class CVarArrayWrapper {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
};
|
||||
|
||||
class CVarIntListWrapper {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint8_t unk_0008[256];
|
||||
/* 0108 */ uint32_t unk_0108;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
||||
|
||||
add_library(DayNight STATIC
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(DayNight
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
#include "DayNight.h"
|
||||
@@ -0,0 +1,204 @@
|
||||
#ifndef ENGINE_SOURCE_DAYNIGHT_DAYNIGHT_H
|
||||
#define ENGINE_SOURCE_DAYNIGHT_DAYNIGHT_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include "Engine/Source/Tempest/C3Vector.h"
|
||||
#include "Engine/Source/Tempest/cimvector.h"
|
||||
#include "Storm/H/stpl.h"
|
||||
|
||||
struct CM2Model;
|
||||
struct CM2Scene;
|
||||
struct CTexture;
|
||||
namespace DayNight { struct DNPlanet; }
|
||||
struct LightRec;
|
||||
|
||||
struct AreaLightQueueEntry {
|
||||
/* 0000 */ float m_key;
|
||||
/* 0004 */ LightRec** m_light;
|
||||
};
|
||||
|
||||
struct DNKeyframe {
|
||||
/* 0000 */ float m_time;
|
||||
/* 0004 */ float m_value;
|
||||
};
|
||||
|
||||
class DNLightBands {
|
||||
public:
|
||||
/* 0000 */ CImVector m_ambient;
|
||||
/* 0004 */ CImVector m_diffuse;
|
||||
/* 0008 */ CImVector m_shadowOpacity;
|
||||
/* 000C */ CImVector m_sky0;
|
||||
/* 0010 */ CImVector m_sky1;
|
||||
/* 0014 */ CImVector m_sky2;
|
||||
/* 0018 */ CImVector m_sky3;
|
||||
/* 001C */ CImVector m_sky4;
|
||||
/* 0020 */ CImVector m_skyFog;
|
||||
/* 0024 */ CImVector m_sunColor;
|
||||
/* 0028 */ CImVector m_cloudColor0;
|
||||
/* 002C */ CImVector m_cloudColor1;
|
||||
/* 0030 */ CImVector m_cloudColor2;
|
||||
/* 0034 */ CImVector m_band13;
|
||||
/* 0038 */ CImVector m_band14;
|
||||
/* 003C */ CImVector m_band15;
|
||||
/* 0040 */ CImVector m_band16;
|
||||
/* 0044 */ CImVector m_band17;
|
||||
/* 0048 */ float m_fogEnd;
|
||||
/* 004C */ float m_fogStartMul;
|
||||
/* 0050 */ float m_fogRate;
|
||||
/* 0054 */ float m_highlightSky;
|
||||
/* 0058 */ float m_glow;
|
||||
/* 005C */ float m_floatBand2;
|
||||
/* 0060 */ float m_cloudDensity;
|
||||
/* 0064 */ float m_floatBand4;
|
||||
/* 0068 */ float m_floatBand5;
|
||||
/* 006C */ float m_waterShallowAlpha;
|
||||
/* 0070 */ float m_waterDeepAlpha;
|
||||
/* 0074 */ float m_oceanShallowAlpha;
|
||||
/* 0078 */ float m_oceanDeepAlpha;
|
||||
/* 007C */ uint32_t m_skyboxId0;
|
||||
/* 0080 */ float m_skyboxWeight0;
|
||||
/* 0084 */ uint32_t m_skyboxId1;
|
||||
/* 0088 */ float m_skyboxWeight1;
|
||||
/* 008C */ uint32_t m_skyboxId2;
|
||||
/* 0090 */ float m_skyboxWeight2;
|
||||
/* 0094 */ uint32_t m_cloudTypeId;
|
||||
/* 0098 */ float m_cloudWeight;
|
||||
};
|
||||
|
||||
struct DNOverrideSky {
|
||||
/* 0000 */ uint32_t m_hashval;
|
||||
/* 0004 */ uint8_t m_hashInternals [16];
|
||||
/* 0014 */ char* m_name;
|
||||
/* 0018 */ CM2Model* m_model;
|
||||
/* 001C */ uint32_t m_animLengthMs;
|
||||
/* 0020 */ uint32_t m_lastTimeOfDay;
|
||||
/* 0024 */ uint32_t m_flags;
|
||||
};
|
||||
|
||||
namespace DayNight {
|
||||
struct DNClouds {
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint8_t m_density;
|
||||
/* 0009 */ uint8_t unk_0009;
|
||||
/* 000A */ uint8_t unk_000A;
|
||||
/* 000B */ uint8_t unk_000B;
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ uint32_t unk_0010;
|
||||
/* 0014 */ uint32_t unk_0014;
|
||||
/* 0018 */ uint32_t unk_0018;
|
||||
/* 001C */ uint32_t unk_001C;
|
||||
/* 0020 */ uint32_t unk_0020;
|
||||
/* 0024 */ uint32_t unk_0024;
|
||||
/* 0028 */ uint32_t unk_0028;
|
||||
/* 002C */ uint32_t unk_002C;
|
||||
/* 0030 */ uint32_t unk_0030;
|
||||
/* 0034 */ uint32_t unk_0034;
|
||||
/* 0038 */ uint32_t unk_0038;
|
||||
/* 003C */ uint32_t unk_003C;
|
||||
/* 0040 */ uint32_t unk_0040;
|
||||
/* 0044 */ uint32_t unk_0044;
|
||||
/* 0048 */ uint32_t unk_0048;
|
||||
/* 004C */ uint32_t unk_004C;
|
||||
/* 0050 */ uint32_t unk_0050;
|
||||
/* 0054 */ TSFixedArray<void> unk_0054;
|
||||
/* 0060 */ TSFixedArray<void> unk_0060;
|
||||
/* 006C */ TSFixedArray<void> unk_006C;
|
||||
/* 0078 */ TSFixedArray<void> unk_0078;
|
||||
/* 0084 */ uint16_t unk_0084;
|
||||
/* 0086 */ uint16_t unk_0086;
|
||||
/* 0088 */ uint32_t unk_0088;
|
||||
/* 008C */ uint32_t unk_008C;
|
||||
/* 0090 */ uint32_t unk_0090;
|
||||
/* 0094 */ uint32_t unk_0094;
|
||||
};
|
||||
}
|
||||
|
||||
namespace DayNight {
|
||||
struct DNGlare {
|
||||
/* 0000 */ void* m_vtbl;
|
||||
/* 0004 */ uint32_t m_occlusionQuery;
|
||||
/* 0008 */ uint32_t m_enable;
|
||||
/* 000C */ C3Vector m_position;
|
||||
/* 0018 */ CImVector m_color;
|
||||
/* 001C */ CTexture* m_texture;
|
||||
/* 0020 */ float m_baseScale;
|
||||
/* 0024 */ float m_scale;
|
||||
/* 0028 */ float m_fadeInRate;
|
||||
/* 002C */ float m_fadeOutRate;
|
||||
/* 0030 */ float m_fade;
|
||||
/* 0034 */ float m_fadeTarget;
|
||||
/* 0038 */ uint32_t m_skipOcclusionOnce;
|
||||
/* 003C */ uint8_t unk_003C [48];
|
||||
/* 006C */ uint32_t m_occlusionPixels;
|
||||
/* 0070 */ DNKeyframe m_alphaCurve [4];
|
||||
/* 0090 */ float m_scaleMin;
|
||||
/* 0094 */ float m_scaleMax;
|
||||
/* 0098 */ float m_minDot;
|
||||
/* 009C */ float m_alphaMin;
|
||||
/* 00A0 */ float m_alphaMax;
|
||||
/* 00A4 */ float m_screenGlow;
|
||||
/* 00A8 */ DayNight::DNPlanet* m_planet;
|
||||
};
|
||||
}
|
||||
|
||||
namespace DayNight {
|
||||
struct DNPlanet {
|
||||
/* 0000 */ C3Vector m_position;
|
||||
/* 000C */ CImVector m_color;
|
||||
/* 0010 */ CTexture* m_texture;
|
||||
/* 0014 */ float m_scale;
|
||||
/* 0018 */ float m_baseScale;
|
||||
/* 001C */ float m_period;
|
||||
};
|
||||
}
|
||||
|
||||
namespace DayNight {
|
||||
struct DNPlanets {
|
||||
/* 0000 */ DayNight::DNPlanet m_sun;
|
||||
/* 0020 */ DayNight::DNPlanet m_moon;
|
||||
/* 0040 */ DayNight::DNPlanet m_moon2;
|
||||
/* 0060 */ uint32_t unk_0060;
|
||||
/* 0064 */ uint32_t unk_0064;
|
||||
/* 0068 */ uint32_t unk_0068;
|
||||
/* 006C */ uint32_t unk_006C;
|
||||
};
|
||||
}
|
||||
|
||||
namespace DayNight {
|
||||
struct DNSky {
|
||||
/* 0000 */ TSFixedArray<void> m_geoVerts;
|
||||
/* 000C */ TSFixedArray<void> m_clrVerts;
|
||||
/* 0018 */ TSFixedArray<void> m_indices;
|
||||
/* 0024 */ uint32_t m_sphThetaTess;
|
||||
/* 0028 */ uint16_t m_nVerts;
|
||||
/* 002A */ uint16_t m_nIndices;
|
||||
/* 002C */ float m_sphRadius;
|
||||
};
|
||||
}
|
||||
|
||||
namespace DayNight {
|
||||
struct DNStars {
|
||||
/* 0000 */ CM2Scene* m_scene;
|
||||
/* 0004 */ CM2Model* m_model;
|
||||
/* 0008 */ CImVector m_color;
|
||||
/* 000C */ C3Vector m_position;
|
||||
/* 0018 */ uint32_t m_lastTimeMs;
|
||||
};
|
||||
}
|
||||
|
||||
struct SMOFog {
|
||||
/* 0000 */ uint32_t m_flags;
|
||||
/* 0004 */ C3Vector m_position;
|
||||
/* 0010 */ float m_smallerRadius;
|
||||
/* 0014 */ float m_largerRadius;
|
||||
/* 0018 */ float m_fogEnd;
|
||||
/* 001C */ float m_fogStartScalar;
|
||||
/* 0020 */ CImVector m_fogColor;
|
||||
/* 0024 */ float m_uwFogEnd;
|
||||
/* 0028 */ float m_uwFogStartScalar;
|
||||
/* 002C */ CImVector m_uwFogColor;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
||||
|
||||
add_library(Event STATIC
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(Event
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
#include "CMouseEvent.h"
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef ENGINE_SOURCE_EVENT_CMOUSEEVENT_H
|
||||
#define ENGINE_SOURCE_EVENT_CMOUSEEVENT_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <windows.h>
|
||||
#include "Engine/Source/Tempest/C2Vector.h"
|
||||
|
||||
class CMouseEvent {
|
||||
public:
|
||||
/* 0000 */ void* m_vtable;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint32_t m_id;
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ MouseEventData m_data;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "CSBasePriorityQueue.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_EVENT_CSBASEPRIORITYQUEUE_H
|
||||
#define ENGINE_SOURCE_EVENT_CSBASEPRIORITYQUEUE_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "EvtContext.h"
|
||||
@@ -0,0 +1,142 @@
|
||||
#ifndef ENGINE_SOURCE_EVENT_EVTCONTEXT_H
|
||||
#define ENGINE_SOURCE_EVENT_EVTCONTEXT_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <windows.h>
|
||||
#include "Engine/Source/Event/EvtTimer.h"
|
||||
#include "Engine/Source/Event/Types.h"
|
||||
#include "Storm/H/stpl.h"
|
||||
#include "_Triage/SCritSect.h"
|
||||
|
||||
class EvtContext;
|
||||
struct EvtHandler;
|
||||
struct EvtKeyDown;
|
||||
struct EvtMessage;
|
||||
struct EvtTimer;
|
||||
struct HPROPCONTEXT__;
|
||||
|
||||
template <class T>
|
||||
class CSBasePriorityQueue {
|
||||
public:
|
||||
/* 0000 */ TSGrowableArray<T> m_array;
|
||||
/* 0010 */ uint32_t m_linkOffset;
|
||||
};
|
||||
|
||||
class CSBasePriority {
|
||||
public:
|
||||
/* 0000 */ CSBasePriorityQueue<void>* m_queue;
|
||||
/* 0004 */ uint32_t m_index;
|
||||
};
|
||||
|
||||
struct EvtHandler {
|
||||
/* 0000 */ TSLink<EvtHandler> m_link;
|
||||
/* 0008 */ int32_t (__stdcall* m_func )(const void*, void*);
|
||||
/* 000C */ void* m_param;
|
||||
/* 0010 */ float m_priority;
|
||||
/* 0014 */ int32_t m_marker;
|
||||
};
|
||||
|
||||
struct EvtKeyDown {
|
||||
/* 0000 */ TSLink<EvtKeyDown> m_link;
|
||||
/* 0008 */ KEY m_key;
|
||||
};
|
||||
|
||||
struct TExtraInstanceRecyclable {
|
||||
/* 0000 */ uint32_t m_recycleBytes;
|
||||
};
|
||||
|
||||
struct EvtMessage : public TExtraInstanceRecyclable {
|
||||
/* 0004 */ TSLink<EvtMessage> m_link;
|
||||
/* 000C */ uint8_t m_id[4];
|
||||
/* 0010 */ char m_data [4];
|
||||
};
|
||||
|
||||
class TSTimerPriority_uint32_t : public CSBasePriority {
|
||||
public:
|
||||
/* 000C */ uint32_t m_val;
|
||||
|
||||
virtual ~TSTimerPriority_uint32_t();
|
||||
};
|
||||
|
||||
struct EvtTimer {
|
||||
/* 0000 */ uint32_t m_id;
|
||||
/* 0004 */ TSTimerPriority_uint32_t m_targetTime;
|
||||
/* 0014 */ float m_timeout;
|
||||
/* 0018 */ int32_t (__stdcall* m_handler )(const void*, void*);
|
||||
/* 001C */ void* m_param;
|
||||
/* 0020 */ int32_t (__stdcall* m_guidHandler )(const void*, uint64_t, void*);
|
||||
/* 0024 */ uint8_t unk_0024[4];
|
||||
/* 0028 */ uint64_t m_guidParam;
|
||||
/* 0030 */ void* m_guidParam2;
|
||||
/* 0034 */ uint8_t unk_0034[4];
|
||||
};
|
||||
|
||||
template <class T>
|
||||
struct TSPriorityQueue : public CSBasePriority {
|
||||
};
|
||||
|
||||
struct EvtTimerQueue : public TSPriorityQueue<EvtTimer> {
|
||||
};
|
||||
|
||||
typedef HPROPCONTEXT__* HPROPCONTEXT;
|
||||
|
||||
template <class T>
|
||||
struct EvtIdTable {
|
||||
/* 0000 */ TSGrowableArray<T> m_allocArray;
|
||||
/* 0010 */ TSGrowableArray<uint32_t> m_freeArray;
|
||||
};
|
||||
|
||||
template <class T>
|
||||
class TInstanceId : public TSLinkedNode<T> {
|
||||
public:
|
||||
/* 000C */ uint32_t m_id;
|
||||
|
||||
virtual ~TInstanceId();
|
||||
};
|
||||
|
||||
template <class T>
|
||||
struct TSingletonInstanceId : public TInstanceId<T> {
|
||||
};
|
||||
|
||||
class EvtContext : public TSingletonInstanceId<EvtContext> {
|
||||
public:
|
||||
/* 0010 */ SCritSect m_critsect;
|
||||
/* 0038 */ uint32_t m_currTime;
|
||||
/* 003C */ SCHEDSTATE m_schedState;
|
||||
/* 0040 */ TSTimerPriority_uint32_t m_schedNextWakeTime;
|
||||
/* 0050 */ uint32_t m_schedLastIdle;
|
||||
/* 0054 */ uint32_t m_schedFlags;
|
||||
/* 0058 */ uint32_t m_schedIdleTime;
|
||||
/* 005C */ uint32_t m_schedInitialIdleTime;
|
||||
/* 0060 */ uint32_t m_schedWeight;
|
||||
/* 0064 */ uint32_t m_schedSmoothWeight;
|
||||
/* 0068 */ int32_t m_schedRebalance;
|
||||
/* 006C */ TSExplicitList<EvtHandler> m_queueHandlerList [36];
|
||||
/* 021C */ TSExplicitList<EvtMessage> m_queueMessageList;
|
||||
/* 0228 */ uint32_t m_queueSyncButtonState;
|
||||
/* 022C */ TSExplicitList<EvtKeyDown> m_queueSyncKeyDownList;
|
||||
/* 0238 */ EvtIdTable<EvtTimer*> m_timerIdTable;
|
||||
/* 0258 */ EvtTimerQueue m_timerQueue;
|
||||
/* 0260 */ HPROPCONTEXT m_propContext;
|
||||
/* 0264 */ int32_t unk_0264;
|
||||
/* 0268 */ int32_t unk_0268;
|
||||
/* 026C */ int32_t unk_026C;
|
||||
/* 0270 */ void* m_callContext;
|
||||
/* 0274 */ uint32_t m_startWatchdog;
|
||||
};
|
||||
|
||||
struct HPROPCONTEXT__ {
|
||||
/* 0000 */ int32_t m_unused;
|
||||
};
|
||||
|
||||
template <class T>
|
||||
struct TInstanceIdTable {
|
||||
/* 0000 */ SCritSect m_idCritSect;
|
||||
/* 0028 */ uint32_t m_id;
|
||||
/* 002C */ int32_t m_idWrapped;
|
||||
/* 0030 */ CSRWLock m_idLock [8];
|
||||
/* 0090 */ TSList<T> m_idList [8];
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "EvtContextQueue.h"
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef ENGINE_SOURCE_EVENT_EVTCONTEXTQUEUE_H
|
||||
#define ENGINE_SOURCE_EVENT_EVTCONTEXTQUEUE_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include "Engine/Source/Event/EvtContext.h"
|
||||
|
||||
class EvtContext;
|
||||
|
||||
class EvtContextQueue : public TSPriorityQueue<EvtContext> {
|
||||
public:
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "EvtSched.h"
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef ENGINE_SOURCE_EVENT_EVTSCHED_H
|
||||
#define ENGINE_SOURCE_EVENT_EVTSCHED_H
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "EvtThread.h"
|
||||
@@ -0,0 +1,24 @@
|
||||
#ifndef ENGINE_SOURCE_EVENT_EVTTHREAD_H
|
||||
#define ENGINE_SOURCE_EVENT_EVTTHREAD_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include "Engine/Source/Event/EvtContextQueue.h"
|
||||
#include "Storm/H/stpl.h"
|
||||
#include "_Triage/SEvent.h"
|
||||
|
||||
class EvtThread;
|
||||
|
||||
class EvtThread : public TSLinkedNode<EvtThread> {
|
||||
public:
|
||||
/* 0008 */ uint32_t m_threadSlot;
|
||||
/* 000C */ uint32_t m_threadCount;
|
||||
/* 0010 */ uint32_t m_weightTotal;
|
||||
/* 0014 */ uint32_t m_weightAvg;
|
||||
/* 0018 */ uint32_t m_contextCount;
|
||||
/* 001C */ uint32_t m_rebalance;
|
||||
/* 0020 */ SEvent m_wakeEvent;
|
||||
/* 0024 */ EvtContextQueue m_contextQueue;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "EvtTimer.h"
|
||||
@@ -0,0 +1,12 @@
|
||||
#ifndef ENGINE_SOURCE_EVENT_EVTTIMER_H
|
||||
#define ENGINE_SOURCE_EVENT_EVTTIMER_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class CSRWLock {
|
||||
public:
|
||||
/* 0000 */ uint8_t m_opaqueData [12];
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,128 @@
|
||||
#ifndef ENGINE_SOURCE_EVENT_TYPES_H
|
||||
#define ENGINE_SOURCE_EVENT_TYPES_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
enum KEY : uint32_t {
|
||||
KEY_NONE = 0xFFFFFFFFFFFFFFFF,
|
||||
KEY_LSHIFT = 0,
|
||||
KEY_RSHIFT = 1,
|
||||
KEY_LCONTROL = 2,
|
||||
KEY_RCONTROL = 3,
|
||||
KEY_LALT = 4,
|
||||
KEY_RALT = 5,
|
||||
KEY_LASTMETAKEY = 5,
|
||||
KEY_SPACE = 32,
|
||||
KEY_0 = 48,
|
||||
KEY_1 = 49,
|
||||
KEY_2 = 50,
|
||||
KEY_3 = 51,
|
||||
KEY_4 = 52,
|
||||
KEY_5 = 53,
|
||||
KEY_6 = 54,
|
||||
KEY_7 = 55,
|
||||
KEY_8 = 56,
|
||||
KEY_9 = 57,
|
||||
KEY_A = 65,
|
||||
KEY_B = 66,
|
||||
KEY_C = 67,
|
||||
KEY_D = 68,
|
||||
KEY_E = 69,
|
||||
KEY_F = 70,
|
||||
KEY_G = 71,
|
||||
KEY_H = 72,
|
||||
KEY_I = 73,
|
||||
KEY_J = 74,
|
||||
KEY_K = 75,
|
||||
KEY_L = 76,
|
||||
KEY_M = 77,
|
||||
KEY_N = 78,
|
||||
KEY_O = 79,
|
||||
KEY_P = 80,
|
||||
KEY_Q = 81,
|
||||
KEY_R = 82,
|
||||
KEY_S = 83,
|
||||
KEY_T = 84,
|
||||
KEY_U = 85,
|
||||
KEY_V = 86,
|
||||
KEY_W = 87,
|
||||
KEY_X = 88,
|
||||
KEY_Y = 89,
|
||||
KEY_Z = 90,
|
||||
KEY_TILDE = 96,
|
||||
KEY_NUMPAD0 = 0x100,
|
||||
KEY_NUMPAD1 = 0x101,
|
||||
KEY_NUMPAD2 = 0x102,
|
||||
KEY_NUMPAD3 = 0x103,
|
||||
KEY_NUMPAD4 = 0x104,
|
||||
KEY_NUMPAD5 = 0x105,
|
||||
KEY_NUMPAD6 = 0x106,
|
||||
KEY_NUMPAD7 = 0x107,
|
||||
KEY_NUMPAD8 = 0x108,
|
||||
KEY_NUMPAD9 = 0x109,
|
||||
KEY_NUMPAD_PLUS = 0x10A,
|
||||
KEY_NUMPAD_MINUS = 0x10B,
|
||||
KEY_NUMPAD_MULTIPLY = 0x10C,
|
||||
KEY_NUMPAD_DIVIDE = 0x10D,
|
||||
KEY_NUMPAD_DECIMAL = 0x10E,
|
||||
KEY_NUMPAD_EQUALS = 0x30C,
|
||||
KEY_PLUS = 61,
|
||||
KEY_MINUS = 45,
|
||||
KEY_BRACKET_OPEN = 91,
|
||||
KEY_BRACKET_CLOSE = 93,
|
||||
KEY_SLASH = 47,
|
||||
KEY_BACKSLASH = 92,
|
||||
KEY_SEMICOLON = 59,
|
||||
KEY_APOSTROPHE = 39,
|
||||
KEY_COMMA = 44,
|
||||
KEY_PERIOD = 46,
|
||||
KEY_ESCAPE = 0x200,
|
||||
KEY_ENTER = 0x201,
|
||||
KEY_BACKSPACE = 0x202,
|
||||
KEY_TAB = 0x203,
|
||||
KEY_LEFT = 0x204,
|
||||
KEY_UP = 0x205,
|
||||
KEY_RIGHT = 0x206,
|
||||
KEY_DOWN = 0x207,
|
||||
KEY_INSERT = 0x208,
|
||||
KEY_DELETE = 0x209,
|
||||
KEY_HOME = 0x20A,
|
||||
KEY_END = 0x20B,
|
||||
KEY_PAGEUP = 0x20C,
|
||||
KEY_PAGEDOWN = 0x20D,
|
||||
KEY_CAPSLOCK = 0x20E,
|
||||
KEY_NUMLOCK = 0x20F,
|
||||
KEY_SCROLLLOCK = 0x210,
|
||||
KEY_PAUSE = 0x211,
|
||||
KEY_PRINTSCREEN = 0x212,
|
||||
KEY_F1 = 0x300,
|
||||
KEY_F2 = 0x301,
|
||||
KEY_F3 = 0x302,
|
||||
KEY_F4 = 0x303,
|
||||
KEY_F5 = 0x304,
|
||||
KEY_F6 = 0x305,
|
||||
KEY_F7 = 0x306,
|
||||
KEY_F8 = 0x307,
|
||||
KEY_F9 = 0x308,
|
||||
KEY_F10 = 0x309,
|
||||
KEY_F11 = 0x30A,
|
||||
KEY_F12 = 0x30B,
|
||||
KEY_F13 = 0x212,
|
||||
KEY_F14 = 0x30D,
|
||||
KEY_F15 = 0x30E,
|
||||
KEY_F16 = 0x30F,
|
||||
KEY_F17 = 0x310,
|
||||
KEY_F18 = 0x311,
|
||||
KEY_F19 = 0x312,
|
||||
KEY_LAST = 0x313,
|
||||
};
|
||||
|
||||
enum SCHEDSTATE : uint32_t {
|
||||
SCHEDSTATE_ACTIVE = 0,
|
||||
SCHEDSTATE_CLOSED = 1,
|
||||
SCHEDSTATE_DESTROYED = 2,
|
||||
_UNIQUE_SYMBOL_SCHEDSTATE_96 = 0xFFFFFFFFFFFFFFFF,
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
file(GLOB_RECURSE PRIVATE_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
||||
|
||||
add_library(FFX STATIC
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(FFX
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
#include "EffectGlow.h"
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef ENGINE_SOURCE_FFX_EFFECTGLOW_H
|
||||
#define ENGINE_SOURCE_FFX_EFFECTGLOW_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include "Engine/Source/FFX/FFX.h"
|
||||
|
||||
class EffectGlow : public Effect {
|
||||
public:
|
||||
/* 001C */ uint32_t unk_001C;
|
||||
/* 0020 */ uint32_t unk_0020;
|
||||
/* 0024 */ uint32_t unk_0024;
|
||||
/* 0028 */ uint32_t unk_0028;
|
||||
/* 002C */ uint32_t unk_002C;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include "FFX.h"
|
||||
@@ -0,0 +1,37 @@
|
||||
#ifndef ENGINE_SOURCE_FFX_FFX_H
|
||||
#define ENGINE_SOURCE_FFX_FFX_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
struct Effect {
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ int32_t m_svFfxGlow;
|
||||
/* 0008 */ uint32_t unk_0008;
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ uint32_t unk_0010;
|
||||
/* 0014 */ uint32_t unk_0014;
|
||||
/* 0018 */ uint8_t unk_0018;
|
||||
/* 0019 */ uint8_t unk_0019;
|
||||
/* 001A */ uint8_t unk_001A;
|
||||
/* 001B */ uint8_t unk_001B;
|
||||
};
|
||||
|
||||
class FFX {
|
||||
public:
|
||||
/* 0000 */ uint32_t unk_0000;
|
||||
/* 0004 */ uint32_t unk_0004;
|
||||
/* 0008 */ uint32_t unk_0008;
|
||||
/* 000C */ uint32_t unk_000C;
|
||||
/* 0010 */ uint32_t unk_0010;
|
||||
/* 0014 */ uint32_t unk_0014;
|
||||
/* 0018 */ uint32_t unk_0018;
|
||||
/* 001C */ uint32_t unk_001C;
|
||||
/* 0020 */ uint32_t unk_0020;
|
||||
/* 0024 */ uint32_t unk_0024;
|
||||
/* 0028 */ uint32_t unk_0028;
|
||||
/* 002C */ uint8_t unk_002C[132];
|
||||
/* 00B0 */ uint8_t unk_00B0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user