- public AltosCompanion(AltosHashSet h) {
- tick = h.getInt("tick", tick);
- board_id = h.getInt("board_id", board_id);
- update_period = h.getInt("update_period", update_period);
- channels = h.getInt("channels", channels);
- companion_data = h.getIntArray("companion_data", new int[channels]);
- }
-
- public static AltosCompanion fromHashSet(AltosHashSet h, AltosCompanion def) {
- if (h == null)
- return def;
-
- return new AltosCompanion(h);
- }
-