目录结构调整
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace PhysicsTools
|
||||
{
|
||||
[Serializable]
|
||||
public class SegmentProperties
|
||||
{
|
||||
[Serializable]
|
||||
public enum Type
|
||||
{
|
||||
CYLINDER = 0,
|
||||
BOX = 1
|
||||
}
|
||||
|
||||
public Type type;
|
||||
|
||||
public SegmentPropertiesBase properties;
|
||||
|
||||
public SegmentProperties()
|
||||
{
|
||||
properties = new SegmentPropertiesCylinder();
|
||||
type = Type.CYLINDER;
|
||||
}
|
||||
|
||||
public void setType(Type t)
|
||||
{
|
||||
switch (t)
|
||||
{
|
||||
case Type.BOX:
|
||||
properties = new SegmentPropertiesBox();
|
||||
break;
|
||||
case Type.CYLINDER:
|
||||
properties = new SegmentPropertiesCylinder();
|
||||
break;
|
||||
}
|
||||
type = t;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user