Пример #1
0
        static partial void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
        {
            WorldUtilities.ResetTypeIds();

            CoreComponentsInitializer.InitTypeId();


            WorldUtilities.InitComponentTypeId <Example.Features.Logic.DestroyByTime.Components.DestroyByTime>(false, false, false, false, false);
            WorldUtilities.InitComponentTypeId <Example.Features.Logic.ForceAtPoint.Components.AddForce>(false, false, false, false, false);
            WorldUtilities.InitComponentTypeId <Example.Features.Logic.ForceAtPoint.Components.Force>(false, false, false, false, false);
            WorldUtilities.InitComponentTypeId <Example.Features.Map.Components.IsMap>(true, false, false, false, false);
            WorldUtilities.InitComponentTypeId <Example.Features.PlayerFire.Components.BulletFly>(false, false, false, false, false);
            WorldUtilities.InitComponentTypeId <Example.Features.PlayerFire.Components.FireAction>(true, false, false, false, false);
            WorldUtilities.InitComponentTypeId <Example.Features.PlayerFire.Components.IsBullet>(false, false, false, false, false);
            WorldUtilities.InitComponentTypeId <Example.Features.PlayerMovement.Components.LastMovementDirection>(false, false, false, false, false);
            WorldUtilities.InitComponentTypeId <Example.Features.PlayerMovement.Components.MoveAction>(false, false, false, false, false);
            WorldUtilities.InitComponentTypeId <Example.Features.Players.Components.IsPlayer>(true, false, false, false, false);

            ComponentsInitializerWorld.Setup(ComponentsInitializerWorldGen.Init);
            CoreComponentsInitializer.Init(ref structComponentsContainer);


            structComponentsContainer.Validate <Example.Features.Logic.DestroyByTime.Components.DestroyByTime>(false);
            structComponentsContainer.Validate <Example.Features.Logic.ForceAtPoint.Components.AddForce>(false);
            structComponentsContainer.Validate <Example.Features.Logic.ForceAtPoint.Components.Force>(false);
            structComponentsContainer.Validate <Example.Features.Map.Components.IsMap>(true);
            structComponentsContainer.Validate <Example.Features.PlayerFire.Components.BulletFly>(false);
            structComponentsContainer.Validate <Example.Features.PlayerFire.Components.FireAction>(true);
            structComponentsContainer.Validate <Example.Features.PlayerFire.Components.IsBullet>(false);
            structComponentsContainer.Validate <Example.Features.PlayerMovement.Components.LastMovementDirection>(false);
            structComponentsContainer.Validate <Example.Features.PlayerMovement.Components.MoveAction>(false);
            structComponentsContainer.Validate <Example.Features.Players.Components.IsPlayer>(true);
        }
Пример #2
0
 public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
 {
     TransformComponentsInitializer.Init(ref structComponentsContainer);
     NameComponentsInitializer.Init(ref structComponentsContainer);
     CameraComponentsInitializer.Init(ref structComponentsContainer);
     PhysicsComponentsInitializer.Init(ref structComponentsContainer);
 }
Пример #3
0
 public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
 {
     structComponentsContainer.Validate <ME.ECS.Features.PhysicsDeterministic.Components.PhysicsRigidbody>(true);
     structComponentsContainer.Validate <ME.ECS.Features.PhysicsDeterministic.Components.PhysicsOnCollisionEnter>();
     structComponentsContainer.Validate <ME.ECS.Features.PhysicsDeterministic.Components.PhysicsOnCollisionExit>();
     structComponentsContainer.Validate <ME.ECS.Features.PhysicsDeterministic.Components.PhysicsOnCollisionStay>();
 }
Пример #4
0
        public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
        {
            structComponentsContainer.Validate <ME.ECS.Transform.Childs>();
            structComponentsContainer.Validate <ME.ECS.Transform.Container>();

            Transform2DComponentsInitializer.Init(ref structComponentsContainer);
            Transform3DComponentsInitializer.Init(ref structComponentsContainer);
        }
