Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gunbag - Move gunbag type from inheritance to config property #7022

Merged
merged 4 commits into from
Jun 5, 2019

Conversation

dedmen
Copy link
Contributor

@dedmen dedmen commented May 28, 2019

From Feature request
#3594 (comment)
@ImplicitDeny

Makes it easier for 3rd parties to create gunbags without adding a ACE dependency.
Slight performance hit (I assume) for config lookup instead of isKindOf, though isKindOf is also not much cheaper I think. Not big enough difference to be worth testing or caching.
Or... Maybe caching, leaving that up to you, don't think its worth.

Noticed we don't have a gunbag wiki page. Someone should add one someday ^^

@jonpas
Copy link
Member

jonpas commented May 28, 2019

Documentation would be nice.

@dedmen
Copy link
Contributor Author

dedmen commented May 28, 2019

new gunbag framework page? I never wrote any wiki stuff before.

@jonpas
Copy link
Member

jonpas commented May 28, 2019

Yes, new page.

@dedmen
Copy link
Contributor Author

dedmen commented May 28, 2019

Need help with the texting.
Also should it maybe be feature page? It seems a little small for framework.

```cpp
class Bag_Base;
class ace_gunbag: Bag_Base {
_generalMacro = QUOTE(ADDON);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken indentation.

Copy link
Contributor Author

@dedmen dedmen May 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mh? I don't see it. It's 4 space for me.
hm hearing framework uses 4+5 space indent for two levels...
HuntIR uses 4+4+4+2 for 4 levels.. wtf?
overheating uses normal 4 space indent.
grenades also uses 4 space.
I use 4 space too. What's the correct way to do it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed _generalMacro from the doc as we don't need it anyway.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk, not all lines were indented the same when I looked at diff.

@jonpas
Copy link
Member

jonpas commented May 28, 2019

It is a framework. Feature page would describe it for users, framework page describes the framework.

@PabstMirror PabstMirror added the kind/enhancement Release Notes: **IMPROVED:** label May 28, 2019
@PabstMirror PabstMirror added this to the 3.13.0 milestone May 28, 2019
@dedmen
Copy link
Contributor Author

dedmen commented May 29, 2019

A additional feature page about gunbag would also not be a bad idea, currently we have nothing.

commy2 approved these changes

https://github.com/acemod/ACE3/pull/7022/files#diff-b96463f2310bb0b2b9637bf3594f2653R17
You are okey with that? :D
I thought someone might give me better text to put there.

@commy2
Copy link
Contributor

commy2 commented Jun 3, 2019

"Thing" is a bite crude I guess, but "gunbag backpack" sounds silly too.

@Drofseh
Copy link
Contributor

Drofseh commented Jun 3, 2019

Container would be my suggestion

docs/wiki/framework/gunbag-framework.md Outdated Show resolved Hide resolved
docs/wiki/framework/gunbag-framework.md Outdated Show resolved Hide resolved
docs/wiki/framework/gunbag-framework.md Outdated Show resolved Hide resolved
@dedmen
Copy link
Contributor Author

dedmen commented Jun 4, 2019

Sounds good to me now.

@PabstMirror PabstMirror merged commit 26fe041 into acemod:master Jun 5, 2019
@PabstMirror PabstMirror changed the title Move gunbag type from inheritance to config property Gunbag - Move gunbag type from inheritance to config property Jun 5, 2019
BaerMitUmlaut pushed a commit that referenced this pull request Aug 5, 2019
* Move gunbag type from inheritance to config property

* Add gunbag framework wiki

* Remove _generalMacro from doc

* Apply documentation suggestions

Co-Authored-By: mharis001 <[email protected]>
@PabstMirror PabstMirror modified the milestones: 3.13.0, 3.13.0-temp2 Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants