static void _fillSettingTable(Segments.Setting seg, FSNScriptSequence.Parser.ICommandGenerateProtocol protocol) { var param = protocol.parameters; if (param != null) { int settingCount = param.Length / 2; // 2개 짝이 안맞는 파라미터값들은 버린다. for (int i = 0; i < settingCount; i += 2) { var name = FSNInGameSetting.ConvertPropertyNameAlias(param[i]); seg[name] = param[i + 1]; } } }
static void PopSetting(FSNScriptSequence.Parser.ICommandGenerateProtocol protocol) { var newseg = new Segments.Setting(); newseg.settingMethod = Segments.Setting.SettingMethod.Pop; var newSegInfo = new FSNScriptSequence.Parser.GeneratedSegmentInfo() { newSeg = newseg, usePrevPeriod = true, }; protocol.PushSegment(newSegInfo); }