FlatRedBall.Glue.SaveClasses.ReferencedFileSave.SetNameNoCall C# (CSharp) Method

SetNameNoCall() public method

public SetNameNoCall ( string newName ) : void
newName string
return void
        public void SetNameNoCall(string newName)
        {
            mName = newName;
        }

Usage Example

Example #1
0
        public static ReferencedFileSave AddReferencedFile(this IElement instance, string fileName, AssetTypeInfo ati, EditorObjects.SaveClasses.BuildToolAssociation bta = null)
        {
            var referencedFileSave = new ReferencedFileSave();

            if (ati != null)
            {
                referencedFileSave.RuntimeType = ati.QualifiedRuntimeTypeName.QualifiedType;
            }



            referencedFileSave.IsSharedStatic = true;

            referencedFileSave.SetNameNoCall(fileName);
#if GLUE
            if (ati != null && !string.IsNullOrEmpty(ati.CustomBuildToolName) && bta != null)
            {
                referencedFileSave.BuildTool = ati.CustomBuildToolName;

                referencedFileSave.SourceFile = referencedFileSave.Name;

                string newName = FileManager.RemoveExtension(referencedFileSave.Name);
                newName += "." + bta.DestinationFileType;

                referencedFileSave.SetNameNoCall(newName);
            }
#endif
            instance.ReferencedFiles.Add(referencedFileSave);


            referencedFileSave.IsSharedStatic = true;


            return(referencedFileSave);
        }
All Usage Examples Of FlatRedBall.Glue.SaveClasses.ReferencedFileSave::SetNameNoCall