Timestamp:
Jul 5, 2024, 6:55:33 PM (3 weeks ago)
Author:
phosit
Message:

Make the CSimContext constructor take a CTerrain and a CUnitManager

CSimulationImpl doesn't has to be a friend anymore.

Comments by: @Stan

Differential Revision: https://code.wildfiregames.com/D5296

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/simulation2/system/SimContext.cpp

    r27965 r28138  
    1 /* Copyright (C) 2016 Wildfire Games.
     1/* Copyright (C) 20 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
     
    2424#include "ps/Game.h"
    2525
    26 CSimContext::CSimContext() :
    27     m_ComponentManager(NULL), m_UnitManager(NULL), m_Terrain(NULL)
     26CSimContext::CSimContext(CTerrain* terrain /*= nullptr*/, CUnitManager* unitManager /*= nullptr*/) :
     27    m_UnitManager{unitManager},
     28    m_Terrain{terrain}
    2829{
    2930}
Note: See TracChangeset for help on using the changeset viewer.