Пример #1
0
            public void SendAutoLockChange(bool autoLock)
            {
                var msg = new AutoLockMsg();

                msg.EntityId = m_landingGear.EntityId;
                msg.AutoLock = autoLock;

                Sync.Layer.SendMessageToServer(ref msg);
            }
Пример #2
0
            static void OnAutoLockChange(ref AutoLockMsg msg, MyNetworkClient sender)
            {
                MyLandingGear gear;

                if (MyEntities.TryGetEntityById <MyLandingGear>(msg.EntityId, out gear))
                {
                    gear.AutoLock = msg.AutoLock;
                    if (Sync.IsServer)
                    {
                        Sync.Layer.SendMessageToAll(ref msg);
                    }
                }
            }
Пример #3
0
 static void OnAutoLockChange(ref AutoLockMsg msg, MyNetworkClient sender)
 {
     MyLandingGear gear;
     if (MyEntities.TryGetEntityById<MyLandingGear>(msg.EntityId, out gear))
     {
         gear.AutoLock = msg.AutoLock;
         if (Sync.IsServer)
             Sync.Layer.SendMessageToAll(ref msg);
     }
 }
Пример #4
0
            public void SendAutoLockChange(bool autoLock)
            {
                var msg = new AutoLockMsg();
                msg.EntityId = m_landingGear.EntityId;
                msg.AutoLock = autoLock;

                Sync.Layer.SendMessageToServer(ref msg);
            }