コード例 #1
0
        private dataStructStruct CreateLibGDXStruct()
        {
            var dataStruct = new dataStructStruct
            {
                type             = "LibGDX",
                ItemsElementName = new ItemsChoiceType1[2],
                Items            = new object[2]
            };

            dataStruct.ItemsElementName[0] = ItemsChoiceType1.key;
            dataStruct.Items[0]            = "filtering";
            dataStruct.ItemsElementName[1] = ItemsChoiceType1.@struct;
            var dataStructStruct = new dataStructStructStruct {
                type = "LibGDXFiltering", Items = new object[4]
            };

            dataStructStruct.Items[0] = "x";
            dataStructStruct.Items[1] = new dataStructEnum
            {
                type  = "LibGDXFiltering::Filtering",
                Value = "Linear"
            };
            dataStructStruct.Items[2] = "y";
            dataStructStruct.Items[3] = new dataStructEnum
            {
                type  = "LibGDXFiltering::Filtering",
                Value = "Linear"
            };
            dataStruct.Items[1] = dataStructStruct;

            return(dataStruct);
        }
コード例 #2
0
        private dataStructStructStruct CreateDataStruct(string type, List <string> keys, List <dataStructEnum> values)
        {
            var dataStruct = new dataStructStructStruct
            {
                type  = type,
                Items = new object[keys.Count() * 2]
            };

            var count = 0;

            for (var element = 0; element < keys.Count(); element++)
            {
                dataStruct.Items[count] = keys[element];
                count++;
                dataStruct.Items[count] = values[element];
                count++;
            }

            return(dataStruct);
        }
コード例 #3
0
ファイル: TpsFileSave.cs プロジェクト: vchelaru/FlatRedBall
        private dataStructStruct CreateLibGDXStruct()
        {
            var dataStruct = new dataStructStruct
                             {
                                 type = "LibGDX",
                                 ItemsElementName = new ItemsChoiceType1[2],
                                 Items = new object[2]
                             };
            dataStruct.ItemsElementName[0] = ItemsChoiceType1.key;
            dataStruct.Items[0] = "filtering";
            dataStruct.ItemsElementName[1] = ItemsChoiceType1.@struct;
            var dataStructStruct = new dataStructStructStruct {type = "LibGDXFiltering", Items = new object[4]};
            dataStructStruct.Items[0] = "x";
            dataStructStruct.Items[1] = new dataStructEnum
                                        {
                                            type = "LibGDXFiltering::Filtering",
                                            Value = "Linear"
                                        };
            dataStructStruct.Items[2] = "y";
            dataStructStruct.Items[3] = new dataStructEnum
                                        {
                                            type = "LibGDXFiltering::Filtering",
                                            Value = "Linear"
                                        };
            dataStruct.Items[1] = dataStructStruct;

            return dataStruct;
        }
コード例 #4
0
ファイル: TpsFileSave.cs プロジェクト: vchelaru/FlatRedBall
        private dataStructStructStruct CreateDataStruct(string type, List<string> keys, List<dataStructEnum> values)
        {
            var dataStruct = new dataStructStructStruct
                             {
                                 type = type,
                                 Items = new object[keys.Count()*2]
                             };

            var count = 0;
            for (var element = 0; element < keys.Count(); element++)
            {
                dataStruct.Items[count] = keys[element];
                count++;
                dataStruct.Items[count] = values[element];
                count++;
            }            

            return dataStruct;
        }