// // ModelStringTableExtension.cs - describes translatable string information for a 3D model // // Author: // Michael Becker // // Copyright (c) 2013-2020 Mike Becker's Software // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . using System; using System.Collections.Generic; namespace UniversalEditor.ObjectModels.Multimedia3D.Model { /// /// Describes translatable string information for a 3D model. /// public class ModelStringTableExtension : ICloneable { /// /// Gets or sets the title of the model. /// /// The title of the model. public string Title { get; set; } = String.Empty; /// /// Gets or sets the name of the individual or organization that created the model. /// /// The name of the individual or organization that created the model. public string Author { get; set; } = String.Empty; /// /// Gets or sets the user-defined comments for the model. /// /// The user-defined comments for the model. public string Comments { get; set; } = String.Empty; /// /// Gets a list of bone names for the model. /// /// The bone names for the model. public List BoneNames { get; } = new List(); /// /// Gets a list of skin names for the model. /// /// The skin names for the model. public List SkinNames { get; } = new List(); /// /// Gets a list of material names for the model. /// /// The material names for the model. public List MaterialNames { get; } = new List(); /// /// Gets a list of node names for the model. /// /// The node names for the model. public List NodeNames { get; } = new List(); public object Clone() { ModelStringTableExtension clone = new ModelStringTableExtension(); clone.Title = Title.Clone() as string; clone.Author = Author.Clone() as string; clone.Comments = Comments.Clone() as string; foreach (string s in BoneNames) { clone.BoneNames.Add(s.Clone() as string); } foreach (string s in SkinNames) { clone.SkinNames.Add(s.Clone() as string); } foreach (string s in NodeNames) { clone.NodeNames.Add(s.Clone() as string); } foreach (string s in MaterialNames) { clone.MaterialNames.Add(s.Clone() as string); } return clone; } } }