Beispiel #1
0
static void _vala_soy_fields_monopole_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	soyfieldsMonopole * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SOY_FIELDS_TYPE_MONOPOLE, soyfieldsMonopole);
	switch (property_id) {
		case SOY_FIELDS_MONOPOLE_MULTIPLIER:
		soy_fields_monopole_set_multiplier (self, g_value_get_float (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}
Beispiel #2
0
static GObject * soy_fields_monopole_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	soyfieldsMonopole * self;
	GeeArrayList* _tmp0_;
	parent_class = G_OBJECT_CLASS (soy_fields_monopole_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SOY_FIELDS_TYPE_MONOPOLE, soyfieldsMonopole);
	_tmp0_ = gee_array_list_new (SOY_BODIES_TYPE_BODY, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
	_g_object_unref0 (self->priv->_affected);
	self->priv->_affected = _tmp0_;
	soy_fields_monopole_set_multiplier (self, (gfloat) 0);
	return obj;
}
Beispiel #3
0
static void _vala_soy_fields_monopole_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	soyfieldsMonopole * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SOY_FIELDS_TYPE_MONOPOLE, soyfieldsMonopole);
#line 25 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
	switch (property_id) {
#line 25 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
		case SOY_FIELDS_MONOPOLE_MULTIPLIER:
#line 25 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
		soy_fields_monopole_set_multiplier (self, g_value_get_float (value));
#line 25 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
		break;
#line 749 "Monopole.c"
		default:
#line 25 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 25 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
		break;
#line 755 "Monopole.c"
	}
}
Beispiel #4
0
static GObject * soy_fields_monopole_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	soyfieldsMonopole * self;
	GeeArrayList* _tmp0_ = NULL;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
	parent_class = G_OBJECT_CLASS (soy_fields_monopole_parent_class);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SOY_FIELDS_TYPE_MONOPOLE, soyfieldsMonopole);
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
	_tmp0_ = gee_array_list_new (SOY_BODIES_TYPE_BODY, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
	_g_object_unref0 (self->priv->_affected);
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
	self->priv->_affected = _tmp0_;
#line 44 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
	soy_fields_monopole_set_multiplier (self, (gfloat) 0);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Monopole.gs"
	return obj;
#line 658 "Monopole.c"
}