Exemple #1
0
        private void Process(ClientOpenableStateChanged msg)
        {
            var openable = GuidHelper.FindComponent <Openable>(msg.objectGuid);

            if (openable != null)
            {
                using (var x = new MessageBlocker()) {
                    openable.PlayOpenAnimation(msg.state, msg.duration);
                }
            }
        }
Exemple #2
0
        private void Process(ClientFabricatorStart msg)
        {
            var fabricator = GuidHelper.FindComponentInChildren <Fabricator>(msg.fabricatorGuid, true);

            if (fabricator == null)
            {
                Log.Info("Couldn't find fabricator: " + msg.fabricatorGuid);
                return;
            }

            using (var x = new MessageBlocker()) {
                fabricator.crafterLogic?.Craft(msg.tech, msg.duration + 0.2f);
            }
        }