Esempio n. 1
0
 public void Update(SyncMobile syncMobile)
 {
     MobileMetadata.CurrentHealth = syncMobile.MobileMetadata.CurrentHealth;
     MobileMetadata.CurrentShield = syncMobile.MobileMetadata.CurrentShield;
     Position                 = syncMobile.Position;
     CrosshairAngle           = syncMobile.CrosshairAngle;
     SynchronizableActionList = syncMobile.SynchronizableActionList;
     SelectedShotType         = syncMobile.SelectedShotType;
     Facing  = syncMobile.Facing;
     IsAlive = syncMobile.IsAlive;
     SSLockRemainingTurns = syncMobile.SSLockRemainingTurns;
     CausaMortis          = syncMobile.CausaMortis;
 }
Esempio n. 2
0
        public void RequestDeath(CausaMortis causaMortis)
        {
#if !DEBUGSCENE
            if (causaMortis == CausaMortis.Bungee)
            {
                LevelScene.CurrentTurnOwnerDamageDealt.AddEntry(Owner.ID,
                                                                0, 0, 0, true, new int[] { 0, 0 }, new int[] { 0, 0 },
                                                                Facing.Left, new HashSet <WeatherType>());
            }

            SyncMobile.CausaMortis = causaMortis;
            SyncMobile.IsAlive     = false;
            ServerInformationHandler.RequestDeath(SyncMobile);
#endif
        }