protected override void SetupCells()
 {
     base.SetupCells ();
     CELL_nextNodes = EnsureCell("nextNodes", new string[] {});
     CELL_unifiedEndNodeForScope = EnsureCell("unifiedEndNodeForScope", "");
     CELL_eternal = EnsureCell<bool>("eternal", false);
 }
Exemple #2
0
        protected override void DrawPropertyLayout(GUIContent label)
        {
            ValueEntry.Property.Tree.UpdateTree();

            MlfObject mlfObject = ValueEntry.SmartValue;

            mlfObject.ParentAsset = (MlfAsset)EditorGUILayout.ObjectField("Parent:", mlfObject.ParentAsset, typeof(MlfAsset), false);

            //Make sure interpretation is updated
            if (!interpretedOnce)
            {
                mlfObject.MlfInstance.InterpretIfDirty();
                interpretedOnce = true;
            }

            //Draw instance
            if (mlfObject.EnableInstance)
            {
                if (ValueEntry.Property.Children["mlfInstance"] != null)
                {
                    ValueEntry.Property.Children["mlfInstance"].Draw(null);
                }

                DrawProperties(mlfObject);
            }
            else
            {
                DrawOverridingProperties(mlfObject);
            }

            GUILayout.Space(10);

            EditorGUILayout.BeginHorizontal();

            GUILayout.FlexibleSpace();

            if (GUILayout.Button("Interpret", GUILayout.ExpandWidth(false)))
            {
                mlfObject.MlfInstance.Interpret(false);
            }

            EditorGUILayout.EndHorizontal();

            GUILayout.Space(10);

            ValueEntry.Property.Tree.ApplyChanges();
            ValueEntry.ApplyChanges();
        }
Exemple #3
0
        public Entry GenerateDefault()
        {
            if (m_default == null)
            {
                m_default = new SectionEntry();
                m_default.InternalName = "";
                m_default.FriendlyName = "[!/birth_name:[VALUE]!]";
                ValueEntry bname = new ValueEntry();
                bname.InternalName = "birth_name";
                bname.FriendlyName = "Birth Name";
                bname.Parent       = m_default;
                m_default.Entries.Add(bname);
            }

            return(m_default.Clone());
        }
    public void OnModeUpdate(ModeData modeData, ModeSettings modeSettings)
    {
        text.text = modeData.modeName;

        foreach (Transform child in valueHolder.transform)
        {
            Destroy(child.gameObject);
        }

        foreach (Value value in modeSettings.values)
        {
            ValueEntry valueEntry = Instantiate(this.valueEntry) as ValueEntry;

            valueEntry.SetValue(value);
            valueEntry.transform.SetParent(valueHolder.transform);
        }
    }
