1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
using System; using Hazel; // 需要同步的内容,比如门DoorsSystemType public interface ISystemType { bool Detoriorate(float deltaTime); void RepairDamage(PlayerControl player, byte amount); void Serialize(MessageWriter writer, bool initialState); void Deserialize(MessageReader reader, bool initialState); }