void IBinary.Read(System.IO.BinaryReader reader) { this.elapsedTime = reader.ReadSingle(); this.hp = reader.ReadInt32(); this.rotationTimeCount = reader.ReadSingle(); this.localPosition = reader.ReadVector3(); this.forward = reader.ReadVector3(); this.remainRouteCount = reader.ReadInt32(); this.hasTargetPosition = reader.ReadBoolean(); this.conditionDto = new FishConditionDto(); (this.conditionDto as IBinary).Read(reader); }
/// <summary> /// 状態データセット /// </summary> public void SetConditionDto(FishConditionDto dto) { this.conditionStack.Add(dto); this.conditionStack.Sort((a, b) => a.time < b.time ? -1 : 1); }