SimObject.getName C# (CSharp) Method

getName() public method

public getName ( ) : string
return string
	public string getName() {
		return name;
	}
	public string getDesc() {

Usage Example

        public void flagDatablockAsDirty(SimObject datablock, bool dirty)
        {
            GuiTreeViewCtrl tree = "DatablockEditorTree";

            int id = tree.findItemByValue(datablock.getId().AsString());

            if (id == 0)
            {
                return;
            }

            // Tag the item caption and sync the persistence manager.

            if (dirty)
            {
                tree.editItem(id, datablock.getName() + " *", datablock.getId().AsString());
                this.PM.setDirty(datablock);
            }
            else
            {
                tree.editItem(id, datablock.getName(), datablock.getId().AsString());
                this.PM.removeDirty(datablock);
            }

            // Sync the inspector dirty state.

            this.flagInspectorAsDirty(this.PM.hasDirty());
        }
All Usage Examples Of SimObject::getName