Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Darmyn
Posts
Comments
C
C#
•
Created by Darmyn on 5/29/2024 in
#help
Help understanding some code
what's the reason?
13 replies
C
C#
•
Created by Darmyn on 5/29/2024 in
#help
Help understanding some code
that's kind of weird
13 replies
C
C#
•
Created by Darmyn on 5/29/2024 in
#help
Help understanding some code
thanks
13 replies
C
C#
•
Created by Darmyn on 5/29/2024 in
#help
Help understanding some code
okay that makes a lot of sense now
13 replies
C
C#
•
Created by Darmyn on 5/29/2024 in
#help
Help understanding some code
ahh
13 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
cause it does not return any value
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
In my case I think I just need an action
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
so how do I accept a function in the constructor as an argument and then store it as a property in the struct to be used at a later date
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
Each option has a title (option 1, option 2 etc) and an actionResult. The action result is what fires when the choice is selected
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
I was going to represent an option inside of my program as a struct
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
1. Option 1 2. Option 2 3. Option 3
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
for example
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
A dialog option is a prompt in the console that has a number of options
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
action result will just handle what ever the dialog option should do
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
Ideally I would accept the actionName and actionResult through the constructor and assign the attributes there
16 replies
C
C#
•
Created by Darmyn on 4/9/2023 in
#help
❔ List containing values that I am unsure how to represent as a type
struct
DialogOption
{
public string
actionName
;
public
_____ actionResult
;
}
struct
DialogOption
{
public string
actionName
;
public
_____ actionResult
;
}
What do I write to define the type of the function?
16 replies