Ejemplo n.º 1
0
 public static void RegisterDeclaredTypesSerializers(ISerializers serializers)
 {
     serializers.Register(RdOpenFileArgs.Read, RdOpenFileArgs.Write);
     serializers.Register(RdLogEvent.Read, RdLogEvent.Write);
     serializers.RegisterEnum <RdLogEventType>();
     serializers.RegisterEnum <RdLogEventMode>();
     serializers.Register(UnityLogModelInitialized.Read, UnityLogModelInitialized.Write);
 }
Ejemplo n.º 2
0
        //secondary constructor
        //statics



        public static void Register(ISerializers serializers)
        {
            if (!serializers.Toplevels.Add(typeof(UnityModel)))
            {
                return;
            }
            Protocol.InitializationLogger.Trace("REGISTER serializers for {0}", typeof(UnityModel).Name);

            serializers.Register(RdOpenFileArgs.Read, RdOpenFileArgs.Write);
            serializers.Register(RdLogEvent.Read, RdLogEvent.Write);
            serializers.RegisterEnum <RdLogEventType>();
            serializers.RegisterEnum <RdLogEventMode>();
            serializers.Register(UnityLogModelInitialized.Read, UnityLogModelInitialized.Write);
        }
        public static void RegisterDeclaredTypesSerializers(ISerializers serializers)
        {
            serializers.Register(RdOpenFileArgs.Read, RdOpenFileArgs.Write);
            serializers.Register(RdLogEvent.Read, RdLogEvent.Write);
            serializers.RegisterEnum <RdLogEventType>();
            serializers.RegisterEnum <RdLogEventMode>();
            serializers.Register(UnityLogModelInitialized.Read, UnityLogModelInitialized.Write);
            serializers.Register(TestResult.Read, TestResult.Write);
            serializers.Register(RunResult.Read, RunResult.Write);
            serializers.Register(JetBrains.Platform.Unity.Model.UnitTestLaunch.Read, JetBrains.Platform.Unity.Model.UnitTestLaunch.Write);
            serializers.RegisterEnum <UnityEditorState>();
            serializers.RegisterEnum <Status>();

            serializers.RegisterToplevelOnce(typeof(UnityModel), UnityModel.RegisterDeclaredTypesSerializers);
        }
        public static void RegisterDeclaredTypesSerializers(ISerializers serializers)
        {
            serializers.RegisterEnum <JetBrains.Rider.Model.MyEnum>();
            serializers.Register(JetBrains.Rider.Model.MyStructure.Read, JetBrains.Rider.Model.MyStructure.Write);

            serializers.RegisterToplevelOnce(typeof(IdeRoot), IdeRoot.RegisterDeclaredTypesSerializers);
        }