56 lines
1.4 KiB
C#
56 lines
1.4 KiB
C#
// using System;
|
|
// using System.Collections.Generic;
|
|
// using UnityEngine;
|
|
//
|
|
// namespace NBF
|
|
// {
|
|
// public interface IDataSource
|
|
// {
|
|
// }
|
|
//
|
|
// /// <summary>
|
|
// /// 数据管理器基类(本地和网络共享接口)
|
|
// /// </summary>
|
|
// public class PlayerDataManager : MonoBehaviour
|
|
// {
|
|
// public static PlayerDataManager Instance { get; private set; }
|
|
//
|
|
// public FPlayerData Self { get; set; }
|
|
//
|
|
// private Dictionary<int, FPlayerData> _players = new Dictionary<int, FPlayerData>();
|
|
//
|
|
// protected void Awake()
|
|
// {
|
|
// Instance = this;
|
|
// }
|
|
//
|
|
//
|
|
// /// <summary>
|
|
// /// 玩家状态变更时调用
|
|
// /// </summary>
|
|
// public void OnPlayerStateChanged(FPlayerData player, PlayerState newState)
|
|
// {
|
|
// }
|
|
//
|
|
// /// <summary>
|
|
// /// 手持物品变更时调用
|
|
// /// </summary>
|
|
// public void OnHeldItemChanged(FPlayerData player, HeldItemInfo newItem)
|
|
// {
|
|
// }
|
|
//
|
|
// /// <summary>
|
|
// /// 发送玩家状态快照
|
|
// /// </summary>
|
|
// public void SendStateSnapshot(FPlayerData player)
|
|
// {
|
|
// }
|
|
//
|
|
// /// <summary>
|
|
// /// 接收并应用网络快照
|
|
// /// </summary>
|
|
// public void ReceiveStateSnapshot(int playerID, PlayerStateSnapshot snapshot)
|
|
// {
|
|
// }
|
|
// }
|
|
// } |