public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            if (this.ShaderVariableComponents != null)
            {
                this.MetaStructure.shaderVariableComponents = mb.AddItemArrayPtr(MetaName.CShaderVariableComponent, this.ShaderVariableComponents.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray());
            }
            MCShaderVariableComponent.AddEnumAndStructureInfo(mb);

            if (this.PedPropExpressions != null)
            {
                this.MetaStructure.pedPropExpressions = mb.AddItemArrayPtr(MetaName.CPedPropExpressionData, this.PedPropExpressions.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray());
            }
            MCPedPropExpressionData.AddEnumAndStructureInfo(mb);

            if (this.PedCompExpressions != null)
            {
                this.MetaStructure.pedCompExpressions = mb.AddItemArrayPtr(MetaName.CPedCompExpressionData, this.PedCompExpressions.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray());
            }
            MCPedCompExpressionData.AddEnumAndStructureInfo(mb);


            MCCreatureMetaData.AddEnumAndStructureInfo(mb);

            if (isRoot)
            {
                mb.AddItem(this.MetaName, this.MetaStructure);

                this.Meta = mb.GetMeta();
            }
        }
Beispiel #2
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.MetaStructure.pedPropID              = this.PedPropID;
            this.MetaStructure.pedPropVarIndex        = this.PedPropVarIndex;
            this.MetaStructure.pedPropExpressionIndex = this.PedPropExpressionIndex;
            // this.MetaStructure.tracks = this.Tracks;
            // this.MetaStructure.ids = this.Ids;
            // this.MetaStructure.types = this.Types;
            // this.MetaStructure.components = this.Components;

            MCPedPropExpressionData.AddEnumAndStructureInfo(mb);

            if (isRoot)
            {
                mb.AddItem(this.MetaName, this.MetaStructure);

                this.Meta = mb.GetMeta();
            }
        }