mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Moving weaver comments (#1904)
* Moving weaver comments * removing extra line
This commit is contained in:
parent
866808438a
commit
94795c50fb
@ -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";
|
||||
|
@ -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
|
||||
{
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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>();
|
||||
|
@ -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";
|
||||
|
@ -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)
|
||||
|
@ -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>
|
||||
|
@ -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)
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user