Exemple #5
0
        /// <summary>
        /// The get statistic progress.
        /// </summary>
        /// <param name="agent">
        /// The agent.
        /// </param>
        /// <param name="statistic">
        /// The statistic.
        /// </param>
        /// <returns>
        /// The <see cref="StatisticProgress"/>.
        /// </returns>
        public StatisticProgress GetStatisticProgress(User agent, Stat statistic)
        {
            QueryOver <ValueEntry, ValueEntry> newestStat =
                QueryOver.Of <ValueEntry>()
                .SelectList(p => p.SelectMax(x => x.Timestamp))
                .Where(c => c.Agent == agent && c.Statistic == statistic);

            ValueEntry value =
                this.databaseSession.QueryOver <ValueEntry>()
                .Where(c => c.Agent == agent && c.Statistic == statistic)
                .WithSubquery.Where(x => x.Timestamp == newestStat.As <DateTime>())
                .SingleOrDefault();

            if (value != null)
            {
                var weekTime  = value.Timestamp.AddDays(-7);
                var monthTime = value.Timestamp.AddDays(-28);

                QueryOver <ValueEntry, ValueEntry> week =
                    QueryOver.Of <ValueEntry>()
                    .SelectList(p => p.SelectMax(x => x.Timestamp))
                    .Where(c => c.Agent == agent && c.Statistic == statistic && c.Timestamp < weekTime);

                QueryOver <ValueEntry, ValueEntry> month =
                    QueryOver.Of <ValueEntry>()
                    .SelectList(p => p.SelectMax(x => x.Timestamp))
                    .Where(c => c.Agent == agent && c.Statistic == statistic && c.Timestamp < monthTime);

                ValueEntry weekValue =
                    this.databaseSession.QueryOver <ValueEntry>()
                    .Where(c => c.Agent == agent && c.Statistic == statistic)
                    .WithSubquery.Where(x => x.Timestamp == week.As <DateTime>())
                    .SingleOrDefault();

                ValueEntry monthValue =
                    this.databaseSession.QueryOver <ValueEntry>()
                    .Where(c => c.Agent == agent && c.Statistic == statistic)
                    .WithSubquery.Where(x => x.Timestamp == month.As <DateTime>())
                    .SingleOrDefault();

                return(new StatisticProgress(value, monthValue, weekValue));
            }

            return(new StatisticProgress(null, null, null));
        }
Exemple #6
0
		protected override void SetupCells()
		{
			base.SetupCells();
			CELL_programObjectIds = EnsureCell("programs", new int[] {});
			CELL_connectedTings = EnsureCell("connections", new string[] {});
			CELL_emitsSmoke = EnsureCell("emitsSmoke", false);
			
			CELL_isPlaying = EnsureCell("isPlaying", false);
			CELL_pitch = EnsureCell("pitch", 1f);
			CELL_soundName = EnsureCell("soundName", "");
			CELL_audioTime = EnsureCell("audioTime", 0.0f);
			CELL_audioTotalLength = EnsureCell("audioTotalLength", 60.0f);
			CELL_audioLoop = EnsureCell("audioLoop", false);
			
			CELL_messageTimer = EnsureCell("messageTimer", 0f);

			CELL_userDefinedLabel = EnsureCell("userDefinedLabel", "");
		}
        private void AttachAttributes(RuntimePropertyInfo propertyInfo, ValueEntry entry)
        {
            if (entry.IsString)
            {
                if (entry.Descriptions.Count > 0)
                {
                    if (int.TryParse(entry.Descriptions[0], out int max))
                    {
                        propertyInfo.AddAttribute(new StringLengthAttribute(0, max));
                    }

                    if (entry.TypeName == "ascii")
                    {
                        propertyInfo.AddAttribute(new ASCIIStringAttribute());
                    }
                }
            }
        }
Exemple #8
0
        public string nameOfOwner = "unknown";         // Just for debugging

        protected override void SetupCells()
        {
            CELL_sourceCodeName      = EnsureCell("sourceCodeName", "");
            CELL_isOn                = EnsureCell("isOn", false);
            CELL_name                = EnsureCell("name", "undefined");
            CELL_sourceCodeContent   = EnsureCell("sourceCode", "");
            CELL_sleepTimer          = EnsureCell("sleepTimer", 0f);
            CELL_remoteCaller        = EnsureCell("remoteCaller", -1);
            CELL_waitingForInput     = EnsureCell("waitingForInput", false);
            CELL_executionCounter    = EnsureCell("executionCounter", 0);
            CELL_executionsPerFrame  = EnsureCell("executionsPerFrame", 50);
            CELL_compilationTurnedOn = EnsureCell("compilationTurnedOn", true);

            CELL_executionTime    = EnsureCell("executionTime", 0f);
            CELL_maxExecutionTime = EnsureCell("maxExecutionTime", -1f);

            _isOn_Cache = CELL_isOn.data;
        }
