예제 #1
0
 /// <summary>
 /// Creates a new ObjAct with the given name.
 /// </summary>
 public ObjAct(string name) : base(name)
 {
     ObjActEntityID  = -1;
     PartName2       = null;
     ObjActParamID   = 0;
     ObjActStateType = ObjActState.OneState;
     EventFlagID     = 0;
 }
예제 #2
0
 /// <summary>
 /// Creates a new ObjAct with values copied from another.
 /// </summary>
 public ObjAct(ObjAct clone) : base(clone)
 {
     ObjActEntityID  = clone.ObjActEntityID;
     PartName2       = clone.PartName2;
     ObjActParamID   = clone.ObjActParamID;
     ObjActStateType = clone.ObjActStateType;
     EventFlagID     = clone.EventFlagID;
 }
예제 #3
0
                internal override void Read(BinaryReaderEx br)
                {
                    ObjActEntityID = br.ReadInt32();
                    partIndex2     = br.ReadInt32();
                    ObjActParamID  = br.ReadInt32();

                    ObjActStateType = br.ReadEnum8 <ObjActState>();
                    br.AssertByte(0);
                    br.AssertByte(0);
                    br.AssertByte(0);

                    EventFlagID = br.ReadInt32();
                    br.AssertInt32(0);
                    br.AssertInt32(0);
                    br.AssertInt32(0);
                }
예제 #4
0
 /// <summary>
 /// Creates a new ObjAct with the given name.
 /// </summary>
 public ObjAct(string name) : base(name)
 {
     ObjActEntityID  = -1;
     ObjActStateType = ObjActState.OneState;
 }