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

Fixed C# project module "AGS.Types" so that it successfully builds in xBuild on *nix systems #396

Merged

Conversation

persn
Copy link
Contributor

@persn persn commented Apr 16, 2017

Like the title says, I have more details on the individual commit messages so make sure to read those.

@sonneveld
Copy link
Member

Thanks for this and other pull requests.. I'll have to get the build server working again before I can accept them though.

@sonneveld sonneveld requested review from monkey0506 and removed request for monkey0506 April 16, 2017 03:14
@persn
Copy link
Contributor Author

persn commented Apr 16, 2017

No rush.. I'm still experimenting with the other C# modules.

@ghost
Copy link

ghost commented May 5, 2017

I apologize for delay, apparently these pull requests fell out of my head completely.

Regarding EntryPointOffset which references otherwise unused _entryPointOffset.
Comment there sais:

Pre-3.1.1 wrote this into the Game.agf XML, so we have to keep this dummy property to allow it to deserialise.

This is a caveat of AGS project serialization system, which I do not really like. Something could be done with it later, but for now you may remove this property if you add following attribute to the DialogOption class:

[DeserializeIgnore("EntryPointOffset")]

That's an attribute I created while ago for the purpose of deprecating properties without breaking deserialization.

@persn persn force-pushed the hotfix/ags-types-nix-build branch from b0b5307 to 2c94b56 Compare May 5, 2017 16:03
persn added 3 commits May 5, 2017 18:09
File header is commented with /* */ which xbuild doesn't approve of for some reason. I replaced the comments with something more conventional. Alternatively we could also consider to just remove the header entirely, the revision history doesn't provide much substantial information.
Field _editor seems to exist for no other purpose than being assigned to. This needs some testing to verify I didn't break anything in case there's unknown "magic" happening behind somewhere I can't see. As far as I can tell everything is working as it should.
xBuild doesn't approve of unused variable, removed it and a added DeserializeIgnore to class to make sure deserializing doesn't break

ggg
@persn persn force-pushed the hotfix/ags-types-nix-build branch from 2c94b56 to 1296692 Compare May 5, 2017 16:12
@persn
Copy link
Contributor Author

persn commented May 5, 2017

Updated according to feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
what: editor related to the game editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants