Player Boolean Flags.
Posted: September 22nd, 2012, 6:18 am
Okay... I'm trying to modify IRC.cs into an elegent solution for users of the server. On by default, but it can be ignored.
but the hard part is modding the playerinfo flags to have an "IgnoringIRC" switch.
1) How do I add the flag to PlayerInfo?
2) How do I read and write this flag?
I'm looking for a "if (PlayerInfo.Playername.IgnoringIRC)"... style equivilent.
and for the switch: "PlayerInfo.Playername.IgnoringIRC = !PlayerInfo.Playername.IgnoringIRC"
I'm New to C#, but I'm not new to coding (I'm pretty decent at Python.)
The hardest part for me is learning fcrafts structure and where things are defined, read, and written (for eg: where is the player data loaded from the playerdb?).
I really want to learn to mod fcraft because it's very powerful and has a lot of potential for what I want to create.
Thanks folks.
- OfficerFlake
but the hard part is modding the playerinfo flags to have an "IgnoringIRC" switch.
1) How do I add the flag to PlayerInfo?
2) How do I read and write this flag?
I'm looking for a "if (PlayerInfo.Playername.IgnoringIRC)"... style equivilent.
and for the switch: "PlayerInfo.Playername.IgnoringIRC = !PlayerInfo.Playername.IgnoringIRC"
I'm New to C#, but I'm not new to coding (I'm pretty decent at Python.)
The hardest part for me is learning fcrafts structure and where things are defined, read, and written (for eg: where is the player data loaded from the playerdb?).
I really want to learn to mod fcraft because it's very powerful and has a lot of potential for what I want to create.
Thanks folks.
- OfficerFlake