Open JimmyCushnie opened 3 years ago
[Flags] enum Flags { None = 0, UnionJack = 1, USA = 2, Communist = 4, SouthKorea = 8, } // ... var file = new DataFile("example"); var communistBritain = Flags.UnionJack | Flags.Communist; file.Set("flags", communistBritain);
example.succ will contain the following:
example.succ
flags: 5
It would be nicer if it contained something like this:
flags: UnionJack | Communist
or perhaps
flags: UnionJack, Communist
or maybe even
flags: UnionJack and Communist
Or maybe SUCC should support all three syntaxes, and the one that's used is a FileStyle setting.
FileStyle
example.succ
will contain the following:It would be nicer if it contained something like this:
or perhaps
or maybe even
Or maybe SUCC should support all three syntaxes, and the one that's used is a
FileStyle
setting.