public static SystemRegistrationBuilder RegisterSystemIntoDefaultWorld <T>(this IContainerBuilder builder)
            where T : ComponentSystemBase
        {
            var registrationBuilder = new SystemRegistrationBuilder(typeof(T), null)
                                      .IntoGroup <SimulationSystemGroup>();

            return(builder.Register(registrationBuilder));
        }
示例#2
0
        public static SystemRegistrationBuilder RegisterSystemIntoWorld <T>(
            this IContainerBuilder builder,
            string worldName)
            where T : ComponentSystemBase
        {
            var registrationBuilder = new SystemRegistrationBuilder(typeof(T), worldName)
                                      .IntoGroup <SimulationSystemGroup>();

            builder.Register(registrationBuilder);
            return(registrationBuilder);
        }