コード例 #1
0
 public override void Save(GameDataWriter writer)
 {
     writer.Write(focalShape);
     writer.Write(frequency);
     writer.Write(cosOffset);
     writer.Write(sinOffset);
     writer.Write(previousPosition);
 }
コード例 #2
0
 public override void Save(GameDataWriter writer)
 {
     base.Save(writer);
     writer.Write(ColorCount);
     for (int i = 0; i < ColorCount; ++i)
     {
         writer.Write(colors[i]);
     }
     writer.Write(AngularVelocity);
     writer.Write(Velocity);
 }
コード例 #3
0
ファイル: Shape.cs プロジェクト: LRP500/ObjectManagement
        public override void Save(GameDataWriter writer)
        {
            base.Save(writer);

            writer.Write(_colors.Length);

            for (int i = 0, length = _colors.Length; i < length; i++)
            {
                writer.Write(_colors[i]);
            }

            writer.Write(AngularVelocity);
            writer.Write(Velocity);
        }
コード例 #4
0
 public override void Save(GameDataWriter writer)
 {
     writer.Write(levelObjects.Length);
     for (int i = 0; i < levelObjects.Length; i++)
     {
         levelObjects[i].Save(writer);
     }
 }
コード例 #5
0
 public override void Save(GameDataWriter writer)
 {
     writer.Write(persistableObjects.Length);
     for (int i = 0; i < persistableObjects.Length; ++i)
     {
         persistableObjects[i].Save(writer);
     }
 }
コード例 #6
0
 public override void Save(GameDataWriter writer)
 {
     writer.Write(shapes.Count);
     writer.Write(Random.state);
     writer.Write(CreationSpeed);
     writer.Write(creationProgress);
     writer.Write(DestructionSpeed);
     writer.Write(destructionProgress);
     writer.Write(loadedLevelBuildIndex);
     GameLevel.Current.Save(writer);
     for (int i = 0; i < shapes.Count; i++)
     {
         writer.Write(shapes[i].OriginFactory.FactoryId);
         writer.Write(shapes[i].ShapeId);
         writer.Write(shapes[i].MaterialId);
         shapes[i].Save(writer);
     }
 }
コード例 #7
0
        public override void Save(GameDataWriter writer)
        {
            writer.Write(_persistentObjects.Length);

            for (int i = 0; i < _persistentObjects.Length; i++)
            {
                _persistentObjects[i].Save(writer);
            }
        }
コード例 #8
0
 public virtual void Save(GameDataWriter writer)
 {
     writer.Write(transform.localPosition);
     writer.Write(transform.localRotation);
     writer.Write(transform.localScale);
 }
コード例 #9
0
 public override void Save(GameDataWriter writer)
 {
     writer.Write(originalScale);
     writer.Write(duration);
 }
コード例 #10
0
 public override void Save(GameDataWriter writer)
 {
     writer.Write(_sequentialIndex);
 }
コード例 #11
0
 public override void Save(GameDataWriter writer)
 {
     writer.Write(Velocity);
 }
コード例 #12
0
 public override void Save(GameDataWriter writer)
 {
     base.Save(writer);
     writer.Write(nextSequentialIndex);
 }
コード例 #13
0
 public override void Save(GameDataWriter writer)
 {
     writer.Write(spawnProgress);
 }
コード例 #14
0
 public override void Save(GameDataWriter writer)
 {
     writer.Write(Offset);
     writer.Write(Frequency);
     writer.Write(previousOscillation);
 }