Beispiel #1
0
        public static void UpdateFilePosition(Int64 fileId, int bucketIndex, Vector3 newPosition)
        {
            File23 file = NavigateFile(fileId, bucketIndex);

            if (file != null)
            {
                file.m_UIPositionX = newPosition.x;
                file.m_UIPositionY = newPosition.y;
                SaveCore();
            }
        }
Beispiel #2
0
        public static void MakeDefaultCore()
        {
            Instance.m_Core = new Core23();
            Bucket23 bucket = new Bucket23();

            bucket.timeIndex = DataCore.Core.NextBucketTimeIndex;
            File23 newFile = new File23();

            newFile.id        = DataCore.UniqueTimeStamp;
            newFile.m_Title   = "Guide";
            newFile.m_Caption = "Welcome to the secret world!";
            bucket.AddFile(newFile);
            DataCore.Core.AddBucket(bucket);
            SaveCore();
        }
Beispiel #3
0
 public void AddFile(File23 newFile)
 {
     files.Add(newFile);
 }