[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/jp/ - Otaku Culture

Search:


View post   

>> No.17621965 [View]
File: 16 KB, 509x418, JUST.png [View same] [iqdb] [saucenao] [google]
17621965

>>17619088
Work in progress, some items are just there to remind me I need to implement them
Currently brooding over how C# handles attribute inheritance, ie it doesn't. So something like pic related doesn't work. Instead I need to create a property, which is an anonymous variable implicitly declared by declaring it's accessor or mutator in shorthand like
public readonly uint baseCost {get;}.
set could be in there as well were it not read only, and set could have validation logic inside it. Nothing about that bothers me, but the fact that properties are accessed and updated as if they really were public variables like uint i = Spell.baseCost; pisses me off because I have situations where I can't use a prop and places where I can't not use a prop, so I have this mishmash of Thing.getValue() and OtherThing.value notation that really mean the same thing and this rustles the fuck out of my jimmies.

Navigation
View posts[+24][+48][+96]