Exemple #9
0
        protected override void SetupCells()
        {
            base.SetupCells();
            CELL_programObjectIds = EnsureCell("programs", new int[] {});
            CELL_connectedTings   = EnsureCell("connections", new string[] {});
            CELL_emitsSmoke       = EnsureCell("emitsSmoke", false);

            CELL_isPlaying        = EnsureCell("isPlaying", false);
            CELL_pitch            = EnsureCell("pitch", 1f);
            CELL_soundName        = EnsureCell("soundName", "");
            CELL_audioTime        = EnsureCell("audioTime", 0.0f);
            CELL_audioTotalLength = EnsureCell("audioTotalLength", 60.0f);
            CELL_audioLoop        = EnsureCell("audioLoop", false);

            CELL_messageTimer = EnsureCell("messageTimer", 0f);

            CELL_userDefinedLabel = EnsureCell("userDefinedLabel", "");
        }
Exemple #10
0
        public override void MouseDoubleClick(Aga.Controls.Tree.TreeNodeAdvMouseEventArgs args)
        {
            base.MouseDoubleClick(args);
            if (args.Node.Tag != null && !(args.Node.Tag is ValueEntry))
            {
                return;//if this is not a value entry, value is not relevant
            }
            ValueEntry ent = (ValueEntry)args.Node.Tag;

            if (ent == null)
            {//this is the "add new entry" button
                this.BeginEdit();
            }
            else
            {
                FileEditorGUI egui = (FileEditorGUI)this.Parent.Model;
                egui.GotoLink(ent.Link, args.Node);
            }
        }
Exemple #11
0
    private ValueEntry CreateNewValue(ParameterType type)
    {
        if (type == ParameterType.ANY)
        {
            type = ParameterType.NUM;
        }
        var newVal = new ValueEntry()
        {
            Label       = $"{type} Value #{_mainTimeLine.CustomRefrenceValues.Count}",
            Time        = 0,
            ParentEntry = null,
            Type        = type,
            Value       = null
        };

        _mainTimeLine.CustomRefrenceValues.Add(newVal);
        _subElementBehaviour.SetActiveWindow(SubElementBehaviour.SpecialWindows.ValueEditor);
        return(newVal);
    }
Exemple #12
0
        public EventValueRenderer(XElement valueentry, double guisignaldisplaywidth, int imagewidth)
            : base(valueentry)
        {
            this.Baseline = (float)ValueEntry.GetBaseline(valueentry);
            this.Lsbvalue = (float)ValueEntry.GetLsbValue(valueentry);
            this.Unit     = ValueEntry.GetUnit(valueentry);

            this.samplespersec = ValueEntry.GetSampleRate(valueentry);
            this.channels      = ValueEntry.GetNumChannels(valueentry);

            this.imageheight = (int)guisignaldisplaywidth;
            this.imagewidth  = imagewidth;
            this.dirtyrect   = new Int32Rect(0, 0, this.imagewidth, this.imageheight);

            this.sampledata = new SampleD[this.channels];

            this.ReOpen();

            // for VectorRenderSlices
            this.geometries = new Hashtable();
            this.typeface   = new Typeface(SystemFonts.MessageFontFamily, SystemFonts.MessageFontStyle, SystemFonts.MessageFontWeight, FontStretches.Normal);
        }
Exemple #13
0
        private void RunDisruptorPass()
        {
            var thread1 = new Thread(stepOneBatchConsumer.Run);
            var thread2 = new Thread(stepTwoBatchConsumer.Run);
            var thread3 = new Thread(stepThreeBatchConsumer.Run);

            thread1.Start();
            thread2.Start();
            thread3.Start();

            for (long i = 0; i < ITERATIONS; i++)
            {
                ValueEntry entry = producerBarrier.NextEntry();
                entry.Value = _stopwatch.GetElapsedNanoSeconds();
                producerBarrier.Commit(entry);

                long pauseStart = _stopwatch.GetElapsedNanoSeconds();
                while (PAUSE_NANOS > (_stopwatch.GetElapsedNanoSeconds() - pauseStart))
                {
                    //Busy Spin
                }
            }

            long expectedSequence = ringBuffer.Cursor;

            while (stepThreeBatchConsumer.Sequence < expectedSequence)
            {
                //Busy Spin
            }

            stepOneBatchConsumer.Halt();
            stepTwoBatchConsumer.Halt();
            stepThreeBatchConsumer.Halt();
            thread3.Join();
            thread2.Join();
            thread1.Join();
        }
