void C4UpdatePackageCore::CompileFunc(StdCompiler *pComp) { pComp->Value(mkNamingAdapt(toC4CArr(RequireVersion), "RequireVersion")); pComp->Value(mkNamingAdapt(toC4CStr(Name), "Name", "")); pComp->Value(mkNamingAdapt(toC4CStr(DestPath), "DestPath", "")); pComp->Value(mkNamingAdapt(GrpUpdate, "GrpUpdate", 0)); pComp->Value(mkNamingAdapt(UpGrpCnt, "TargetCount", 0)); pComp->Value(mkNamingAdapt(toC4CArrU(GrpChks1), "GrpChks1")); pComp->Value(mkNamingAdapt(GrpChks2, "GrpChks2", 0u)); }
void C4Shape::CompileFunc(StdCompiler *pComp, bool fRuntime) { // Note: Compiled directly into "Object" and "DefCore"-categories, so beware // of name clashes // (see C4Object::CompileFunc and C4DefCore::CompileFunc) pComp->Value(mkNamingAdapt(Wdt, "Width", 0)); pComp->Value(mkNamingAdapt(Hgt, "Height", 0)); pComp->Value(mkNamingAdapt(mkArrayAdapt(&x, 2, 0), "Offset")); pComp->Value(mkNamingAdapt(VtxNum, "Vertices", 0)); pComp->Value(mkNamingAdapt(toC4CArr(VtxX), "VertexX")); pComp->Value(mkNamingAdapt(toC4CArr(VtxY), "VertexY")); pComp->Value(mkNamingAdapt(toC4CArr(VtxCNAT), "VertexCNAT")); pComp->Value(mkNamingAdapt(toC4CArr(VtxFriction), "VertexFriction")); pComp->Value(mkNamingAdapt(ContactDensity, "ContactDensity", C4M_Solid)); pComp->Value(mkNamingAdapt(FireTop, "FireTop", 0)); if (fRuntime) { pComp->Value(mkNamingAdapt(iAttachX, "AttachX", 0)); pComp->Value(mkNamingAdapt(iAttachY, "AttachY", 0)); pComp->Value(mkNamingAdapt(iAttachVtx, "AttachVtx", 0)); } }
void C4Def::CompileFunc(StdCompiler *pComp) { pComp->Value(mkNamingAdapt(id, "id", C4ID::None )); pComp->Value(mkNamingAdapt(toC4CArr(rC4XVer), "Version" )); pComp->Value(mkNamingAdapt(mkParAdapt(RequireDef, false), "RequireDef", C4IDList() )); const StdBitfieldEntry<int32_t> Categories[] = { { "C4D_None", C4D_None }, { "C4D_StaticBack", C4D_StaticBack }, { "C4D_Structure", C4D_Structure }, { "C4D_Vehicle", C4D_Vehicle }, { "C4D_Living", C4D_Living }, { "C4D_Object", C4D_Object }, { "C4D_Goal", C4D_Goal }, { "C4D_Rule", C4D_Rule }, { "C4D_Environment", C4D_Environment }, { "C4D_Background", C4D_Background }, { "C4D_Parallax", C4D_Parallax }, { "C4D_MouseSelect", C4D_MouseSelect }, { "C4D_Foreground", C4D_Foreground }, { "C4D_MouseIgnore", C4D_MouseIgnore }, { "C4D_IgnoreFoW", C4D_IgnoreFoW }, { NULL, 0 } }; pComp->Value(mkNamingAdapt(mkBitfieldAdapt<int32_t>(Category, Categories), "Category", 0 )); pComp->Value(mkParAdapt(Shape, static_cast<C4Shape*>(NULL))); pComp->Value(mkNamingAdapt(Value, "Value", 0 )); pComp->Value(mkNamingAdapt(Mass, "Mass", 0 )); pComp->Value(mkNamingAdapt(SolidMask, "SolidMask", TargetRect0 )); pComp->Value(mkNamingAdapt(TopFace, "TopFace", TargetRect0 )); pComp->Value(mkNamingAdapt(PictureRect, "Picture", Rect0 )); pComp->Value(mkNamingAdapt(Entrance, "Entrance", Rect0 )); pComp->Value(mkNamingAdapt(Collection, "Collection", Rect0 )); pComp->Value(mkNamingAdapt(Exclusive, "Exclusive", 0 )); pComp->Value(mkNamingAdapt(Line, "Line", 0 )); // <Newton> undocumented, but obsolete? I don't understand the sense of this value. pComp->Value(mkNamingAdapt(LineIntersect, "LineIntersect", 0 )); pComp->Value(mkNamingAdapt(CrewMember, "CrewMember", 0 )); pComp->Value(mkNamingAdapt(NativeCrew, "NoStandardCrew", 0 )); pComp->Value(mkNamingAdapt(Constructable, "Construction", 0 )); const StdBitfieldEntry<int32_t> GrabPutGetTypes[] = { { "C4D_GrabGet" ,C4D_Grab_Get}, { "C4D_GrabPut" ,C4D_Grab_Put}, { NULL, 0} }; pComp->Value(mkNamingAdapt(mkBitfieldAdapt(GrabPutGet, GrabPutGetTypes), "GrabPutGet", 0 )); pComp->Value(mkNamingAdapt(Rotateable, "Rotate", 0 )); pComp->Value(mkNamingAdapt(RotatedEntrance, "RotatedEntrance", 0 )); pComp->Value(mkNamingAdapt(Float, "Float", 0 )); pComp->Value(mkNamingAdapt(ColorByOwner, "ColorByOwner", 0 )); pComp->Value(mkNamingAdapt(NoHorizontalMove, "HorizontalFix", 0 )); pComp->Value(mkNamingAdapt(LiftTop, "LiftTop", 0 )); pComp->Value(mkNamingAdapt(UprightAttach, "UprightAttach", 0 )); pComp->Value(mkNamingAdapt(GrowthType, "StretchGrowth", 0 )); pComp->Value(mkNamingAdapt(IncompleteActivity, "IncompleteActivity", 0 )); pComp->Value(mkNamingAdapt(AttractLightning, "AttractLightning", 0 )); pComp->Value(mkNamingAdapt(Oversize, "Oversize", 0 )); // <Newton> Fragile and Projectile are kinda obsolete. // Only used at one point in the command system. Should rather be solved with properties if at all pComp->Value(mkNamingAdapt(Fragile, "Fragile", 0 )); pComp->Value(mkNamingAdapt(Projectile, "Projectile", 0 )); pComp->Value(mkNamingAdapt(NoPushEnter, "NoPushEnter", 0 )); pComp->Value(mkNamingAdapt(VehicleControl, "VehicleControl", 0 )); pComp->Value(mkNamingAdapt(Pathfinder, "Pathfinder", 0 )); pComp->Value(mkNamingAdapt(MoveToRange, "MoveToRange", 0 )); pComp->Value(mkNamingAdapt(NoMassFromContents, "NoMassFromContents", 0 )); pComp->Value(mkNamingAdapt(NoStabilize, "NoStabilize", 0 )); pComp->Value(mkNamingAdapt(ClosedContainer, "ClosedContainer", 0 )); pComp->Value(mkNamingAdapt(SilentCommands, "SilentCommands", 0 )); pComp->Value(mkNamingAdapt(TemporaryCrew, "TemporaryCrew", 0 )); pComp->Value(mkNamingAdapt(BlitMode, "BlitMode", C4D_Blit_Normal )); pComp->Value(mkNamingAdapt(NoBreath, "NoBreath", 0 )); pComp->Value(mkNamingAdapt(ConSizeOff, "ConSizeOff", 0 )); pComp->Value(mkNamingAdapt(NoGet, "NoGet", 0 )); pComp->Value(mkNamingAdapt(NoTransferZones, "NoTransferZones", 0 )); const StdBitfieldEntry<int32_t> AllowPictureStackModes[] = { { "APS_Color", APS_Color }, { "APS_Graphics", APS_Graphics }, { "APS_Name", APS_Name }, { "APS_Overlay", APS_Overlay }, { NULL, 0 } }; pComp->Value(mkNamingAdapt(mkBitfieldAdapt<int32_t>(AllowPictureStack, AllowPictureStackModes), //undocumented "AllowPictureStack", 0 )); }