public override void Record(int frame)
    {
        MomentSingletonComponent record = (MomentSingletonComponent)m_world.GetSingletonComp <T>().DeepCopy();

        record.Frame = frame;
        m_recordInfo.Add(record);

        //if (typeof(T) == typeof(LogicRuntimeMachineComponent))
        //{
        //    LogicRuntimeMachineComponent lrmc = (LogicRuntimeMachineComponent)record;

        //    Debug.Log("Record  " + " content: " + Serializer.Serialize(record) + " frame " + frame);
        //}
    }
Esempio n. 2
0
    public override void Record(int frame)
    {
        MomentSingletonComponent record = (MomentSingletonComponent)m_world.GetSingletonComp <T>().DeepCopy();

        record.Frame = frame;
        m_recordInfo.Add(record);

        //if (typeof(T) == typeof(MapGridStateComponent))
        //{
        //    MapGridStateComponent lrmc = (MapGridStateComponent)record;

        //    SyncDebugSystem.RecordMsg("MapGridStateComponent", frame, Serializer.Serialize(record));

        //    //Debug.Log("Record  " + " content: " +  + " frame " + frame);
        //}
    }
Esempio n. 3
0
    public override void Record(int frame)
    {
        MomentSingletonComponent data = m_world.GetSingletonComp <T>();
        //if(data.IsChange)
        {
            MomentSingletonComponent record = data.DeepCopy();
            record.Frame = frame;
            record.World = data.World;
            m_recordInfo.Add(record);
        }

        //if (typeof(T) == typeof(LogicRuntimeMachineComponent))
        //{
        //    LogicRuntimeMachineComponent lrmc = (LogicRuntimeMachineComponent)data;
        //    Debug.Log("Record  " + " content: " + " frame " + frame + " " + Serializer.Serialize(data));
        //}
    }