예제 #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);
                }
            }
        }
예제 #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);
            }
        }