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); 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) // (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) public void WriteBytesAndSize(byte[] buffer)
{ {

View File

@ -71,14 +71,13 @@
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="SyncListStructProcessor.cs" /> <Compile Include="SyncListStructProcessor.cs" />
<Compile Include="UNetBehaviourProcessor.cs" /> <Compile Include="UNetBehaviourProcessor.cs" />
<Compile Include="UNetWeaver.cs" /> <Compile Include="Weaver.cs" />
<Compile Include="Helpers.cs" /> <Compile Include="Helpers.cs" />
<Compile Include="CompilationFinishedHook.cs" /> <Compile Include="CompilationFinishedHook.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup> <ItemGroup>
<CecilFiles Include="$(TargetDir)Unity.Cecil.*" /> <CecilFiles Include="$(TargetDir)Unity.Cecil.*" />
</ItemGroup> </ItemGroup>
<Target Name="AfterBuild"> <Target Name="AfterBuild">
<MakeDir Directories="$(ProjectDir)..\Output\Editor" /> <MakeDir Directories="$(ProjectDir)..\Output\Editor" />

View File

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