mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
9cf66b511d
commit
cf42e303ef
@ -46,7 +46,6 @@ internal void Register(TypeReference dataType, MethodReference methodReference)
|
||||
void RegisterReadFunc(TypeReference typeReference, MethodDefinition newReaderFunc)
|
||||
{
|
||||
Register(typeReference, newReaderFunc);
|
||||
|
||||
GeneratedCodeClass.Methods.Add(newReaderFunc);
|
||||
}
|
||||
|
||||
@ -54,15 +53,11 @@ void RegisterReadFunc(TypeReference typeReference, MethodDefinition newReaderFun
|
||||
public MethodReference GetReadFunc(TypeReference variable, ref bool WeavingFailed)
|
||||
{
|
||||
if (readFuncs.TryGetValue(variable, out MethodReference foundFunc))
|
||||
{
|
||||
return foundFunc;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
TypeReference importedVariable = assembly.MainModule.ImportReference(variable);
|
||||
return GenerateReader(importedVariable, ref WeavingFailed);
|
||||
}
|
||||
}
|
||||
|
||||
MethodReference GenerateReader(TypeReference variableReference, ref bool WeavingFailed)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user