33 lines
666 B
C#
33 lines
666 B
C#
namespace NBF.Fishing2
|
|
{
|
|
public class UnitStateArgsFactory
|
|
{
|
|
public static UnitStateArgs Create(Unit unit, string[] args)
|
|
{
|
|
UnitStateArgs ret = null;
|
|
// return new UnitStateArgs()
|
|
// {
|
|
//
|
|
// }
|
|
if (ret != null)
|
|
{
|
|
ret.SetArgs(args);
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public abstract class UnitStateArgs
|
|
{
|
|
protected string[] Args;
|
|
|
|
public void SetArgs(string[] args)
|
|
{
|
|
Args = args;
|
|
OnParseArgs();
|
|
}
|
|
|
|
public abstract void OnParseArgs();
|
|
}
|
|
} |