RemoveCacheOfLeftPlayers
How do I use Remove Cache Of Left Players
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
2781 | private void RemoveCacheOfLeftPlayers() | 1 |
File name: NetworkingPeer.cs
Copy
2780 /// This clears the cache of any player/actor who's no longer in the room (making it a simple clean-up option for a new master)
2781 private void RemoveCacheOfLeftPlayers()
2782 {
2783 Dictionary
2784 opParameters[ParameterCode.Code] = (byte)0; // any event
2785 opParameters[ParameterCode.Cache] = (byte)EventCaching.RemoveFromRoomCacheForActorsLeft; // option to clear the room cache of all events of players who left
2786
2787 this.OpCustom((byte)OperationCode.RaiseEvent, opParameters, true, 0);
2788 }
RemoveCacheOfLeftPlayers 108 lượt xem
Gõ tìm kiếm nhanh...