Пример #1
0
 public BubbleGuy(bool bIsThought, string sText, string sModDir) : this()
 {
     ModPath.Set(sModDir);
     _IsThought.Value = bIsThought;
     _IsThought.MarkDirty();
     _PlayerId.Value = Game1.player.UniqueMultiplayerID;
     _PlayerId.MarkDirty();
     SetTexture();
     Text = sText;
 }
Пример #2
0
 public NetMutex()
 {
     NetFields.AddFields(owner, lockRequest);
     lockRequest.InterpolationWait = false;
     owner.InterpolationWait       = false;
     lockRequest.onEvent          += delegate(long playerId)
     {
         if (Game1.IsMasterGame && (owner.Value == -1 || owner.Value == playerId))
         {
             owner.Value = playerId;
             owner.MarkDirty();
         }
     };
 }