Exemple #14
0
 protected override void SetupCells()
 {
     CELL_name = EnsureCell("name", _startingName);
     CELL_position = EnsureCell("position", _startingPosition);
     CELL_direction = EnsureCell("direction", _startingDirection);
     CELL_dialogueLine = EnsureCell("dialogueLine", "");
     CELL_actionName = EnsureCell("action", "");
     CELL_actionHasFired = EnsureCell("actionHasFired", false);
     CELL_actionStartTime = EnsureCell("startTime", 0f);
     CELL_actionTriggerTime = EnsureCell("triggerTime", 0f);
     CELL_actionEndTime = EnsureCell("endTime", 0f);
     CELL_actionOtherObjectName = EnsureCell("otherObjectName", "");
     CELL_prefab = EnsureCell("prefab", "unspecified");
     CELL_isBeingHeld = EnsureCell("isBeingHeld", false);
 }
Exemple #15
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_commando = EnsureCell("commando", "undefined");
 }
Exemple #16
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "Stove");
     CELL_on = EnsureCell ("on", false);
 }
Exemple #17
0
 protected override void SetupCells()
 {
     CELL_name = EnsureCell("name", "undefined");
     CELL_content = EnsureCell("content", "");
 }
Exemple #18
0
 /// <summary>
 /// Initialises a new instance of the <see cref="BadgeProgress"/> class.
 /// </summary>
 /// <param name="badge">
 /// The badge.
 /// </param>
 /// <param name="currentValue">
 /// The value Entry.
 /// </param>
 /// <param name="weekValue">
 /// The week Value.
 /// </param>
 /// <param name="monthValue">
 /// The month Value.
 /// </param>
 public BadgeProgress(Badge badge, ValueEntry currentValue, ValueEntry weekValue, ValueEntry monthValue)
     : base(currentValue, monthValue, weekValue)
 {
     this.badge = badge;
 }
Exemple #19
0
 /// <summary>
 /// Initialises a new instance of the <see cref="NewValueEntryContainer"/> class.
 /// </summary>
 public NewValueEntryContainer()
 {
     this.valueEntry = new ValueEntry();
 }
Exemple #20
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_exitPoint = EnsureCell("exitPoint", 0);
 }
Exemple #21
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_species = EnsureCell("species", "unknown species");
     CELL_age     = EnsureCell("age", 0);
 }
Exemple #22
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_linkedNode = EnsureCell("linkedNode", "");
 }
Exemple #23
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_data = EnsureCell("data", new Dictionary <string, object> {
     });
 }
Exemple #24
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_minerals = EnsureCell("minerals", "zzzzzzzzzzzzzzzz".ToCharArray());
 }
Exemple #25
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "DefaultPipe");
     CELL_stuffName   = EnsureCell("stuffName", "");
 }
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "Screwdriver");
 }
Exemple #27
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_handle = EnsureCell("handle", "");
 }
Exemple #28
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "Electricity");
 }
Exemple #29
0
        private void UpdateLocalValue(ValueEntryRef entryRef, ValueEntry entry)
        {
            if (localValues == null)
                localValues = new List<ValueEntry>();

            if (!entryRef.Found)
            {
                // new local value
                localValues.Add(entry);
            }
            else
            {
                // update
                localValues[entryRef.Index] = entry;
            }
        }
