Generic tip about adding source code for assembly based mods

Started by RawCode, August 17, 2014, 05:12:34 AM

Previous topic - Next topic

RawCode



Done by implementing Attribute and marking types with it:

https://github.com/RawCode/Rimgazer/blob/master/PersistentCommentAttribute.cs

    [PersistentComment("This is comment that visible in decompiled classes")]
    public class PersistentCommentAttribute : Attribute
    {
        public PersistentCommentAttribute(string PersistentCommentData)
        {
        }
    }


This allow to distribute mods as single assembly and still provide sourcecode.