File tree Expand file tree Collapse file tree
MethodSystem/Methods/CustomRoleMethods/Structures Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66using SER . Code . Helpers . ResultSystem ;
77using SER . Code . ScriptSystem ;
88using SER . Code . ScriptSystem . Structures ;
9- using EventHandler = SER . Code . EventSystem . EventHandler ;
109
1110namespace SER . Code . FileSystem ;
1211
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public static void Debug<T>(T obj)
1313 Logger . Raw ( $ "Debug: { obj ! . ToString ( ) } ", ConsoleColor . Gray ) ;
1414 }
1515
16+ [ Conditional ( "SIGNAL" ) ]
1617 public static void Signal ( object o )
1718 {
1819 Logger . Raw ( o . ToString ( ) , ConsoleColor . Magenta ) ;
Original file line number Diff line number Diff line change @@ -13,15 +13,13 @@ public class CRole
1313{
1414 public CRole ( )
1515 {
16- Log . Signal ( $ "role { GetType ( ) . AccurateName } init") ;
1716 PlayerEvents . Death += OnDeath ;
1817 PlayerEvents . ChangingRole += OnPlayerChangingRole ;
1918 ServerEvents . RoundStarted += OnServerRoundStarted ;
2019 }
2120
2221 public void Unload ( )
2322 {
24- Log . Signal ( $ "role { GetType ( ) . AccurateName } deconstr") ;
2523 PlayerEvents . Death -= OnDeath ;
2624 PlayerEvents . ChangingRole -= OnPlayerChangingRole ;
2725 ServerEvents . RoundStarted -= OnServerRoundStarted ;
Original file line number Diff line number Diff line change 2424 <DebugSymbols >true</DebugSymbols >
2525 <DebugType >embedded</DebugType >
2626 <Optimize >false</Optimize >
27- <DefineConstants >DEBUG;TRACE;HAVE_NULLABLE_ATTRIBUTES;LABAPI</DefineConstants >
27+ <DefineConstants >DEBUG;TRACE;HAVE_NULLABLE_ATTRIBUTES;LABAPI;SIGNAL </DefineConstants >
2828 <OutputPath >bin\LABAPI\</OutputPath >
2929 </PropertyGroup >
3030
3131 <PropertyGroup Condition =" '$(Configuration)'=='Partial Debug'" >
3232 <DebugSymbols >true</DebugSymbols >
3333 <DebugType >embedded</DebugType >
3434 <Optimize >false</Optimize >
35- <DefineConstants >TRACE;HAVE_NULLABLE_ATTRIBUTES;LABAPI</DefineConstants >
35+ <DefineConstants >TRACE;HAVE_NULLABLE_ATTRIBUTES;LABAPI;SIGNAL </DefineConstants >
3636 <OutputPath >bin\LABAPI\</OutputPath >
3737 </PropertyGroup >
3838
You can’t perform that action at this time.
0 commit comments