LubanConfigDeserialize.cs 366 B

1234567891011121314
  1. using System;
  2. using Luban;
  3. namespace ET
  4. {
  5. [Invoke(ConfigType.Luban)]
  6. public class ConfigDeserialize_Luban: AInvokeHandler<ConfigLoader.ConfigDeserialize, object>
  7. {
  8. public override object Handle(ConfigLoader.ConfigDeserialize args)
  9. {
  10. return Activator.CreateInstance(args.Type, new ByteBuf(args.ConfigBytes));
  11. }
  12. }
  13. }