BattleLocalPlay.cs 1014 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using CommonAI.Zone.ZoneEditor;
  5. using CommonAI.Zone.Instance;
  6. using CommonAI.Zone;
  7. using CommonAI.ZoneClient;
  8. using CommonAI.Data;
  9. namespace CommonAIClient.Client
  10. {
  11. public class BattleLocalPlay : BattleLocal
  12. {
  13. private EditorScene mZone;
  14. public override EditorScene Zone
  15. {
  16. get { return mZone; }
  17. }
  18. public BattleLocalPlay(EditorTemplates data_root, SceneData scene)
  19. : base(data_root)
  20. {
  21. this.mZone = TemplateManager.Factory.CreateEditorScene(data_root.Templates, this, scene, new GSCreateAreaData(), null);
  22. this.mZone.IsSyncZ = true;
  23. this.mZone.queueEvent(new ClientEnterScene(scene.ID, mZone.SpaceDivSize, data_root.Templates.ResourceVersion), mZone);
  24. }
  25. protected override void Disposing()
  26. {
  27. base.Disposing();
  28. this.mZone.Dispose();
  29. this.mZone = null;
  30. }
  31. }
  32. }