From 0713db8338c0bb73d8b0f5bba1a0311b11ea9d28 Mon Sep 17 00:00:00 2001 From: vis2k Date: Mon, 15 Mar 2021 19:26:18 +0800 Subject: [PATCH] add comment --- Assets/Mirror/Runtime/Utils.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assets/Mirror/Runtime/Utils.cs b/Assets/Mirror/Runtime/Utils.cs index 209ac3e99..688974a4d 100644 --- a/Assets/Mirror/Runtime/Utils.cs +++ b/Assets/Mirror/Runtime/Utils.cs @@ -29,6 +29,13 @@ public enum Version Current = 1 } + // channels are const ints instead of an enum so people can add their own + // channels (can't extend an enum otherwise). + // + // note that Mirror is slowly moving towards quake style networking which + // will only require reliable for handshake, and unreliable for the rest. + // so eventually we can change this to an Enum and transports shouldn't + // add custom channels anymore. public static class Channels { public const int DefaultReliable = 0;