コード例 #1
0
 private void ClientRemote_ShowNotEnoughItemsNotification(IProtoItemToolToolbox protoItemToolToolbox)
 {
     NotificationSystem.ClientShowNotification(
         NotificationNotEnoughItems_Title,
         NotificationNotEnoughItems_Message,
         NotificationColor.Bad,
         protoItemToolToolbox.Icon,
         playSound: false);
     ObjectsSoundsPresets.ObjectConstructionSite.PlaySound(ObjectSound.InteractFail);
 }
コード例 #2
0
        public ConstructionActionState(ICharacter character, IStaticWorldObject worldObject, IItem itemConstructionTool)
            : base(character)
        {
            this.WorldObject               = worldObject;
            this.ItemConstructionTool      = itemConstructionTool;
            this.ProtoItemConstructionTool = (IProtoItemToolToolbox)itemConstructionTool.ProtoGameObject;
            var protoStructure = (IProtoObjectStructure)worldObject.ProtoWorldObject;

            this.Config = protoStructure.GetStructureActiveConfig(worldObject);

            this.currentStageTimeRemainsSeconds = this.currentStageDurationSeconds =
                this.CalculateStageDurationSeconds(character, isFirstStage: true);
            this.ObjectPublicState = worldObject.GetPublicState <StaticObjectPublicState>();

            this.structurePointsMax     = protoStructure.SharedGetStructurePointsMax(worldObject);
            this.stageStructureAddValue = this.structurePointsMax / this.Config.StagesCount;
        }
コード例 #3
0
 public ProtoItemToolToolboxViewModel([NotNull] IProtoItemToolToolbox toolbox) : base(toolbox)
 {
 }