My Project
Loading...
Searching...
No Matches
Classes | Enumerations
RoslynCSharp.Modding Namespace Reference

Classes

interface  IModScriptReplacedReceiver
 
class  ModReplaceableBehaviourAttribute
 Add this attribute to a component type to allow it to be replaced with an externally compiled mod script. Used in conjuection with the ModScriptReplacer. More...
 
class  ModScriptReplacer
 A useful utility class intended to support modding use cases. Allows you to replace an existing mono behaviour script component with an externally compiled replacement, allowing functionality to be added or changed. Only mono behaviour scripts that define the ModReplaceableBehaviourAttribute attribute will be considered during the replacement phase. Using the attribute, you can specify which name, base class and interface imeplementations the external compiled code must use in order to be considered as a replacement.
 
class  ModScriptReplacerReport
 Contains useful information for a script replacement request. Any issues when replacing the script will be logged here so that you can see why replacement failed. More...
 

Enumerations

enum  ScriptReplacerOptions {
  Default = CopySerializeFields | DestroyOriginalScript , DontRequireAttribute = 1 , CopySerializeFields = 2 , CopyNonSerializeFields = 4 ,
  DestroyOriginalScript = 8 , DisableOriginalScript = 16 , ReplaceDisabledScripts = 32 , RequireExplicitTypeMatches = 64
}