Exemplo n.º 1
0
 protected override void SetData(byte[] data)
 {
     if (null != data)
     {
         RelationshipDataMgr.Import(data);
     }
 }
Exemplo n.º 2
0
 public void OnMsg(EMsg msg, params object[] args)
 {
     switch (msg)
     {
     case EMsg.View_Prefab_Build:
         if (PeGameMgr.IsSingle)
         {
             RelationshipDataMgr.RecoverRelationship(PeCreature.Instance.mainPlayerId);
         }
         else
         {
             if (Mount)
             {
                 if (Mount.hasView)
                 {
                     RideMount();
                 }
                 else
                 {
                     Mount.biologyViewCmpt.Build();
                     StartCoroutine("RideMountIterator");
                 }
             }
         }
         break;
     }
 }
Exemplo n.º 3
0
 public void SetMount(PeEntity mount)
 {
     if (null != mount)
     {
         Mount = mount;
         Mount.SetMount(true);
         if (!PeGameMgr.IsMulti)
         {
             RelationshipDataMgr.AddRelationship(Entity, Mount);
         }
     }
 }
Exemplo n.º 4
0
 public void DelMount()
 {
     if (null != Mount)
     {
         if (!PeGameMgr.IsMulti)
         {
             RelationshipDataMgr.RemoveRalationship(Entity.Id, Mount.ProtoID);
         }
         Mount.SetMount(false);
         Mount = null;
     }
 }
Exemplo n.º 5
0
 public override void New()
 {
     base.New();
     RelationshipDataMgr.Clear();
 }
Exemplo n.º 6
0
 protected override void WriteData(BinaryWriter bw)
 {
     RelationshipDataMgr.Export(bw);
 }