CmdSerializeConfigs.cs 541 B

123456789101112131415161718
  1. using XGame.Editor.Build.AssetBundles;
  2. namespace XGame.Editor.Build
  3. {
  4. //[BuildCommand(BuildCommandPriority.SerializeConfigs)]
  5. class CmdSerializeConfigs : BaseBuildCommand, ICommandExecuter
  6. {
  7. //先屏蔽,等二进制序列化工具效率提升再修改
  8. public BuildErrorCode Execute()
  9. {
  10. if (SerializableUtils.SerializeAllConfigs())
  11. {
  12. return BuildErrorCode.CmdCompleted;
  13. }
  14. return BuildErrorCode.SerializeConfigsFailed;
  15. }
  16. }
  17. }