mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Weaver: simplify GetSyncVarStart
This commit is contained in:
parent
d928817a3d
commit
db06497c1e
@ -227,13 +227,9 @@ public static void DLog(TypeDefinition td, string fmt, params object[] args)
|
|||||||
|
|
||||||
public static int GetSyncVarStart(string className)
|
public static int GetSyncVarStart(string className)
|
||||||
{
|
{
|
||||||
if (lists.numSyncVars.ContainsKey(className))
|
return lists.numSyncVars.ContainsKey(className)
|
||||||
{
|
? lists.numSyncVars[className]
|
||||||
int num = lists.numSyncVars[className];
|
: 0;
|
||||||
return num;
|
|
||||||
}
|
|
||||||
// start at zero
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SetNumSyncVars(string className, int num)
|
public static void SetNumSyncVars(string className, int num)
|
||||||
|
Loading…
Reference in New Issue
Block a user