mirror of
				https://github.com/Laupetin/OpenAssetTools.git
				synced 2025-10-31 10:36:58 +00:00 
			
		
		
		
	chore: inject ZoneAssetCreationStateCollection to states
This commit is contained in:
		| @@ -10,11 +10,11 @@ MenuConversionZoneState::MenuConversionZoneState() | ||||
| { | ||||
| } | ||||
|  | ||||
| void MenuConversionZoneState::SetZone(Zone* zone) | ||||
| void MenuConversionZoneState::Inject(ZoneAssetCreationInjection& inject) | ||||
| { | ||||
|     auto* memory = zone->GetMemory(); | ||||
|     auto* memory = inject.m_zone.GetMemory(); | ||||
|  | ||||
|     m_zone = zone; | ||||
|     m_zone = &inject.m_zone; | ||||
|     m_supporting_data = memory->Create<ExpressionSupportingData>(); | ||||
|     memset(m_supporting_data, 0, sizeof(ExpressionSupportingData)); | ||||
| } | ||||
|   | ||||
| @@ -24,7 +24,7 @@ namespace IW4 | ||||
|         ExpressionSupportingData* m_supporting_data; | ||||
|  | ||||
|         MenuConversionZoneState(); | ||||
|         void SetZone(Zone* zone) override; | ||||
|         void Inject(ZoneAssetCreationInjection& inject) override; | ||||
|  | ||||
|         Statement_s* FindFunction(const std::string& functionName); | ||||
|  | ||||
|   | ||||
| @@ -10,11 +10,11 @@ MenuConversionZoneState::MenuConversionZoneState() | ||||
| { | ||||
| } | ||||
|  | ||||
| void MenuConversionZoneState::SetZone(Zone* zone) | ||||
| void MenuConversionZoneState::Inject(ZoneAssetCreationInjection& inject) | ||||
| { | ||||
|     auto* memory = zone->GetMemory(); | ||||
|     auto* memory = inject.m_zone.GetMemory(); | ||||
|  | ||||
|     m_zone = zone; | ||||
|     m_zone = &inject.m_zone; | ||||
|     m_supporting_data = memory->Create<ExpressionSupportingData>(); | ||||
|     memset(m_supporting_data, 0, sizeof(ExpressionSupportingData)); | ||||
| } | ||||
|   | ||||
| @@ -24,7 +24,7 @@ namespace IW5 | ||||
|         ExpressionSupportingData* m_supporting_data; | ||||
|  | ||||
|         MenuConversionZoneState(); | ||||
|         void SetZone(Zone* zone) override; | ||||
|         void Inject(ZoneAssetCreationInjection& inject) override; | ||||
|  | ||||
|         Statement_s* FindFunction(const std::string& functionName); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user