本文整理汇总了C++中CR_POSTLOAD函数的典型用法代码示例。如果您正苦于以下问题:C++ CR_POSTLOAD函数的具体用法?C++ CR_POSTLOAD怎么用?C++ CR_POSTLOAD使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CR_POSTLOAD函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CR_BIND_DERIVED
#include "Sim/Units/UnitTypes/Factory.h"
#include "LogOutput.h"
#include "creg/STL_Map.h"
#include "System/GlobalUnsynced.h"
#include "System/Util.h"
#include "System/Exceptions.h"
CR_BIND_DERIVED(CFactoryCAI ,CCommandAI , );
CR_REG_METADATA(CFactoryCAI , (
CR_MEMBER(newUnitCommands),
CR_MEMBER(buildOptions),
CR_MEMBER(building),
CR_MEMBER(lastRestrictedWarning),
CR_RESERVED(16),
CR_POSTLOAD(PostLoad)
));
CR_BIND(CFactoryCAI::BuildOption, );
CR_REG_METADATA_SUB(CFactoryCAI,BuildOption , (
CR_MEMBER(name),
CR_MEMBER(fullName),
CR_MEMBER(numQued)
));
CFactoryCAI::CFactoryCAI()
: CCommandAI(),
building(false),
lastRestrictedWarning(0)
示例2: CR_BIND
extern CKAIK* KAIKStateExt;
CR_BIND(AIClasses, )
CR_REG_METADATA(AIClasses, (
CR_MEMBER(ecoTracker),
CR_MEMBER(buildupHandler),
CR_MEMBER(threatMap),
CR_MEMBER(unitHandler),
CR_MEMBER(defenseMatrix),
CR_MEMBER(attackHandler),
CR_MEMBER(dgunControllerHandler),
CR_MEMBER(activeUnits),
CR_MEMBER(unitIDs),
CR_MEMBER(initialized),
CR_MEMBER(initFrame),
CR_POSTLOAD(Load),
CR_RESERVED(16)
))
CR_BIND(UnitType, )
CR_REG_METADATA(UnitType, (
CR_MEMBER(canBuildList),
CR_MEMBER(builtByList),
CR_MEMBER(DPSvsUnit),
// cannot serialize this directly
// CR_MEMBER(def),
CR_ENUM_MEMBER(category),
CR_MEMBER(isHub),
CR_MEMBER(techLevel),
CR_MEMBER(costMultiplier),
CR_POSTLOAD(PostLoad)