public void set_cost(KBEngine.Entity entity, object v = null) { if (!hasRenderObj(entity)) { return; } SceneEntityObject target = (SceneEntityObject)entity.renderObj; target.set_cost(entity.getDefinedProperty("cost")); }