Re: List as a class property - C#

2019-08-10 Thread AudioGames . net Forum — Developers room : nuno69 via Audiogames-reflector
Re: List as a class property - C# Thanks Rastislav for your explanation URL: https://forum.audiogames.net/post/454552/#p454552 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames

Re: List as a class property - C#

2019-08-10 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector
Re: List as a class property - C# Hi there,first, in the player class, if you want to expose player's skills as property:private List skills; public ReadOnlyCollection Skills {get; private set;}If you used the List class for this purpose, while it wouldn't be possible to change its

List as a class property - C#

2019-08-10 Thread AudioGames . net Forum — Developers room : nuno69 via Audiogames-reflector
List as a class property - C# hello!So, I have my player class:        public int HitPoints { get; set; }        public string PlayerName { get; set; }        public bool IsDead { get; set; }        public int PlayerAttack { get; set; }        public int PlayerDefense { get; set