Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        public override void Build(MetaBuilder mb, bool isRoot = false)
        {
            this.MetaStructure.pedCompID              = this.PedCompID;
            this.MetaStructure.pedCompVarIndex        = this.PedCompVarIndex;
            this.MetaStructure.pedCompExpressionIndex = this.PedCompExpressionIndex;
            // this.MetaStructure.tracks = this.Tracks;
            // this.MetaStructure.ids = this.Ids;
            // this.MetaStructure.types = this.Types;
            // this.MetaStructure.components = this.Components;

            MCPedCompExpressionData.AddEnumAndStructureInfo(mb);

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

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