Пример #1
0
        public override YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container);

            node.Add(CollisionShape0Name, CollisionShape0.ExportYAML(container));
            node.Add(CollisionShape1Name, CollisionShape1.ExportYAML(container));
            node.Add(CollisionShape2Name, CollisionShape2.ExportYAML(container));
            node.Add(CollisionShape3Name, CollisionShape3.ExportYAML(container));
            node.Add(CollisionShape4Name, CollisionShape4.ExportYAML(container));
            node.Add(CollisionShape5Name, CollisionShape5.ExportYAML(container));
            node.Add(InsideName, (int)Inside);
            node.Add(OutsideName, (int)Outside);
            node.Add(EnterName, (int)Enter);
            node.Add(ExitName, (int)Exit);
            node.Add(RadiusScaleName, RadiusScale);
            return(node);
        }
Пример #2
0
        public override YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container);

            node.Add("collisionShape0", CollisionShape0.ExportYAML(container));
            node.Add("collisionShape1", CollisionShape1.ExportYAML(container));
            node.Add("collisionShape2", CollisionShape2.ExportYAML(container));
            node.Add("collisionShape3", CollisionShape3.ExportYAML(container));
            node.Add("collisionShape4", CollisionShape4.ExportYAML(container));
            node.Add("collisionShape5", CollisionShape5.ExportYAML(container));
            node.Add("inside", (int)Inside);
            node.Add("outside", (int)Outside);
            node.Add("enter", (int)Enter);
            node.Add("exit", (int)Exit);
            node.Add("radiusScale", RadiusScale);
            return(node);
        }
Пример #3
0
        public override YAMLNode ExportYAML(IAssetsExporter exporter)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(exporter);

            node.Add("collisionShape0", CollisionShape0.ExportYAML(exporter));
            node.Add("collisionShape1", CollisionShape1.ExportYAML(exporter));
            node.Add("collisionShape2", CollisionShape2.ExportYAML(exporter));
            node.Add("collisionShape3", CollisionShape3.ExportYAML(exporter));
            node.Add("collisionShape4", CollisionShape4.ExportYAML(exporter));
            node.Add("collisionShape5", CollisionShape5.ExportYAML(exporter));
            node.Add("inside", Inside);
            node.Add("outside", Outside);
            node.Add("enter", Enter);
            node.Add("exit", Exit);
            node.Add("radiusScale", RadiusScale);
            return(node);
        }