Exemple #30
0
        protected override void SetupCells()
        {
            base.SetupCells ();
            CELL_programName = EnsureCell ("masterProgramName", "HelloWorld");
            CELL_floppyBootProgramName = EnsureCell ("floppyBootProgramName", "BlankSlate");

            CELL_nrOfLines = EnsureCell ("nrOfLines", 24);
            CELL_charsOnLine = EnsureCell ("charsOnLine", 100); // used to not exist, will have to work around that now
            CELL_currentLine = EnsureCell ("currentLine", 0);
            CELL_currentTopLine = EnsureCell ("currentTopLine", 0);
            CELL_consoleOutput = EnsureCell ("consoleOutput", new string[64]);

            CELL_currentInput = EnsureCell ("currentInput", "");

            CELL_hasInternetAPI = EnsureCell ("hasInternetAPI", true);
            CELL_hasGraphicsAPI = EnsureCell ("hasGraphicsAPI", true);
            CELL_hasWeatherAPI = EnsureCell ("hasWeatherAPI", false);
            CELL_hasLampAPI = EnsureCell ("hasLampAPI", false);
            CELL_hasDoorAPI = EnsureCell ("hasDoorAPI", false);
            CELL_hasMemoryAPI = EnsureCell ("hasMemoryAPI", false);
            CELL_hasVoiceAPI = EnsureCell ("hasVoiceAPI", false);
            CELL_hasElevatorAPI = EnsureCell ("hasElevatorAPI", false);
            CELL_hasTingrunnerAPI = EnsureCell ("hasTingrunnerAPI", false);
            CELL_hasTrapAPI = EnsureCell ("hasTrapAPI", false);
            CELL_hasHeartAPI = EnsureCell("hasHeartAPI", false);
            CELL_hasArcadeMachineAPI = EnsureCell("hasArcadeMachineAPI", false);
            CELL_hasFloppyAPI = EnsureCell("hasFloppyAPI", false);

            CELL_mhz = EnsureCell("mhz", 30);
            CELL_maxExecutionTime = EnsureCell("maxExecutionTime", -1.0f);

            CELL_memoryUnitName = EnsureCell ("memoryUnit", "");
            CELL_floppyInDrive = EnsureCell ("floppyInDrive", "");

            CELL_screenWidth = EnsureCell("screenWidth", 512);
            CELL_screenHeight = EnsureCell("screenHeight", 256);
        }
Exemple #31
0
 protected override void SetupCells()
 {
     CELL_name = EnsureCell("name", "unnamed");
     CELL_isOn = EnsureCell("isOn", false);
     CELL_nextNode = EnsureCell("nextNode", "");
     CELL_conversation = EnsureCell("conversation", "");
     CELL_language = EnsureCell("language", Language.SWEDISH);
     CELL_scopeNode = EnsureCell("scopeNode", "");
 }
Exemple #32
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_onButtonPressedProgramName = EnsureCell("onButtonPressedProgramName", "MusicBoxer");
     CELL_onUpdateProgramName = EnsureCell("onUpdateProgramName", "BlankSlate");
     CELL_cutoffFrequency = EnsureCell("cutoff", 5000f);
     CELL_small = EnsureCell("small", false);
     CELL_mixer = EnsureCell("mixer", false);
     CELL_loop = EnsureCell("loop", true);
     CELL_resonance = EnsureCell("resonance", 1f);
 }
Exemple #33
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "Button");
     CELL_user        = EnsureCell("user", "");
 }
Exemple #34
0
 private void nameEntry_Completed(object sender, EventArgs e)
 {
     ValueEntry.Focus();
 }
Exemple #35
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_hasBranch = EnsureCell("hasBranch", false);
     CELL_branchNode = EnsureCell("branchNode", "undefined");
     CELL_handle = EnsureCell("handle", "");
     CELL_isListening = EnsureCell("isListening", false);
     CELL_expressions = EnsureCell("expressions", new string[] {});
     CELL_eventName = EnsureCell("eventName", "");
 }
