Oombuu
Oombuu
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
alright, I'll do my best. Thank you for your help and time
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
or is there a more automatic way to get the type list from a constructor?
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
for the parameters.
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
alright, and should I just manually put in an array of types to each effect type that I call when interpreting the input string?
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
this here is where I make a list of all the subclasses, of this class. It works
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
No description
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
wrong ss
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
sorry
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
does this count?
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
registry?
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
No description
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
its for a video game
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
well, I would specifically like to use the BinaryReader and BinaryWriter if possible, I want to make a custom file type when exporting and importing them
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
well, I suppose it doesnt have to be, String was the immediate data type I say that could represent all the other data types I'd need, and as an added bonus I can use it in the BinaryWriter to easily write these onjects to files (these are only going to be a small aprt of the actual file that is exported)
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
(it may be worth noting that both the Enums TickType and TargetType are in the class that this is being written in)
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
my intent is to be able to take:
typeof(EftDamage) + "5|TickType.SpeedTick|TargetType.OneAlly"
typeof(EftDamage) + "5|TickType.SpeedTick|TargetType.OneAlly"
and plug it into the constructor
public EftDamage(int damage, TickType tickType = TickType.Default, TargetType targetType = TargetType.OneOpponent)
public EftDamage(int damage, TickType tickType = TickType.Default, TargetType targetType = TargetType.OneOpponent)
and have it return the EftDamage object with parameters filled in, while also having the same code be able to handle taking
typeof(EftDuration) + "8|TickType.UserEnd|foo"
typeof(EftDuration) + "8|TickType.UserEnd|foo"
and plug it into
public EftDuration(int duration, TickType tickType, string label)
public EftDuration(int duration, TickType tickType, string label)
an return the EftDuration object with its parameters filled in. All classes are in the same namespace and are children classes of the ActEffect class I'm writing this method in. I'n not sure if my current code is on the right path or not.
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
I'm still not fully sure I understand
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
I'll update my code and get back to you to see if it works, thank you so much
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
alright
56 replies
CC#
Created by Oombuu on 8/8/2024 in #help
Get Object of unknown type with unknown parameters from string
binding flags?
56 replies