✅ Associating properties with field

Given fields:
public float ZoneShape01;
public float ZoneShape02;
public float ZoneShape03;
public float ZoneShape04;
public float ZoneShape05;
public float ZoneShape06;
public float ZoneShape07;
public float ZoneShape08;
public float ZoneShape09;
public float ZoneShape10;
public float ZoneShape01;
public float ZoneShape02;
public float ZoneShape03;
public float ZoneShape04;
public float ZoneShape05;
public float ZoneShape06;
public float ZoneShape07;
public float ZoneShape08;
public float ZoneShape09;
public float ZoneShape10;
I want to associate two bool properties with each of them. Is there an easier way to do this than just making a class? ie:
public class ZoneShape01 {
public bool IsA { get; set; }
public bool IsB { get; set; }
}
public class ZoneShape01 {
public bool IsA { get; set; }
public bool IsB { get; set; }
}
3 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Determinism
DeterminismOP3y ago
Gotcha, that makes sense Appreciate it
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity. Closed!
Want results from more Discord servers?
Add your server