Renamed UNetWeaver.cs to Weaver.cs and renamed the warning/error messages too

This commit is contained in:
vis2k 2018-08-30 15:14:57 +02:00
parent 47c98a0a59
commit ebf6ab6777
4 changed files with 5 additions and 6 deletions

View File

@ -81,7 +81,7 @@ public void WriteBytesAndSize(byte[] buffer, int offset, int count)
writer.Write(buffer, offset, count);
}
// UNETWeaver needs a write function with just one byte[] parameter
// Weaver needs a write function with just one byte[] parameter
// (we don't name it .Write(byte[]) because it's really a WriteBytesAndSize since we write size / null info too)
public void WriteBytesAndSize(byte[] buffer)
{

View File

@ -71,12 +71,11 @@
<Compile Include="Program.cs" />
<Compile Include="SyncListStructProcessor.cs" />
<Compile Include="UNetBehaviourProcessor.cs" />
<Compile Include="UNetWeaver.cs" />
<Compile Include="Weaver.cs" />
<Compile Include="Helpers.cs" />
<Compile Include="CompilationFinishedHook.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<CecilFiles Include="$(TargetDir)Unity.Cecil.*" />
</ItemGroup>

View File

@ -12,12 +12,12 @@ public static class Log
public static void Warning(string msg)
{
WarningMethod("UNetWeaver warning: " + msg);
WarningMethod("Mirror.Weaver warning: " + msg);
}
public static void Error(string msg)
{
ErrorMethod("UNetWeaver error: " + msg);
ErrorMethod("Mirror.Weaver error: " + msg);
}
}