コード例 #1
0
ファイル: TurningAction.cs プロジェクト: CookiRui/script
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     startDirection   = stream.readVector2();
     endDirection     = stream.readVector2();
     ignoreTimeAction = stream.ReadBoolean();
 }
コード例 #2
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     point             = stream.readVector2();
     pass              = stream.ReadBoolean();
     times             = stream.ReadByte();
     velocity          = stream.readVector3();
     preHeightVelocity = stream.ReadSingle();
 }
コード例 #3
0
ファイル: MsgStruct.cs プロジェクト: CookiRui/script
 public override bool unMarshal(BytesStream stream)
 {
     uid     = stream.ReadUInt64();
     frameId = stream.ReadByte();
     roleId  = stream.ReadUInt16();
     team    = stream.ReadByte();
     name    = stream.ReadString();
     ai      = stream.ReadBoolean();
     return(true);
 }
コード例 #4
0
ファイル: CreateActorAction.cs プロジェクト: CookiRui/script
        public override void unserialize(BytesStream stream)
        {
            base.unserialize(stream);
            team     = (FBTeam)stream.ReadByte();
            position = stream.readVector2();
            height   = stream.ReadSingle();
            for (int i = 0; i < runAnimiationNormalSpeeds.Length; ++i)
            {
                runAnimiationNormalSpeeds[i] = stream.ReadSingle();
            }

            //avatar相关 begin
            avatarName = stream.ReadString();
            for (int i = 0; i < maxAvatarPartNum; i++)
            {
                avatarPart.Add(stream.ReadString(), stream.ReadString());
            }
            //avatar相关 end

            gk      = stream.ReadBoolean();
            name    = stream.ReadString();
            element = (FiveElements)stream.ReadByte();
            roleId  = stream.ReadUInt32();
        }
コード例 #5
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     name  = stream.ReadString();
     value = stream.ReadBoolean();
 }
コード例 #6
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     zoneIndex = stream.ReadByte();
     rightSide = stream.ReadBoolean();
 }
コード例 #7
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     rightFoot = stream.ReadBoolean();
 }
コード例 #8
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     canCatchBall = stream.ReadBoolean();
 }