Пример #5
0
 public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
 {
     structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.CalculatePath>();
     structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.IsPathfinding>(true);
     structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.BuildAllGraphs>(true);
     structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.HasPathfindingInstance>(true);
     structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.IsPathBuilt>(true);
 }
        public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
        {
            WorldUtilities.InitComponentTypeId <ME.ECS.Views.ViewComponent>(false);
            WorldUtilities.InitComponentTypeId <ME.ECS.Views.IViewComponent>(false);

            TransformComponentsInitializer.Init(ref structComponentsContainer);
            NameComponentsInitializer.Init(ref structComponentsContainer);
            CameraComponentsInitializer.Init(ref structComponentsContainer);
            PhysicsComponentsInitializer.Init(ref structComponentsContainer);
        }
        public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
        {
            structComponentsContainer.Validate <ME.ECS.Views.ViewComponent>(false);
            structComponentsContainer.Validate <ME.ECS.Collections.IntrusiveListNode>(false);
            structComponentsContainer.Validate <ME.ECS.Collections.IntrusiveHashSetBucket>(false);

            ME.ECS.DataConfigs.DataConfig.Init(ref structComponentsContainer);
            TransformComponentsInitializer.Init(ref structComponentsContainer);
            NameComponentsInitializer.Init(ref structComponentsContainer);
            CameraComponentsInitializer.Init(ref structComponentsContainer);
        }
        public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
        {
            WorldUtilities.InitComponentTypeId <ME.ECS.Pathfinding.Features.Pathfinding.Components.PathfindingInstance>(false, true, false, false);
            WorldUtilities.InitComponentTypeId <ME.ECS.Pathfinding.Features.Pathfinding.Components.CalculatePath>(false, false, false, false);
            WorldUtilities.InitComponentTypeId <ME.ECS.Pathfinding.Features.PathfindingAstar.Components.Path>(false, true, false, false);
            WorldUtilities.InitComponentTypeId <ME.ECS.Pathfinding.Features.PathfindingFlowField.Components.PathFlowField>(false, true, false, false);
            WorldUtilities.InitComponentTypeId <ME.ECS.Pathfinding.Features.Pathfinding.Components.IsPathfinding>(true, false, false, false);
            WorldUtilities.InitComponentTypeId <ME.ECS.Pathfinding.Features.Pathfinding.Components.BuildAllGraphs>(true, false, false, false);
            WorldUtilities.InitComponentTypeId <ME.ECS.Pathfinding.Features.Pathfinding.Components.IsAllGraphsBuilt>(true, false, false, false);
            WorldUtilities.InitComponentTypeId <ME.ECS.Pathfinding.Features.Pathfinding.Components.HasPathfindingInstance>(true, false, false, false);
            WorldUtilities.InitComponentTypeId <ME.ECS.Pathfinding.Features.Pathfinding.Components.IsPathBuilt>(true, false, false, false);

            structComponentsContainer.ValidateCopyable <ME.ECS.Pathfinding.Features.Pathfinding.Components.PathfindingInstance>(false);
            structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.CalculatePath>();
            structComponentsContainer.ValidateCopyable <ME.ECS.Pathfinding.Features.PathfindingAstar.Components.Path>();
            structComponentsContainer.ValidateCopyable <ME.ECS.Pathfinding.Features.PathfindingFlowField.Components.PathFlowField>();
            structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.IsPathfinding>(true);
            structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.BuildAllGraphs>(true);
            structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.IsAllGraphsBuilt>(true);
            structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.HasPathfindingInstance>(true);
            structComponentsContainer.Validate <ME.ECS.Pathfinding.Features.Pathfinding.Components.IsPathBuilt>(true);
        }
 public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
 {
     structComponentsContainer.Validate <ME.ECS.Name.Name>();
 }
Пример #10
0
 static partial void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer);
 public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
 {
     structComponentsContainer.Validate <ME.ECS.Transform.Position2D>();
     structComponentsContainer.Validate <ME.ECS.Transform.Rotation2D>();
     structComponentsContainer.Validate <ME.ECS.Transform.Scale2D>();
 }
 public static void Init(ref ME.ECS.StructComponentsContainer structComponentsContainer)
 {
     structComponentsContainer.Validate <SourceConfig>();
 }