-
Notifications
You must be signed in to change notification settings - Fork 965
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize size of GameDependencies initialization code and const data
- Loading branch information
1 parent
2f6fca5
commit 8f6d02a
Showing
13 changed files
with
189 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#pragma once | ||
|
||
#include <CS2/Classes/Entities/WeaponEntities.h> | ||
#include <Platform/Macros/PlatformSpecific.h> | ||
#include <Utils/TypedStaticStringPool.h> | ||
|
||
namespace cs2 | ||
{ | ||
|
||
constexpr auto kEntityTypeNames = TypedStaticStringPool{} | ||
.add<C_CSPlayerPawn>(WIN64_LINUX(".?AVC_CSPlayerPawn@@", "14C_CSPlayerPawn")) | ||
.add<C_WeaponGlock>(WIN64_LINUX(".?AVC_WeaponGlock@@", "13C_WeaponGlock")) | ||
.add<C_WeaponHKP2000>(WIN64_LINUX(".?AVC_WeaponHKP2000@@", "15C_WeaponHKP2000")) | ||
.add<C_WeaponElite>(WIN64_LINUX(".?AVC_WeaponElite@@", "13C_WeaponElite")) | ||
.add<C_WeaponP250>(WIN64_LINUX(".?AVC_WeaponP250@@", "12C_WeaponP250")) | ||
.add<C_WeaponTec9>(WIN64_LINUX(".?AVC_WeaponTec9@@", "12C_WeaponTec9")) | ||
.add<C_WeaponFiveSeven>(WIN64_LINUX(".?AVC_WeaponFiveSeven@@", "17C_WeaponFiveSeven")) | ||
.add<C_DEagle>(WIN64_LINUX(".?AVC_DEagle@@", "8C_DEagle")) | ||
.add<C_WeaponMAC10>(WIN64_LINUX(".?AVC_WeaponMAC10@@", "13C_WeaponMAC10")) | ||
.add<C_WeaponMP7>(WIN64_LINUX(".?AVC_WeaponMP7@@", "11C_WeaponMP7")) | ||
.add<C_WeaponMP9>(WIN64_LINUX(".?AVC_WeaponMP9@@", "11C_WeaponMP9")) | ||
.add<C_WeaponBizon>(WIN64_LINUX(".?AVC_WeaponBizon@@", "13C_WeaponBizon")) | ||
.add<C_WeaponP90>(WIN64_LINUX(".?AVC_WeaponP90@@", "11C_WeaponP90")) | ||
.add<C_WeaponUMP45>(WIN64_LINUX(".?AVC_WeaponUMP45@@", "13C_WeaponUMP45")) | ||
.add<C_WeaponMag7>(WIN64_LINUX(".?AVC_WeaponMag7@@", "12C_WeaponMag7")) | ||
.add<C_WeaponSawedoff>(WIN64_LINUX(".?AVC_WeaponSawedoff@@", "16C_WeaponSawedoff")) | ||
.add<C_WeaponXM1014>(WIN64_LINUX(".?AVC_WeaponXM1014@@", "14C_WeaponXM1014")) | ||
.add<C_WeaponNOVA>(WIN64_LINUX(".?AVC_WeaponNOVA@@", "12C_WeaponNOVA")) | ||
.add<C_WeaponM249>(WIN64_LINUX(".?AVC_WeaponM249@@", "12C_WeaponM249")) | ||
.add<C_WeaponNegev>(WIN64_LINUX(".?AVC_WeaponNegev@@", "13C_WeaponNegev")) | ||
.add<C_WeaponGalilAR>(WIN64_LINUX(".?AVC_WeaponGalilAR@@", "15C_WeaponGalilAR")) | ||
.add<C_WeaponFamas>(WIN64_LINUX(".?AVC_WeaponFamas@@", "13C_WeaponFamas")) | ||
.add<C_AK47>(WIN64_LINUX(".?AVC_AK47@@", "6C_AK47")) | ||
.add<C_WeaponM4A1>(WIN64_LINUX(".?AVC_WeaponM4A1@@", "12C_WeaponM4A1")) | ||
.add<C_WeaponSG556>(WIN64_LINUX(".?AVC_WeaponSG556@@", "13C_WeaponSG556")) | ||
.add<C_WeaponAug>(WIN64_LINUX(".?AVC_WeaponAug@@", "11C_WeaponAug")) | ||
.add<C_WeaponSSG08>(WIN64_LINUX(".?AVC_WeaponSSG08@@", "13C_WeaponSSG08")) | ||
.add<C_WeaponAWP>(WIN64_LINUX(".?AVC_WeaponAWP@@", "11C_WeaponAWP")) | ||
.add<C_WeaponG3SG1>(WIN64_LINUX(".?AVC_WeaponG3SG1@@", "13C_WeaponG3SG1")) | ||
.add<C_WeaponSCAR20>(WIN64_LINUX(".?AVC_WeaponSCAR20@@", "14C_WeaponSCAR20")) | ||
.add<C_WeaponTaser>(WIN64_LINUX(".?AVC_WeaponTaser@@", "13C_WeaponTaser")) | ||
.add<C_Knife>(WIN64_LINUX(".?AVC_Knife@@", "7C_Knife")) | ||
.add<C_Flashbang>(WIN64_LINUX(".?AVC_Flashbang@@", "11C_Flashbang")) | ||
.add<C_HEGrenade>(WIN64_LINUX(".?AVC_HEGrenade@@", "11C_HEGrenade")) | ||
.add<C_SmokeGrenade>(WIN64_LINUX(".?AVC_SmokeGrenade@@", "14C_SmokeGrenade")) | ||
.add<C_MolotovGrenade>(WIN64_LINUX(".?AVC_MolotovGrenade@@", "16C_MolotovGrenade")) | ||
.add<C_IncendiaryGrenade>(WIN64_LINUX(".?AVC_IncendiaryGrenade@@", "19C_IncendiaryGrenade")) | ||
.add<C_DecoyGrenade>(WIN64_LINUX(".?AVC_DecoyGrenade@@", "14C_DecoyGrenade")) | ||
.add<CBaseAnimGraph>(WIN64_LINUX(".?AVCBaseAnimGraph@@", "14CBaseAnimGraph")) | ||
.add<C_HEGrenadeProjectile>(WIN64_LINUX(".?AVC_HEGrenadeProjectile@@", "21C_HEGrenadeProjectile")) | ||
.add<C_SmokeGrenadeProjectile>(WIN64_LINUX(".?AVC_SmokeGrenadeProjectile@@", "24C_SmokeGrenadeProjectile")) | ||
.add<C_MolotovProjectile>(WIN64_LINUX(".?AVC_MolotovProjectile@@", "19C_MolotovProjectile")) | ||
.add<C_FlashbangProjectile>(WIN64_LINUX(".?AVC_FlashbangProjectile@@", "21C_FlashbangProjectile")) | ||
.add<C_C4>(WIN64_LINUX(".?AVC_C4@@", "4C_C4")); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#include <CS2/Panorama/StyleProperties.h> | ||
#include <Utils/TypedStaticStringPool.h> | ||
|
||
namespace cs2 | ||
{ | ||
|
||
constexpr auto kStylePropertySymbolNames = TypedStaticStringPool{} | ||
.add<CStylePropertyWidth>("width") | ||
.add<CStylePropertyOpacity>("opacity") | ||
.add<CStylePropertyZIndex>("z-index") | ||
.add<CStylePropertyHeight>("height") | ||
.add<CStylePropertyImageShadow>("img-shadow") | ||
.add<CStylePropertyPosition>("position") | ||
.add<CStylePropertyTransformOrigin>("transform-origin") | ||
.add<CStylePropertyAlign>("align") | ||
.add<CStylePropertyWashColor>("wash-color") | ||
.add<CStylePropertyFlowChildren>("flow-children") | ||
.add<CStylePropertyFont>("font") | ||
.add<CStylePropertyTextShadow>("text-shadow") | ||
.add<CStylePropertyMargin>("margin") | ||
.add<CStylePropertyMixBlendMode>("-s2-mix-blend-mode") | ||
.add<CStylePropertyTextAlign>("text-align"); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include <CS2/Panorama/StyleProperties.h> | ||
#include <Platform/Macros/PlatformSpecific.h> | ||
#include <Utils/TypedStaticStringPool.h> | ||
|
||
namespace cs2 | ||
{ | ||
|
||
constexpr auto kStylePropertyTypeNames = TypedStaticStringPool{} | ||
.add<CStylePropertyWidth>(WIN64_LINUX(".?AVCStylePropertyWidth@panorama@@", "N8panorama19CStylePropertyWidthE")) | ||
.add<CStylePropertyOpacity>(WIN64_LINUX(".?AVCStylePropertyOpacity@panorama@@", "N8panorama21CStylePropertyOpacityE")) | ||
.add<CStylePropertyZIndex>(WIN64_LINUX(".?AVCStylePropertyZIndex@panorama@@", "N8panorama20CStylePropertyZIndexE")) | ||
.add<CStylePropertyHeight>(WIN64_LINUX(".?AVCStylePropertyHeight@panorama@@", "N8panorama20CStylePropertyHeightE")) | ||
.add<CStylePropertyImageShadow>(WIN64_LINUX(".?AVCStylePropertyImageShadow@panorama@@", "N8panorama25CStylePropertyImageShadowE")) | ||
.add<CStylePropertyPosition>(WIN64_LINUX(".?AVCStylePropertyPosition@panorama@@", "N8panorama22CStylePropertyPositionE")) | ||
.add<CStylePropertyTransformOrigin>(WIN64_LINUX(".?AVCStylePropertyTransformOrigin@panorama@@", "N8panorama29CStylePropertyTransformOriginE")) | ||
.add<CStylePropertyAlign>(WIN64_LINUX(".?AVCStylePropertyAlign@panorama@@", "N8panorama19CStylePropertyAlignE")) | ||
.add<CStylePropertyWashColor>(WIN64_LINUX(".?AVCStylePropertyWashColor@panorama@@", "N8panorama23CStylePropertyWashColorE")) | ||
.add<CStylePropertyFlowChildren>(WIN64_LINUX(".?AVCStylePropertyFlowChildren@panorama@@", "N8panorama26CStylePropertyFlowChildrenE")) | ||
.add<CStylePropertyFont>(WIN64_LINUX(".?AVCStylePropertyFont@panorama@@", "N8panorama18CStylePropertyFontE")) | ||
.add<CStylePropertyTextShadow>(WIN64_LINUX(".?AVCStylePropertyTextShadow@panorama@@", "N8panorama24CStylePropertyTextShadowE")) | ||
.add<CStylePropertyMargin>(WIN64_LINUX(".?AVCStylePropertyMargin@panorama@@", "N8panorama20CStylePropertyMarginE")) | ||
.add<CStylePropertyMixBlendMode>(WIN64_LINUX(".?AVCStylePropertyMixBlendMode@panorama@@", "N8panorama26CStylePropertyMixBlendModeE")) | ||
.add<CStylePropertyTextAlign>(WIN64_LINUX(".?AVCStylePropertyTextAlign@panorama@@", "N8panorama23CStylePropertyTextAlignE")); | ||
|
||
} |
Oops, something went wrong.