Esempio n. 1
0
    public void Read(BinaryReader br)
    {
        // mName = br.ReadString();
        mTotalTime = br.ReadSingle();
        int count = br.ReadInt32();

        mEvents.Clear();
        for (int i = 0; i < count; i++)
        {
            ActionObject.ActionType actioinType = (ActionObject.ActionType)br.ReadInt32();
            ActionEvent             ev          = ActionFactory.CreateActionEvent(actioinType);
            if (ev != null)
            {
                ev.SetActionObject(this);
                ev.Read(br);
                mEvents.Add(ev);
            }
        }
    }