mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-10 12:59:40 +01:00
Fix Entity's api's inconsistencies pt 3.
In projects mass replacing the following words will update everything. gets_free_class_talent_points -> class_talent_points_gets_free sets_free_class_talent_points -> class_talent_points_sets_free getc_free_class_talent_points -> class_talent_points_getc_free setc_free_class_talent_points -> class_talent_points_setc_free gets_free_character_talent_points -> character_talent_points_gets_free sets_free_character_talent_points -> character_talent_points_sets_free getc_free_character_talent_points -> character_talent_points_getc_free setc_free_character_talent_points -> character_talent_points_setc_free gets_bag -> bag_gets sets_bag -> bag_sets getc_bag -> bag_getc setc_bag -> bag_setc
This commit is contained in:
parent
05b11e9458
commit
3fdb671b51
@ -2205,13 +2205,13 @@
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="setc_bag_rpc">
|
||||
<method name="bag_setc_rpc">
|
||||
<return type="void" />
|
||||
<argument index="0" name="data" type="String" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="target_setc_bag_rpc">
|
||||
<method name="target_bag_setc_rpc">
|
||||
<return type="void" />
|
||||
<argument index="0" name="data" type="String" />
|
||||
<description>
|
||||
@ -2743,7 +2743,7 @@
|
||||
</member>
|
||||
<member name="body_path" type="NodePath" setter="body_set_path" getter="body_get_path" default="NodePath("")">
|
||||
</member>
|
||||
<member name="cbag" type="Bag" setter="setc_bag" getter="getc_bag">
|
||||
<member name="cbag" type="Bag" setter="bag_setc" getter="bag_getc">
|
||||
</member>
|
||||
<member name="centity_controller" type="int" setter="setc_entity_controller" getter="getc_entity_controller" enum="EntityEnums.EntityController" default="0">
|
||||
</member>
|
||||
@ -2759,9 +2759,9 @@
|
||||
</member>
|
||||
<member name="centity_type" type="int" setter="setc_entity_type" getter="getc_entity_type">
|
||||
</member>
|
||||
<member name="cfree_character_talent_points" type="int" setter="setc_free_character_talent_points" getter="getc_free_character_talent_points">
|
||||
<member name="cfree_character_talent_points" type="int" setter="character_talent_points_setc_free" getter="character_talent_points_getc_free">
|
||||
</member>
|
||||
<member name="cfree_class_talent_points" type="int" setter="setc_free_class_talent_points" getter="getc_free_class_talent_points">
|
||||
<member name="cfree_class_talent_points" type="int" setter="class_talent_points_setc_free" getter="class_talent_points_getc_free">
|
||||
</member>
|
||||
<member name="cfree_spell_points" type="int" setter="free_spell_points_setc" getter="free_spell_points_getc">
|
||||
</member>
|
||||
@ -2789,7 +2789,7 @@
|
||||
</member>
|
||||
<member name="ctarget" type="Entity" setter="target_setc" getter="target_getc">
|
||||
</member>
|
||||
<member name="ctarget_bag" type="Bag" setter="target_setc_bag" getter="target_getc_bag">
|
||||
<member name="ctarget_bag" type="Bag" setter="target_bag_setc" getter="target_bag_getc">
|
||||
</member>
|
||||
<member name="cxp" type="int" setter="setc_xp" getter="getc_xp">
|
||||
</member>
|
||||
@ -2801,7 +2801,7 @@
|
||||
</member>
|
||||
<member name="sauras" type="Array" setter="sauras_set" getter="sauras_get" default="[ ]">
|
||||
</member>
|
||||
<member name="sbag" type="Bag" setter="sets_bag" getter="gets_bag">
|
||||
<member name="sbag" type="Bag" setter="bag_sets" getter="bag_gets">
|
||||
</member>
|
||||
<member name="scategory_cooldowns" type="Array" setter="scategory_cooldowns_set" getter="scategory_cooldowns_get" default="[ ]">
|
||||
</member>
|
||||
@ -2829,9 +2829,9 @@
|
||||
</member>
|
||||
<member name="sentity_type" type="int" setter="sets_entity_type" getter="gets_entity_type" default="0">
|
||||
</member>
|
||||
<member name="sfree_character_talent_points" type="int" setter="sets_free_character_talent_points" getter="gets_free_character_talent_points" default="0">
|
||||
<member name="sfree_character_talent_points" type="int" setter="character_talent_points_sets_free" getter="character_talent_points_gets_free" default="0">
|
||||
</member>
|
||||
<member name="sfree_class_talent_points" type="int" setter="sets_free_class_talent_points" getter="gets_free_class_talent_points" default="0">
|
||||
<member name="sfree_class_talent_points" type="int" setter="class_talent_points_sets_free" getter="class_talent_points_gets_free" default="0">
|
||||
</member>
|
||||
<member name="sfree_spell_points" type="int" setter="free_spell_points_sets" getter="free_spell_points_gets" default="0">
|
||||
</member>
|
||||
@ -2871,7 +2871,7 @@
|
||||
</member>
|
||||
<member name="starget" type="Entity" setter="target_sets" getter="target_gets">
|
||||
</member>
|
||||
<member name="starget_bag" type="Bag" setter="target_sets_bag" getter="target_gets_bag">
|
||||
<member name="starget_bag" type="Bag" setter="target_bag_sets" getter="target_bag_gets">
|
||||
</member>
|
||||
<member name="sxp" type="int" setter="sets_xp" getter="gets_xp" default="0">
|
||||
</member>
|
||||
|
@ -863,13 +863,13 @@ void Entity::setup_actionbars() {
|
||||
}
|
||||
}*/
|
||||
|
||||
if (!gets_bag().is_valid()) {
|
||||
if (!bag_gets().is_valid()) {
|
||||
Ref<Bag> bag;
|
||||
bag.instance();
|
||||
|
||||
bag->set_size(entity_data_gets()->get_bag_size());
|
||||
|
||||
sets_bag(bag);
|
||||
bag_sets(bag);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1659,7 +1659,7 @@ void Entity::_from_dict(const Dictionary &dict) {
|
||||
|
||||
bag->from_dict(bagd);
|
||||
|
||||
sets_bag(bag);
|
||||
bag_sets(bag);
|
||||
} else {
|
||||
_s_bag->from_dict(bagd);
|
||||
}
|
||||
@ -3093,7 +3093,7 @@ void Entity::_item_uses(int item_id) {
|
||||
|
||||
sp->cast_starts(info);
|
||||
} else {
|
||||
if (!gets_bag()->has_item(it, 1)) {
|
||||
if (!bag_gets()->has_item(it, 1)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -4801,19 +4801,19 @@ void Entity::target_setc(Node *p_target) {
|
||||
|
||||
//// Class Talents ////
|
||||
|
||||
int Entity::gets_free_class_talent_points() {
|
||||
int Entity::class_talent_points_gets_free() {
|
||||
return _s_free_class_talent_points;
|
||||
}
|
||||
void Entity::sets_free_class_talent_points(int value) {
|
||||
void Entity::class_talent_points_sets_free(int value) {
|
||||
_s_free_class_talent_points = value;
|
||||
|
||||
ORPC(setc_free_class_talent_points, value);
|
||||
ORPC(class_talent_points_setc_free, value);
|
||||
}
|
||||
|
||||
int Entity::getc_free_class_talent_points() {
|
||||
int Entity::class_talent_points_getc_free() {
|
||||
return _c_free_class_talent_points;
|
||||
}
|
||||
void Entity::setc_free_class_talent_points(int value) {
|
||||
void Entity::class_talent_points_setc_free(int value) {
|
||||
_c_free_class_talent_points = value;
|
||||
}
|
||||
|
||||
@ -4826,7 +4826,7 @@ void Entity::class_talent_sreceive_learn_request(int spec_index, int class_talen
|
||||
}
|
||||
|
||||
void Entity::_class_talent_sreceive_learn_request(int spec_index, int class_talent_row, int class_talent_culomn) {
|
||||
if (gets_free_class_talent_points() <= 0) {
|
||||
if (class_talent_points_gets_free() <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -4891,7 +4891,7 @@ void Entity::_class_talent_sreceive_learn_request(int spec_index, int class_tale
|
||||
|
||||
class_talent_adds(class_talent_id);
|
||||
|
||||
sets_free_class_talent_points(gets_free_class_talent_points() - 1);
|
||||
class_talent_points_sets_free(class_talent_points_gets_free() - 1);
|
||||
|
||||
return;
|
||||
}
|
||||
@ -5051,19 +5051,19 @@ void Entity::sclass_talents_set(const PoolIntArray &data) {
|
||||
|
||||
//// Character Talents ////
|
||||
|
||||
int Entity::gets_free_character_talent_points() {
|
||||
int Entity::character_talent_points_gets_free() {
|
||||
return _s_free_character_talent_points;
|
||||
}
|
||||
void Entity::sets_free_character_talent_points(int value) {
|
||||
void Entity::character_talent_points_sets_free(int value) {
|
||||
_s_free_character_talent_points = value;
|
||||
|
||||
ORPC(setc_free_character_talent_points, value);
|
||||
ORPC(character_talent_points_setc_free, value);
|
||||
}
|
||||
|
||||
int Entity::getc_free_character_talent_points() {
|
||||
int Entity::character_talent_points_getc_free() {
|
||||
return _c_free_character_talent_points;
|
||||
}
|
||||
void Entity::setc_free_character_talent_points(int value) {
|
||||
void Entity::character_talent_points_setc_free(int value) {
|
||||
_c_free_character_talent_points = value;
|
||||
}
|
||||
|
||||
@ -5076,7 +5076,7 @@ void Entity::character_talent_sreceive_learn_request(int spec_index, int charact
|
||||
}
|
||||
|
||||
void Entity::_character_talent_sreceive_learn_request(int spec_index, int character_talent_row, int character_talent_culomn) {
|
||||
if (gets_free_character_talent_points() <= 0) {
|
||||
if (character_talent_points_gets_free() <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -5141,7 +5141,7 @@ void Entity::_character_talent_sreceive_learn_request(int spec_index, int charac
|
||||
|
||||
character_talent_adds(character_talent_id);
|
||||
|
||||
sets_free_character_talent_points(gets_free_character_talent_points() - 1);
|
||||
character_talent_points_sets_free(character_talent_points_gets_free() - 1);
|
||||
|
||||
return;
|
||||
}
|
||||
@ -5301,10 +5301,10 @@ void Entity::scharacter_talents_set(const PoolIntArray &data) {
|
||||
|
||||
//// Bag ////
|
||||
|
||||
Ref<Bag> Entity::gets_bag() const {
|
||||
Ref<Bag> Entity::bag_gets() const {
|
||||
return _s_bag;
|
||||
}
|
||||
void Entity::sets_bag(const Ref<Bag> bag) {
|
||||
void Entity::bag_sets(const Ref<Bag> bag) {
|
||||
if (_s_bag.is_valid()) {
|
||||
_s_bag->disconnect("item_added", this, "notification_item_sadded");
|
||||
_s_bag->disconnect("item_removed", this, "notification_item_sremoved");
|
||||
@ -5328,25 +5328,25 @@ void Entity::sets_bag(const Ref<Bag> bag) {
|
||||
emit_signal("sbag_changed", this, _s_bag);
|
||||
|
||||
if (_s_bag.is_valid()) {
|
||||
ORPC(setc_bag_rpc, JSON::print(_s_bag->to_dict()));
|
||||
ORPC(bag_setc_rpc, JSON::print(_s_bag->to_dict()));
|
||||
} else {
|
||||
ORPC(setc_bag_rpc, "");
|
||||
ORPC(bag_setc_rpc, "");
|
||||
}
|
||||
}
|
||||
|
||||
Ref<Bag> Entity::getc_bag() const {
|
||||
Ref<Bag> Entity::bag_getc() const {
|
||||
return _c_bag;
|
||||
}
|
||||
void Entity::setc_bag(const Ref<Bag> bag) {
|
||||
void Entity::bag_setc(const Ref<Bag> bag) {
|
||||
_c_bag = bag;
|
||||
|
||||
emit_signal("cbag_changed", this, _c_bag);
|
||||
}
|
||||
|
||||
Ref<Bag> Entity::target_gets_bag() const {
|
||||
Ref<Bag> Entity::target_bag_gets() const {
|
||||
return _s_target_bag;
|
||||
}
|
||||
void Entity::target_sets_bag(const Ref<Bag> bag) {
|
||||
void Entity::target_bag_sets(const Ref<Bag> bag) {
|
||||
if (_s_target_bag.is_valid()) {
|
||||
_s_target_bag->disconnect("item_added", this, "notification_target_item_sadded");
|
||||
_s_target_bag->disconnect("item_removed", this, "notification_target_item_sremoved");
|
||||
@ -5366,34 +5366,34 @@ void Entity::target_sets_bag(const Ref<Bag> bag) {
|
||||
emit_signal("starget_bag_changed", this, _s_target_bag);
|
||||
|
||||
if (_s_target_bag.is_valid()) {
|
||||
ORPC(target_setc_bag_rpc, JSON::print(_s_target_bag->to_dict()));
|
||||
ORPC(target_bag_setc_rpc, JSON::print(_s_target_bag->to_dict()));
|
||||
} else {
|
||||
ORPC(target_setc_bag_rpc, "");
|
||||
ORPC(target_bag_setc_rpc, "");
|
||||
}
|
||||
}
|
||||
|
||||
Ref<Bag> Entity::target_getc_bag() const {
|
||||
Ref<Bag> Entity::target_bag_getc() const {
|
||||
return _c_target_bag;
|
||||
}
|
||||
void Entity::target_setc_bag(const Ref<Bag> bag) {
|
||||
void Entity::target_bag_setc(const Ref<Bag> bag) {
|
||||
_c_target_bag = bag;
|
||||
|
||||
emit_signal("ctarget_bag_changed", this, _s_target_bag);
|
||||
}
|
||||
|
||||
void Entity::setc_bag_rpc(String data) {
|
||||
void Entity::bag_setc_rpc(String data) {
|
||||
Ref<Bag> bag;
|
||||
bag.instance();
|
||||
bag->from_dict(data_as_dict(data));
|
||||
|
||||
setc_bag(bag);
|
||||
bag_setc(bag);
|
||||
}
|
||||
void Entity::target_setc_bag_rpc(String data) {
|
||||
void Entity::target_bag_setc_rpc(String data) {
|
||||
Ref<Bag> bag;
|
||||
bag.instance();
|
||||
bag->from_dict(data_as_dict(data));
|
||||
|
||||
target_setc_bag(bag);
|
||||
target_bag_setc(bag);
|
||||
}
|
||||
|
||||
void Entity::loot_crequest(int index) {
|
||||
@ -6058,8 +6058,8 @@ Entity::Entity() {
|
||||
|
||||
//// Inventory ////
|
||||
|
||||
SET_RPC_REMOTE("setc_bag_rpc");
|
||||
SET_RPC_REMOTE("target_setc_bag_rpc");
|
||||
SET_RPC_REMOTE("bag_setc_rpc");
|
||||
SET_RPC_REMOTE("target_bag_setc_rpc");
|
||||
|
||||
SET_RPC_REMOTE("loots");
|
||||
SET_RPC_REMOTE("lootc");
|
||||
@ -6154,7 +6154,7 @@ void Entity::_crafts(int id) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!gets_bag()->has_item(mat->get_item(), mat->get_count())) {
|
||||
if (!bag_gets()->has_item(mat->get_item(), mat->get_count())) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -6166,7 +6166,7 @@ void Entity::_crafts(int id) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!gets_bag()->has_item(mat->get_item(), mat->get_count())) {
|
||||
if (!bag_gets()->has_item(mat->get_item(), mat->get_count())) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -6180,12 +6180,12 @@ void Entity::_crafts(int id) {
|
||||
continue;
|
||||
}
|
||||
|
||||
gets_bag()->remove_items(mat->get_item(), mat->get_count());
|
||||
bag_gets()->remove_items(mat->get_item(), mat->get_count());
|
||||
}
|
||||
|
||||
Ref<ItemInstance> item = recipe->get_item()->get_item()->create_item_instance();
|
||||
|
||||
gets_bag()->add_item(item);
|
||||
bag_gets()->add_item(item);
|
||||
}
|
||||
|
||||
void Entity::_notification_sxp_gained(int value) {
|
||||
@ -6238,14 +6238,14 @@ void Entity::_notification_slevel_up(int level) {
|
||||
free_spell_points_sets(free_spell_points_gets() + ecd->get_spell_points_per_level() * level);
|
||||
}
|
||||
|
||||
sets_free_character_talent_points(gets_free_character_talent_points() + level);
|
||||
character_talent_points_sets_free(character_talent_points_gets_free() + level);
|
||||
}
|
||||
|
||||
if (ESS::get_singleton()->get_use_spell_points()) {
|
||||
free_spell_points_sets(free_spell_points_gets() + ecd->get_spell_points_per_level() * level);
|
||||
}
|
||||
|
||||
sets_free_class_talent_points(gets_free_class_talent_points() + level);
|
||||
class_talent_points_sets_free(class_talent_points_gets_free() + level);
|
||||
|
||||
if (ESS::get_singleton()->get_auto_learn_spells()) {
|
||||
for (int i = 0; i < ecd->get_num_spells(); ++i) {
|
||||
@ -6438,7 +6438,7 @@ void Entity::_vendor_item_sbuy(const int index, const int count) {
|
||||
return;
|
||||
}
|
||||
|
||||
Ref<Bag> sbag = gets_bag();
|
||||
Ref<Bag> sbag = bag_gets();
|
||||
|
||||
int s = count;
|
||||
if (t->get_stack_size() < s) {
|
||||
@ -6485,7 +6485,7 @@ void Entity::_vendor_item_ssell(const int slot_id) {
|
||||
return;
|
||||
}
|
||||
|
||||
Ref<Bag> bag = gets_bag();
|
||||
Ref<Bag> bag = bag_gets();
|
||||
|
||||
Ref<ItemInstance> ii = bag->get_item(slot_id);
|
||||
|
||||
@ -6827,13 +6827,13 @@ void Entity::_bind_methods() {
|
||||
|
||||
//Class Talents
|
||||
|
||||
ClassDB::bind_method(D_METHOD("gets_free_class_talent_points"), &Entity::gets_free_class_talent_points);
|
||||
ClassDB::bind_method(D_METHOD("sets_free_class_talent_points", "value"), &Entity::sets_free_class_talent_points);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "sfree_class_talent_points", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_ENTITY_HIDDEN), "sets_free_class_talent_points", "gets_free_class_talent_points");
|
||||
ClassDB::bind_method(D_METHOD("class_talent_points_gets_free"), &Entity::class_talent_points_gets_free);
|
||||
ClassDB::bind_method(D_METHOD("class_talent_points_sets_free", "value"), &Entity::class_talent_points_sets_free);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "sfree_class_talent_points", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_ENTITY_HIDDEN), "class_talent_points_sets_free", "class_talent_points_gets_free");
|
||||
|
||||
ClassDB::bind_method(D_METHOD("getc_free_class_talent_points"), &Entity::getc_free_class_talent_points);
|
||||
ClassDB::bind_method(D_METHOD("setc_free_class_talent_points", "value"), &Entity::setc_free_class_talent_points);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "cfree_class_talent_points", PROPERTY_HINT_NONE, "", 0), "setc_free_class_talent_points", "getc_free_class_talent_points");
|
||||
ClassDB::bind_method(D_METHOD("class_talent_points_getc_free"), &Entity::class_talent_points_getc_free);
|
||||
ClassDB::bind_method(D_METHOD("class_talent_points_setc_free", "value"), &Entity::class_talent_points_setc_free);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "cfree_class_talent_points", PROPERTY_HINT_NONE, "", 0), "class_talent_points_setc_free", "class_talent_points_getc_free");
|
||||
|
||||
BIND_VMETHOD(MethodInfo("_class_talent_sreceive_learn_request", PropertyInfo(Variant::INT, "spec_index"), PropertyInfo(Variant::INT, "class_talent_row"), PropertyInfo(Variant::INT, "class_talent_culomn")));
|
||||
BIND_VMETHOD(MethodInfo("_class_talent_sreceive_reset_request"));
|
||||
@ -6881,13 +6881,13 @@ void Entity::_bind_methods() {
|
||||
|
||||
//Character Talents
|
||||
|
||||
ClassDB::bind_method(D_METHOD("gets_free_character_talent_points"), &Entity::gets_free_character_talent_points);
|
||||
ClassDB::bind_method(D_METHOD("sets_free_character_talent_points", "value"), &Entity::sets_free_character_talent_points);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "sfree_character_talent_points", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_ENTITY_HIDDEN), "sets_free_character_talent_points", "gets_free_character_talent_points");
|
||||
ClassDB::bind_method(D_METHOD("character_talent_points_gets_free"), &Entity::character_talent_points_gets_free);
|
||||
ClassDB::bind_method(D_METHOD("character_talent_points_sets_free", "value"), &Entity::character_talent_points_sets_free);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "sfree_character_talent_points", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_ENTITY_HIDDEN), "character_talent_points_sets_free", "character_talent_points_gets_free");
|
||||
|
||||
ClassDB::bind_method(D_METHOD("getc_free_character_talent_points"), &Entity::getc_free_character_talent_points);
|
||||
ClassDB::bind_method(D_METHOD("setc_free_character_talent_points", "value"), &Entity::setc_free_character_talent_points);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "cfree_character_talent_points", PROPERTY_HINT_NONE, "", 0), "setc_free_character_talent_points", "getc_free_character_talent_points");
|
||||
ClassDB::bind_method(D_METHOD("character_talent_points_getc_free"), &Entity::character_talent_points_getc_free);
|
||||
ClassDB::bind_method(D_METHOD("character_talent_points_setc_free", "value"), &Entity::character_talent_points_setc_free);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "cfree_character_talent_points", PROPERTY_HINT_NONE, "", 0), "character_talent_points_setc_free", "character_talent_points_getc_free");
|
||||
|
||||
BIND_VMETHOD(MethodInfo("_character_talent_sreceive_learn_request", PropertyInfo(Variant::INT, "spec_index"), PropertyInfo(Variant::INT, "character_talent_row"), PropertyInfo(Variant::INT, "character_talent_culomn")));
|
||||
BIND_VMETHOD(MethodInfo("_character_talent_sreceive_reset_request"));
|
||||
@ -7612,27 +7612,27 @@ void Entity::_bind_methods() {
|
||||
ADD_SIGNAL(MethodInfo("sbag_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag")));
|
||||
ADD_SIGNAL(MethodInfo("cbag_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag")));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("gets_bag"), &Entity::gets_bag);
|
||||
ClassDB::bind_method(D_METHOD("sets_bag", "bag"), &Entity::sets_bag);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "sbag", PROPERTY_HINT_RESOURCE_TYPE, "Bag"), "sets_bag", "gets_bag");
|
||||
ClassDB::bind_method(D_METHOD("bag_gets"), &Entity::bag_gets);
|
||||
ClassDB::bind_method(D_METHOD("bag_sets", "bag"), &Entity::bag_sets);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "sbag", PROPERTY_HINT_RESOURCE_TYPE, "Bag"), "bag_sets", "bag_gets");
|
||||
|
||||
ClassDB::bind_method(D_METHOD("getc_bag"), &Entity::getc_bag);
|
||||
ClassDB::bind_method(D_METHOD("setc_bag", "bag"), &Entity::setc_bag);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "cbag", PROPERTY_HINT_RESOURCE_TYPE, "Bag", 0), "setc_bag", "getc_bag");
|
||||
ClassDB::bind_method(D_METHOD("bag_getc"), &Entity::bag_getc);
|
||||
ClassDB::bind_method(D_METHOD("bag_setc", "bag"), &Entity::bag_setc);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "cbag", PROPERTY_HINT_RESOURCE_TYPE, "Bag", 0), "bag_setc", "bag_getc");
|
||||
|
||||
ADD_SIGNAL(MethodInfo("starget_bag_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag")));
|
||||
ADD_SIGNAL(MethodInfo("ctarget_bag_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag")));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("target_gets_bag"), &Entity::target_gets_bag);
|
||||
ClassDB::bind_method(D_METHOD("target_sets_bag", "bag"), &Entity::target_sets_bag);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "starget_bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag", PROPERTY_USAGE_ENTITY_HIDDEN), "target_sets_bag", "target_gets_bag");
|
||||
ClassDB::bind_method(D_METHOD("target_bag_gets"), &Entity::target_bag_gets);
|
||||
ClassDB::bind_method(D_METHOD("target_bag_sets", "bag"), &Entity::target_bag_sets);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "starget_bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag", PROPERTY_USAGE_ENTITY_HIDDEN), "target_bag_sets", "target_bag_gets");
|
||||
|
||||
ClassDB::bind_method(D_METHOD("target_getc_bag"), &Entity::target_getc_bag);
|
||||
ClassDB::bind_method(D_METHOD("target_setc_bag", "bag"), &Entity::target_setc_bag);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "ctarget_bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag", 0), "target_setc_bag", "target_getc_bag");
|
||||
ClassDB::bind_method(D_METHOD("target_bag_getc"), &Entity::target_bag_getc);
|
||||
ClassDB::bind_method(D_METHOD("target_bag_setc", "bag"), &Entity::target_bag_setc);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "ctarget_bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag", 0), "target_bag_setc", "target_bag_getc");
|
||||
|
||||
ClassDB::bind_method(D_METHOD("setc_bag_rpc", "data"), &Entity::setc_bag_rpc);
|
||||
ClassDB::bind_method(D_METHOD("target_setc_bag_rpc", "data"), &Entity::target_setc_bag_rpc);
|
||||
ClassDB::bind_method(D_METHOD("bag_setc_rpc", "data"), &Entity::bag_setc_rpc);
|
||||
ClassDB::bind_method(D_METHOD("target_bag_setc_rpc", "data"), &Entity::target_bag_setc_rpc);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("loot_crequest"), &Entity::loot_crequest);
|
||||
ClassDB::bind_method(D_METHOD("loots"), &Entity::loots);
|
||||
|
@ -810,11 +810,11 @@ public:
|
||||
|
||||
//// Class Talents ////
|
||||
|
||||
int gets_free_class_talent_points();
|
||||
void sets_free_class_talent_points(int value);
|
||||
int class_talent_points_gets_free();
|
||||
void class_talent_points_sets_free(int value);
|
||||
|
||||
int getc_free_class_talent_points();
|
||||
void setc_free_class_talent_points(int value);
|
||||
int class_talent_points_getc_free();
|
||||
void class_talent_points_setc_free(int value);
|
||||
|
||||
void class_talent_crequest_learn(int spec_index, int class_talent_row, int class_talent_culomn);
|
||||
void class_talent_sreceive_learn_request(int spec_index, int class_talent_row, int class_talent_culomn);
|
||||
@ -846,11 +846,11 @@ public:
|
||||
|
||||
//// Character Talents ////
|
||||
|
||||
int gets_free_character_talent_points();
|
||||
void sets_free_character_talent_points(int value);
|
||||
int character_talent_points_gets_free();
|
||||
void character_talent_points_sets_free(int value);
|
||||
|
||||
int getc_free_character_talent_points();
|
||||
void setc_free_character_talent_points(int value);
|
||||
int character_talent_points_getc_free();
|
||||
void character_talent_points_setc_free(int value);
|
||||
|
||||
void character_talent_crequest_learn(int spec_index, int character_talent_row, int character_talent_culomn);
|
||||
void character_talent_sreceive_learn_request(int spec_index, int character_talent_row, int character_talent_culomn);
|
||||
@ -882,20 +882,20 @@ public:
|
||||
|
||||
//// Inventory ////
|
||||
|
||||
Ref<Bag> gets_bag() const;
|
||||
void sets_bag(const Ref<Bag> bag);
|
||||
Ref<Bag> bag_gets() const;
|
||||
void bag_sets(const Ref<Bag> bag);
|
||||
|
||||
Ref<Bag> getc_bag() const;
|
||||
void setc_bag(const Ref<Bag> bag);
|
||||
Ref<Bag> bag_getc() const;
|
||||
void bag_setc(const Ref<Bag> bag);
|
||||
|
||||
Ref<Bag> target_gets_bag() const;
|
||||
void target_sets_bag(const Ref<Bag> bag);
|
||||
Ref<Bag> target_bag_gets() const;
|
||||
void target_bag_sets(const Ref<Bag> bag);
|
||||
|
||||
Ref<Bag> target_getc_bag() const;
|
||||
void target_setc_bag(const Ref<Bag> bag);
|
||||
Ref<Bag> target_bag_getc() const;
|
||||
void target_bag_setc(const Ref<Bag> bag);
|
||||
|
||||
void setc_bag_rpc(String data);
|
||||
void target_setc_bag_rpc(String data);
|
||||
void bag_setc_rpc(String data);
|
||||
void target_bag_setc_rpc(String data);
|
||||
|
||||
void loot_crequest(int index);
|
||||
void loots(int index);
|
||||
|
Loading…
Reference in New Issue
Block a user