Moving weaver comments (#1904)

* Moving weaver comments

* removing extra line
This commit is contained in:
James Frowen 2020-05-19 14:07:57 +01:00 committed by GitHub
parent 866808438a
commit 94795c50fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 34 additions and 13 deletions

View File

@ -1,9 +1,11 @@
// all the [Command] code from NetworkBehaviourProcessor in one place
using Mono.CecilX;
using Mono.CecilX.Cil;
namespace Mirror.Weaver
{
/// <summary>
/// Processes [Command] methods in NetworkBehaviour
/// </summary>
public static class CommandProcessor
{
const string CmdPrefix = "InvokeCmd";

View File

@ -1,11 +1,12 @@
// this class generates OnSerialize/OnDeserialize when inheriting from MessageBase
using System.Linq;
using Mono.CecilX;
using Mono.CecilX.Cil;
namespace Mirror.Weaver
{
/// <summary>
/// generates OnSerialize/OnDeserialize when inheriting from MessageBase
/// </summary>
static class MessageClassProcessor
{

View File

@ -1,8 +1,10 @@
// this class only shows warnings in case we use SyncVars etc. for MonoBehaviour.
using Mono.CecilX;
namespace Mirror.Weaver
{
/// <summary>
/// only shows warnings in case we use SyncVars etc. for MonoBehaviour.
/// </summary>
static class MonoBehaviourProcessor
{
public static void Process(TypeDefinition td)

View File

@ -1,10 +1,12 @@
// this class processes SyncVars, Cmds, Rpcs, etc. of NetworkBehaviours
using System.Collections.Generic;
using Mono.CecilX;
using Mono.CecilX.Cil;
namespace Mirror.Weaver
{
/// <summary>
/// processes SyncVars, Cmds, Rpcs, etc. of NetworkBehaviours
/// </summary>
class NetworkBehaviourProcessor
{
readonly List<FieldDefinition> syncVars = new List<FieldDefinition>();

View File

@ -1,8 +1,11 @@
// all the [Rpc] code from NetworkBehaviourProcessor in one place
using Mono.CecilX;
using Mono.CecilX.Cil;
namespace Mirror.Weaver
{
/// <summary>
/// Processes [Rpc] methods in NetworkBehaviour
/// </summary>
public static class RpcProcessor
{
public const string RpcPrefix = "InvokeRpc";

View File

@ -1,10 +1,11 @@
// this class processes SyncVars, Cmds, Rpcs, etc. of NetworkBehaviours
using Mono.CecilX;
using Mono.CecilX.Cil;
namespace Mirror.Weaver
{
/// <summary>
/// processes SyncVars, Cmds, Rpcs, etc. of NetworkBehaviours
/// </summary>
static class ServerClientAttributeProcessor
{
public static void ProcessMethodAttributes(TypeDefinition td, MethodDefinition md)

View File

@ -1,8 +1,10 @@
// this class generates OnSerialize/OnDeserialize for SyncLists
using Mono.CecilX;
namespace Mirror.Weaver
{
/// <summary>
/// generates OnSerialize/OnDeserialize for SyncLists
/// </summary>
static class SyncDictionaryProcessor
{
/// <summary>

View File

@ -1,10 +1,12 @@
// all the SyncEvent code from NetworkBehaviourProcessor in one place
using System.Collections.Generic;
using Mono.CecilX;
using Mono.CecilX.Cil;
namespace Mirror.Weaver
{
/// <summary>
/// Processes SyncEvents in NetworkBehaviour
/// </summary>
public static class SyncEventProcessor
{
public static MethodDefinition ProcessEventInvoke(TypeDefinition td, EventDefinition ed)

View File

@ -1,8 +1,10 @@
// this class generates OnSerialize/OnDeserialize for SyncLists
using Mono.CecilX;
namespace Mirror.Weaver
{
/// <summary>
/// generates OnSerialize/OnDeserialize for SyncLists
/// </summary>
static class SyncListProcessor
{
/// <summary>

View File

@ -1,10 +1,12 @@
// all the [SyncVar] code from NetworkBehaviourProcessor in one place
using System.Collections.Generic;
using Mono.CecilX;
using Mono.CecilX.Cil;
namespace Mirror.Weaver
{
/// <summary>
/// Processes [SyncVar] in NetworkBehaviour
/// </summary>
public static class SyncVarProcessor
{
// ulong = 64 bytes

View File

@ -1,9 +1,11 @@
// all the [TargetRpc] code from NetworkBehaviourProcessor in one place
using Mono.CecilX;
using Mono.CecilX.Cil;
namespace Mirror.Weaver
{
/// <summary>
/// Processes [TargetRpc] methods in NetworkBehaviour
/// </summary>
public static class TargetRpcProcessor
{
const string TargetRpcPrefix = "InvokeTargetRpc";