Exemple #36
0
 protected override void SetupCells()
 {
     base.SetupCells ();
     CELL_ammount = EnsureCell ("ammount", 100f);
     CELL_liquidType = EnsureCell ("liquidType", "beer");
     CELL_programName = EnsureCell ("masterProgramName", "FolkBeer");
 }
Exemple #37
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_minerals = EnsureCell("minerals", "zzzzzzzzzzzzzzzz".ToCharArray());
 }
Exemple #38
0
 public override RenderSlice CreateRenderSlice(int channelnum)
 {
     return(new RasterRenderSlice(this, channelnum, ValueEntry.GetChannelName(SevEntry, channelnum), this.imagewidth, this.imageheight, ValueEntry.GetUnit(SevEntry), ValueEntry.GetChannel(SevEntry, channelnum)));
 }
Exemple #39
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_conversationToStop = EnsureCell("conversationToStop", "");
 }
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_interruptingConversation = EnsureCell("interconvo", "undefined");
 }
Exemple #41
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "StreetLight");
     CELL_color = EnsureCell("color", new Float3(0, 0, 0));
     CELL_on = EnsureCell("on", true);
 }
Exemple #42
0
        protected override void SetupCells()
        {
            CELL_sourceCodeName = EnsureCell("sourceCodeName", "");
            CELL_isOn = EnsureCell("isOn", false);
            CELL_name = EnsureCell("name", "undefined");
            CELL_sourceCodeContent = EnsureCell("sourceCode", "");
            CELL_sleepTimer = EnsureCell ("sleepTimer", 0f);
            CELL_remoteCaller = EnsureCell("remoteCaller", -1);
            CELL_waitingForInput = EnsureCell("waitingForInput", false);
            CELL_executionCounter = EnsureCell("executionCounter", 0);
            CELL_executionsPerFrame = EnsureCell("executionsPerFrame", 50);
            CELL_compilationTurnedOn = EnsureCell("compilationTurnedOn", true);

            CELL_executionTime = EnsureCell("executionTime", 0f);
            CELL_maxExecutionTime = EnsureCell("maxExecutionTime", -1f);

            _isOn_Cache = CELL_isOn.data;
        }
Exemple #43
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_expression = EnsureCell("expression", "undefined");
     CELL_args       = EnsureCell("args", new string[] {});
 }
Exemple #44
0
 protected override void SetupCells()
 {
     CELL_name        = EnsureCell("name", "unnamed");
     CELL_fileContent = EnsureCell("fileContent", "");
     GenerateTimetableSpansFromContentString();
 }
 protected override void SetupCells()
 {
     base.SetupCells ();
     CELL_timer = EnsureCell( "timer", 2.0f);
     CELL_timerStartValue = EnsureCell("timerStartValue", CELL_timer.data);
     CELL_speaker = EnsureCell("speaker", "unknown");
     CELL_line = EnsureCell("line", "");
 }
Exemple #46
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "BlankSlate");
 }
Exemple #47
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "Pawn");
     CELL_startPosition = EnsureCell("startPosition", WorldCoordinate.NONE);
     CELL_startRotation = EnsureCell("startRotation", Direction.DOWN);
     CELL_dead = EnsureCell("dead", false);
     CELL_moveNr = EnsureCell("moveNr", 0);
     CELL_team = EnsureCell("team", 0);
 }
Exemple #48
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "TeleporterSoftware");
 }
Exemple #49
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "RadiOS");
     CELL_channel     = EnsureCell("channel", 1);
 }
Exemple #50
0
 protected override void SetupCells()
 {
     CELL_name = EnsureCell<string>("name", "undefined");
     CELL_tiles = EnsureCell<IntPoint[]>("tiles", new IntPoint[] { });
     IntPoint[] points = CELL_tiles.data;
     if (points.Length > 0) {
         SetTiles(points);
     }
     CELL_exterior = EnsureCell<bool>("exterior", false);
     CELL_worldPosition = EnsureCell<IntPoint>("worldPosition", IntPoint.Zero);
 }
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "VendingMachine");
     //CELL_cokeBottleName = EnsureCell("cokeBottleName", "");
 }
