/// <summary> /// Creates an arena layer. /// </summary> /// <param name="isGameplayLayer">Is the layer the gameplay layer.</param> /// <param name="z">Depth of the layer.</param> /// <param name="parallaxName">The name of the layer's parallax, or <c>null</c>.</param> public ArenaLayer(bool isGameplayLayer, float z, string parallaxName) { _isGameplayLayer = isGameplayLayer; _z = z; _parallaxName = (CanonicalString)parallaxName; _gobs = new ArenaLayerGobCollection(); }
/// <summary> /// Creates a copy of an arena layer excluding its gobs. /// </summary> private ArenaLayer(ArenaLayer other) { _isGameplayLayer = other._isGameplayLayer; _z = other._z; _parallaxName = other._parallaxName; _gobs = new ArenaLayerGobCollection(); }
/// <summary> /// Creates an uninitialised arena layer. /// </summary> /// This constructor is only for serialisation. public ArenaLayer() { _isGameplayLayer = true; _z = 0; _parallaxName = (CanonicalString)"dummysprite"; _gobs = new ArenaLayerGobCollection(); }