public static void CreateStringBind(String in) { StringRef line = new StringRef(in.trim()); String eventname = StringHelper.StripWord(line); CEvent event = null; for (CEvent it : events) { if (it.GetName().equals(eventname)) { event = it; break; } } if (event == null) { Log.log_msg("Can't find matching event for " + eventname); return; } CBind bind; while (true) { if (line.value.length() == 0) break; StringRef bindline = new StringRef(StringHelper.StripWord(line)); for (CBindGroup it : bindgroups) { bind = it.CreateConfigBind(bindline); if (bind != null) { event.AddBind(bind); bind.SetFlags(bindline.value); break; } } } }
public static void MAPPER_CheckEvent(Object event) { for (CBindGroup it : bindgroups) { if (it.CheckEvent(event)) return; } }