Exemple #52
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "BasicHackdev");
     CELL_level       = EnsureCell("level", 0);
 }
        private void SetupCells()
        {
            const float NR_OF_SETTINGS = 16;

            while(_table.GetRows().Length < NR_OF_SETTINGS) {
                _table.CreateRow();
            }

            CELL_activeRoom = _table.GetValueEntryEnsureDefault<string>(0, "activeRoom", "Oblivion");
            CELL_avatarName = _table.GetValueEntryEnsureDefault<string>(1, "avatarName", "Sebastian");
            CELL_totalWorldTime = _table.GetValueEntryEnsureDefault<float>(2, "totalWorldTime", 0f);
            CELL_gameTimeSeconds = _table.GetValueEntryEnsureDefault<float>(3, "gameTimeSeconds", 72000f);
            CELL_gameTimeSpeed = _table.GetValueEntryEnsureDefault<float>(4, "gameTimeSpeed", 100f);
            CELL_cameraAutoRotateSpeed = _table.GetValueEntryEnsureDefault<float>(5, "cameraAutoRotateSpeed", 0f);
            CELL_rain = _table.GetValueEntryEnsureDefault<float> (6, "rain", 0f);
            CELL_tickNr = _table.GetValueEntryEnsureDefault<int>(7, "tickNr", 0);
            CELL_rainTargetValue = _table.GetValueEntryEnsureDefault<float> (8, "rainTargetValue", 0f);
            CELL_dynamicallyCreatedTingsCount = _table.GetValueEntryEnsureDefault<int>(9, "dynamicallyCreatedTingsCount", 0);
            CELL_translationLanguage = _table.GetValueEntryEnsureDefault<string> (10, "translationLanguage", "swe");
            CELL_muteNotifications = _table.GetValueEntryEnsureDefault<bool> (11, "muteNotifications", false);
            CELL_focusedDialogue = _table.GetValueEntryEnsureDefault<string> (12, "focusedDialogue", "");
            CELL_beaten = _table.GetValueEntryEnsureDefault<bool> (13, "beaten", false);
            CELL_heartIsBroken = _table.GetValueEntryEnsureDefault<bool> (14, "heartIsBroken", false);
            CELL_storyEventLog = _table.GetValueEntryEnsureDefault<string[]>(15, "storyEventLog", new string[] {});

            // REMEMBER TO ADD ROWS!
        }
Exemple #54
0
 protected override void SetupCells()
 {
     base.SetupCells ();
     CELL_expression = EnsureCell("expression", "undefined");
     CELL_args = EnsureCell("args", new string[] {});
 }
Exemple #55
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_exitPoint = EnsureCell("exitPoint", 0);
 }
Exemple #56
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_targetPortalName = EnsureCell("targetPortalName", "");
 }
Exemple #57
0
 protected override void SetupCells()
 {
     base.SetupCells ();
     CELL_ifTrueNode = EnsureCell("ifTrueNode", "");
     CELL_elifNodes = EnsureCell("elifNode", new string[] {});
     CELL_ifFalseNode = EnsureCell("ifFalseNode", "");
 }
Exemple #58
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_species = EnsureCell("species", "unknown species");
     CELL_age = EnsureCell("age", 0);
 }
Exemple #59
0
 protected override void SetupCells()
 {
     base.SetupCells();
     CELL_programName = EnsureCell("masterProgramName", "BlankSlate");
     CELL_ringing     = EnsureCell("ringing", false);
 }
 protected override void SetupCells()
 {
     funkeyField = EnsureCell<string>("funkeyField", "Something");
     base.SetupCells();
 }