Example #1
0
        private static void EditAllProtos <T>(ProtoSet <T> protoSet)
            where T : Proto
        {
            foreach (T proto in protoSet.dataArray)
            {
                if (proto == null)
                {
                    continue;
                }

                try
                {
                    LDBTool.EditDataAction(proto);
                }
                catch (Exception e)
                {
                    LDBToolPlugin.logger.LogWarning($"Edit Error: ID:{proto.ID} Type:{proto.GetType().Name} {e.Message}");
                }
            }
        }