public EnemySubEntity(SingleTileEntityObject gameObject, TParent parent, out bool success) : base(gameObject, out success)
 {
     if (success)
     {
         this.gameObject = gameObject;
         this.parent     = parent;
     }
 }
 public PlayerSubEntity(SingleTileEntityObject gameObject, Player parent, out bool success) : base(gameObject, out success)
 {
     if (success)
     {
         this.parent     = parent;
         this.gameObject = gameObject;
     }
 }
예제 #3
0
 public SingleTileEntity(SingleTileEntityObject gameObject, out bool success)
 {
     this.gameObject            = gameObject;
     gameObject.animateMovement = false;
     SetPosition(gameObject.spawnRow, gameObject.spawnCol, out success);
     gameObject.animateMovement = true;
     if (!success)
     {
         Destroy();
     }
 }
 public BossEnemySubEntity(SingleTileEntityObject gameObject, BossEnemy parent, out bool success) : base(gameObject, parent, out success)
 {
 }
예제 #5
0
 public BarrelSubEntity(SingleTileEntityObject gameObject, Barrel parent, out bool success) : base(gameObject, parent, out success)
 {
 }
 public FollowerEnemySubEntity(SingleTileEntityObject gameObject, FollowerEnemy parent, out bool success) : base(gameObject, parent, out success)
 {
 }
 public PlatformToggleEnemySubEntity(SingleTileEntityObject gameObject, PlatformToggleEnemy parent, out bool success) : base(gameObject, parent, out success)
 {
 }