mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
style: naming convention
This commit is contained in:
parent
ed16fcff8c
commit
9d54bf7bb1
@ -7,7 +7,7 @@ namespace Mirror.Weaver
|
||||
{
|
||||
public static class SyncVarProcessor
|
||||
{
|
||||
const int k_SyncVarLimit = 64; // ulong = 64 bytes
|
||||
const int SyncVarLimit = 64; // ulong = 64 bytes
|
||||
|
||||
// returns false for error, not for no-hook-exists
|
||||
public static bool CheckForHookFunction(TypeDefinition td, FieldDefinition syncVar, out MethodDefinition foundMethod)
|
||||
@ -313,9 +313,9 @@ public static void ProcessSyncVars(TypeDefinition td, List<FieldDefinition> sync
|
||||
dirtyBitCounter += 1;
|
||||
numSyncVars += 1;
|
||||
|
||||
if (dirtyBitCounter == k_SyncVarLimit)
|
||||
if (dirtyBitCounter == SyncVarLimit)
|
||||
{
|
||||
Weaver.Error("Script class [" + td.FullName + "] has too many SyncVars (" + k_SyncVarLimit + "). (This could include base classes)");
|
||||
Weaver.Error("Script class [" + td.FullName + "] has too many SyncVars (" + SyncVarLimit + "). (This could include base classes)");
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user