public Object createObject(Map args) throws Exception { IVector2 size = Vector2Double.getVector2((Double)getProperty(args, "width"), (Double)getProperty(args, "height")); return new GridLayer(size, getProperty(args, "color")); } }, new BeanAccessInfo(AccessInfo.THIS)))
public Object createObject(Map args) throws Exception { IVector2 size = Vector2Double.getVector2((Double)getProperty(args, "width"), (Double)getProperty(args, "height")); return new TiledLayer(size, getProperty(args, "color"), (String)getProperty(args, "imagepath")); } }, new BeanAccessInfo(AccessInfo.THIS)))
if(position==null) position = Vector2Double.getVector2((Double)getProperty(args, "x"), (Double)getProperty(args, "y"));
if(position==null) position = Vector2Double.getVector2((Double)getProperty(args, "x"), (Double)getProperty(args, "y")); if(size==null) size = Vector2Double.getVector2((Double)getProperty(args, "width"), (Double)getProperty(args, "height"));
if(position==null) position = Vector2Double.getVector2((Double)getProperty(args, "x"), (Double)getProperty(args, "y")); if(size==null) size = Vector2Double.getVector2((Double)getProperty(args, "width"), (Double)getProperty(args, "height"));
if(position==null) position = Vector2Double.getVector2((Double)getProperty(args, "x"), (Double)getProperty(args, "y")); if(size==null) size = Vector2Double.getVector2((Double)getProperty(args, "width"), (Double)getProperty(args, "height"));
if(position==null) position = Vector2Double.getVector2((Double)getProperty(args, "x"), (Double)getProperty(args, "y")); if(size==null) size = Vector2Double.getVector2((Double)getProperty(args, "width"), (Double)getProperty(args, "height"));
if(position==null) position = Vector2Double.getVector2((Double)getProperty(args, "x"), (Double)getProperty(args, "y")); if(size==null) size = Vector2Double.getVector2((Double)getProperty(args, "width"), (Double)getProperty(args, "height"));
public Object createObject(Map args) throws Exception { Object position = getProperty(args, "position"); if(position==null) { position = Vector2Double.getVector2((Double)getProperty(args, "x"), (Double)getProperty(args, "y")); } Object rotation = getProperty(args, "rotation"); if(rotation==null) { Double rx = (Double)getProperty(args, "rotatex"); Double ry = (Double)getProperty(args, "rotatey"); Double rz = (Double)getProperty(args, "rotatez"); rotation = Vector3Double.getVector3(rx!=null? rx: Double.valueOf(0), ry!=null? ry: Double.valueOf(0), rz!=null? rz: Double.valueOf(0)); } Object size = getProperty(args, "size"); if(size==null) { size = Vector2Double.getVector2((Double)getProperty(args, "width"), (Double)getProperty(args, "height")); } int absFlags = Boolean.TRUE.equals(getProperty(args, "abspos"))? Primitive.ABSOLUTE_POSITION : 0; absFlags |= Boolean.TRUE.equals(getProperty(args, "abssize"))? Primitive.ABSOLUTE_SIZE : 0; absFlags |= Boolean.TRUE.equals(getProperty(args, "absrot"))? Primitive.ABSOLUTE_ROTATION : 0; IParsedExpression exp = (IParsedExpression)getProperty(args, "drawcondition"); return new TexturedRectangle(position, rotation, size, absFlags, getProperty(args, "color"), (String)getProperty(args, "imagepath"), exp); } }, new BeanAccessInfo(AccessInfo.THIS)))
((Space2D)this).setAreaSize(Vector2Double.getVector2(width, height));