Exemplo n.º 1
0
        public ActiveDecoration CreateDecoration(Player owner, string nativeName, Tile target, TagSynergy[] armor, string visualization, float?z, int?health, float?mod)
        {
            if (target.TempObject != null)
            {
                return(null);
            }

            ActiveDecoration decoration = new ActiveDecoration(this, owner, target, visualization, z, health, armor, NativeManager.GetDecorationNative(nativeName), mod);

            Decorations.Add(decoration);
            target.ChangeTempObject(decoration, true);
            return(decoration);
        }