// Or this one :( protected static String Param2String(MugicParam p) { switch (p) { case MugicParam.X : return "x"; case MugicParam.Y : return "y"; case MugicParam.Z : return "z"; case MugicParam.Width : return "width"; case MugicParam.Height : return "height"; case MugicParam.Texture : return "texture"; default : return "ERROR"; } }
// Or this one :( protected static String Param2String(MugicParam p) { switch (p) { case MugicParam.X: return("x"); case MugicParam.Y: return("y"); case MugicParam.Z: return("z"); case MugicParam.Width: return("width"); case MugicParam.Height: return("height"); case MugicParam.Texture: return("texture"); default: return("ERROR"); } }
public Param(MugicParam par, Object val) { p = par; v = val; }
public void Parameter(MugicParam p, Object v) { parameters.Add(new Param(p, v)); }