34 lines
665 B
C#
34 lines
665 B
C#
using System;
|
|
#pragma warning disable IDE0130
|
|
|
|
|
|
namespace CPSO.Commands
|
|
{
|
|
[Serializable]
|
|
class CCreateMesh : PreprocessCommand
|
|
{
|
|
// Variables
|
|
|
|
// Properties
|
|
public string PartName { get; }
|
|
|
|
// Constructor
|
|
public CCreateMesh(string partName)
|
|
: base("Create mesh")
|
|
{
|
|
PartName = partName;
|
|
}
|
|
|
|
// Methods
|
|
public override bool Execute(Controller receiver)
|
|
{
|
|
return receiver.CreateMesh(PartName);
|
|
}
|
|
|
|
public override string GetCommandString()
|
|
{
|
|
return base.GetCommandString() + PartName;
|
|
}
|
|
}
|
|
}
|