Ejemplo n.º 1
0
 internal override void Apply(Player player, MatchManager matchManager)
 {
     if (player == null)
     {
         matchManager.random.SetSeed(seed);
     }
 }
Ejemplo n.º 2
0
 internal override void Apply(Player player, MatchManager matchManager)
 {
     if (player == null)
     {
         matchManager.playerManager.RemovePlayer(id);
     }
 }
Ejemplo n.º 3
0
        internal GameModeManager(MatchManager matchManager)
        {
            this.matchManager = matchManager;

            matchManager.physicsManager.SetLayerCollision(CollisionLayersConfig.AsteroidLayer, CollisionLayersConfig.SpaceshipLayer, true);

            matchManager.physicsManager.SetLayerCollision(CollisionLayersConfig.WeaponLayer, CollisionLayersConfig.AsteroidLayer, true);
        }
Ejemplo n.º 4
0
            internal override void Apply(Player player, MatchManager matchManager)
            {
                var entity = matchManager.entityManager.TryGetEntity(shipEntityPointer);

                if (entity == null || entity.Owner != player.id)
                {
                    return;
                }

                var spaceshipController = entity.GetComponent <SpaceshipController>();

                spaceshipController?.SetControls(controls);
            }
Ejemplo n.º 5
0
 internal PlayerManager(MatchManager matchManager)
 {
     this.matchManager = matchManager;
 }
Ejemplo n.º 6
0
        internal PhysicsManager(MatchManager matchManager)
        {
            this.matchManager = matchManager;

            collisionMatrix = new BitArray(CollisionLayersConfig.MaxCollisionLayers * CollisionLayersConfig.MaxCollisionLayers, false);
        }
Ejemplo n.º 7
0
 internal abstract void Apply(Player player, MatchManager matchManager);
Ejemplo n.º 8
0
 internal override void Apply(Player player, MatchManager matchManager)
 {
     matchManager.gameModeManager.Respawn(player);
 }
Ejemplo n.º 9
0
 internal EntityManager(MatchManager matchManager)
 {
     this.matchManager = matchManager;
 }